/* Homepage v2 — content area only (index_page_content.php) */
.agdh {
    --agdh-gold: #f7b91c;
    --agdh-gold-dark: #d99c06;
    --agdh-brown: #6b5310;
    --agdh-ink: #1b1b1b;
    --agdh-text: #2b2b2b;
    --agdh-muted: #6f6f6f;
    --agdh-line: #e6e3dc;
    --agdh-surface: #ffffff;
    --agdh-soft: #f7f5f0;
    --agdh-red: #c0392b;
    --agdh-red-soft: #fdf1ef;
    --agdh-radius: 12px;
    --agdh-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 18px rgba(0, 0, 0, .06);

    color: var(--agdh-text);
    font-size: 15px;
    line-height: 1.5;
    padding: 8px 0 24px;
}
.style-dark .agdh {
    --agdh-text: #e8e6e1;
    --agdh-muted: #a5a29b;
    --agdh-line: #34322e;
    --agdh-surface: #1f1e1c;
    --agdh-soft: #2a2926;
    --agdh-red-soft: #3a2220;
}
.agdh *, .agdh *::before, .agdh *::after { box-sizing: border-box; }
.agdh a { color: inherit; text-decoration: none; }
.agdh ul { list-style: none; margin: 0; padding: 0; }
.agdh h1, .agdh h2, .agdh h3 { margin: 0; }
.agdh img { max-width: 100%; }
.agdh .agdh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons & links */
.agdh-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 0 20px; border-radius: 999px;
    font-weight: 700; font-size: 14px; letter-spacing: .02em;
    border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s, transform .15s;
    white-space: nowrap;
}
.agdh-btn:hover { transform: translateY(-1px); }
.agdh .agdh-btn--gold { background: var(--agdh-gold); color: var(--agdh-ink); }
.agdh .agdh-btn--gold:hover { background: var(--agdh-gold-dark); }
.agdh .agdh-btn--dark { background: var(--agdh-ink); color: #fff; }
.agdh .agdh-btn--dark:hover { background: #3a3a3a; }
.agdh .agdh-btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.agdh .agdh-btn--ghost:hover { border-color: var(--agdh-gold); color: var(--agdh-gold); }
.agdh-btn--sm { min-height: 36px; padding: 0 14px; font-size: 12px; text-transform: uppercase; }

.agdh .agdh-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 700; color: var(--agdh-brown); white-space: nowrap;
}
.style-dark .agdh .agdh-link { color: var(--agdh-gold); }
.agdh .agdh-link:hover { text-decoration: underline; }
.agdh-link i { font-size: 10px; }

/* Hero */
.agdh-hero {
    position: relative; overflow: hidden;
    display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: center;
    padding: 40px 44px; margin-bottom: 28px; border-radius: 18px;
    background:
        radial-gradient(600px 300px at 100% 0%, rgba(247, 185, 28, .22), transparent 60%),
        linear-gradient(135deg, #141414 0%, #262421 100%);
    color: #fff;
}
.agdh-hero::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
    background: linear-gradient(90deg, var(--agdh-gold), var(--agdh-brown));
}
.agdh-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--agdh-gold);
}
.agdh-hero h1 { margin: 10px 0 12px; font-size: 38px; line-height: 1.15; font-weight: 800; color: #fff; }
.agdh-hero p { margin: 0 0 24px; max-width: 560px; font-size: 16px; color: rgba(255, 255, 255, .75); }
.agdh-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.agdh-stats { display: grid; gap: 12px; }
.agdh-stats li {
    display: flex; align-items: baseline; gap: 14px;
    padding: 16px 20px; border-radius: var(--agdh-radius);
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08);
}
.agdh-stats strong { min-width: 56px; font-size: 30px; font-weight: 800; color: var(--agdh-gold); font-variant-numeric: tabular-nums; }
.agdh-stats span { font-size: 14px; color: rgba(255, 255, 255, .8); }

/* Layout */
.agdh-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.agdh-main { display: grid; gap: 28px; min-width: 0; }
.agdh-sidebar { position: sticky; top: 90px; display: grid; gap: 20px; }

/* Section card */
.agdh-section {
    background: var(--agdh-surface); border: 1px solid var(--agdh-line);
    border-radius: var(--agdh-radius); box-shadow: var(--agdh-shadow); overflow: hidden;
}
.agdh-section--plain { background: none; border: 0; box-shadow: none; overflow: visible; }
.agdh-section--plain .agdh-section__head { padding: 0 0 14px; border: 0; }
.agdh-section__head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 16px 20px; border-bottom: 1px solid var(--agdh-line);
}
.agdh-section__head h2 {
    display: flex; align-items: center; gap: 10px;
    font-size: 16px; font-weight: 800; color: var(--agdh-text); letter-spacing: .01em;
}
.agdh-section__head h2 i { color: var(--agdh-gold-dark); }

/* Platinum programs */
.agdh-program {
    display: flex; align-items: center; gap: 18px; padding: 16px 20px;
    border-bottom: 1px solid var(--agdh-line); transition: background .15s;
}
.agdh-program:last-child { border-bottom: 0; }
.agdh-program:hover { background: var(--agdh-soft); }
.agdh-program__logo {
    flex: 0 0 64px; width: 64px; height: 64px; border-radius: 14px; overflow: hidden;
    display: grid; place-items: center; background: var(--agdh-soft);
    box-shadow: 0 0 0 1px var(--agdh-line), 0 2px 6px rgba(0, 0, 0, .08);
}
.agdh-program__logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.agdh-program__logo span { font-size: 24px; font-weight: 800; color: var(--agdh-brown); }
.agdh-program__info { flex: 1; min-width: 0; }
.agdh-program__info h3 { font-size: 17px; font-weight: 800; line-height: 1.25; }
.agdh-program__info h3 a:hover { color: var(--agdh-brown); }
.agdh-program__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 4px; font-size: 13px; }
.agdh-badge {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--agdh-gold-dark);
}
.agdh .agdh-program__meta a { color: var(--agdh-muted); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; min-height: 24px; }
.agdh .agdh-program__meta a:hover { color: var(--agdh-text); }
.agdh-program__actions { flex: none; display: flex; gap: 8px; }
.agdh .agdh-btn--outline { color: var(--agdh-text); border-color: var(--agdh-line); background: var(--agdh-surface); }
.agdh .agdh-btn--outline:hover { border-color: var(--agdh-text); }

/* Threads */
.agdh-thread {
    display: flex; align-items: center; gap: 14px; padding: 12px 20px;
    border-bottom: 1px solid var(--agdh-line); transition: background .15s;
}
.agdh-thread:last-child { border-bottom: 0; }
.agdh-thread:hover { background: var(--agdh-soft); }
.agdh-avatar {
    flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%;
    display: grid; place-items: center; font-weight: 800; font-size: 15px;
    background: var(--agdh-ink); color: var(--agdh-gold);
}
.agdh-thread__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.agdh-thread__title { font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agdh-thread__title:hover { color: var(--agdh-brown); }
.agdh-thread__meta { font-size: 13px; color: var(--agdh-muted); }
.agdh-thread__meta .username { font-weight: 600; color: var(--agdh-text); }
.agdh .agdh-thread__meta a { text-decoration: underline; text-decoration-color: var(--agdh-line); text-underline-offset: 3px; }
.agdh .agdh-thread__meta a:hover { color: var(--agdh-text); }

/* News */
.agdh-news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.agdh-news__item {
    display: flex; flex-direction: column; background: var(--agdh-surface);
    border: 1px solid var(--agdh-line); border-radius: var(--agdh-radius); overflow: hidden; box-shadow: var(--agdh-shadow);
    transition: transform .15s, box-shadow .15s;
}
.agdh-news__item:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, .1); }
.agdh-news__img { display: block; aspect-ratio: 16 / 9; background: var(--agdh-soft); overflow: hidden; }
.agdh-news__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.agdh-news__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.agdh-news__info { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--agdh-muted); }
.agdh-news__body h3 { font-size: 16px; font-weight: 800; line-height: 1.3; }
.agdh-news__body h3 a:hover { color: var(--agdh-brown); }
.agdh-news__body p { margin: 0; font-size: 14px; color: var(--agdh-muted); }
.agdh-news__more { margin-top: auto; padding-top: 4px; }

/* Rogue + payments */
.agdh-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.agdh-split > .agdh-section { display: flex; flex-direction: column; height: 640px; border-top: 4px solid var(--agdh-gold); }
.agdh-split > .agdh-section--rogue { border-top-color: var(--agdh-red); }
.agdh-section--rogue .agdh-section__head h2 i { color: var(--agdh-red); }
.agdh-note {
    margin: 0; padding: 10px 20px; font-size: 13px; font-weight: 600;
    color: var(--agdh-red); background: var(--agdh-red-soft); border-bottom: 1px solid var(--agdh-line);
}
.agdh-rogue, .agdh-payments { flex: 1; min-height: 0; overflow-y: auto; }
.agdh-rogue li, .agdh-payments li {
    display: flex; align-items: center; gap: 10px; padding: 9px 20px;
    border-bottom: 1px solid var(--agdh-line); font-size: 14px;
}
.agdh-rogue li:last-child, .agdh-payments li:last-child { border-bottom: 0; }
.agdh-rogue strong, .agdh-payments strong { flex: 1; min-width: 0; font-weight: 600; }
.agdh .agdh-rogue a {
    flex: none; display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px;
    font-size: 12px; font-weight: 700; color: var(--agdh-red); border: 1px solid currentColor;
}
.agdh .agdh-rogue a:hover { background: var(--agdh-red); border-color: var(--agdh-red); color: #fff; }
.agdh-pill {
    flex: none; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
    background: rgba(247, 185, 28, .16); color: var(--agdh-brown);
}
.style-dark .agdh-pill { color: var(--agdh-gold); }
.agdh-payments time { flex: none; width: 92px; text-align: right; font-size: 12px; color: var(--agdh-muted); font-variant-numeric: tabular-nums; }

/* Supporters */
.agdh-supporters { display: grid; gap: 4px; padding: 12px; }
.agdh-supporters li { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px; text-align: center; font-size: 13px; border-radius: 10px; }
.agdh-supporters li:hover { background: var(--agdh-soft); }
.agdh-supporters img { display: block; height: auto; }
.agdh .agdh-supporters .pagelink { display: inline-block; min-height: 24px; line-height: 24px; color: var(--agdh-muted); font-weight: 600; }
.agdh .agdh-supporters .pagelink:hover { color: var(--agdh-text); text-decoration: underline; }

.agdh .agdh-brands { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 8px; padding: 18px 14px; }
.agdh-brands a { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.agdh-brand__logo {
    display: grid; place-items: center; width: 60px; height: 60px; border-radius: 14px;
    font-size: 20px; font-weight: 800; color: #fff; letter-spacing: .02em;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15); transition: transform .15s;
}
.agdh-brands a:hover .agdh-brand__logo { transform: translateY(-2px); }
.agdh-brand__logo { overflow: hidden; background: var(--agdh-ink); }
.agdh-brand__logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.agdh-brand__name { font-size: 13px; font-weight: 700; line-height: 1.2; color: var(--agdh-text); }
.agdh-brands a:hover .agdh-brand__name { color: var(--agdh-brown); }
.agdh-brand__score { padding: 2px 10px; border-radius: 6px; font-size: 12px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.agdh-brand__score--high { background: #1e9e52; }
.agdh-brand__score--mid { background: var(--agdh-gold-dark); }
.agdh-brand__score--low { background: var(--agdh-red); }

/* Partners */
.agdh-partners { margin-top: 28px; }
.agdh-partners__list { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px 40px; padding: 24px 20px; }
.agdh-partners__list img { display: block; max-height: 80px; width: auto; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.agdh-partners__list a:hover img { filter: none; opacity: 1; }

/* Responsive */
@media (max-width: 1100px) {
    .agdh-layout { grid-template-columns: minmax(0, 1fr); }
    .agdh-sidebar { position: static; }
    .agdh-supporters { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
    .agdh-news { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
    .agdh-program { flex-wrap: wrap; padding: 16px; gap: 14px; }
    .agdh-program__info { flex-basis: calc(100% - 82px); }
    .agdh-program__actions { flex-basis: 100%; }
    .agdh-program__actions .agdh-btn { flex: 1 1 0; min-width: 0; padding: 0 10px; }
    .agdh-program__meta .agdh-badge { flex-basis: 100%; }
    .agdh-hero { grid-template-columns: 1fr; padding: 28px 20px; gap: 24px; border-radius: 14px; }
    .agdh-hero h1 { font-size: 28px; }
    .agdh-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .agdh-stats li { flex-direction: column; gap: 2px; padding: 12px; }
    .agdh-stats strong { font-size: 24px; min-width: 0; }
    .agdh-stats span { font-size: 12px; line-height: 1.3; }
    .agdh-split, .agdh-news { grid-template-columns: minmax(0, 1fr); }
    .agdh-split > .agdh-section { height: 520px; }
    .agdh-section__head { padding: 14px 16px; }
    .agdh-section__head h2 { font-size: 15px; }
    .agdh-thread { padding: 12px 16px; }
    .agdh-thread__title { white-space: normal; }
    .agdh-rogue li, .agdh-payments li { padding: 10px 16px; }
    .agdh-payments li { flex-wrap: wrap; }
    .agdh-payments strong { flex-basis: 100%; }
    .agdh-payments time { width: auto; margin-left: auto; }
}
@media (max-width: 480px) {
    .agdh-program__actions .agdh-btn i { display: none; }
    .agdh-hero__actions .agdh-btn { flex: 1 1 100%; }
    .agdh-stats { grid-template-columns: 1fr; }
    .agdh-stats li { flex-direction: row; align-items: baseline; gap: 12px; }
}
