@import url("https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600&family=Inter:wght@400;500;600;700&display=swap");

/* ==========================================================================
   18th Hel.A.S. Astronomical Conference 2027 - Indico conference theme
   "Night sky" palette taken from the night-time banner
   (Milky Way over the White Tower). Typefaces:
     Rajdhani SemiBold - main and section headings, uppercase
     Rajdhani Medium   - sidebar navigation, uppercase
     Inter Regular     - body text and announcements
     Inter Medium      - dates strip
   Rajdhani has no Greek letters; Greek in headings/menu falls back to Inter.
   Upload: Event management > Layout > "Custom CSS" (conference layout)
   ========================================================================== */

:root {
  /* Night sky - banner background and waves */
  --helas-night-950: #010a24;   /* banner sky; header matches it exactly */
  --helas-night-900: #061433;
  --helas-night-800: #0b1d42;   /* blue waves */
  --helas-night-700: #16295a;
  --helas-night-600: #24386e;

  /* Starlight cream - banner lettering, logo and wave lines */
  --helas-star:      #feebcf;
  --helas-star-200:  #efe2cc;
  --helas-star-100:  #f7f3ec;   /* page background */

  /* Lamplight amber - the lit White Tower and the horizon glow */
  --helas-amber-300: #e0aa72;   /* on night backgrounds (8:1+) */
  --helas-amber-500: #c9935e;   /* rules, markers, buttons */
  --helas-amber-700: #8c5426;   /* text-safe amber on light (5.6:1) */

  /* Milky Way - cool violet-blue */
  --helas-galaxy-300: #a9b4e6;  /* secondary text on night (8:1+) */
  --helas-galaxy-500: #6e7ab2;
  --helas-galaxy-700: #34418a;  /* links on light (9:1) */

  --helas-ink:       #0b1a3a;
  --helas-ink-muted: #4a5470;
  --helas-rule:      #e3dccf;

  --helas-font:      "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  /* Rajdhani has no Greek glyphs; Greek text falls back to Inter */
  --helas-font-head: "Rajdhani", "Inter", "Segoe UI", system-ui, Arial, sans-serif;
  --helas-radius: 6px;
  --helas-shadow: 0 1px 2px rgba(1, 10, 36, .08), 0 6px 18px rgba(1, 10, 36, .07);

  /* Width of the content column (menu left edge to content right edge) */
  --helas-column: 1080px;
  /* Navy at the left/right edges of the banner image */
  --helas-banner-edge: #030719;
}

/* --------------------------------------------------------------------------
   Page shell and type
   -------------------------------------------------------------------------- */
body,
.conf {
  background: var(--helas-star-100);
  color: var(--helas-ink);
}

/* Body: Inter. Display (headings, menu): Rajdhani. */
.conf,
.conf input,
.conf button,
.conf select,
.conf textarea,
.confBodyBox,
.confBodyBox .i-button,
.confBodyBox .ui.button {
  font-family: var(--helas-font) !important;
}
.conf_leftMenu,
#outer li a,
.confBodyBox h1, .confBodyBox h2, .confBodyBox h3, .confBodyBox h4 {
  font-family: var(--helas-font-head) !important;
}
.confBodyBox {
  font-size: 1em;
  line-height: 1.65;
}
.confBodyBox strong,
.confBodyBox b { font-weight: 600; }
/* Headings: Rajdhani SemiBold. Rajdhani is narrow with a small x-height,
   so it is set larger than a normal sans would be */
.confBodyBox h1, .confBodyBox h2, .confBodyBox h3 {
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.2;
  text-transform: uppercase;
}
.confBodyBox h1 { font-size: 2em; }
.confBodyBox h2 { font-size: 1.45em; }
.confBodyBox h3 { font-size: 1.25em; }
.confBodyBox h4, .confBodyBox h5 {
  font-family: var(--helas-font) !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
/* Sidebar navigation: Rajdhani Medium */
#outer li a {
  font-weight: 500;
  font-size: 1.12em;
  letter-spacing: .05em;
  text-transform: uppercase;
  line-height: 1.3;
}
/* Date strip: Inter Medium */
.datePlace,
.datePlace .date,
.datePlace .place,
.datePlace .timezone {
  font-family: var(--helas-font) !important;
  font-weight: 500 !important;
}
.datePlace .date { font-size: 1.05em; letter-spacing: 0; }

.conf a,
.confBodyBox a {
  color: var(--helas-galaxy-700);
  text-decoration-color: rgba(52, 65, 138, .35);
  text-underline-offset: 2px;
}
.conf a:hover,
.confBodyBox a:hover {
  color: var(--helas-amber-700);
  text-decoration-color: var(--helas-amber-500);
}

/* --------------------------------------------------------------------------
   Header: banner on a full-width night-sky band, no text title
   -------------------------------------------------------------------------- */
.confheader {
  background: var(--helas-banner-edge) !important;
  border-bottom: 2px solid var(--helas-amber-500);
}

/* Remove the container width and padding Indico puts around the title row */
.confTitleBox,
.confTitle,
.confTitle h1,
.confTitle h1 a,
.conference-title-link {
  background: var(--helas-banner-edge) !important;
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
  display: block !important;
  line-height: 0;
  text-decoration: none !important;
}

/* Banner: as wide as the content column, centred.
   Image file: 2160x720 (star-trails banner, 3:1, 2x the column width, sharp on
   HiDPI screens). The band behind it uses the banner's own edge navy
   (--helas-banner-edge) and both image edges are feathered into it. */
.confLogoBannerBox,
.confLogoBox {
  display: flex !important;
  justify-content: center;
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
  line-height: 0;
  background: var(--helas-banner-edge) !important;
}
.confLogoBannerBox img.confLogo,
.confLogoBox img.confLogo {
  display: block;
  width: 100% !important;
  max-width: var(--helas-column) !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 auto !important;
}
@media (min-width: 1100px) {
  .confLogoBannerBox img.confLogo,
  .confLogoBox img.confLogo {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 2.5%, #000 97.5%, transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 2.5%, #000 97.5%, transparent 100%);
  }
}

/* Hide the text title visually; keep it for screen readers and search engines */
.conference-title-link > span[itemprop="title"],
.confTitle h1 span[itemprop="title"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Date / venue strip */
.confSubTitleBox {
  background: var(--helas-night-900) !important;
  border: 0 !important;
  border-top: 1px solid rgba(169, 180, 230, .12) !important;
}
.confSubTitleContent,
.confSubTitle,
.datePlace,
.datePlace .date,
.datePlace .place {
  color: var(--helas-star) !important;
}
.confSubTitle a {
  color: var(--helas-amber-300) !important;
}
.datePlace > .timezone,
div.datePlace > div.timezone {
  color: var(--helas-galaxy-300) !important;
}

/* Announcement bar */
.simpleTextAnnouncement {
  background: #fbf0e2 !important;
  color: var(--helas-ink) !important;
  border: 0 !important;
  border-left: 4px solid var(--helas-amber-500) !important;
  border-radius: 0;
  padding: .7em 1.2em;
}

/* --------------------------------------------------------------------------
   Left menu: night panel, starlight text, lamplight for the active page
   -------------------------------------------------------------------------- */
/* Menu column widened from Indico's 200px so labels such as
   "Call for Abstracts" fit on one line; the content box moves with it. */
.conf_leftMenu {
  background: transparent;
  width: 260px !important;
}
.confBodyBox {
  margin-left: 290px !important;
}
@media (max-width: 800px) {
  .conf_leftMenu { float: none !important; width: auto !important; }
  .confBodyBox { margin-left: 0 !important; margin-top: 16px; }
}

#outer {
  background: var(--helas-night-900) !important;
  border: 0 !important;
  border-radius: var(--helas-radius);
  overflow: hidden;
  box-shadow: var(--helas-shadow);
  padding: .3em 0;
}

#outer li a,
.menuConfTitle a {
  color: var(--helas-star-200) !important;
  border: 0 !important;
  padding: .6em 1.1em;
  text-decoration: none;
  transition: background-color .15s, color .15s;
}

#outer li a:hover {
  background: var(--helas-night-700) !important;
  color: var(--helas-star) !important;
}

.menuConfSelected,
.menuConfSelected a,
#outer li.menuConfSelected > a {
  background: var(--helas-night-700) !important;
  color: var(--helas-amber-300) !important;
  box-shadow: inset 3px 0 0 var(--helas-amber-500);
  font-weight: 600;
}

/* Sub-menu */
li ul.inner {
  background: var(--helas-night-950);
}
li ul.inner li a {
  color: var(--helas-star-200) !important;
  padding-left: 2em;
  font-size: .95em;
}
.subMenuConfSelected,
.subMenuConfSelected a {
  color: var(--helas-amber-300) !important;
  background: transparent !important;
  font-weight: 600;
}

/* Arrow bullets: starlight disc with navy chevron (like the dots on the
   banner's wave lines); amber for the current page */
#outer li a {
  display: flex !important;
  align-items: center;
  gap: .75em;
  border-bottom: 1px solid rgba(169, 180, 230, .10) !important;
}
#outer > li:last-child > a { border-bottom: 0 !important; }
#outer li a::before {
  content: "";
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M9 6.5l4.5 4.5L9 15.5' fill='none' stroke='%23010a24' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px 22px no-repeat,
    radial-gradient(circle at 35% 30%, #fffaf1 0%, #f3e3c8 60%, #d9c4a3 100%);
  box-shadow: 0 0 6px rgba(254, 235, 207, .25), 0 1px 2px rgba(0, 0, 0, .4);
  transition: transform .15s ease, box-shadow .15s ease;
}
#outer li a:hover::before {
  transform: translateX(2px);
  box-shadow: 0 0 10px rgba(254, 235, 207, .45), 0 1px 2px rgba(0, 0, 0, .4);
}
.menuConfSelected > a::before,
#outer li.menuConfSelected > a::before {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M9 6.5l4.5 4.5L9 15.5' fill='none' stroke='%23010a24' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px 22px no-repeat,
    radial-gradient(circle at 35% 30%, #f6d3a8 0%, #e0aa72 55%, #b87c47 100%);
  box-shadow: 0 0 10px rgba(224, 170, 114, .45), 0 1px 2px rgba(0, 0, 0, .4);
}

/* Sub-menu items: smaller outline arrow */
#outer li ul.inner li a::before {
  flex-basis: 16px;
  width: 16px;
  height: 16px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 4.5L10 8l-3.5 3.5' fill='none' stroke='%23feebcf' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
  background-color: transparent;
  box-shadow: inset 0 0 0 1.5px rgba(254, 235, 207, .55);
}

/* Contact box under the menu */
.support_box,
.confSupportEmailBox {
  background: #fff !important;
  border: 1px solid var(--helas-rule) !important;
  border-top: 3px solid var(--helas-amber-500) !important;
  border-radius: var(--helas-radius);
  color: var(--helas-ink);
}
.support_box h3 {
  color: var(--helas-night-950) !important;
  background: transparent !important;
  font-family: var(--helas-font-head) !important;
}
.support_box .icon {
  color: var(--helas-amber-700);
}

/* --------------------------------------------------------------------------
   Content area
   -------------------------------------------------------------------------- */
.confBodyBox {
  background: #fff;
  border: 1px solid var(--helas-rule) !important;
  border-radius: var(--helas-radius);
  box-shadow: var(--helas-shadow);
  color: var(--helas-ink);
}

.confBodyBox h1,
.confBodyBox h2,
.confBodyBox h3 {
  color: var(--helas-night-950);
}
.confBodyBox h1,
.confBodyBox h2 {
  padding-bottom: .3em;
  border-bottom: 2px solid var(--helas-amber-500);
}
.confBodyBox h4,
.confBodyBox h5 {
  color: var(--helas-amber-700);
}

.confBodyBox hr {
  border: 0;
  border-top: 1px solid var(--helas-rule);
}

.confBodyBox blockquote {
  border-left: 3px solid var(--helas-galaxy-500);
  background: #f3f4fa;
  color: var(--helas-ink-muted);
  margin-left: 0;
  padding: .6em 1em;
}

/* All pages (Overview, Timetable, Call for Abstracts, ...).
   Indico renders them as  .conference-page > [header] + .page-content
   with no padding of their own, so the inset is added here. */
.confBodyBox .conference-page > header {
  margin: 0 !important;
  padding: 26px 36px 14px !important;
  border-bottom: 1px solid var(--helas-rule) !important;
  background: transparent !important;
}
.confBodyBox .conference-page > header h2 {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  color: var(--helas-night-950) !important;
  font-size: 1.7em !important;
  font-weight: 600 !important;
}
.confBodyBox .conference-page > header .page-description,
.confBodyBox .conference-page > header h3 {
  color: var(--helas-ink-muted) !important;
}
.confBodyBox .page-content {
  padding: 28px 36px 32px !important;
}
/* Title row: drop Indico's second rule under the heading */
.confBodyBox .conference-page > header .title,
.confBodyBox .conference-page > header .title .text,
.confBodyBox .conference-page > header .title-with-actions {
  border: 0 !important;
  box-shadow: none !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}
/* Overview: remove the empty band above the description */
.confBodyBox .conferenceDetails .description {
  margin: 0 0 1.6em !important;
  padding: 0 !important;
}
.confBodyBox .conferenceDetails .description > :first-child { margin-top: 0 !important; }
.confBodyBox .conferenceDetails .description > :last-child { margin-bottom: 0 !important; }
.confBodyBox .conferenceDetails .infogrid {
  padding-top: 1.4em;
  border-top: 1px solid var(--helas-rule);
  margin-bottom: 0 !important;
}
/* Overview text: same font, size and colour as the rest of the site.
   Indico sets the description in a larger grey text, and text pasted into
   the description editor (from Word, e-mail, other sites) carries its own
   inline fonts and sizes; both are overridden here. Headings typed in the
   description keep the Rajdhani heading style; links keep their colour. */
.confBodyBox .conferenceDetails .description {
  font-family: var(--helas-font) !important;
  font-size: 1.1em !important;
  line-height: 1.65 !important;
  color: var(--helas-ink) !important;
}
.confBodyBox .conferenceDetails .description :is(p, span, div, li, td, font, strong, b, em, i, u, a):not(h1 *, h2 *, h3 *, h4 *) {
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
}
.confBodyBox .conferenceDetails .description :is(p, span, div, li, td, font, strong, b, em, i, u):not(a *) {
  color: inherit !important;
}
/* Overview only: justified paragraphs. .conferenceDetails exists only on
   the Overview page, so other pages stay left-aligned. Hyphenation keeps
   the narrow column free of wide word gaps (uses the page language). */
.confBodyBox .conferenceDetails .description p,
.confBodyBox .conferenceDetails .description li {
  text-align: justify !important;
  -webkit-hyphens: auto;
          hyphens: auto;
  hyphenate-limit-chars: 6 3 3;
}
.confBodyBox .conferenceDetails .description p {
  margin: 0 0 .9em !important;
}
@media (max-width: 800px) {
  .confBodyBox .conferenceDetails .description p,
  .confBodyBox .conferenceDetails .description li { text-align: left !important; }
}
.confBodyBox .conferenceDetails .infogrid,
.confBodyBox .conferenceDetails .infogrid .text {
  font-family: var(--helas-font) !important;
  color: var(--helas-ink);
}
/* Notices inside pages (e.g. "Contributions are in draft mode") */
.confBodyBox .page-content > .action-box,
.confBodyBox .page-content > [class$="-message-box"] {
  margin: 0 0 1.4em !important;
  border-radius: var(--helas-radius);
}
@media (max-width: 800px) {
  .confBodyBox .conference-page > header { padding: 20px 18px 12px !important; }
  .confBodyBox .page-content { padding: 20px 18px 24px !important; }
}

/* Tables (timetable lists, fees, dates) */
.confBodyBox table th {
  background: var(--helas-night-900);
  color: var(--helas-star);
  font-weight: 600;
  letter-spacing: .03em;
}
.confBodyBox table tr:nth-child(even) td {
  background: var(--helas-star-100);
}

/* Buttons: primary = lamplight amber with night text, secondary = outline */
.confBodyBox .i-button.highlight,
.confBodyBox .ui.primary.button {
  background: var(--helas-amber-300) !important;
  border-color: var(--helas-amber-500) !important;
  color: var(--helas-night-950) !important;
  text-shadow: none !important;
  font-weight: 700;
  letter-spacing: .03em;
}
.confBodyBox .i-button.highlight:hover,
.confBodyBox .ui.primary.button:hover {
  background: var(--helas-amber-500) !important;
}
.confBodyBox .i-button:not(.highlight) {
  border-color: var(--helas-night-700);
  color: var(--helas-night-900);
}

/* Keyboard focus visible on every interactive element */
.conf a:focus-visible,
#outer li a:focus-visible,
.confBodyBox .i-button:focus-visible {
  outline: 2px solid var(--helas-amber-500);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Narrow screens
   -------------------------------------------------------------------------- */
@media (max-width: 800px) {
  #outer { border-radius: 0; }
  .confBodyBox { border-radius: 0; border-left: 0 !important; border-right: 0 !important; }
}