/* "What is GW Helios" (app/Views/AboutHelios.php): the full introduction on the home page (#about) and on /about,
   the hero button that scrolls to it, the new game engine block, /about's share bar and the compact panel on /referral.
   Colours: --hx-* tokens only, so it follows the dark and light themes. */

/* ---- the home hero's "What is GW Helios?" button (scrolls to #about) */
.ah-herolink {
    display: inline-flex; align-items: center; gap: 14px; margin-top: clamp(18px, 3vh, 26px); padding: 10px 18px 10px 10px;
    text-decoration: none; color: var(--hx-ice); text-align: left;
    background: linear-gradient(90deg, rgba(var(--hx-gold-rgb), .16), rgba(var(--hx-gold-rgb), .05));
    border: 1px solid rgba(var(--hx-gold-rgb), .55); clip-path: var(--hx-shape-sm);
    box-shadow: inset 0 0 22px rgba(var(--hx-gold-rgb), .08);
    transition: background .2s var(--hx-ease), border-color .2s var(--hx-ease), transform .2s var(--hx-ease);
}
.ah-herolink:hover, .ah-herolink:focus-visible { color: var(--hx-ice); border-color: var(--hx-gold); background: linear-gradient(90deg, rgba(var(--hx-gold-rgb), .26), rgba(var(--hx-gold-rgb), .08)); transform: translateY(-1px); }
.ah-herolink__icon {
    width: 42px; height: 42px; flex-shrink: 0; display: grid; place-items: center; font-size: 1.15rem;
    color: var(--hx-gold); background: var(--hx-socket); border: 1px solid rgba(var(--hx-gold-rgb), .5); clip-path: var(--hx-shape-sm);
}
.ah-herolink__text { display: flex; flex-direction: column; line-height: 1.25; }
.ah-herolink__text b { font-family: var(--hx-font-display); font-size: 1.08rem; letter-spacing: .04em; color: var(--hx-gold); }
.ah-herolink__text small { font-size: .82rem; color: var(--hx-text-dim); }
.ah-herolink__arrow { color: var(--hx-gold); animation: ah-nudge 1.8s ease-in-out infinite; }
@keyframes ah-nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ---- the section heading (home): larger than the other home sections, between gilded rules */
.ah-head { text-align: center; max-width: 860px; margin: 0 auto clamp(22px, 3vw, 32px); }
.ah-head__title {
    font-family: var(--hx-font-display); font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: .04em; line-height: 1.1;
    margin: 16px 0 12px; display: flex; align-items: center; justify-content: center; gap: clamp(12px, 2vw, 22px);
}
.ah-head__title::before,
.ah-head__title::after {
    content: ''; flex: 1; max-width: 160px; min-width: 20px; height: 12px;
    background: var(--hx-orn-gem) right center / 12px 12px no-repeat,
                linear-gradient(90deg, transparent, var(--hx-frame-gold)) left center / calc(100% - 14px) 1px no-repeat;
}
.ah-head__title::after {
    background: var(--hx-orn-gem) left center / 12px 12px no-repeat,
                linear-gradient(270deg, transparent, var(--hx-frame-gold)) right center / calc(100% - 14px) 1px no-repeat;
}
.ah-head__lead { color: var(--hx-text-dim); font-size: clamp(1.02rem, 1.8vw, 1.18rem); margin: 0; }

/* ---- the highlight band: the key points, each a link into the section */
.ah-highlights {
    list-style: none; margin: 0 0 clamp(30px, 4vw, 46px); padding: 0;
    display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px;
}
.ah-highlights a {
    height: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 12px 14px; text-align: center;
    text-decoration: none; color: var(--hx-text);
    background: linear-gradient(180deg, rgba(var(--hx-gold-rgb), .10), var(--hx-chip-bg) 70%);
    border: 1px solid rgba(var(--hx-gold-rgb), .35); border-top: 2px solid var(--hx-gold); clip-path: var(--hx-shape-sm);
    transition: background .2s var(--hx-ease), border-color .2s var(--hx-ease), transform .2s var(--hx-ease);
}
.ah-highlights a:hover, .ah-highlights a:focus-visible { color: var(--hx-text); border-color: rgba(var(--hx-gold-rgb), .7); background: linear-gradient(180deg, rgba(var(--hx-gold-rgb), .18), var(--hx-chip-bg) 80%); transform: translateY(-2px); }
.ah-highlights__icon {
    width: 46px; height: 46px; display: grid; place-items: center; font-size: 1.2rem; color: var(--hx-gold);
    background: var(--hx-socket); border: 1px solid rgba(var(--hx-gold-rgb), .45); clip-path: var(--hx-shape-sm);
}
.ah-highlights__text { display: flex; flex-direction: column; gap: 3px; }
.ah-highlights__text b { font-size: .98rem; color: var(--hx-ice); line-height: 1.25; }
.ah-highlights__text small { font-size: .8rem; color: var(--hx-text-dim); line-height: 1.35; }

/* ---- story + goal */
.ah-intro { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(22px, 4vw, 48px); align-items: center; }
.ah-label { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--hx-gold); margin-bottom: 12px; }
.ah-story p { color: var(--hx-text-dim); font-size: 1.04rem; line-height: 1.65; margin: 0 0 14px; max-width: 70ch; }
.ah-story p:last-child { margin-bottom: 0; }
.ah-goal { padding: 26px 26px 24px; text-align: center; }
.ah-goal__icon {
    width: 52px; height: 52px; margin: 0 auto 12px; display: grid; place-items: center;
    font-size: 1.25rem; color: var(--hx-gold); background: var(--hx-socket);
    border: 1px solid rgba(var(--hx-gold-rgb), .45); clip-path: var(--hx-shape-sm);
}
.ah-goal__label { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--hx-gold); margin-bottom: 8px; }
.ah-goal p { margin: 0; color: var(--hx-ice); font-size: 1.08rem; line-height: 1.55; }

/* ---- the new game engine */
.ah-engine { margin-top: clamp(32px, 5vw, 52px); padding: clamp(22px, 3.4vw, 36px); }
.ah-engine__head { text-align: center; max-width: 820px; margin: 0 auto clamp(20px, 3vw, 30px); }
.ah-engine__badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; font-size: .76rem; font-weight: 700;
    letter-spacing: .18em; text-transform: uppercase; color: var(--hx-gold);
    border: 1px solid rgba(var(--hx-gold-rgb), .55); background: rgba(var(--hx-gold-rgb), .1);
}
.ah-engine__title { font-family: var(--hx-font-display); font-size: clamp(1.5rem, 3.4vw, 2.3rem); letter-spacing: .04em; margin: 14px 0 10px; color: var(--hx-ice); }
.ah-engine__lead { color: var(--hx-text-dim); font-size: 1.02rem; line-height: 1.6; margin: 0 0 16px; }
.ah-engine__platforms { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ah-engine__platforms li {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; font-size: .88rem; font-weight: 600;
    color: var(--hx-ice); background: var(--hx-chip-bg); border: 1px solid var(--hx-line);
}
.ah-engine__platforms i { color: var(--hx-accent); }
.ah-engine__platforms li.is-note { color: var(--hx-gold); border-color: rgba(var(--hx-gold-rgb), .4); background: rgba(var(--hx-gold-rgb), .06); }
.ah-engine__platforms li.is-note i { color: var(--hx-gold); }
/* 4 columns: 7 tiles, the last (AFK) spanning two, fill two rows */
.ah-engine__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ah-tile {
    padding: 18px 16px 16px; background: var(--hx-card); border: 1px solid var(--hx-edge-faint); clip-path: var(--hx-shape-sm);
    scroll-margin-top: calc(var(--hx-topbar-h) + 24px);
}
.ah-tile:last-child { grid-column: span 2; border-color: rgba(var(--hx-gold-rgb), .4); background: linear-gradient(135deg, rgba(var(--hx-gold-rgb), .08), var(--hx-card) 60%); }
.ah-tile:target { border-color: var(--hx-gold); box-shadow: inset 0 0 0 1px rgba(var(--hx-gold-rgb), .5); }
.ah-tile__icon {
    width: 44px; height: 44px; margin-bottom: 12px; display: grid; place-items: center; font-size: 1.1rem;
    color: var(--hx-gold); background: var(--hx-socket); border: 1px solid rgba(var(--hx-gold-rgb), .45); clip-path: var(--hx-shape-sm);
}
.ah-tile h3, .ah-tile h4 { font-size: 1.06rem; margin: 0 0 6px; color: var(--hx-ice); }
.ah-tile p { margin: 0; color: var(--hx-text-dim); font-size: .92rem; line-height: 1.55; }

/* ---- sub-headings */
.ah-sub {
    font-family: var(--hx-font-display); font-size: clamp(1.25rem, 2.6vw, 1.7rem); letter-spacing: .04em;
    text-align: center; margin: clamp(36px, 5vw, 56px) 0 clamp(18px, 3vw, 26px); color: var(--hx-ice);
}

/* ---- headline features: 4 columns (the first card spans two, so 7 cards fill two rows), 2 on tablets, 1 on phones */
.ah-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ah-card { padding: 20px 18px 18px; display: flex; flex-direction: column; }
.ah-card:first-child { grid-column: span 2; }
.ah-card__icon {
    width: 44px; height: 44px; margin-bottom: 12px; display: grid; place-items: center; flex-shrink: 0;
    font-size: 1.1rem; color: var(--hx-accent); background: var(--hx-socket);
    border: 1px solid var(--hx-edge-soft); clip-path: var(--hx-shape-sm);
}
.ah-card:first-child .ah-card__icon { color: var(--hx-gold); border-color: rgba(var(--hx-gold-rgb), .45); }
.ah-card h3, .ah-card h4 { font-size: 1.04rem; margin: 0 0 6px; color: var(--hx-ice); }
.ah-card p { margin: 0; color: var(--hx-text-dim); font-size: .92rem; line-height: 1.55; }
.ah-card:first-child h3, .ah-card:first-child h4 { font-size: 1.2rem; }
.ah-card:first-child p { font-size: .98rem; max-width: 60ch; }
.ah-tags { list-style: none; margin: auto 0 0; padding: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ah-tags li {
    padding: 5px 12px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--hx-gold); border: 1px solid rgba(var(--hx-gold-rgb), .4); background: rgba(var(--hx-gold-rgb), .06);
}

/* ---- the "more" list: short lines with an icon, as many columns as fit */
.ah-more { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.ah-more li { display: flex; background: var(--hx-chip-bg); border: 1px solid var(--hx-line); clip-path: var(--hx-shape-sm); }
.ah-more li,
.ah-more li > a {
    gap: 12px; align-items: center; padding: 10px 14px; font-size: .93rem; line-height: 1.4; color: var(--hx-text);
}
.ah-more li.is-link { padding: 0; }
.ah-more li > a { display: flex; flex: 1; text-decoration: none; }
.ah-more li > a:hover { color: var(--hx-accent); }
.ah-more i { width: 20px; flex-shrink: 0; text-align: center; color: var(--hx-accent); }

/* ---- home: links to /about */
.ah-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(28px, 4vw, 40px); }

/* ---- fan-made notice */
.ah-notice {
    display: flex; gap: 14px; align-items: flex-start; margin: clamp(28px, 4vw, 40px) auto 0; max-width: 900px;
    padding: 14px 18px; border: 1px dashed rgba(var(--hx-gold-rgb), .45); background: rgba(var(--hx-gold-rgb), .05);
}
.ah-notice > i { color: var(--hx-gold); font-size: 1.15rem; margin-top: 2px; flex-shrink: 0; }
.ah-notice p { margin: 0; color: var(--hx-text-dim); font-size: .9rem; line-height: 1.6; }
.ah-notice b { color: var(--hx-ice); }

/* ---- /about: the share bar, the closing call to action */
.ah--page { padding-top: clamp(20px, 3vw, 32px); }
.ah-share__lead { color: var(--hx-text-dim); margin: 0 0 14px; }
.ah-share__link { display: flex; gap: 10px; margin-bottom: 14px; }
.ah-share__link .hx-input { flex: 1; min-width: 0; font-weight: 600; color: var(--hx-ice); }
.ah-share__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ah-share__btns .hx-btn i { font-size: 1.05em; }
/* the networks' own icon colours, the same in both themes */
:root { --ah-fb: #1877f2; --ah-wa: #25d366; --ah-ms: #a334fa; --ah-dc: #5865f2; }
:root[data-theme="light"] { --ah-fb: #1877f2; --ah-wa: #1da851; --ah-ms: #8a1fe0; --ah-dc: #5865f2; }
.ah-share__fb i { color: var(--ah-fb); }
.ah-share__wa i { color: var(--ah-wa); }
.ah-share__ms i { color: var(--ah-ms); }
.ah-share__dc i { color: var(--ah-dc); }
.ah-cta { text-align: center; padding: clamp(28px, 5vw, 48px) clamp(18px, 4vw, 40px); }
.ah-cta img { width: 112px; height: auto; margin-bottom: 8px; filter: drop-shadow(0 0 24px color-mix(in srgb, var(--hx-gold) 40%, transparent)); }
.ah-cta h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin-bottom: 10px; }
.ah-cta p { max-width: 520px; margin: 0 auto 22px; }

/* ---- compact panel (/referral) */
.ah--compact .ah-lead { color: var(--hx-text-dim); margin: 0 0 14px; line-height: 1.6; max-width: 80ch; }
.ah-chips { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ah-chips li {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; font-size: .86rem; font-weight: 600;
    color: var(--hx-ice); background: var(--hx-chip-bg); border: 1px solid var(--hx-line);
}
.ah-chips i { color: var(--hx-accent); }
.ah-chips li.is-gold { color: var(--hx-gold); border-color: rgba(var(--hx-gold-rgb), .45); background: rgba(var(--hx-gold-rgb), .07); }
.ah-chips li.is-gold i { color: var(--hx-gold); }
.ah--compact .ah-notice { margin: 16px 0 0; max-width: none; padding: 10px 14px; }
.ah--compact .ah-notice p { font-size: .84rem; }

@media (max-width: 1399.98px) {
    .ah-highlights { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1199.98px) {
    .ah-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ah-engine__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ah-tile:last-child { grid-column: span 2; }
}
@media (max-width: 991.98px) {
    .ah-intro { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767.98px) {
    .ah-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .ah-highlights a { padding: 12px 8px; }
    .ah-highlights__icon { width: 38px; height: 38px; font-size: 1rem; }
    .ah-highlights__text b { font-size: .9rem; }
    .ah-highlights__text small { font-size: .75rem; }
    .ah-share__link { flex-direction: column; }
}
@media (max-width: 575.98px) {
    .ah-herolink { width: 100%; max-width: 360px; }
    .ah-head__title::before, .ah-head__title::after { display: none; }
    .ah-grid, .ah-engine__grid { grid-template-columns: minmax(0, 1fr); }
    .ah-card:first-child, .ah-tile:last-child { grid-column: auto; }
    .ah-engine { padding: 20px 14px; }
    /* phones: icon beside the title, so the cards take less scrolling */
    .ah-card, .ah-tile { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; align-items: start; padding: 16px 14px; }
    .ah-card__icon, .ah-tile__icon { width: 40px; height: 40px; margin: 0; grid-row: span 3; }
    .ah-tile__icon { grid-row: span 2; }   /* a tile has a title and a text only: no empty third row */
    .ah-card h3, .ah-card h4, .ah-card:first-child h3, .ah-card:first-child h4, .ah-tile h3, .ah-tile h4 { font-size: 1rem; margin-top: 2px; }
    .ah-card:first-child p { font-size: .92rem; }
    .ah-tags { padding-top: 12px; }
    .ah-goal { padding: 22px 18px 20px; }
    .ah-story p { font-size: 1rem; }
    .ah-chips li { font-size: .82rem; }
    .ah-share__btns .hx-btn { flex: 1 1 calc(50% - 8px); justify-content: center; }
}

/* 2026-11-04: "Copy the full message" on /about (AboutHeliosShare $fullText) - the button beside its line, the text in a fold. */
.ah-share__full { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid rgba(var(--hx-gold-rgb), .25); }
.ah-share__fullhead { display: flex; align-items: center; justify-content: space-between; gap: .9rem 1.2rem; flex-wrap: wrap; }
.ah-share__fullhead p { margin: 0; display: flex; flex-direction: column; gap: .15rem; flex: 1 1 18rem; }
.ah-share__fullhead b { color: var(--hx-gold); font-family: var(--hx-font-display); letter-spacing: .03em; }
.ah-share__fullhead b i { margin-right: .35rem; }
.ah-share__fullhead small { color: var(--hx-text-dim); font-size: .86rem; }
.ah-share__preview { margin-top: .8rem; }
.ah-share__preview summary { cursor: pointer; color: var(--hx-text-dim); font-size: .88rem; width: max-content; }
.ah-share__preview summary:hover, .ah-share__preview summary:focus-visible { color: var(--hx-gold); }
.ah-share__preview textarea { display: block; width: 100%; margin-top: .6rem; min-height: 14rem; resize: vertical; font-size: .86rem; line-height: 1.5; white-space: pre-wrap; }
@media (max-width: 575.98px) { .ah-share__fullhead .hx-btn { width: 100%; justify-content: center; } }
