/* ── CFI.co Mobile — v1 ─────────────────────────────────────────────────── */

:root {
    --brand: #991914;
    --brand-dark: #7a1410;
    --bg: #f5f5f7;
    --card-bg: #fff;
    --text: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-tertiary: #aeaeb2;
    --border: #e5e5ea;
    --accent: #991914;
    --nav-bg: #fff;
    --header-h: 52px;
    --nav-h: 56px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-top: env(safe-area-inset-top, 0px);
}

/* ── Dark Mode ─────────────────────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #1c1c1e;
        --card-bg: #2c2c2e;
        --text: #f5f5f7;
        --text-secondary: #d1d1d6;
        --text-tertiary: #98989d;
        --border: #38383a;
        --nav-bg: #1c1c1e;
    }
    .site-header { background: #111; }
    .pill { background: var(--card-bg); color: var(--text); }
    .pill.active { background: var(--brand); color: #fff; }
    .hero-card { background: var(--card-bg); }
    .card { background: var(--card-bg); }
    .article-body { color: var(--text); }
    .article-content img { border-radius: 8px; }
    .article-nav-link { background: var(--card-bg); }
    .article-nav-link:active { background: #3a3a3c; }
    .share-btn { background: var(--card-bg); color: var(--text); }
    .share-twitter { background: #fff; color: #000; }
    .drawer { background: #2c2c2e; }
    .drawer-overlay { background: rgba(0,0,0,.6); }
    .error-content { background: var(--card-bg); }
    .magazine-issue { background: var(--card-bg); }
    .magazine-embed { background: var(--card-bg); }
    .bottom-nav { border-top-color: var(--border); }
    .search-bar input { background: rgba(255,255,255,.12); }
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; font-size: 16px; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    padding-top: calc(var(--header-h) + var(--safe-top));
    padding-bottom: calc(var(--nav-h) + var(--safe-bottom));
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { border: none; background: none; cursor: pointer; color: inherit; font: inherit; }
ul { list-style: none; }
h1, h2, h3, h4 { line-height: 1.25; }

/* ── Skip Nav (accessibility) ──────────────────────────────────────────────── */
.skip-nav {
    position: absolute;
    top: -100%;
    left: 0;
    z-index: 9999;
    padding: 12px 24px;
    background: var(--brand);
    color: #fff;
    font-weight: 600;
}
.skip-nav:focus { top: 0; }

/* ── Header ────────────────────────────────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--brand);
    padding-top: var(--safe-top);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    padding: 0 16px;
}
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo img { display: block; height: 36px; width: auto; border-radius: 3px; }
.logo .logo-dark { display: none; }
.logo-awards { color: rgba(255,255,255,.75); font-size: 18px; font-weight: 400; letter-spacing: 1px; }
.header-actions { display: flex; gap: 8px; }
.header-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.85);
    border-radius: 50%;
    -webkit-tap-highlight-color: transparent;
}
.header-btn:hover, .header-btn:focus-visible {
    background: rgba(255,255,255,.15);
    color: #fff;
}

/* ── Search Bar ────────────────────────────────────────────────────────────── */
.search-bar {
    background: var(--brand-dark);
    padding: 8px 16px 10px;
}
.search-bar form {
    display: flex;
    background: rgba(255,255,255,.15);
    border-radius: 10px;
    overflow: hidden;
}
.search-bar input {
    flex: 1;
    border: none;
    background: none;
    padding: 10px 14px;
    font-size: 16px;
    color: #fff;
    outline: none;
}
.search-bar input::placeholder { color: rgba(255,255,255,.5); }
.search-bar button {
    padding: 10px 14px;
    color: rgba(255,255,255,.7);
}
.search-bar button:hover { color: #fff; }

/* ── Category Pills ────────────────────────────────────────────────────────── */
.pills-nav {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: calc(var(--header-h) + var(--safe-top));
    z-index: 50;
}
.pills-scroll {
    display: flex;
    gap: 8px;
    padding: 10px 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.pills-scroll::-webkit-scrollbar { display: none; }
.pill {
    flex-shrink: 0;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    background: var(--bg);
    color: var(--text-secondary);
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    transition: background .2s, color .2s;
}
.pill:hover, .pill:focus-visible { background: #e8e8ed; }
.pill.active {
    background: var(--brand);
    color: #fff;
}

/* ── Hero Carousel ─────────────────────────────────────────────────────────── */
.hero-section { padding: 16px 16px 0; position: relative; }
.hero-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
    border-radius: 16px;
}
.hero-carousel::-webkit-scrollbar { display: none; }
.hero-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.hero-img {
    aspect-ratio: 16/9;
    overflow: hidden;
}
.hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-text {
    padding: 14px 16px 16px;
}
.hero-text h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 6px 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-text p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-text time {
    font-size: 12px;
    color: var(--text-tertiary);
}
/* Dots */
.hero-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 12px 0 0;
}
.hero-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-tertiary);
    opacity: .35;
    transition: opacity .2s, transform .2s;
}
.hero-dot.active {
    opacity: 1;
    background: var(--brand);
    transform: scale(1.2);
}

/* ── Category Badge ────────────────────────────────────────────────────────── */
.cat-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    background: var(--brand);
    color: #fff;
}
.cat-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--brand);
}

/* ── Article Cards ─────────────────────────────────────────────────────────── */
.feed { padding: 12px 16px; }
.card {
    display: flex;
    gap: 14px;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    box-shadow: 0 1px 2px rgba(0,0,0,.06);
    -webkit-tap-highlight-color: transparent;
    transition: transform .15s, box-shadow .15s;
}
.card:active { transform: scale(.98); }
.card-img {
    flex-shrink: 0;
    width: 110px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}
.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.card-text h3 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    margin: 3px 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-text time {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* ── Card Grid (for related articles) ──────────────────────────────────────── */
.card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.card-grid .card {
    flex-direction: column;
    gap: 0;
    padding: 0;
    overflow: hidden;
}
.card-grid .card .card-img {
    width: 100%;
    height: 100px;
    border-radius: 0;
}
.card-grid .card .card-text {
    padding: 10px 12px 12px;
}
.card-grid .card .card-text h3 {
    font-size: 13px;
}

/* ── Single Article ────────────────────────────────────────────────────────── */
.article-single .article-hero {
    aspect-ratio: 16/9;
    overflow: hidden;
}
.article-single .article-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-body {
    padding: 16px;
}
.article-body h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 8px 0 12px;
    line-height: 1.2;
}
.article-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
}

/* ── Share Bar ─────────────────────────────────────────────────────────────── */
.share-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: opacity .2s;
    -webkit-tap-highlight-color: transparent;
}
.share-btn:hover, .share-btn:focus-visible { opacity: .8; }
.share-twitter { background: #000; color: #fff; }
.share-linkedin { background: #0A66C2; color: #fff; }
.share-facebook { background: #1877F2; color: #fff; }
.share-native { background: var(--bg); color: var(--text); }

/* ── Article Content Typography ────────────────────────────────────────────── */
.article-content {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text);
}
.article-content p {
    margin-bottom: 1.2em;
}
.article-content h2 {
    font-size: 21px;
    margin: 1.5em 0 .5em;
}
.article-content h3 {
    font-size: 18px;
    margin: 1.3em 0 .4em;
}
.article-content img {
    border-radius: 8px;
    margin: 1em 0;
    height: auto !important;
}
.article-content a {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.article-content blockquote {
    border-left: 3px solid var(--brand);
    padding: 4px 0 4px 16px;
    margin: 1.2em 0;
    color: var(--text-secondary);
    font-style: italic;
}
.article-content ul, .article-content ol {
    padding-left: 1.5em;
    margin-bottom: 1.2em;
}
.article-content li { margin-bottom: .4em; }
.article-content figure { margin: 1.2em 0; }
.article-content figcaption {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 6px;
}
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    font-size: 14px;
    overflow-x: auto;
    display: block;
}
.article-content th, .article-content td {
    padding: 8px 10px;
    border: 1px solid var(--border);
    text-align: left;
}
.article-content th { background: var(--bg); font-weight: 600; }
.article-content iframe {
    max-width: 100%;
    border-radius: 8px;
}
/* Prevent WP alignment classes from breaking mobile layout */
.article-content .alignleft,
.article-content .alignright {
    float: none;
    display: block;
    margin: 1em auto;
    max-width: 100%;
}
.article-content .wp-caption {
    max-width: 100% !important;
}

/* ── Related Articles ──────────────────────────────────────────────────────── */
.related-articles {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.related-articles h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
}

/* ── Magazine Page ─────────────────────────────────────────────────────────── */
.magazine-page {
    padding: 20px 16px;
}
.magazine-page h1 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
}
.magazine-page h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 28px 0 16px;
}
.magazine-embed {
    position: relative;
    width: 100%;
    padding-bottom: 130%;
    background: var(--bg);
    border-radius: 10px;
    overflow: hidden;
}
.magazine-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.magazine-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.magazine-issue {
    display: block;
    text-decoration: none;
    border-radius: 10px;
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    transition: transform .15s;
}
.magazine-issue:active {
    transform: scale(.97);
}
.magazine-issue img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
}
.magazine-issue span {
    display: block;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    text-align: center;
}
.magazine-issue.active {
    outline: 3px solid var(--brand);
    outline-offset: -3px;
}
.magazine-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

/* ── Article Prev/Next Navigation ──────────────────────────────────────────── */
.article-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.article-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: 10px;
    background: var(--bg);
    -webkit-tap-highlight-color: transparent;
    transition: background .15s;
}
.article-nav-link:active { background: #e0e0e5; }
.article-nav-link.nav-next { text-align: right; justify-content: flex-end; }
.article-nav-link svg { flex-shrink: 0; color: var(--text-tertiary); }
.article-nav-link span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-tertiary);
    font-weight: 600;
}
.article-nav-link strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 2px;
}

/* ── Swipe Hints ───────────────────────────────────────────────────────────── */
.article-single {
    position: relative;
    overflow: hidden;
}
.swipe-hint {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    z-index: 90;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s;
}
.swipe-hint.visible { opacity: 1; }
.swipe-hint-left {
    left: 0;
    background: linear-gradient(to right, rgba(153,25,20,.92), transparent);
    color: #fff;
    padding-left: 8px;
}
.swipe-hint-right {
    right: 0;
    background: linear-gradient(to left, rgba(153,25,20,.92), transparent);
    color: #fff;
    padding-right: 8px;
}
.swipe-hint span {
    font-size: 10px;
    font-weight: 600;
    max-width: 56px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Swipe page transition */
.article-single.swipe-out-left {
    animation: swipeOutLeft .25s ease-in forwards;
}
.article-single.swipe-out-right {
    animation: swipeOutRight .25s ease-in forwards;
}
@keyframes swipeOutLeft {
    to { transform: translateX(-100%); opacity: 0; }
}
@keyframes swipeOutRight {
    to { transform: translateX(100%); opacity: 0; }
}

/* ── Page Header ───────────────────────────────────────────────────────────── */
.page-header {
    padding: 20px 16px 4px;
}
.page-header h1 {
    font-size: 22px;
    font-weight: 700;
}
.page-header p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 6px;
}
.no-results {
    padding: 40px 0;
    text-align: center;
    color: var(--text-secondary);
}

/* ── 404 Page ──────────────────────────────────────────────────────────────── */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 40px 20px;
}
.error-content h1 {
    font-size: 64px;
    font-weight: 800;
    color: var(--brand);
    margin-bottom: 8px;
}
.error-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}
.btn-primary {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 100px;
    background: var(--brand);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
}

/* ── Loading Spinner ───────────────────────────────────────────────────────── */
.loading-spinner {
    display: flex;
    justify-content: center;
    padding: 24px 0;
}
.spinner {
    width: 28px;
    height: 28px;
    border: 3px solid var(--border);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Bottom Navigation ─────────────────────────────────────────────────────── */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    background: var(--nav-bg);
    border-top: 1px solid var(--border);
    padding-bottom: var(--safe-bottom);
    height: calc(var(--nav-h) + var(--safe-bottom));
}
.nav-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 0;
    color: var(--text-tertiary);
    -webkit-tap-highlight-color: transparent;
    transition: color .15s;
    min-height: 44px;
}
.nav-tab span {
    font-size: 10px;
    font-weight: 500;
}
.nav-tab.active {
    color: var(--brand);
}
.nav-tab:hover, .nav-tab:focus-visible {
    color: var(--text);
}

/* ── Drawer ────────────────────────────────────────────────────────────────── */
.drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,.4);
    opacity: 0;
    transition: opacity .3s;
}
.drawer-overlay.visible { opacity: 1; }

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 201;
    width: 300px;
    max-width: 85vw;
    background: var(--card-bg);
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-top: var(--safe-top);
}
.drawer.open { transform: translateX(0); }

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--border);
}
.drawer-header h2 {
    font-size: 18px;
    font-weight: 700;
}
.drawer-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-secondary);
}
.drawer-close:hover, .drawer-close:focus-visible { background: var(--bg); }

.drawer-body { padding: 16px; }
.drawer-body h3 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-tertiary);
    margin: 16px 0 8px;
}
.drawer-body h3:first-child { margin-top: 0; }
.drawer-body ul li a {
    display: block;
    padding: 10px 0;
    font-size: 15px;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    -webkit-tap-highlight-color: transparent;
}
.drawer-body ul li a:hover, .drawer-body ul li a:focus-visible {
    color: var(--brand);
}

.drawer-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.drawer-footer a {
    font-size: 14px;
    color: var(--text-secondary);
}
.drawer-footer a:hover { color: var(--brand); }

/* ── Focus states (accessibility) ──────────────────────────────────────────── */
:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) { outline: none; }

/* ── Awards Programme page ─────────────────────────────────────────────────── */
.awp {
    padding: 0 0 calc(var(--nav-h) + var(--safe-bottom) + 24px);
}

/* Hero — matches nominate page */
.awp-hero {
    padding: 32px 20px 28px;
    background: linear-gradient(168deg, var(--brand) 0%, #6b0f0c 100%);
    color: #fff;
}
.awp-hero-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(255,255,255,.18);
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 14px;
}
.awp-hero h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 10px;
    line-height: 1.15;
}
.awp-hero p {
    font-size: 14px;
    line-height: 1.55;
    opacity: .85;
    margin: 0;
    max-width: 400px;
}

/* Body — editorial long-form styling */
.awp-body {
    padding: 0 20px;
}

/* Fix: WP wraps content in #columns divs */
.awp-body #columns {
    margin: 0;
    padding: 0;
}

/* Hide the Ninja Form embed + its wrapping #columns */
.awp-body .nf-form-cont,
.awp-body .ninja-forms-form-wrap,
.awp-body .ninja-forms-noscript-message,
.awp-body [id*="ninja_forms"],
.awp-body #columns:last-of-type {
    display: none !important;
}

/* The leading h3 with inline image — reformat as hero-ish intro */
.awp-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
    margin: 28px 0 16px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--brand);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    clear: both;
}
.awp-body h3 img {
    float: none !important;
    width: 56px !important;
    height: 56px !important;
    max-width: 56px !important;
    border-radius: 10px;
    margin: 0 !important;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

/* Section headings — bold paragraphs acting as h2s */
.awp-body > #columns > p > strong:only-child,
.awp-body > #columns > p > strong:first-child:last-child {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
    margin-top: 10px;
}
/* Style paragraphs that contain ONLY a bold element as section headings */
.awp-body > #columns > p:has(> strong:only-child) {
    margin-top: 32px;
    margin-bottom: 6px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
/* First bold-only p after h3 shouldn't have top border */
.awp-body > #columns > h3 + p:has(> strong:only-child) {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

/* Body text */
.awp-body p {
    font-size: 15px;
    line-height: 1.72;
    color: var(--text);
    margin: 0 0 16px;
    text-align: left !important;
}
.awp-body p strong {
    color: var(--text);
    font-weight: 650;
}
.awp-body p em {
    font-style: italic;
}

/* Lists */
.awp-body ul {
    margin: 0 0 20px;
    padding: 0 0 0 6px;
    list-style: none;
    text-align: left !important;
}
.awp-body li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--text);
    text-align: left !important;
}
.awp-body li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand);
    opacity: .6;
}
.awp-body li strong {
    font-weight: 650;
    color: var(--text);
}

/* Links within body */
.awp-body a {
    color: var(--brand);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}
.awp-body a:active {
    opacity: .7;
}

/* Nominate CTA at bottom */
.awp-cta {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 2px solid var(--brand);
    text-align: center;
}
.awp-cta-btn,
.awp-body a.awp-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 0.01em;
    color: #fff !important;
    background: var(--brand);
    border: none;
    border-radius: 12px;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent;
    transition: transform .1s, opacity .1s;
}
.awp-cta-btn:active {
    transform: scale(.985);
    opacity: .9;
}
.awp-cta-btn svg {
    transition: transform .15s;
}
.awp-cta-btn:active svg {
    transform: translateX(2px);
}
.awp-cta-note {
    font-size: 12px;
    color: var(--text-tertiary);
    margin: 14px 0 0;
}

/* ── Dark mode ────────────────────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
    .awp-hero {
        background: linear-gradient(168deg, #7a1410 0%, #3d0a08 100%);
    }
    .awp-body h3 img {
        box-shadow: 0 2px 8px rgba(0,0,0,.4);
    }
}

/* ── Nominate page ─────────────────────────────────────────────────────────── */
.nom {
    padding: 0 0 calc(var(--nav-h) + var(--safe-bottom) + 24px);
}

/* Hero header */
.nom-hero {
    padding: 32px 20px 28px;
    background: linear-gradient(168deg, var(--brand) 0%, #6b0f0c 100%);
    color: #fff;
}
.nom-hero-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(255,255,255,.18);
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 14px;
}
.nom-hero h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 10px;
    line-height: 1.15;
}
.nom-hero p {
    font-size: 14px;
    line-height: 1.55;
    opacity: .85;
    margin: 0;
    max-width: 400px;
}

/* Form container */
.nom-form {
    padding: 0 20px;
}

/* Sections */
.nom-section {
    border: none;
    padding: 0;
    margin: 0 0 8px;
}
.nom-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
    padding: 24px 0 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}
.nom-section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    flex-shrink: 0;
}
.nom-section-muted .nom-section-title {
    color: var(--text-tertiary);
}

/* Fields */
.nom-field {
    margin-bottom: 20px;
}
.nom-field label {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}
.nom-req {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--brand);
    background: rgba(153,25,20,.08);
    padding: 2px 6px;
    border-radius: 3px;
}
.nom-opt {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}
.nom-field input[type="text"],
.nom-field input[type="email"],
.nom-field select,
.nom-field textarea {
    display: block;
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    font-family: inherit;
    line-height: 1.4;
    color: var(--text);
    background: var(--card-bg);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .15s, box-shadow .15s;
}
.nom-field input::placeholder,
.nom-field textarea::placeholder {
    color: var(--text-tertiary);
}
.nom-field input:focus,
.nom-field select:focus,
.nom-field textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(153,25,20,.1);
}
.nom-field textarea {
    resize: vertical;
    min-height: 140px;
}
.nom-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 42px;
}
.nom-field-hint {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 8px;
    line-height: 1.4;
}

/* Two-column row */
.nom-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Submit area */
.nom-submit-wrap {
    padding: 28px 20px 0;
}
.nom-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 0.01em;
    color: #fff;
    background: var(--brand);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform .1s, opacity .1s;
}
.nom-submit:active {
    transform: scale(.985);
    opacity: .9;
}
.nom-submit svg {
    transition: transform .15s;
}
.nom-submit:active svg {
    transform: translateX(2px);
}
.nom-confidential {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 14px;
    padding-bottom: 8px;
}
.nom-confidential svg {
    flex-shrink: 0;
    opacity: .6;
}

/* Error state */
.nom-error {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 20px 0;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.45;
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
}
.nom-error svg {
    flex-shrink: 0;
    margin-top: 1px;
}

/* Success state */
.nom-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 64px 28px calc(var(--nav-h) + 40px);
    min-height: 70vh;
    justify-content: center;
}
.nom-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    animation: nom-pop .4s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes nom-pop {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.nom-success h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 10px;
    letter-spacing: -0.02em;
    animation: nom-fade .5s .15s both;
}
.nom-success p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 0 6px;
    max-width: 320px;
    animation: nom-fade .5s .25s both;
}
.nom-success-note {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 32px;
    animation: nom-fade .5s .3s both;
}
@keyframes nom-fade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.nom-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--brand);
    text-decoration: none;
    padding: 10px 18px;
    border: 1.5px solid var(--brand);
    border-radius: 8px;
    transition: background .15s;
    animation: nom-fade .5s .4s both;
}
.nom-back:active {
    background: rgba(153,25,20,.06);
}

/* ── Dark mode overrides ─────────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
    .nom-hero {
        background: linear-gradient(168deg, #7a1410 0%, #3d0a08 100%);
    }
    .nom-req {
        background: rgba(153,25,20,.25);
    }
    .nom-error {
        background: #451a1a;
        border-color: #7f1d1d;
        color: #fca5a5;
    }
    .nom-field select {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    }
}

/* ── Utility ───────────────────────────────────────────────────────────────── */
[hidden] { display: none !important; }
