/* Ember supports plain CSS out of the box. More info: https://cli.emberjs.com/release/advanced-use/stylesheets/ */

@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 600;
  font-display: block;
  src: url("/fonts/baloo-2-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 800;
  font-display: block;
  src: url("/fonts/baloo-2-latin-800-normal.woff2") format("woff2");
}

:root {
  --esug-blue: #1c3f6e;
  --esug-blue-dark: #12294a;
  --esug-accent: #f2a71b;
  --esug-bg: #f5f7fa;
  --esug-text: #1f2933;
  --esug-muted: #000;
  --esug-border: #dde3ea;
  --chapter-tab-bar-height: 3.5rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--esug-text);
  background: var(--esug-bg);
}

/* Site header / logo */

.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 4.25rem 1.5rem 2.5rem;
  text-align: center;
}

.site-logo {
  width: 270px;
  height: 270px;
}

.site-header-tagline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  max-width: 40rem;
}

.site-header-tagline-main {
  font-family: "Baloo 2", cursive;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--esug-blue);
  line-height: 1.1;
}

.site-header-tagline-sub {
  font-family: "Baloo 2", cursive;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--esug-accent);
  line-height: 1.1;
}

/* Tile grid */

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.home-section-heading {
  max-width: 72rem;
  margin: 0 auto 1.25rem;
  padding: 1.5rem 1.5rem 0;
  color: var(--esug-blue-dark);
  font-size: 1.75rem;
}

.home-tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 210px;
  padding: 1.25rem;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--esug-border);
  background-color: var(--esug-bg);
  background-image: var(--tile-image, none);
  background-size: cover;
  background-position: top center;
  text-decoration: none;
  color: #fff;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.home-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(18 41 74 / 10%) 0%, rgb(18 41 74 / 88%) 100%);
}

.home-tile-active {
  cursor: pointer;
}

.home-tile-active:hover,
.home-tile-active:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgb(28 63 110 / 25%);
}

/* Grey out only the image, overlay and date of an inactive tile, not the
   whole tile, so the orange "Coming soon" badge keeps its colour. */
.home-tile-inactive {
  cursor: default;
  isolation: isolate;
  background-image: none;
}

.home-tile-inactive::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--tile-image, none);
  background-size: cover;
  background-position: top center;
  filter: grayscale(0.85);
}

.home-tile-inactive::before {
  filter: grayscale(0.85);
}

.home-tile-content {
  position: relative;
  z-index: 1;
}

.home-tile-title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: #fff;
}

.home-tile-summary {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  color: rgb(255 255 255 / 85%);
}

.home-tile-date {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--esug-accent);
}

.home-tile-inactive .home-tile-date {
  filter: grayscale(0.85);
}

.home-tile-badge {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 1;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--esug-accent);
  color: #3d2600;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Generic sub-page layout */

.page {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.page-hero {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;

  /* Extra breathing room above the hero block itself, on every nested
     page (not the home page, which has no .page-hero). */
  margin-top: 20px;
  margin-bottom: 1.5rem;
}

.page-back {
  order: -1;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--esug-blue);
  text-decoration: none;
  font-weight: 600;
}

.page-back-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--esug-blue);
  color: #fff;
  box-shadow: 0 1px 3px rgb(18 41 74 / 20%);
}

.page-back:hover .page-back-icon {
  background: var(--esug-blue-dark);
}

.page-hero-image {
  display: block;
  flex: 1;
  min-width: 0;
  object-fit: cover;
  object-position: top center;
  border-radius: 0.75rem;
  border: 1px solid var(--esug-border);
}

.page h1 {
  color: var(--esug-blue-dark);
}

.page-hero-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.page-hero-text h1 {
  margin: 0;
}

/* Organising Committee page */

.committee-chairs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.committee-chair {
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--esug-border);
  border-radius: 0.75rem;
  text-align: center;
}

.committee-chair-title {
  margin: 0 0 0.75rem;
  color: var(--esug-blue-dark);
  font-size: 1.25rem;
}

.committee-chair-names {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--esug-muted);
}

.committee-chair-names li {
  margin: 0;
}

.committee-chair-name {
  display: block;
}

.committee-chair-affiliation {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.85rem;
  opacity: 0.75;
}

/* Practical Information page: lunch menu placeholder */

.lunch-menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 1.5rem;
}

.lunch-menu-day {
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--esug-border);
  border-radius: 0.75rem;
  text-align: center;
}

.lunch-menu-day-title {
  margin: 0 0 0.5rem;
  color: var(--esug-blue-dark);
  font-size: 1rem;
}

.lunch-menu-day-placeholder {
  margin: 0;
  color: var(--esug-muted);
}

.page-notice.lunch-menu-notice {
  margin: 0 0 0.75rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
}

.lunch-menu-items {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Become a Sponsor page: tier bands */

.sponsorship-tier-bands {
  display: flex;
  flex-direction: column;
  margin: 1.25rem 0;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--esug-border);
}

.sponsorship-tier {
  padding: 1.25rem;
  color: var(--esug-blue-dark);
}

.sponsorship-tier-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.sponsorship-tier-name {
  margin: 0;
  color: var(--esug-blue-dark);
  font-size: 1.05rem;
}

.sponsorship-tier-price {
  flex-shrink: 0;
  color: var(--esug-blue-dark);
  font-weight: 700;
  white-space: nowrap;
}

.sponsorship-tier-price-period {
  font-weight: 400;
  font-size: 0.85rem;
}

.sponsorship-tier-benefits {
  margin: 0;
  padding-left: 1.1rem;
}

.sponsorship-tier-benefits li {
  margin-bottom: 0.4rem;
}

.sponsorship-tier-silver {
  background: #c0c0c0;
}

.sponsorship-tier-gold {
  background: #ffd700;
}

.sponsorship-tier-platinum {
  background: #e5e4e2;
}

/* Side-by-side bands once there is enough width for each to stay
   readable; narrower than that (most phones in portrait) they stack. */
@media (width >= 640px) {
  .sponsorship-tier-bands {
    flex-direction: row;
  }

  .sponsorship-tier {
    flex: 1;
  }
}

/* Program preview (schedule from a past conference) */

.program-preview-intro {
  color: var(--esug-muted);
}

.program-day-pills {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* legacy Edge */
}

.program-day-pills::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.program-day-pill {
  flex-shrink: 0;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--esug-border);
  background: #fff;
  color: var(--esug-blue);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.program-day-pill-active {
  background: var(--esug-blue);
  border-color: var(--esug-blue);
  color: #fff;
}

.program-session-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--esug-border);
}

.program-session {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--esug-border);
}

.program-session-time {
  flex-shrink: 0;
  min-width: 6.5rem;
  white-space: nowrap;
  color: var(--esug-muted);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.program-session-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.program-session-subject {
  font-weight: 600;
  color: var(--esug-text);
}

.program-session-speaker {
  color: var(--esug-muted);
  font-size: 0.85rem;
}

.program-session-break .program-session-subject {
  font-weight: 400;
  font-style: italic;
  color: var(--esug-muted);
}

.program-session-subject-link {
  color: var(--esug-blue);
  text-decoration: none;
}

.program-session-subject-link:focus-visible {
  text-decoration: underline;
}

/* A linked session without a speaker (e.g. "Show Us Your Project") is
   bold and blue like a talk link, and italic like a session break. */
.program-session-break .program-session-subject-link {
  font-weight: 600;
  color: var(--esug-blue);
}

/* Talk detail page */

.talk-presenter {
  margin-top: 0.75rem;
  color: var(--esug-muted);
  font-weight: 600;
}

.talk-section-heading {
  margin-top: 2rem;
  color: var(--esug-blue-dark);
}

.talk-abstract-heading {
  margin-bottom: 0;
}

.talk-abstract-note {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.talk-link {
  color: var(--esug-blue);
}

.talk-source-note {
  margin-top: 2rem;
  color: var(--esug-muted);
  font-size: 0.85rem;
  font-style: italic;
}

.talk-video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  border-radius: 0.75rem;
  overflow: hidden;
  background: #000;
}

.talk-video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.talk-video-link {
  display: block;
}

.talk-video-thumbnail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.talk-video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease;
}

.talk-video-link:hover .talk-video-play-icon,
.talk-video-link:focus-visible .talk-video-play-icon {
  transform: translate(-50%, -50%) scale(1.08);
}

.page-section-heading {
  margin-top: 2rem;
  color: var(--esug-blue-dark);
}

.page-subsection-heading {
  margin-top: 1.25rem;
  margin-bottom: 0.25rem;
  color: var(--esug-blue-dark);
  font-size: 1rem;
}

.venue-room-list {
  margin: 0;
  padding-left: 1.25rem;
}

.venue-room-list li {
  margin-bottom: 0.5rem;
}

.venue-room-list li:last-child {
  margin-bottom: 0;
}

.venue-room-detail {
  display: block;
  color: var(--esug-text);
}

.page-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.page-notice {
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  background: #fff8e8;
  border: 1px solid #f2d98a;
  color: #7a5b00;
}

/* A notice with several paragraphs keeps its own padding at the edges. */
.page-notice > :first-child {
  margin-top: 0;
}

.page-notice > :last-child {
  margin-bottom: 0;
}

/* Sponsors page */

.sponsor-logo-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  margin-top: 1rem;
}

.sponsor-logo-link {
  display: inline-flex;
  margin-top: 1rem;
}

.sponsor-logo {
  display: block;
  width: auto;
  object-fit: contain;
}

.sponsor-logo-platinum {
  max-width: 260px;
}

.sponsor-logo-gold {
  max-width: 220px;
}

.sponsor-logo-silver {
  max-width: 180px;
}

/* City information page */

.city-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.city-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  border-radius: 0.6rem;
  background: #fff;
  border: 1px solid var(--esug-border);
}

.city-stat-value {
  color: var(--esug-blue-dark);
  font-family: "Baloo 2", cursive;
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1.1;
}

.city-stat-label {
  color: var(--esug-muted);
  font-size: 0.8rem;
  line-height: 1.3;
}

.city-stat-note {
  margin-top: 0.6rem;
  color: var(--esug-muted);
  font-size: 0.8rem;
  font-style: italic;
}

/* Past Conferences page */

.conference-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.conference-logo-tile,
.conference-year-tile {
  position: relative;
  display: block;
  border-radius: 0.6rem;
  background: #fff;
  border: 1px solid var(--esug-border);
}

/* Squares every tile via the "padding-top: 100%" technique rather than the
   `aspect-ratio` property -- more reliable across WebViews (including the
   one Capacitor uses on iOS) than relying on `aspect-ratio` combined with a
   flex child's percentage max-height. */
.conference-logo-tile::before,
.conference-year-tile::before {
  content: "";
  display: block;
  padding-top: 100%;
}

a.conference-logo-tile,
a.conference-year-tile {
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    transform 0.15s ease;
}

a.conference-logo-tile:hover,
a.conference-logo-tile:focus-visible,
a.conference-year-tile:hover,
a.conference-year-tile:focus-visible {
  border-color: var(--esug-blue-dark);
  transform: translateY(-2px);
}

/* Conferences without a page in this app: a dashed border instead of the
   solid one, so the tiles that open a conference page stand out. */
.conference-tile-no-page {
  border: 1.5px dashed #7b8794;
}

.conference-tile-frame {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem;
}

.conference-logo-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.conference-year-tile {
  overflow: hidden;
}

.conference-year-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/images/esug-logo.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 78% auto;
  opacity: 0.1;
  pointer-events: none;
}

.conference-year-tile .conference-tile-frame {
  z-index: 1;
  flex-direction: column;
  gap: 0.15rem;
  text-align: center;
}

.conference-year-tile-year {
  color: var(--esug-blue-dark);
  font-family: "Baloo 2", cursive;
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.1;
}

.conference-year-tile-location {
  display: block;
  color: var(--esug-muted);
  font-size: 0.72rem;
  line-height: 1.2;
}

/* Presentations search page */

.presentation-search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.presentation-search-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1 1 12rem;
}

/* Visually hidden but still announced by screen readers -- the input's
   placeholder carries the visible hint, but the <label> needs real text
   for an accessible name. */
.presentation-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.presentation-search-field input,
.presentation-search-field select {
  padding: 0.55rem 0.7rem;
  border-radius: 0.5rem;
  border: 1px solid var(--esug-border);
  background: #fff;
  color: var(--esug-text);
  font-family: inherit;

  /* iOS Safari/WKWebView auto-zooms the whole page on focus for any input
     with a font-size under 16px, which then overflows the viewport
     horizontally (looked like a stray gray line -- it was the resulting
     horizontal scrollbar). 1rem keeps it at exactly the 16px threshold. */
  font-size: 1rem;
}

.presentation-search-field input:focus-visible,
.presentation-search-field select:focus-visible {
  outline: 2px solid var(--esug-blue);
  outline-offset: 1px;
}

.presentation-search-count {
  margin-top: 1.25rem;
  color: var(--esug-muted);
  font-size: 0.85rem;
}

.presentation-result-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--esug-border);
}

.presentation-result {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--esug-border);
}

.presentation-result-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.presentation-result-title {
  font-weight: 600;
  color: var(--esug-text);
}

.presentation-result-title-link {
  color: var(--esug-blue);
  text-decoration: none;
}

.presentation-result-title-link:focus-visible {
  text-decoration: underline;
}

.presentation-result-speaker {
  color: var(--esug-muted);
  font-size: 0.85rem;
}

.presentation-result-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
  margin-top: 0.15rem;
  font-size: 0.8rem;
}

.presentation-result-year {
  font-weight: 600;
  color: var(--esug-blue);
}

.presentation-result-datetime {
  color: var(--esug-muted);
}

/* Innovation Technology Awards (archive page) */

.award-list {
  list-style: none;
  margin: 0.75rem 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.award-entry {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid var(--esug-border);
  background: #fff;
}

/* Winners: not a list -- each row is a plain div with the medal fixed to
   the left of the title/details column (see .award-medal / .award-content
   below, shared with the nominees list). */
.award-winners {
  margin: 0.75rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Top-align the medal with the title, rather than centering it against
   the whole (variable-height) content block. */
.award-winner {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid var(--esug-border);
  background: #fff;
}

/* The medal always sits to the left of the title and details -- see the
   award-content column next to it below. */
.award-medal {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  object-fit: contain;
}

/* Nominees get a plain placeholder circle (same size as a winner's medal)
   instead of a medal image. */
.award-nominee-medal {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e5e7eb;
  color: #b0b7bf;
  font-size: 0.6rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.15;
}

.award-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.award-title {
  margin: 0 0 0.35rem;
  font-weight: 700;
  color: var(--esug-blue-dark);
}

.award-submitter {
  margin: 0 0 0.7rem;
  color: var(--esug-text);
}

.award-keywords {
  margin: 0;
  color: var(--esug-muted);
  font-size: 0.85rem;
}

/* Each link on its own line rather than inline/wrapped. */
.award-links {
  margin: 0.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.award-link {
  color: var(--esug-blue);
  text-decoration: none;
  font-size: 0.85rem;
}

.award-link:hover,
.award-link:focus-visible {
  text-decoration: underline;
}

/* Call for Presentations: submission template block */

.page pre {
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  background: #f4f4f4;
  border: 1px solid #ddd;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Registration page: price tiers */

.registration-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.registration-tier {
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--esug-border);
  border-radius: 0.75rem;
  text-align: center;
}

.registration-tier-title {
  margin: 0 0 0.75rem;
  color: var(--esug-blue-dark);
  font-size: 1.25rem;
}

.registration-tier-price {
  margin: 0.75rem 0 0;
  color: var(--esug-blue);
  font-size: 1.75rem;
  font-weight: 700;
}

.registration-tier-detail {
  margin: 0;
  color: var(--esug-muted);
}

.registration-tier-deadline {
  margin: 1rem 0 0;
  font-weight: 600;
}

.registration-tier-inactive {
  background: #eceef1;
  border-color: #d3d7dd;
  opacity: 0.6;
}

.registration-tier-inactive .registration-tier-title,
.registration-tier-inactive .registration-tier-price,
.registration-tier-inactive .registration-tier-detail {
  color: #6b7280;
}

.registration-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  background: #2e7d32;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.registration-button:hover,
.registration-button:focus-visible {
  background: #1b5e20;
}

/* Before registration, submission or applications open (registration.gjs, award.gjs,
   showcase.gjs, student-volunteers.gjs). */
.registration-button[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}

.registration-button[aria-disabled="true"]:hover {
  background: #2e7d32;
}

.award-prizes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.award-prize {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 0.5rem;
}

.award-prize-medal {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.award-prize .registration-tier-price {
  margin: 0;
  font-size: 1rem;
}

.award-submission {
  margin: 1.5rem 0;
}

.award-submission .registration-tier-deadline {
  margin-top: 0;
}

/* Accommodation page: hotels */

.hotel {
  margin-bottom: 2rem;
}

.hotel-address {
  margin-top: 0;
  font-style: normal;
}

.hotel-map {
  margin: 1.25rem 0;
}

.hotel-map img {
  display: block;
  width: 100%;
  max-width: 34rem;
  height: auto;
  border: 1px solid var(--esug-border);
  border-radius: 0.75rem;
}

.hotel-map figcaption {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--esug-text);
  opacity: 0.7;
}

.hotel-rates-wrapper {
  margin: 1.25rem 0;
  overflow-x: auto;
  border: 1px solid var(--esug-border);
  border-radius: 0.75rem;
  background: #fff;
}

.hotel-rates {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.hotel-rates th,
.hotel-rates td {
  padding: 0.65rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--esug-border);
}

.hotel-rates thead th {
  background: var(--esug-blue);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.hotel-rates tbody th {
  color: var(--esug-blue-dark);
  font-weight: 600;
  white-space: nowrap;
}

.hotel-rates td,
.hotel-rates thead th + th {
  text-align: center;
}

.hotel-rates tbody tr:last-child th,
.hotel-rates tbody tr:last-child td {
  border-bottom: none;
}

.hotel-notes {
  margin: 0.75rem 0 1.25rem;
  padding-left: 1.25rem;
}

.hotel-note {
  margin-bottom: 0.5rem;
}

.hotel-booking {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  background: #fff;
}

.hotel-booking p {
  margin: 0;
}

.hotel-important .page-subsection-heading {
  margin: 1rem 0 0.5rem;
}

.hotel-booking-code {
  padding: 0.1rem 0.4rem;
  border: 1px solid var(--esug-border);
  border-radius: 0.25rem;
  background: var(--esug-bg);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.03em;
}

@media (width < 640px) {
  .hotel-rates th,
  .hotel-rates td {
    padding: 0.6rem 0.5rem;
  }
}

/* Scientific Publications page: one coloured card per article (no bullet
   list), with authors, title, venue and URL each on their own line. The
   card colour rotates per year section. */
.publication-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.publication-card {
  --publication-tint: #e8eef7;
  --publication-edge: var(--esug-blue);

  padding: 0.875rem 1.125rem;
  border-radius: 0.75rem;
  border-left: 6px solid var(--publication-edge);
  background: var(--publication-tint);
  overflow-wrap: anywhere;
}

.publication-year:nth-of-type(4n + 2) .publication-card {
  --publication-tint: #fdf1dc;
  --publication-edge: var(--esug-accent);
}

.publication-year:nth-of-type(4n + 3) .publication-card {
  --publication-tint: #e3f2ec;
  --publication-edge: #2e8b6a;
}

.publication-year:nth-of-type(4n + 4) .publication-card {
  --publication-tint: #f1e8f5;
  --publication-edge: #7d4e9a;
}

.publication-card p {
  margin: 0;
}

.publication-card p + p {
  margin-top: 0.25rem;
}

.publication-authors {
  color: var(--esug-text);
  font-size: 0.9rem;
}

.publication-title {
  color: var(--esug-blue-dark);
  font-weight: 700;
}

.publication-venue {
  color: var(--esug-text);
  font-size: 0.9rem;
  font-style: italic;
}

.publication-url {
  font-size: 0.85rem;
}

/* Companies page */

.company-groups h3 {
  margin-bottom: 0.25rem;
  color: var(--esug-blue-dark);
}

.company-note {
  color: var(--esug-text);
}

/* Chapters and the bottom tab bar (app/components/chapter-tab-bar.gjs) */

.app-content-with-tab-bar {
  /* Keep the end of every page clear of the fixed tab bar. */
  padding-bottom: calc(var(--chapter-tab-bar-height) + env(safe-area-inset-bottom));
}

.chapter-header {
  display: flex;
  justify-content: center;
  padding: 4.25rem 1.5rem 2.5rem;
  text-align: center;
}

/* Same look as the home page's "Get ready for" / "Welcome to" / "Thanks for joining" title. */
.chapter-title {
  margin: 0;
  font-family: "Baloo 2", cursive;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--esug-blue);
  line-height: 1.1;
}

.chapter-tab-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid var(--esug-border);
  background: rgb(255 255 255 / 92%);
  backdrop-filter: saturate(180%) blur(16px);
}

.chapter-tab {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  max-width: 8rem;
  min-width: 0;
  height: var(--chapter-tab-bar-height);
  color: #7b8794;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.chapter-tab-current {
  color: var(--esug-blue);
}

.chapter-tab-current .chapter-tab-icon {
  stroke-width: 2.2;
}

.chapter-tab-label {
  max-width: 100%;
  overflow: hidden;
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}
