/* Base */
html {
    scroll-padding-top: calc(var(--nav-h, 68px) + var(--ticker-h, 36px));
}

/* Every navigation here is a real full-page load (no SPA/component swap),
   which browsers otherwise render as a hard cut with a blank flash between
   documents. This opts into the browser's native cross-document View
   Transition, cross-fading old/new page instead — no JS, no build step,
   and it's silently ignored (today's plain instant navigation) in any
   browser that doesn't support it yet. */
@view-transition {
    navigation: auto;
}

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

/* Sticky footer. Short pages (Visa, Accommodation, Publication) otherwise end
   mid-viewport on a tall screen, leaving the footer floating with dead
   background beneath it. Every overlay — navbar, ticker, quick-links, back-to-
   top — is position:fixed and so out of flow, which leaves the page sections as
   the only flex children and makes `margin-top:auto` on the footer safe. */
body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text);
    /* Literal first: a browser without custom properties (IE, Chrome <49)
       drops the whole calc(var()) line, and the fixed navbar + ticker would
       then sit on top of every page's heading. */
    padding-top: 104px;
    padding-top: calc(var(--nav-h, 68px) + var(--ticker-h, 36px));
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

/* Navbar — light glass-morphism */
.site-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    height: 68px;
    height: var(--nav-h, 68px);
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(12, 110, 166, 0.12);
    transition: background-color var(--motion-normal) var(--ease-standard),
                border-color var(--motion-normal) var(--ease-standard),
                box-shadow var(--motion-normal) var(--ease-standard);
}

.site-navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    border-bottom-color: var(--border);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

/* Flex, not inline: an inline image sits on the text baseline and leaves a
   few pixels of descender space under it, which pushes the logo off-centre. */
.site-navbar .navbar-brand {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 700;
}

/* Sized by height so the 68px bar keeps breathing room above and below; 48px
   keeps the small "CF-9" lettering inside the mark legible. */
.site-navbar .navbar-brand .brand-logo {
    height: 48px;
    width: auto;
}

.site-navbar .nav-link {
    color: rgba(30, 58, 95, 0.68);
    font-size: 0.815rem;
    font-weight: 500;
    padding: 0.35rem 0.6rem;
    position: relative;
    transition: color var(--motion-fast) var(--ease-standard);
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus,
.site-navbar .nav-link.active {
    color: var(--primary);
}

.site-navbar .nav-item:not(.dropdown) > .nav-link:not(.btn-nav-login)::after {
    content: '';
    position: absolute;
    left: 0.6rem;
    right: 0.6rem;
    bottom: 0;
    height: 2px;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--motion-fast) var(--ease-standard);
}

.site-navbar .nav-item:not(.dropdown) > .nav-link:not(.btn-nav-login):hover::after,
.site-navbar .nav-item:not(.dropdown) > .nav-link:not(.btn-nav-login):focus-visible::after {
    transform: scaleX(1);
}

.site-navbar .dropdown-menu {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
}

@media (prefers-reduced-motion: no-preference) {
    .site-navbar .dropdown-menu.show {
        animation: dropdownIn var(--motion-normal) var(--ease-standard);
    }
}

/* Opacity only — Bootstrap positions this menu via Popper's own inline
   transform, and animating transform here fought that: the menu rendered at
   the animation's transform (ignoring Popper's offset) until the animation
   ended, then snapped to its real position. That snap was the stagger. */
@keyframes dropdownIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.site-navbar .dropdown-item {
    color: var(--text);
    font-size: 0.9rem;
    transition: color var(--motion-fast) var(--ease-standard),
                background-color var(--motion-fast) var(--ease-standard);
}

.site-navbar .dropdown-item:hover,
.site-navbar .dropdown-item:focus {
    background-color: var(--bg-alt);
    color: var(--primary);
}

/* Compound selector deliberately matches `.site-navbar .nav-link`'s
   specificity so the amber pill's white text wins the cascade. */
.site-navbar .nav-link.btn-nav-login {
    background-color: var(--accent);
    color: var(--on-color);
    border: none;
    border-radius: 0.375rem;
    padding: 0.4rem 1.1rem;
    font-weight: 600;
    transition: background-color var(--motion-fast) var(--ease-standard),
                transform var(--motion-fast) var(--ease-standard),
                box-shadow var(--motion-fast) var(--ease-standard);
    text-decoration: none;
}

.site-navbar .nav-link.btn-nav-login:hover,
.site-navbar .nav-link.btn-nav-login:focus {
    background-color: var(--accent-dark);
    color: var(--on-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
}

/* The logged-in-user nav block mixes bare <a>/<span> items with one
   <div class="nav-item dropdown"> (My Account) — no shared wrapper type,
   so without this Bootstrap's own .navbar-nav defaults are all that
   apply, which don't keep these particular items evenly spaced. */
.navbar-nav.ms-auto {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Keeps the caption and the id pill from splitting across a line break
   on narrow viewports — they only make sense as one unit. */
.navbar-cf9-id-wrap {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-right: 0.25rem;
}

/* Plain bold text, not a badge — a bordered pill sitting right next to its
   own label read as two competing treatments in one small caption. Weight
   alone is enough to set the value apart from the muted label before it. */
.navbar-cf9-id {
    font-weight: 700;
    color: var(--text);
    margin-left: 0.3rem;
}

/* From 992px to 1199px Bootstrap's container is a fixed 960px, and a
   logged-in bar (seven menu items, the ID, My Account, Logout — plus the
   Admin button for admins) is wider than that: Logout ran off the right
   edge. Tighter link padding and the ID without its caption fit it in; the
   caption stays as a hover title, and the full label returns from 1200px.
   Staff accounts also carry the Admin/Operator button, so their own CF-9 ID —
   which nobody needs to quote back to them — gives way entirely. */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .site-navbar .nav-link {
        padding-left: 0.4rem;
        padding-right: 0.4rem;
    }

    .navbar-cf9-id-label {
        display: none;
    }

    .navbar-cf9-id {
        margin-left: 0;
    }

    .nav-link-admin ~ .navbar-cf9-id-wrap,
    .nav-link-operator ~ .navbar-cf9-id-wrap {
        display: none;
    }
}

/* Outlined, button-like treatment for admins — previously a bare text
   link indistinguishable from the other nav items despite being the entry
   point to the whole admin section. */
.nav-link.nav-link-admin {
    border: 1px solid var(--primary);
    border-radius: 1.5rem;
    padding: 0.3rem 0.9rem !important;
    margin: 0 0.25rem;
}

.nav-link.nav-link-admin:hover,
.nav-link.nav-link-admin:focus-visible {
    background-color: var(--bg-alt);
}

/* Easter egg, deliberately — visible only to the operator account (the two
   people running this site), never admins. Everything here is scoped to
   .nav-link-operator so it can't bleed into any other nav-link. */
.nav-link.nav-link-operator {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 1rem !important;
    margin: 0 0.35rem;
    border-radius: 1.5rem;
    background: linear-gradient(120deg, #ff6ec4, #7873f5, #4ade80, #ff6ec4);
    background-size: 300% 300%;
    color: #fff !important;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 14px rgba(120, 115, 245, 0.45);
}

@media (prefers-reduced-motion: no-preference) {
    .nav-link.nav-link-operator {
        animation: operator-gradient-shift 6s ease infinite;
    }

    .nav-link.nav-link-operator:hover {
        animation-duration: 1.5s;
    }
}

@keyframes operator-gradient-shift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.nav-link-operator-glow {
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, transparent 60%);
    pointer-events: none;
}

.nav-link-operator-label {
    position: relative;
}

/* Matches the underline-sweep selector's own specificity (site.css:79) to
   actually win the cascade — this pill has its own animation going on
   already and doesn't need the standard nav-link underline too. */
.site-navbar .nav-item:not(.dropdown) > .nav-link.nav-link-operator::after,
.site-navbar .nav-item:not(.dropdown) > .nav-link.nav-link-admin::after {
    content: none;
}

/* Partner/organiser band — scrolls with content so it costs no fixed viewport */
.partner-band {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.partner-band .partner-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 2.5rem;
}

.partner-band .partner-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Height-based sizing with width:auto is deliberate: partner marks range from
   square (IGCAR, JSME) to ~2.4:1 wordmarks (IIM). Any width-based rule breaks
   the moment a wordmark is added. */
.partner-band .partner-logo {
    height: clamp(38px, 10vw, 52px);
    width: auto;
    flex-shrink: 0;
}

.partner-band .partner-caption {
    font-size: 0.72rem;
    line-height: 1.35;
    color: var(--text-muted);
}

.partner-band .partner-caption strong {
    color: var(--text);
    font-weight: 600;
}

/* Updates ticker */
.site-ticker {
    position: fixed;
    top: 68px;
    top: var(--nav-h, 68px);
    left: 0;
    right: 0;
    z-index: 1020;
    height: 36px;
    height: var(--ticker-h, 36px);
    /* Literal first: this bar is fixed, and without a background (a
       browser that drops var()) page text scrolls visibly through it. */
    background-color: #e8f4fd;
    background-color: var(--bg-alt);
    border-bottom: 1px solid rgba(12, 110, 166, 0.14);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.site-ticker .ticker-label {
    flex-shrink: 0;
    background-color: #e67e22;
    background-color: var(--accent);
    color: #ffffff;
    color: var(--on-color);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0 1rem;
    height: 100%;
    display: flex;
    align-items: center;
}

.site-ticker .ticker-label-home {
    text-decoration: none;
    cursor: pointer;
}

.site-ticker .ticker-label-home:hover,
.site-ticker .ticker-label-home:focus-visible {
    background-color: var(--accent-dark, var(--accent));
    color: var(--on-color);
}

.site-ticker .ticker-track {
    flex: 1;
    overflow: hidden;
}

.site-ticker .ticker-inner {
    display: inline-flex;
    white-space: nowrap;
}

/* Duration is tiered off the total text length (set in header.php) so the strip
   scrolls at roughly one speed no matter how much it is carrying.

   Not gated behind prefers-reduced-motion: some browsers/OS configs
   (battery saver, certain enterprise policies) report reduce by default
   with no motion sensitivity behind it, which left the strip stuck and
   only draggable by hand on a number of visitor systems. The hover/focus
   pause below is the actual accessibility control for moving text, so the
   animation now always runs. */
.site-ticker .ticker-inner {
    animation: ticker-marquee 32s linear infinite;
}

.site-ticker .ticker-speed-short  { animation-duration: 22s; }
.site-ticker .ticker-speed-medium { animation-duration: 32s; }
.site-ticker .ticker-speed-long   { animation-duration: 46s; }

/* Hover pauses for a mouse; focus-within does the same for a keyboard, so the
   text can be stopped and read without a pointer. */
.site-ticker .ticker-inner:hover,
.site-ticker .ticker-inner:focus-within {
    animation-play-state: paused;
}

.site-ticker .ticker-inner span {
    /* Was a flat 0.78rem with 2.25rem of padding either side plus a 2.25rem
       margin on the diamond — about 4.5rem between items, which on a phone left
       long stretches of empty strip between fragments. */
    font-size: clamp(0.72rem, 2.2vw, 0.8rem);
    color: #4a7d9e;
    padding: 0 clamp(0.9rem, 3vw, 2.25rem);
    position: relative;
}

.site-ticker .ticker-inner span::after {
    content: "\25C6";
    margin-left: clamp(0.9rem, 3vw, 2.25rem);
    font-size: 0.4rem;
    color: var(--accent);
    opacity: 0.6;
}

@keyframes ticker-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Old-browser support. header.php adds .js-modern to <html> when the browser
   can parse Bootstrap 5's JS; everything below applies only when it can't
   (IE, Chrome <60, Firefox <55 — which includes every browser Vista runs).
   Colours are literal here because most of those browsers also lack
   custom properties. */
.legacy-browser-notice {
    padding: 0.6rem 1rem;
    background-color: #fff4e5;
    border-bottom: 1px solid #f5c98f;
    color: #7a3e00;
    font-size: 0.85rem;
    text-align: center;
}

.js-modern .legacy-browser-notice {
    display: none;
}

/* Without Bootstrap's JS the navbar dropdowns (href="#") can't open, which
   leaves Visa, Sign Up, the committees and more unreachable. Open
   them on hover instead — pure CSS, works back to IE9. Desktop only: below
   992px the whole menu sits behind the hamburger, which needs JS anyway. */
@media (min-width: 992px) {
    html:not(.js-modern) .site-navbar .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
        padding: 0.4rem 0;
        background-color: #ffffff;
        border: 1px solid #e2e8f0;
    }

    html:not(.js-modern) .site-navbar .dropdown-menu .dropdown-item {
        display: block;
        padding: 0.4rem 1rem;
        color: #1e3a5f;
        white-space: nowrap;
    }
}

/* Hero carousel */
#heroCarousel .carousel-item {
    min-height: 75vh;
}

#heroCarousel.carousel-fade .carousel-item {
    transition: opacity var(--motion-slow) var(--ease-standard);
}

/* Bootstrap's default control is a 15%-of-viewport-wide, full-height
   invisible click band — at mid-range widths its inner edge lands inside
   the text column (.slide-content's 620px max-width) and overlaps the
   title. Shrinking it to a small fixed-width button anchored to the edge
   keeps it clear of the text at every width, and reads as an actual
   control instead of an invisible hit zone. */
#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    width: 4rem;
    opacity: 1;
}

#heroCarousel .carousel-control-prev-icon,
#heroCarousel .carousel-control-next-icon {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transition: background-color var(--motion-fast) var(--ease-standard);
}

#heroCarousel .carousel-control-prev:hover .carousel-control-prev-icon,
#heroCarousel .carousel-control-next:hover .carousel-control-next-icon {
    background-color: rgba(255, 255, 255, 0.28);
}

@media (max-width: 767px) {
    #heroCarousel .carousel-control-prev,
    #heroCarousel .carousel-control-next {
        width: 2.75rem;
    }
}

.carousel-slide-inner {
    min-height: 75vh;
    display: flex;
    align-items: center;
    padding: 3rem 4rem;
    position: relative;
    overflow: hidden;
}

.carousel-slide-inner::after {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.carousel-slide-inner > * {
    position: relative;
    z-index: 1;
}

.carousel-slide-inner.slide-1 { background: linear-gradient(135deg, #0c4a78 0%, #1872b5 45%, #1f8cd3 100%); }
.carousel-slide-inner.slide-2 { background: linear-gradient(110deg, #09395a 0%, #1460a0 55%, #1880c2 100%); }
.carousel-slide-inner.slide-3 { background: linear-gradient(150deg, #0b5785 0%, #1374b0 50%, #1890cb 100%); }

.slide-accent-bar {
    width: 4px;
    height: 90px;
    background-color: var(--accent);
    border-radius: 2px;
    flex-shrink: 0;
    margin-right: 2.25rem;
}

.slide-content {
    max-width: 1200px;
}

.carousel-slide-inner .slide-eyebrow {
    font-size: clamp(0.8rem, 2.6vw, 1.25rem);
    font-weight: 600;
    /* 0.22em tracking at 1.25rem pushed this to ~470px of inline text, which
       wrapped to two lines inside a ~342px phone slide. */
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.carousel-slide-inner h1 {
    color: var(--on-color);
    /* Tuned against the two actual heading phrases' measured widths (Inter,
       weight 800, -0.03em tracking): ~0.9rem is the smallest this can go at
       a 390px phone (this file's own established narrow-phone reference,
       see .slide-eyebrow below) without the long phrase overflowing; 3.4rem
       is unchanged from before and only applies once the viewport is wide
       enough to give the long phrase's ~1135px natural width room to fit
       on one line. */
    font-size: clamp(0.9rem, calc(3.7vw + 0.07rem), 3.4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    max-width: 1200px;
}

/* From 768px up the Quick Links panel (190px, fixed to the right edge) sits
   over the hero, so the "next" arrow moves left of it and the headline is
   sized to end before the arrow. The long line is ~20.9x its font size wide
   (1135px at 3.4rem) and starts 104px in; the arrow's left edge is at
   100vw - 254px. (100vw - 440px) / 21 keeps a visible gap before the arrow
   at every width from 768 to 1920px (checked by measuring the rendered
   line, since glyph widths don't scale perfectly linearly). Padding
   can't do this: each line is nowrap by design, so it ignores the box. */
@media (min-width: 768px) {
    .carousel-slide-inner h1 { font-size: clamp(0.9rem, calc((100vw - 440px) / 21), 3.4rem); }
    #heroCarousel .carousel-control-next { right: 190px; }
}

.carousel-slide-inner .hero-name-line {
    display: block;
    /* Each line is a deliberate, complete phrase (see index.php) — nowrap
       is what actually keeps it to exactly two lines; the font-size clamp
       above is what keeps nowrap from overflowing at narrow widths. */
    white-space: nowrap;
}

.carousel-slide-inner .slide-sub {
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(0.95rem, 2.8vw, 1.25rem);
    font-weight: 300;
    max-width: 520px;
    line-height: 1.75;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.carousel-indicators {
    margin-left: 4rem;
    justify-content: flex-start;
}

/* The transparent top/bottom borders keep the visible bar 3px tall while giving
   the control a ~23px touch target. Bootstrap ships them for exactly this
   reason; a plain `border: none` here left a 3px-tall tap target. */
.carousel-indicators [data-bs-target] {
    box-sizing: content-box;
    width: 24px;
    height: 3px;
    border-radius: 2px;
    border: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    background-color: rgba(255, 255, 255, 0.3);
    background-clip: padding-box;
    opacity: 1;
    transition: background-color var(--motion-slow) var(--ease-standard),
                width var(--motion-slow) var(--ease-standard);
}

.carousel-indicators .active {
    background-color: var(--accent);
    width: 40px;
}

/* Info strip */
.info-strip {
    background-color: var(--bg-alt);
    border-bottom: 1px solid rgba(12, 110, 166, 0.12);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
}

.info-item + .info-item {
    border-left: 1px solid rgba(12, 110, 166, 0.12);
}

.info-icon {
    font-size: 1.75rem;
    color: var(--primary);
    flex-shrink: 0;
}

.info-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.info-value {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
}

/* Welcome section */
.section-welcome {
    background-color: var(--bg);
    padding: 4rem 0;
}

.section-welcome h2 {
    color: var(--primary);
    font-weight: 700;
}

.section-welcome p {
    color: var(--text-muted);
}

/* Body copy is ragged-right at every width: justifying a 720px measure with
   tokens this long ("creep-fatigue interaction") opens uneven word gaps, and
   the auto-hyphenation that used to compensate was breaking words mid-line.
   The explicit left is load-bearing — the parent container is .text-center,
   which long-form body copy must not inherit. */
.section-welcome .welcome-intro {
    max-width: 720px;
    margin-inline: auto;
    text-align: left;
    line-height: 1.75;
}

.section-welcome .welcome-intro p:last-child {
    margin-bottom: 0;
}

/* bi-dot draws a ~6px dot inside a ~24px glyph advance, which read as a broken
   indent. A small filled circle aligned to the first text line is honest. */
.topic-bullet {
    font-size: 0.4rem;
    line-height: 1.5;
    margin-top: 0.5rem;
}

/* Bootstrap's gap-2 (0.5rem) sat on top of the ~1em glyph advance the icon font
   already reserves, leaving roughly 10px of air beside a 5px dot. Setting the
   gap directly measures from the glyph box, so the marker reads as attached to
   its line. Matched by .fee-inclusions li. */
.topic-item {
    gap: 0.35rem;
}

/* Venue map: 1:1 suits the narrow desktop sidebar, but at full mobile width that
   same square eats ~43% of the viewport, so widen the ratio on small screens. */
.venue-map {
    --bs-aspect-ratio: 75%;
}

@media (min-width: 992px) {
    .venue-map {
        --bs-aspect-ratio: 100%;
    }
}

/* Meta cards (venue/dates/organiser style callouts) */
.meta-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent);
    border-radius: 0.5rem;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: box-shadow var(--motion-normal) var(--ease-standard),
                transform var(--motion-normal) var(--ease-standard);
}

.meta-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.meta-card + .meta-card {
    margin-top: 1rem;
}

.meta-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.4rem;
}

.meta-value {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.55;
}

/* Single centered highlight strip (home page), not the stacked sidebar list
   .meta-card is elsewhere — constrained so it reads as a callout, not a
   full-width bar. */
.conference-dates-card {
    max-width: 420px;
}

/* Feature cards */
.feature-card {
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background-color: var(--card-bg);
    transition: box-shadow var(--motion-normal) var(--ease-standard),
                transform var(--motion-normal) var(--ease-standard);
    height: 100%;
}

.feature-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.09);
    transform: translateY(-3px);
}

.feature-card .card-icon {
    color: var(--accent);
    font-size: 2.25rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card .card-title {
    color: var(--primary);
    font-weight: 700;
}

.feature-card .card-text {
    color: var(--text-muted);
}

.btn-primary-cf {
    background-color: var(--primary);
    color: var(--on-color);
    border: none;
    border-radius: 0.375rem;
    transition: background-color var(--motion-fast) var(--ease-standard),
                transform var(--motion-fast) var(--ease-standard),
                box-shadow var(--motion-fast) var(--ease-standard);
    text-decoration: none;
    display: inline-block;
    padding: 0.5rem 1rem;
}

.btn-primary-cf:hover {
    background-color: var(--primary-dark);
    color: var(--on-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(12, 110, 166, 0.25);
}

/* Same shape as .btn-primary-cf, soft green instead of the brand blue —
   makes the Excel export instantly distinguishable from CSV at a glance. */
.btn-excel-cf {
    background-color: var(--excel-green);
    color: var(--on-color);
    border: none;
    border-radius: 0.375rem;
    transition: background-color var(--motion-fast) var(--ease-standard),
                transform var(--motion-fast) var(--ease-standard),
                box-shadow var(--motion-fast) var(--ease-standard);
    text-decoration: none;
    display: inline-block;
    padding: 0.5rem 1rem;
}

.btn-excel-cf:hover {
    background-color: var(--excel-green-dark);
    color: var(--on-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(92, 171, 111, 0.3);
}

.btn-outline-cf {
    background-color: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    border-radius: 0.375rem;
    transition: background-color var(--motion-fast) var(--ease-standard),
                color var(--motion-fast) var(--ease-standard),
                transform var(--motion-fast) var(--ease-standard),
                box-shadow var(--motion-fast) var(--ease-standard);
    text-decoration: none;
    display: inline-block;
    padding: 0.5rem 1rem;
}

.btn-outline-cf:hover {
    background-color: var(--primary);
    color: var(--on-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(12, 110, 166, 0.2);
}

/* Accent variant — reserved for the one or two CTAs on a page that need to
   outrank the primary-blue buttons already everywhere else (e.g. the
   circular download on the homepage), not a general-purpose swap-in. */
.btn-accent-cf {
    background-color: var(--accent);
    color: var(--on-color);
    border: none;
    border-radius: 0.375rem;
    transition: background-color var(--motion-fast) var(--ease-standard),
                transform var(--motion-fast) var(--ease-standard),
                box-shadow var(--motion-fast) var(--ease-standard);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

.btn-accent-cf:hover {
    background-color: var(--accent-dark);
    color: var(--on-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
}

/* A real "pressed" state, not grey — grey reads as disabled everywhere
   else on this site (see .badge.bg-secondary for "Coming Soon"), and this
   button works, so it shouldn't look broken the moment it's clicked. */
.btn-accent-cf:active {
    background-color: var(--accent-dark);
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(230, 126, 34, 0.25);
}

/* No browser default is dim enough on its own to avoid reading as a
   filled-in value at a glance — every form on the site gets this fix at
   once since it was never scoped per-page. */
.form-control::placeholder,
.form-select::placeholder {
    color: var(--placeholder);
    opacity: 1; /* Firefox applies its own default dimming otherwise, compounding with the color above */
}

/* Groups a long form into labeled sections without splitting it into
   separate cards — no other form on the site uses multiple cards, so this
   keeps one continuous card while still breaking up a flat wall of fields
   (e.g. contactinformation-edit.php). */
.form-section-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.form-section-label:first-child {
    padding-top: 0;
    border-top: none;
}

/* Inner page chrome */
.page-header-band {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 2.5rem 0;
}

.page-header-band h1 {
    color: var(--on-color);
    margin: 0;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
}

.page-content {
    padding: 3rem 0;
}

/* Long-form body copy lifted from the announcement document. Ragged-right and
   loosely leaded for the same reason as .welcome-intro: this text is dense with
   long technical compounds that justification would space badly. */
.scope-intro {
    line-height: 1.75;
    margin-bottom: 2rem;
}

.scope-intro p:last-child {
    margin-bottom: 0;
}

/* Introduces the topic list below it: same size as the paragraphs above so
   it reads as part of the text, with bold and accent colour carrying the
   emphasis instead. The literal comes first for browsers without var(). */
.scope-topics-lead {
    font-weight: 700;
    color: #e67e22;
    color: var(--accent);
}

/* Reads as a caveat rather than body copy: the accent rule carries the emphasis
   so the note can stay small without being missed. */
.fee-note {
    border-left: 3px solid var(--accent);
    background-color: var(--bg-alt);
    padding: 0.75rem 1rem;
    margin-bottom: 2.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.fee-inclusions {
    background-color: var(--card-bg);
    padding: 1.5rem;
}

/* Flex so a wrapping item indents under its own text rather than back under the
   tick, matching how .footer-contact handles the same problem. */
.fee-inclusions li {
    display: flex;
    align-items: flex-start;
    /* Wider than .topic-item's 0.35rem because the tick is a full-size glyph,
       not a 5px dot — same optical gap, different marker. */
    gap: 0.45rem;
    margin-bottom: 0.5rem;
}

.fee-inclusions li:last-child {
    margin-bottom: 0;
}

.fee-inclusions li > .bi {
    flex-shrink: 0;
    line-height: 1.5;
    font-weight: 700;
}

/* Sponsor marks arrive at whatever size the sponsor supplies; bound both axes so
   a tall or a wide logo both settle into the same row without distortion. */
.sponsor-logo {
    max-height: 80px;
    max-width: 200px;
}

.inner-table th {
    background-color: var(--primary);
    color: var(--on-color);
}

.inner-table td {
    color: var(--text);
    border-color: var(--border);
    /* Any cell may wrap a value too long to fit, instead of spilling out. */
    overflow-wrap: break-word;
}

/* Columns holding text a registrant typed can contain one long run with no
   spaces to break on. table-layout:auto sizes a column to its widest cell
   across every row, and .table-responsive lets it grow without limit, so a
   single such value once pushed the File/Download column off screen for all
   95 rows. `anywhere` (unlike `break-word`) also lowers the cell's minimum
   width, which is what column sizing reads — so no one value can inflate
   the column. Kept to these columns only: applied to every cell it lets the
   table squeeze short values like "CF920270097" or "Download" mid-word. */
.inner-table td[data-label="Title"],
.inner-table td[data-label="Author"],
.inner-table td[data-label="Name"],
.inner-table td[data-label="Affiliation"],
.inner-table td[data-label="Bank"] {
    overflow-wrap: anywhere;
}

/* Abstracts report: an author's second abstract sits directly under the
   first (rows are sorted that way), so on desktop its CF-9 ID and Author
   cells are blanked and the dividing line dropped — one person, two
   abstracts. Below 768px the rows become separate cards, which must each
   name their author, so this stays desktop-only. */
@media (min-width: 768px) {
    .admin-table tr.same-author .group-cell,
    .admin-table tr.same-author .group-cell * {
        color: transparent;
    }

    .admin-table tr.same-author,
    .admin-table tr.same-author td {
        border-top-color: transparent;
    }

    .admin-table tr:has(+ tr.same-author),
    .admin-table tr:has(+ tr.same-author) td {
        border-bottom-color: transparent;
    }
}

/* How to Pay: the SBI button with its QR code beside it. The QR is a fixed
   200px because it is a low-resolution image — scaling it down makes it
   harder to scan, not neater. */
.sbi-pay {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.sbi-qr {
    margin: 0;
    text-align: center;
}

.sbi-qr img {
    display: block;
    width: 200px;
    height: 200px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
}

.sbi-qr figcaption {
    margin-top: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Payment Information: the two ways to pay, each a card ending in its one
   next action, instead of paragraphs stacked one after another. */
.pay-option {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}

.pay-option-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.pay-option-list {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.pay-option-after {
    border-top: 1px solid var(--border);
    margin-top: 1.25rem;
    padding-top: 1rem;
}

@media (max-width: 575.98px) {
    .pay-option .btn-primary-cf,
    .pay-option .btn-outline-cf {
        display: block !important;
        width: 100%;
        text-align: center;
    }
}

.inner-table td.name-cell {
    font-weight: 700;
}

/* Milestones whose date has gone by. Targets the cells, not the row: both
   Bootstrap and `.inner-table td` above set colour on the cell itself, so a
   muted utility class on the <tr> is applied but never actually wins the
   cascade — the row looks unchanged.
   Marked by a grey fill rather than by fading the text: faded text on white
   was reported as hard to read. Bootstrap paints the cell from
   --bs-table-bg, so that is set alongside the literal fallback. */
.inner-table tr.milestone-past td {
    color: #475569;
    background-color: #e2e8f0;
    --bs-table-bg: #e2e8f0;
}

/* Footer.
   Its text colours are literal light values, so the background must never
   silently disappear: each var() below is preceded by the literal it
   resolves to, for browsers without custom properties (IE, Chrome <49),
   which would otherwise render the footer white-on-white. theme.css
   remains the source of truth for these values. */
.site-footer {
    background-color: #0a4d76;
    background-color: var(--footer-bg);
    color: rgba(255, 255, 255, 0.8);
    color: var(--footer-text);
    padding: 3rem 0 0;
    /* Pushes the footer (and the sub-footer after it) to the bottom of the
       flex-column body when the page content is shorter than the viewport. */
    margin-top: auto;
}

.site-footer h5 {
    color: #e67e22;
    color: var(--accent);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.site-footer p,
.site-footer li {
    color: rgba(255, 255, 255, 0.8);
    color: var(--footer-text);
    font-size: 0.85rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color var(--motion-fast) var(--ease-standard);
}

.site-footer a:hover {
    color: #ffffff;
    color: var(--on-color);
}

/* Bootstrap's <hr> defaults to currentColor + opacity, which renders as a
   pale bar against the dark teal footer. Set the rule explicitly instead. */
.footer-divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 1;
    margin: 1.5rem 0;
}

.footer-venue {
    color: rgba(255, 255, 255, 0.55);
}

/* Flex rather than inline icons so the 111-char address indents under its own
   text on wrap, instead of continuation lines running back under the icon. */
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.footer-contact li > .bi {
    flex-shrink: 0;
    line-height: 1.5;
}

.sub-footer {
    background-color: #0a4d76;
    background-color: var(--footer-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    text-align: center;
    /* Was 0.72rem at 40% white: under the readable floor on a phone and well
       below 4.5:1 contrast, and this is where the developer credit lives. */
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.66);
}

/* Back-to-top */
.back-to-top {
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    background-color: var(--primary);
    color: var(--on-color);
    border: none;
    border-radius: 50%;
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.25rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1050;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity var(--motion-normal) var(--ease-standard),
                transform var(--motion-normal) var(--ease-standard),
                background-color var(--motion-fast) var(--ease-standard);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
}

/* Quick links panel — fixed to the right edge, always open, no JS and no
   animation. Deliberately plain CSS (no transform, no writing-mode): the
   previous slide-out tab showed its rotated label upside down on IE and
   pre-2016 Chrome/Firefox. Centred with a negative margin rather than
   translateY for the same reason. Each colour is given literally first,
   then as the theme variable, because a browser without custom properties
   drops the var() line entirely; theme.css stays the source of truth. */
.quick-links-panel {
    position: fixed;
    right: 0;
    top: 50%;
    margin-top: -130px;
    z-index: 900;
    width: 190px;
    background-color: #ffffff;
    background-color: var(--card-bg);
    border: 1px solid #e2e8f0;
    border: 1px solid var(--border);
    border-right: none;
    border-radius: 0.5rem 0 0 0.5rem;
    overflow: hidden;
    box-shadow: -2px 2px 16px rgba(0, 0, 0, 0.08);
}

.quick-links-label {
    display: block;
    padding: 0.6rem 1rem;
    background-color: #0c6ea6;
    background-color: var(--primary);
    color: #ffffff;
    color: var(--on-color);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.quick-link-item {
    display: block;
    padding: 0.5rem 1rem;
    color: #64748b;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    border-bottom: 1px solid #e2e8f0;
    border-bottom: 1px solid var(--border);
}

.quick-link-item:last-child {
    border-bottom: none;
}

.quick-link-item:hover,
.quick-link-item:focus {
    color: #0c6ea6;
    color: var(--primary);
    background-color: #e8f4fd;
    background-color: var(--bg-alt);
}

/* Scroll-reveal */
@media (prefers-reduced-motion: no-preference) {
    .reveal-on-scroll {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity var(--motion-slow) var(--ease-standard),
                    transform var(--motion-slow) var(--ease-standard);
    }

    .reveal-on-scroll.in-view {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Admin */
.admin-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.admin-subnav-item {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.35rem 0.75rem;
    border-radius: 0.375rem;
    transition: color var(--motion-fast) var(--ease-standard),
                background-color var(--motion-fast) var(--ease-standard);
}

.admin-subnav-item:hover,
.admin-subnav-item:focus-visible {
    color: var(--primary);
    background-color: var(--bg-alt);
}

.admin-subnav-item.active {
    color: var(--on-color);
    background-color: var(--primary);
}

.admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

/* Pushes the export actions to the trailing edge, whatever precedes them. */
.admin-toolbar .export-actions { margin-left: auto; }

/* Groups CSV + Excel export together, closer and smaller than a full-size
   standalone button — these are secondary actions on the page, not the
   primary thing someone's here to do. .btn-primary-cf/.btn-excel-cf are
   custom-styled (not Bootstrap's .btn), so this is a small bespoke
   grouping rather than Bootstrap's .btn-group (which only collapses
   borders/sizing for elements carrying its own .btn class). */
.export-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Says whether the buttons beside it will hand back the filtered rows or
   the whole table — the two used to be indistinguishable. */
.export-scope {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.export-actions .btn-primary-cf,
.export-actions .btn-excel-cf {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
}

.admin-count {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Search-first, not browse-first — with thousands of registrants, paging
   through the full list to find one person doesn't scale the way a direct
   search does. */
.admin-search {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.admin-search input[type="search"] {
    flex: 1 1 260px;
}

.admin-stat {
    display: block;
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent);
    border-radius: 0.5rem;
    padding: 1.25rem;
    text-decoration: none;
    height: 100%;
    transition: box-shadow var(--motion-normal) var(--ease-standard),
                transform var(--motion-normal) var(--ease-standard);
}

a.admin-stat:hover,
a.admin-stat:focus-visible {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Matches .feature-card .card-icon's existing visual language (homepage)
   rather than inventing a new icon treatment for this one section. */
.admin-stat-icon {
    display: block;
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.admin-stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.admin-stat-label {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Themed confirmation modals — used for anything that grants/revokes
   access or fires an irreversible side effect (email, lockout). Stock
   Bootstrap otherwise looks visually unrelated to the rest of the site. */
.modal-content {
    border: 1px solid var(--border);
    border-radius: 0.75rem;
}

.modal-header {
    border-bottom: 1px solid var(--border);
}

.modal-title {
    color: var(--primary);
    font-weight: 700;
}

/* User Status row actions — Disable/Enable and Delete live in two separate
   forms (so the typed delete confirmation is never posted with Disable);
   this lays them out as one row of equal-height buttons instead of two
   stacked blocks. */
.admin-row-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.admin-row-actions form { margin: 0; }

.admin-row-actions .btn .bi,
.modal-danger .btn .bi { margin-right: 0.2rem; }

/* Quiet label where a row has no action (your own account, operators). */
.admin-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    color: var(--text-muted);
    background-color: #f1f5f9;
    background-color: var(--bg-alt);
    border: 1px solid #e2e8f0;
    border: 1px solid var(--border);
    border-radius: 999px;
    white-space: nowrap;
}

.admin-legend {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    font-size: 0.85rem;
    color: #64748b;
    color: var(--text-muted);
}

.admin-legend li + li { margin-top: 0.2rem; }
.admin-legend .bi { margin-right: 0.3rem; }

/* Destructive variant of the themed modal — red title and a summary of
   exactly which account and what data is about to go, so the operator
   reads it before typing the confirmation. */
.modal-danger .modal-header { border-bottom-color: #f5c2c0; }

.modal-danger .modal-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #b42318;
}

.delete-summary {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    background-color: #f1f5f9;
    background-color: var(--bg-alt);
    border: 1px solid #e2e8f0;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    overflow-wrap: anywhere;
}

.delete-summary span {
    font-size: 0.85rem;
    color: #64748b;
    color: var(--text-muted);
}

.delete-heading {
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.delete-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    font-size: 0.9rem;
}

.delete-list li + li { margin-top: 0.25rem; }

.delete-list .bi {
    display: inline-block;
    width: 1.25rem;
    color: #b42318;
}

.delete-warning {
    padding: 0.6rem 0.85rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #7a271a;
    background-color: #fef3f2;
    border: 1px solid #f5c2c0;
    border-radius: 0.5rem;
}

.delete-confirm-label code {
    overflow-wrap: anywhere;
    color: inherit;
    font-weight: 600;
}

/* Abstract submission — up to two per registrant.
   The list page always shows two slots (filled or empty), so the limit and
   the next action are visible at a glance; the slot label ("Abstract 1") is
   the same name the emails and admin reports use. */
.abstract-list-head { margin-bottom: 1.25rem; }

.abstract-slots {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.abstract-slot {
    padding: 1.25rem 1.5rem;
    background-color: #ffffff;
    background-color: var(--card-bg);
    border: 1px solid #e2e8f0;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
}

.abstract-slot--empty {
    background-color: #f8fafc;
    background-color: var(--bg-alt);
    border-style: dashed;
}

.abstract-slot-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.abstract-slot-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #e67e22;
    color: var(--accent);
}

.abstract-slot-title {
    margin: 0 0 1rem;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
    color: #0c6ea6;
    color: var(--primary);
}

.abstract-slot-empty-text {
    margin: 0;
    color: #64748b;
    color: var(--text-muted);
}

.abstract-slot--empty .abstract-actions { margin-top: 1rem; padding-top: 0; border-top: 0; }

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
    color: #475569;
    background-color: #e2e8f0;
}

.status-pill--done     { color: #166534; background-color: #dcfce7; }
.status-pill--required { color: #9a3412; background-color: #ffedd5; }

/* Label above value, two columns: dense enough that a card reads at a
   glance, without the wide empty gutter a label-left row layout leaves. */
.abstract-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1.5rem;
    margin: 0;
}

.abstract-meta dt {
    margin-bottom: 0.15rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    color: var(--text-muted);
}

.abstract-meta dd { margin: 0; }

.abstract-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    border-top: 1px solid var(--border);
}

.abstract-actions .bi,
.next-step-panel .bi { margin-right: 0.15rem; }

.abstract-download {
    font-weight: 600;
    text-decoration: none;
}

.abstract-download:hover { text-decoration: underline; }

.next-step-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.5rem;
    border: 1px solid #bfdbfe;
    border-radius: 0.75rem;
    background-color: #eff6ff;
}

.next-step-panel > div { flex: 1 1 18rem; }

/* Edit / submit form */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1rem;
    font-weight: 600;
    text-decoration: none;
}

.back-link:hover { text-decoration: underline; }

.abstract-form-card { border-radius: 0.75rem; overflow: hidden; }

.abstract-form-head {
    padding: 1.25rem 1.5rem;
    background-color: #f8fafc;
    background-color: var(--bg-alt);
    border-bottom: 1px solid #e2e8f0;
    border-bottom: 1px solid var(--border);
}

.abstract-form-body { padding: 1.5rem; }

.requirements-reminder {
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    border: 1px solid #e2e8f0;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
}

.requirements-reminder summary {
    font-weight: 600;
    cursor: pointer;
    color: #0c6ea6;
    color: var(--primary);
}

.requirements-reminder ul { margin: 0.75rem 0 0; padding-left: 1.2rem; }
.requirements-reminder li + li { margin-top: 0.2rem; }

.current-file {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background-color: #f8fafc;
    background-color: var(--bg-alt);
    border: 1px solid #e2e8f0;
    border: 1px solid var(--border);
}

.current-file > .bi {
    font-size: 1.5rem;
    line-height: 1;
    color: #0c6ea6;
    color: var(--primary);
}

.current-file-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    color: var(--text-muted);
}

.abstract-options {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border: 1px solid #e2e8f0;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
}

/* Legend floated full-width (Bootstrap's own pattern) so it sits inside
   the box as a heading instead of cutting through the top border. */
.abstract-options legend {
    float: left;
    width: 100%;
    margin: 0 0 0.5rem;
    padding: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.abstract-options legend + * { clear: left; }
.abstract-options .form-check + .form-check { margin-top: 0.5rem; }

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

@media (max-width: 575.98px) {
    .abstract-slot,
    .abstract-form-head,
    .abstract-form-body { padding: 1rem 1.1rem; }

    .abstract-meta { grid-template-columns: minmax(0, 1fr); }

    .abstract-actions > a,
    .next-step-panel > a,
    .form-actions > * {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* Utilities */
.form-footer-link { font-size: 0.9rem; }
.text-nums        { font-variant-numeric: tabular-nums; }
.text-primary-cf  { color: var(--primary); }
.text-accent-cf   { color: var(--accent); }
.text-muted-cf    { color: var(--text-muted); }
.bg-alt-cf        { background-color: var(--bg-alt); }
.section-pad      { padding: 3rem 0; }
.border-cf        { border-color: var(--border) !important; }

@media (max-width: 991px) {
    .site-navbar .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.97);
        border-top: 1px solid var(--border);
        padding: 1rem 1.25rem;
        margin-top: 0.5rem;
        border-radius: 0 0 0.5rem 0.5rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }
    .carousel-indicators { margin-left: 1.5rem; }
    .carousel-slide-inner { padding: 2rem 1.5rem; }

    .navbar-nav.ms-auto {
        align-items: flex-start;
        gap: 0.75rem;
    }
    .navbar-nav.ms-auto .nav-item.dropdown {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .quick-links-panel { display: none; }
    .info-item + .info-item { border-left: none; border-top: 1px solid rgba(12, 110, 166, 0.1); }
    .slide-accent-bar { display: none; }

    /* Admin tables → stacked cards instead of horizontal scroll. Label
       above value handles any cell content uniformly (plain text, a
       badge, a whole form with buttons) without per-column special-
       casing, unlike a label-left/value-right row layout. */
    .admin-table thead {
        display: none;
    }

    .admin-table, .admin-table tbody, .admin-table tr, .admin-table td {
        display: block;
        width: 100%;
    }

    .admin-table {
        border: none;
    }

    .admin-table tr {
        margin-bottom: 1rem;
        border: 1px solid var(--border);
        border-radius: 0.5rem;
        padding: 0.75rem 1rem;
        background-color: var(--card-bg);
    }

    .admin-table td {
        padding: 0.5rem 0;
        border: none !important;
        text-align: left !important; /* Bootstrap's .text-end/.text-nums utilities are !important too — must match to win here */
    }

    .admin-table td:not(:last-child) {
        border-bottom: 1px solid var(--border) !important;
        padding-bottom: 0.75rem;
        margin-bottom: 0.25rem;
    }

    .admin-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.68rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--text-muted);
        margin-bottom: 0.25rem;
    }

    /* Toolbar/subnav/search rows already wrap; this just gives full-width
       children breathing room instead of everything crowding together at
       the same cramped gap used at desktop width. */
    .admin-toolbar,
    .admin-search {
        gap: 0.6rem;
    }

    .admin-toolbar > * {
        width: 100%;
    }

    .admin-toolbar .export-actions {
        margin-left: 0;
    }

    .admin-subnav {
        gap: 0.4rem;
    }
}
