/* ============================================================
   AI HUNTSVILLE — WordPress additions
   Everything here extends system.css for WordPress-only needs:
   admin bar offset, editor content typography, new templates.
   system.css tokens are the single source of truth.
   ============================================================ */

/* ---------- Admin bar: keep the sticky header below it ---------- */
.admin-bar .site-header { top: 32px; }
.admin-bar .mobile-nav { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .admin-bar .mobile-nav { top: 46px; }
}
@media (max-width: 600px) {
  /* WP un-fixes the admin bar below 600px, so the header sticks to 0 again. */
  .admin-bar .site-header { top: 0; }
}

/* ---------- Header fit: the WP nav can carry up to 6 items ---------- */
@media (min-width: 1025px) and (max-width: 1320px) {
  .header-inner { gap: 12px; }
  .nav-link { padding: 0 10px; font-size: 14.5px; }
  .nav-link[aria-current="page"]::after { left: 10px; right: 10px; }
  .primary-nav { gap: 0; }
}
@media (min-width: 1025px) and (max-width: 1180px) {
  .endorse { display: none; }
  .utility .btn { padding: 12px 16px; font-size: 14.5px; }
}
.dropdown a[aria-current="page"] { color: var(--accent); font-weight: 600; }

/* ---------- Editor content ---------- */
.entry-content { max-width: 760px; font-size: 17.5px; line-height: 1.7; color: var(--fg); }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { font-size: clamp(28px, 2.6vw, 38px); margin-top: 1.7em; }
.entry-content h3 { font-size: clamp(21px, 1.8vw, 26px); margin-top: 1.5em; }
.entry-content h4 { font-size: 19px; margin-top: 1.4em; }
.entry-content h2 + *, .entry-content h3 + *, .entry-content h4 + * { margin-top: .6em; }
.entry-content p, .entry-content li { color: var(--muted); text-wrap: pretty; }
.entry-content strong { color: var(--fg); }
.entry-content a:not(.btn):not(.wp-block-button__link) { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: .4em; }
.entry-content li::marker { color: var(--accent); }
.entry-content blockquote {
  border-left: 3px solid var(--accent); padding: 6px 0 6px 22px;
  font-family: var(--font-display); font-size: clamp(20px, 1.8vw, 24px); line-height: 1.4; letter-spacing: -.015em; color: var(--fg);
}
.entry-content blockquote cite { display: block; margin-top: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-style: normal; color: var(--muted); }
.entry-content hr { border: 0; border-top: 1px solid var(--border); margin-block: 2em; }
.entry-content img, .entry-content video { height: auto; border-radius: var(--r-md); }
.entry-content figure { margin-inline: 0; }
.entry-content figcaption { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15.5px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; }
.entry-content th, .entry-content td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border-soft); }
.entry-content th { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--pale-tint); font-weight: 500; }
.entry-content pre, .entry-content code { font-family: var(--font-mono); font-size: .88em; }
.entry-content pre { background: var(--pale-tint); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 16px; overflow-x: auto; }
.entry-content :not(pre) > code { background: var(--pale-blue); color: var(--accent-ink); padding: 1px 6px; border-radius: 4px; }
.entry-content .alignwide { max-width: min(1100px, 100%); }
.entry-content .alignfull { max-width: none; }
.entry-content .aligncenter { margin-inline: auto; text-align: center; }
.entry-content .alignleft { float: left; margin: .3em 1.5em 1em 0; }
.entry-content .alignright { float: right; margin: .3em 0 1em 1.5em; }
.entry-content::after { content: ""; display: table; clear: both; }

/* Block buttons adopt the site's button language. */
.entry-content .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.entry-content .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--r-sm);
  background: var(--accent); color: #fff; border: 1px solid transparent;
  font-family: var(--font-body); font-size: 15.5px; font-weight: 600; text-decoration: none;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.entry-content .wp-block-button__link:hover { background: var(--accent-ink); text-decoration: none; }
.entry-content .is-style-outline .wp-block-button__link { background: var(--surface); color: var(--fg); border-color: var(--border); }
.entry-content .is-style-outline .wp-block-button__link:hover { border-color: var(--accent); color: var(--accent); }

.entry-hero-image { margin-bottom: 36px; min-height: 0; padding: 0; }
.entry-hero-image::after { display: none; }
.entry-hero-image img { position: absolute; inset: 0; }

.page-links { margin-top: 28px; display: flex; gap: 10px; font-family: var(--font-mono); font-size: 13px; }

/* ---------- Pagination / post navigation ---------- */
.pagination, .post-navigation { margin-top: 36px; }
.pagination .nav-links, .post-navigation .nav-links { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pagination .page-numbers {
  min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; padding: 0 14px;
  border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface); color: var(--fg); font-weight: 600; font-size: 14.5px;
}
.pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.post-navigation .nav-links { justify-content: space-between; }
.post-navigation a { display: grid; gap: 4px; font-weight: 600; }
.post-navigation .nav-next { text-align: right; margin-left: auto; }

/* ---------- Search results / archives ---------- */
.aih-results { display: grid; gap: 16px; }
.aih-result { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.aih-result__body { display: grid; gap: 10px; }
.aih-search-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.aih-search-form .search-field { min-width: 0; }
.aih-404 .h-page { font-size: clamp(32px, 3.6vw, 52px); }
.aih-404 > p:not(.eyebrow) { max-width: 52ch; }

/* ---------- Call for Papers ---------- */
.aih-form-split { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(28px, 3.6vw, 64px); align-items: start; }
.aih-form-split__aside { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 120px; }
.admin-bar .aih-form-split__aside { top: 152px; }
.aih-form-split__main { min-width: 0; }
.aih-checklist { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 24px 26px; display: grid; gap: 14px; }
.aih-checklist ul { list-style: none; display: grid; gap: 12px; }
.aih-checklist li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; font-size: 15.5px; line-height: 1.5; color: var(--fg); }
.aih-checklist__tick { width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; background: var(--pale-blue); color: var(--accent-ink); }
.aih-form-split__aside .routing-note { margin-top: 0; }
.aih-form-split__aside .routing-note svg { flex: none; }
@media (max-width: 1024px) {
  .aih-form-split { grid-template-columns: 1fr; }
  .aih-form-split__aside { position: static; }
}

/* ---------- Contact page: CRM form fills the right column ---------- */
.aih-contact-form { min-width: 0; }

@media (max-width: 720px) {
  .aih-result { grid-template-columns: 1fr; }
  .aih-search-form .btn { width: 100%; }
}

/* Story video slot (filled in via Live Edit). Empty = invisible. */
.story-video:empty { display: none; }
.story-video { border-radius: var(--r-md); overflow: hidden; background: var(--navy); aspect-ratio: 16 / 9; }
.story-video iframe, .story-video video, .story-video img { display: block; width: 100%; height: 100%; border: 0; object-fit: cover; }

/* ---------- Call for Abstracts page ---------- */
.aih-pillars { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.aih-pillars .num-card { padding: 30px; }
.aih-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.aih-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); align-items: start; }
.aih-two .aih-checklist { gap: 14px; padding: clamp(24px, 2.6vw, 34px); }
.aih-two .aih-checklist .h-card { margin: 0; }
.stage-flow.aih-depth { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stage-flow.aih-timeline { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.aih-timeline .stage h3 { font-size: 19px; margin-bottom: 6px; }
.aih-shape { border-color: rgba(7,87,217,.3); background: var(--pale-blue); padding: clamp(28px, 3vw, 44px); gap: 18px; }
.aih-shape .aih-two { gap: 18px 40px; }
.aih-shape .h-sub { margin-bottom: 6px; }
@media (max-width: 1180px) {
  .aih-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage-flow.aih-timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 34px; }
}
@media (max-width: 860px) {
  .aih-cats, .aih-two, .stage-flow.aih-depth { grid-template-columns: 1fr; }
  .stage-flow.aih-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .aih-pillars, .stage-flow.aih-timeline { grid-template-columns: 1fr; }
}

/* 2027 Symposium Premier Sponsor — palette from the supplied social artwork. */
.aih-premier-sponsor {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  padding: clamp(28px, 4.5vw, 64px);
  border-radius: var(--r-md);
  background: radial-gradient(ellipse at top left, rgba(98, 189, 221, .13), transparent 60%), #101b32;
  color: #fff;
  border-top: 3px solid #62bddd;
}
.aih-premier-sponsor__body { display: grid; gap: 18px; min-width: 0; }
.aih-premier-sponsor .eyebrow { color: #72c9e8; line-height: 1.6; }
.aih-premier-sponsor .h-sec { color: #fff; margin: 0; }
.aih-premier-sponsor__name { color: #fff; font-size: clamp(18px, 1.8vw, 23px); line-height: 1.5; margin: 0; }
.aih-premier-sponsor .body { color: #d9e3ed; margin: 0; max-width: 47ch; }
.aih-premier-sponsor__logo { background: #fff; border-radius: 20px; padding: clamp(20px, 3vw, 38px); }
.aih-premier-sponsor__logo img { display: block; width: 100%; height: auto; }
/* Keep both Symposium prospectus actions visibly outlined. */
body.page-id-11 .cta-band__actions .btn { border: 1px solid rgba(255, 255, 255, .65); }
body.page-id-11 .cta-band__actions .btn:hover { border-color: #fff; }
@media (max-width: 760px) {
  .aih-premier-sponsor { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .aih-premier-sponsor__logo { width: 100%; max-width: 440px; justify-self: center; }
}

