/* ============================================================
   "New to airsoft?" beginner's guide banner (includes/guide-banner.php).
   The one light block on a dark site, in the guide's own paper palette
   (css/beginners-guide.css), so it reads as the guide rather than another
   app feature. Lime is never text on paper (it fails contrast); it only
   fills the tape, the highlighter and the button text on ink.

   Two modes on the collapsible version (.gb--top): full, and .is-min, a
   single bar. js/guide-banner.js animates between them. The toggle sits
   at the same spot in both modes (centred on the bar's height), so only
   its chevron turns.
   ============================================================ */

.gb {
    --paper: #f6f5ef;
    --paper-ink: #0f110b;
    --paper-ink-2: #4a4d42;
    --gb-tape: 10px;
    --gb-mini-h: 108px;
    --gb-toggle: 40px;
    position: relative;
    overflow: hidden;
    background: var(--paper);
    color: var(--paper-ink);
}
/* faint survey grid, fading in from the copy side */
.gb::before {
    content: "";
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(15,17,11,.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15,17,11,.07) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 75%);
            mask-image: linear-gradient(90deg, transparent 20%, #000 75%);
}
/* lime and ink tape along both edges */
.gb__tape {
    position: absolute; left: 0; right: 0; z-index: 1; height: var(--gb-tape);
    background: repeating-linear-gradient(-45deg, var(--lime) 0 14px, var(--paper-ink) 14px 28px);
}
.gb__tape--top { top: 0; }
.gb__tape--bottom { bottom: 0; }

.gb__inner { position: relative; }

/* ── Full ─────────────────────────────────────────── */
.gb__full {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
    padding-block: 92px 84px;
}
.gb__title {
    font-family: var(--font-head);
    font-size: clamp(40px, 5.6vw, 78px);
    font-weight: 700;
    text-transform: uppercase;
    line-height: .94;
    letter-spacing: .5px;
    color: var(--paper-ink);
}
/* highlighter stroke behind the second line */
.gb__title span {
    background: linear-gradient(transparent 50%, var(--lime) 50%, var(--lime) 84%, transparent 84%);
    -webkit-box-decoration-break: clone;
            box-decoration-break: clone;
    padding-inline: 4px;
    margin-inline: -4px;
}
.gb__lead {
    margin-top: 24px;
    max-width: 54ch;
    font-size: 18px;
    color: var(--paper-ink-2);
}
.gb__lead b { color: var(--paper-ink); font-weight: 600; }
.gb__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}
.gb__facts li {
    padding: 6px 11px;
    border: 1px solid rgba(15,17,11,.28);
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--paper-ink);
}

/* ink button with a hard lime offset */
.gb__btn {
    --gb-off: 5px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 32px;
    padding: 17px 30px;
    border-radius: 8px;
    background: var(--paper-ink);
    color: var(--lime);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: var(--gb-off) var(--gb-off) 0 var(--lime), var(--gb-off) var(--gb-off) 0 1px var(--paper-ink);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.gb__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; flex-shrink: 0; transition: transform .2s var(--ease); }
.gb__btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: calc(var(--gb-off) + 3px) calc(var(--gb-off) + 3px) 0 var(--lime), calc(var(--gb-off) + 3px) calc(var(--gb-off) + 3px) 0 1px var(--paper-ink);
}
.gb__btn:hover svg { transform: translateX(3px); }
.gb__btn:active {
    transform: translate(3px, 3px);
    box-shadow: 2px 2px 0 var(--lime), 2px 2px 0 1px var(--paper-ink);
}
.gb__btn:focus-visible, .gb__toggle:focus-visible { outline: 3px solid var(--paper-ink); outline-offset: 4px; }

/* the cover, tilted like it was dropped on the table */
.gb__art {
    justify-self: center;
    width: min(100%, 340px);
}
.gb__art img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
    transform: rotate(4deg);
    box-shadow: 0 34px 60px -24px rgba(15,17,11,.55), 0 8px 18px -8px rgba(15,17,11,.35);
    transition: transform .35s var(--ease);
}
.gb__art:hover img { transform: rotate(2deg) translateY(-4px); }

/* ── Minimised bar ────────────────────────────────── */
.gb__mini {
    display: flex;
    align-items: center;
    gap: 20px;
    height: var(--gb-mini-h);
    padding-right: calc(var(--gb-toggle) + 20px);
}
.gb__thumb { flex-shrink: 0; }
.gb__thumb img {
    display: block;
    width: 44px;
    height: auto;
    border-radius: 2px;
    transform: rotate(-4deg);
    box-shadow: 0 10px 18px -8px rgba(15,17,11,.55);
}
.gb__mini-title {
    margin-right: auto;
    font-family: var(--font-head);
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.gb__btn--sm {
    --gb-off: 4px;
    margin-top: 0;
    padding: 11px 20px;
    font-size: 17px;
}
/* The rest of the line, in body type. Inline beside the title on wide
   screens, its own line below on tablets, dropped on phones. */
.gb__mini-title span {
    margin-left: 6px;
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--paper-ink-2);
}

/* Only one mode shows at a time; without .is-min the bar is hidden. */
.gb__mini, .gb.is-min .gb__full { display: none; }
.gb.is-min .gb__mini { display: flex; }

/* ── Toggle: a skeleton square, same spot in both modes ── */
.gb__toggle {
    position: absolute;
    top: calc((var(--gb-mini-h) - var(--gb-toggle)) / 2);
    right: 24px;   /* matches .wrap's padding, so it lines up with the content edge */
    z-index: 2;
    display: grid;
    place-items: center;
    width: var(--gb-toggle);
    height: var(--gb-toggle);
    padding: 0;
    border: 1.5px solid rgba(15,17,11,.4);
    border-radius: 10px;
    background: transparent;
    color: var(--paper-ink);
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.gb__toggle[hidden] { display: none; }
.gb__toggle:hover { border-color: var(--paper-ink); background: rgba(15,17,11,.05); }
.gb__toggle svg {
    width: 20px; height: 20px;
    fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: square;
    transition: transform .4s var(--ease);
}
.gb.is-min .gb__toggle svg { transform: rotate(180deg); }

/* ── Under the fixed header (where-to-play, airsoft-for-sale) ──
   The nav is fixed at 70px, so the banner clears it and the hero
   that follows drops most of its own clearance. */
.gb--top { margin-top: 70px; }
.gb--top ~ .wtp-hero { padding-top: 60px; }
.gb--top ~ .club-hero { padding-top: 44px; }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 900px) {
    .gb__full { grid-template-columns: minmax(0, 1fr); gap: 44px; padding-block: 64px 60px; }
    .gb__art { order: -1; width: min(62vw, 250px); }
    /* keep the cover clear of the toggle */
    .gb--top .gb__full { padding-top: 78px; }
}
@media (max-width: 1080px) {
    .gb__mini-title span { display: block; margin: 6px 0 0; font-size: 16px; line-height: 1.25; }
}
@media (max-width: 640px) {
    .gb { --gb-mini-h: 92px; --gb-toggle: 38px; }
    .gb--top ~ .wtp-hero { padding-top: 44px; }
    .gb--top ~ .club-hero { padding-top: 32px; }
    .gb__mini { gap: 12px; padding-right: calc(var(--gb-toggle) + 12px); }
    .gb__thumb img { width: 36px; }
    .gb__mini-title { font-size: 21px; }
    .gb__btn--sm { padding: 10px 14px; font-size: 15px; }
    .gb__mini-title span { display: none; }
}
@media (max-width: 480px) {
    .gb__lead { font-size: 16px; }
    .gb__full .gb__btn { width: 100%; justify-content: center; margin-top: 28px; }
}
@media (prefers-reduced-motion: reduce) {
    .gb__btn, .gb__btn svg, .gb__art img, .gb__toggle svg { transition: none; }
}
