@import url("https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700&family=Nunito:ital,wght@0,400;0,600;0,700;1,700&display=swap");

/* ---------------------------------------------------------------------
   IDC 2027

   The five logo colours are FILLS and ACCENTS. On light backgrounds none
   of them pass contrast as body text -- use --ink. On the dark header and
   footer they become the text colours.

   One :root block only. A second one later in the file overrides the
   first silently, which is how --deep-teal went missing.
   --------------------------------------------------------------------- */

:root {
  /* Logo colours */
  --sky:   #a8d5dd;
  --moss:  #b7e5a6;
  --sun:   #fadc57;
  --orca:  #bba7df;
  --heart: #f4333a;

  /* Darkened variants, safe as text on light backgrounds */
  --heart-deep: #c92027;
  --deep-teal:  #123c47;
  --deep-plum:  #5f156e;
  --forest:     #2e6b44;

  /* Surfaces */
  --shell: #eaf4f7;   /* page canvas -- pale tint of --sky */
  --paper: #fdfbf6;   /* content panels */
  --peach: #efa97a;   /* header slogan */

  /* Text */
  --ink:   #1e2b30;
  --muted: #5a6b71;
  --link:  #4b2e83;

  --font-display: "Baloo 2", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

body {
  background: var(--sky);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  letter-spacing: .01em;
  line-height: 1.2;
}

h1 { font-size: 2.6rem;  font-weight: 700; color: var(--deep-teal); }
h2 { font-size: 2rem;    font-weight: 600; color: var(--forest); }
h3 { font-size: 1.5rem;  font-weight: 600; color: var(--deep-plum); }
h4 { font-size: 1.25rem; font-weight: 600; color: var(--heart-deep); }

h5 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--deep-teal);
  text-transform: uppercase;
  letter-spacing: .08em;
}

a { color: var(--link); }
a:hover { color: var(--heart-deep); }   /* --sky was invisible on light */

:focus-visible {
  outline: 3px solid var(--heart-deep);
  outline-offset: 2px;
}

/* ------------------------------------------------------------- header */

.site-header {
  background: var(--forest);
  border-bottom: none;
}

.site-header .navbar {
  padding-top: .9rem;
  padding-bottom: .9rem;
}

.site-header .navbar-brand {
  padding: 0;
  line-height: 0;
}

.site-header .navbar-brand img {
  height: 78px;
  width: auto;
  display: block;
}

.site-header .tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 700;
  font-size: 1.25rem;
  white-space: nowrap;
  color: var(--peach);
  margin-left: 1.25rem;
}

.site-header .nav-link {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--paper);
  padding: .35rem .8rem;
  border-bottom: 3px solid transparent;
}

.site-header .nav-link:hover,
.site-header .nav-link:focus-visible {
  color: var(--sun);
  border-bottom-color: var(--peach);
}

.site-header .nav-link.active {
  color: var(--paper);
  border-bottom-color: var(--peach);
}

.site-header .navbar-toggler { border-color: var(--paper); }

/* Split control: label navigates, caret opens the menu. */
.site-header .nav-dropdown-split {
  display: flex;
  align-items: center;
}

.site-header .nav-dropdown-split .nav-link { padding-right: .2rem; }

.site-header .dropdown-toggle-split {
  background: none;
  border: none;
  color: var(--paper);
  padding: .35rem .4rem .35rem .1rem;
}

.site-header .dropdown-menu {
  background: var(--paper);
  border: 2px solid var(--peach);
  border-radius: 14px;
  padding: .4rem;
}

.site-header .dropdown-item {
  font-family: var(--font-body);
  color: var(--ink);
  border-radius: 8px;
  padding: .45rem .8rem;
}

.site-header .dropdown-item:hover,
.site-header .dropdown-item:focus-visible {
  background: var(--moss);
  color: var(--ink);
}

.site-header .dropdown-item.active {
  background: var(--forest);
  color: var(--paper);
}

.site-header .social-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: 1.75rem;
  padding-left: 1.5rem;
  border-left: 1px solid rgba(253, 251, 246, .25);
}

.site-header .social-link {
  color: var(--paper);
  font-size: 1.4rem;
  line-height: 1;
  padding: .25rem;
}

.site-header .social-link:hover { color: var(--sun); }

/* Open dropdowns on hover -- desktop, pointer devices only. */
@media (min-width: 992px) and (hover: hover) {
  .site-header .nav-item.dropdown { position: relative; }

  .site-header .nav-item.dropdown:hover > .dropdown-menu,
  .site-header .nav-item.dropdown:focus-within > .dropdown-menu {
    display: block;
  }

  .site-header .dropdown-menu { margin-top: 0; }

  /* Invisible bridge -- a few px of gap breaks the hover. */
  .site-header .nav-item.dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: .5rem;
  }
}

/* --------------------------------------------------------------- body */

main {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.page-title {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
}

.panel {
  background: var(--paper);
  border-radius: 18px;
  padding: 2rem 2.25rem;
  margin-bottom: 1.75rem;
}

.panel h1,
.panel h2,
.panel h3 { text-align: center; }

.panel .text-start { text-align: left; }

.panel-hero h1 {
  font-size: 3rem;
  margin-bottom: .25rem;
}

.panel-hero .dates {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--deep-plum);
  margin-bottom: 1.25rem;
}

.panel figure { margin: 1.5rem 0 0; }

.panel figure img {
  width: 100%;
  border-radius: 14px;
  display: block;
}

.panel figcaption {
  font-size: .875rem;
  color: var(--muted);
  margin-top: .5rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--ink);
}

.editorial-note {
  font-size: .9rem;
  color: var(--muted);
  font-style: italic;
  border-left: 3px solid var(--orca);
  padding-left: .85rem;
  margin-top: 1.25rem;
}

[id] { scroll-margin-top: 1.5rem; }

/* ---------------------------------------------------- calls overview */
body.page-calls {
  background: var(--shell);
}

.call-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: .75rem;
}

.call-list li a {
  display: block;
  padding: .85rem 1.1rem;
  background: var(--shell);
  border-radius: 12px;
  border-left: 5px solid var(--sun);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--deep-teal);
  text-decoration: none;
}

.call-list li a:hover,
.call-list li a:focus-visible {
  background: var(--moss);
  border-left-color: var(--heart);
  color: var(--deep-teal);
}

.page-toc ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem .75rem;
}

.page-toc li a {
  display: inline-block;
  padding: .3rem .8rem;
  background: var(--shell);
  border-radius: 999px;
  font-size: .9rem;
  text-decoration: none;
  color: var(--deep-plum);
}

.page-toc li a:hover,
.page-toc li a:focus-visible {
  background: var(--sun);
  color: var(--ink);
}

/* -------------------------------------------------- deadline table */
/* One block only. Two competing .deadlines blocks is what put a sky
   background behind the track-name cells. */

.deadlines {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: .95rem;
  text-align: left;
  border: 1px solid #93bfc8;
  border-radius: 10px;
  overflow: hidden;
}

.deadlines thead th {
  font-family: var(--font-display);
  font-weight: 600;
  background: var(--sky);
  color: var(--deep-teal);
  padding: .7rem .9rem;
}

.deadlines thead th:first-child,
.deadlines thead th:last-child {
  border-radius: 0;
}

/* Track name -- spans that track's deadline rows. No background: it
   would fight the rowspan grouping. */
.deadlines tbody th {
  background: none;
  font-family: var(--font-body);
  font-weight: 400;
  text-align: left;
  vertical-align: top;
  padding: .7rem .9rem;
  border-bottom: 1px solid #93bfc8;
  border-right: 1px solid #93bfc8;
}

.deadlines tbody td {
  padding: .7rem .9rem;
  border-bottom: 1px solid #93bfc8;
  vertical-align: top;
}

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

/* No zebra striping -- with rowspan cells it stripes individual
   deadlines rather than tracks, which reads as noise. */

.deadline-label {
  display: block;
  font-size: .82rem;
  color: var(--muted);
}

.deadline-date { font-variant-numeric: tabular-nums; }

.deadlines .is-next {
  background: var(--sun);
  font-weight: 700;
}

.aoe-note {
  font-size: .825rem;
  color: var(--muted);
  margin-top: .75rem;
}

/* ------------------------------------------------- committee groups */

.committee-group { margin-bottom: 1.5rem; }

.committee-group h2 {
  color: var(--deep-plum);
  margin-bottom: .35rem;
}

.committee-email {
  font-size: .95rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.committee-tbd {
  color: var(--muted);
  font-style: italic;
  margin: 0;
  text-align: center;
}

.committee-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 1.75rem 1.25rem;
}

@media (min-width: 576px) {
  .committee-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 992px) {
  .committee-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.committee-person { text-align: center; }

/* Circular crop normalises whatever people send you. */
.committee-photo {
  display: block;
  width: 148px;
  height: 148px;
  max-width: 100%;
  margin: 0 auto .85rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 4px solid var(--sky);
  background: var(--shell);
}

.committee-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  color: var(--deep-teal);
  background: var(--moss);
  border-color: var(--moss);
}

.committee-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--deep-teal);
  margin: 0 0 .1rem;
  line-height: 1.25;
}

.committee-name a {
  color: inherit;
  text-decoration: none;
}

.committee-name a:hover {
  color: var(--heart-deep);
  text-decoration: underline;
}

.committee-affiliation {
  font-size: .9rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.35;
}

/* ------------------------------------------------------------- footer */

.site-footer {
  background: var(--deep-plum);
  color: var(--paper);
  padding: 3.5rem 0 1.5rem;
  margin-top: 3rem;
  border-top: 5px solid var(--moss);
}

.site-footer .footer-brand {
  display: inline-block;
  line-height: 0;
}

.site-footer .footer-brand img {
  height: 110px;
  width: auto;
}

.site-footer .tagline {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--sun);
  margin: 1rem 0 .25rem;
}

.site-footer .footer-meta {
  font-size: .9rem;
  color: rgba(253, 251, 246, .8);
}

.site-footer h5 {
  font-family: var(--font-display);
  color: var(--sun);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: .75rem;
}

.site-footer nav { text-align: center; }

.site-footer nav h5 { text-align: center; }

.site-footer .footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-block;
  text-align: center;
}

.site-footer .footer-list li { margin-bottom: .45rem; }

.site-footer a {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: rgba(253, 251, 246, .35);
  text-underline-offset: 3px;
  font-size: .95rem;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--sun);
  text-decoration-color: var(--sun);
}

.site-footer .social-links {
  display: flex;
  gap: .85rem;
  margin-top: 1rem;
}

.site-footer .social-link {
  color: var(--paper);
  font-size: 1.4rem;
  line-height: 1;
  text-decoration: none;
}

.site-footer .social-link:hover { color: var(--sun); }

.site-footer .footer-bottom {
  border-top: 1px solid rgba(253, 251, 246, .25);
  margin-top: 2.5rem;
  padding-top: 1.25rem;
}

.site-footer .footer-bottom p {
  font-size: .85rem;
  color: rgba(253, 251, 246, .8);
  margin-bottom: .25rem;
}

/* --------------------------------------------------------- responsive */

@media (max-width: 991px) {
  .site-header .navbar-brand img { height: 58px; }
  .site-header .tagline { font-size: 1.2rem; margin-left: .75rem; }
  .site-header .social-links {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    margin-top: .75rem;
  }
  .site-footer .footer-brand img { height: 84px; }
  .panel { padding: 1.5rem 1.25rem; }
  .panel-hero h1 { font-size: 2.2rem; }
  .page-title { font-size: 2.2rem; }
}

@media (max-width: 575px) {
  .committee-photo { width: 120px; height: 120px; }
  .deadlines { font-size: .875rem; }
  .deadlines tbody th,
  .deadlines tbody td { padding: .55rem .6rem; }
}

/* ===================================================================
   sponsorship page
   =================================================================== */

/* Five columns won't fit on a phone, so the table scrolls inside its
   own container rather than forcing the whole page sideways. */
/* .table-scroll {
  overflow-x: auto;
  margin-top: 1.5rem;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #93bfc8;
  border-radius: 10px;
} */

.tiers {
  width: 100%;
  min-width: 520px;
  border-collapse: separate;
  border: 1px solid #93bfc8;
  border-radius: 10px;
  border-spacing: 0;
  font-size: .9rem;
}

.tiers thead th {
  background: var(--deep-teal);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 600;
  text-align: center;
  padding: .8rem .7rem;
  vertical-align: middle;
}

.tiers thead th:first-child {
  text-align: left;
  width: 42%;
}

/* Marks the Platinum column without a wash, which would wreck the
   contrast of the header text. */
.tiers thead th:last-child {
  box-shadow: inset 0 -4px 0 var(--sun);
}

.tier-amount {
  display: block;
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 400;
  color: var(--sun);
  margin-top: .15rem;
}

.tiers tbody th {
  background: none;
  font-family: var(--font-body);
  font-weight: 400;
  text-align: left;
  vertical-align: middle;
  padding: .7rem .8rem;
  border-bottom: 1px solid #93bfc8;
  border-right: 1px solid #93bfc8;
  line-height: 1.4;
}

.tiers tbody td {
  text-align: center;
  vertical-align: middle;
  padding: .7rem .5rem;
  border-bottom: 1px solid #93bfc8;
  border-right: 1px solid #cfe3e8;
}

.tiers tbody td:last-child { border-right: none; }

/* overflow:hidden on the table clips its own bottom border, so the
   last row carries it instead. */
.tiers tbody tr:last-child th,
.tiers tbody tr:last-child td { border-bottom: none; }

.tier-yes {
  color: var(--forest);
  font-size: 1.25rem;
  line-height: 1;
}

/* Light wash down the Platinum column, body cells only. */
.tiers tbody td:last-child {
  background: rgba(250, 220, 87, .12);
}

@media (max-width: 767px) {
  /* Rounded corners on a scrolling box clip the content. Square it off
     where scrolling actually happens. */
  .table-scroll {
    border-radius: 0;
    border-left: none;
    border-right: none;

    /* Break out of the panel's padding so the table gets the full
       screen width before it needs to scroll at all. */
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    width: calc(100% + 2.5rem);
  }

  .tiers { min-width: 520px; }
}

/* ------------------------------------------------- areas of interest */

.interest-list {
  columns: 2;
  column-gap: 2.5rem;
  margin-top: 1rem;
}

.interest-list li {
  break-inside: avoid;
  margin-bottom: .45rem;
}

@media (max-width: 767px) {
  .interest-list { columns: 1; }
}

/* ------------------------------------------------------ quick info */

.contact-block {
  font-size: 1.1rem;
  text-align: center;
  margin: 1.25rem 0;
}

.quick-info {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .6rem 1.5rem;
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid #cfe3e8;
}

.quick-info dt {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--deep-teal);
}

.quick-info dd { margin: 0; }

@media (max-width: 575px) {
  .quick-info {
    grid-template-columns: 1fr;
    gap: .2rem;
  }
  .quick-info dd { margin-bottom: .8rem; }
}

/* ===================================================================
    keynote speakers
   =================================================================== */

.keynote-heading {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--sky-deep, #4a9cc4);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 1.75rem;
}

.keynote {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 2.5rem;
  align-items: start;
}

/* Second speaker onward mirrors the layout. */
.keynote-reverse .keynote-photo { order: 2; }
.keynote-reverse .keynote-text  { order: 1; }

/* Space between speakers when there's more than one. */
.keynote + .keynote {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid #cfe3e8;
}

.keynote-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.keynote-text p {
  margin-bottom: 1.25rem;
}

.keynote-intro {
  font-size: 1.15rem;
  line-height: 1.5;
}

.keynote-intro strong {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--deep-teal);
}

.keynote-contact {
  font-size: .95rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* Headings inside .panel are centred by default; this one reads better
   left-aligned above an asymmetric two-column block. */
.panel .keynote-heading { text-align: left; }

@media (max-width: 767px) {
  .keynote {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Photo always on top when stacked, regardless of alternation. */
  .keynote-reverse .keynote-photo { order: 0; }
  .keynote-reverse .keynote-text  { order: 0; }

  .keynote-photo img { max-width: 320px; }
  .keynote-heading { font-size: 1.4rem; }
}

/* ORCA */

.orca-tank {
  position: fixed;
  right: 0;
  bottom: 0;
  width: 50vw;
  height: 50vh;
  pointer-events: none;
  overflow: hidden;
  z-index: 40;
  visibility: hidden;
}
.orca-tank.is-breaching { visibility: visible; }

/* Horizontal travel is linear; vertical is a separate element so the
   two can ease independently. That's what makes the arc read as a
   parabola rather than a diagonal. */
.orca-x {
  position: absolute;
  bottom: 0;
  left: 0;
  will-change: transform;
}

.orca-tank.is-breaching .orca-x {
  animation: orca-across 4.5s linear forwards;
}

.orca-tank.is-breaching .orca-y {
  animation: orca-arc 4.5s cubic-bezier(.33, 0, .66, 1) forwards;
}

.orca-y img {
  display: block;
  width: 120px;
  height: auto;
  transform: rotate(-25deg);
}

.orca-tank.is-breaching .orca-y img {
  animation: orca-tip 4.5s ease-in-out forwards;
}

@keyframes orca-across {
  from { transform: translateX(-160px); }
  to   { transform: translateX(calc(50vw + 160px)); }
}

@keyframes orca-arc {
  0%   { transform: translateY(160px); }
  50%  { transform: translateY(-32vh); }
  100% { transform: translateY(160px); }
}

/* Nose up on the way out, nose down on the way in. */
@keyframes orca-tip {
  0%   { transform: rotate(-35deg); }
  50%  { transform: rotate(0deg); }
  100% { transform: rotate(35deg); }
}

@media (max-width: 575px) {
  .orca-y img { width: 80px; }
}