/* brisk. Direction D: free.brisk.vision archive. Sits on top of studio.css
   (and guide.css on the two open guide pages). */

/* sub-brand next to the logo: this is a separate host */
.nav-logo { gap: 8px; text-decoration: none; }
.nav-sub { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
@media (max-width: 420px) { .nav-sub { display: none; } }

/* ---------- archive hero ---------- */
.fa-hero { position: relative; padding: 148px 0 52px; text-align: center; overflow: hidden; }
.fa-hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(var(--grid) 1.2px, transparent 1.3px); background-size: 20px 20px; -webkit-mask-image: radial-gradient(ellipse 60% 75% at 50% 35%, #000 25%, transparent 75%); mask-image: radial-gradient(ellipse 60% 75% at 50% 35%, #000 25%, transparent 75%); pointer-events: none; }
.fa-hero > .wrap { position: relative; }
.fa-hero .h1 { margin: 14px auto 0; max-width: 16ch; text-wrap: balance; }
.fa-hero .lead { margin: 18px auto 0; max-width: 52ch; }
.fa-count { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; height: 30px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 13px; color: var(--ink-2); }
.fa-count i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
@media (max-width: 860px) { .fa-hero { padding-top: 116px; } }

/* ---------- resource grid ---------- */
.fa-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.fa-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; color: inherit; text-decoration: none; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.fa-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--ink); }
.fa-body { padding: 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
/* text-only tiles, like the guide library: no cover art to maintain */
.fa-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.fa-badge { font-family: var(--f-display); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 4px; background: var(--accent-soft); color: #006653; }
:root[data-theme="dark"] .fa-badge { color: var(--accent); }
.fa-type { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.fa-body .h3 { font-family: var(--f-display); font-weight: 800; font-size: 21px; line-height: 1.18; letter-spacing: -.03em; color: var(--ink); margin-bottom: 6px; }
.fa-desc { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
.fa-go { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); margin-top: auto; }
.fa-go .textlink { font-size: 14px; }

/* the calculator spans the row, with a small bar illustration */
.fa-card--wide { grid-column: 1 / -1; flex-direction: row; }
.fa-card--wide .fa-body { justify-content: center; padding: 28px clamp(22px, 3vw, 36px); }
.fa-viz { flex: 0 0 44%; position: relative; background: var(--panel); color: var(--panel-ink); padding: 28px clamp(22px, 3vw, 36px); display: flex; flex-direction: column; justify-content: center; gap: 14px; overflow: hidden; }
.fa-viz::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 18px 18px; }
.fa-viz > * { position: relative; }
.fa-bar { display: grid; gap: 7px; }
.fa-bar span { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--panel-muted); }
.fa-bar em { font-style: normal; }
.fa-bar em:first-child { color: var(--panel-ink); }
.fa-bar i { display: block; height: 8px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
.fa-bar i::after { content: ''; display: block; height: 100%; width: var(--w); background: var(--c, var(--panel-ink)); border-radius: inherit; transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease) .2s; }
.fa-card.is-in .fa-bar i::after, html.rm .fa-bar i::after { transform: none; }
.fa-viz .mono { color: var(--panel-muted); text-transform: uppercase; }
.fa-viz .label { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--panel-muted); }
@media (max-width: 760px) {
  .fa-grid { grid-template-columns: 1fr; }
  .fa-card--wide { flex-direction: column; }
  .fa-viz { flex-basis: auto; }
}

/* ---------- guide library band ---------- */
.fa-more { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; padding: clamp(24px, 4vw, 40px); }
.fa-more .h3 { font-size: 22px; margin-top: 10px; }
.fa-more p { margin-top: 8px; color: var(--ink-2); font-size: 15px; max-width: 48ch; }
.fa-more .btn { margin-top: 18px; }
@media (max-width: 760px) { .fa-more { grid-template-columns: 1fr; } }

/* ---------- newsletter card ---------- */
.fa-news { display: flex; gap: 24px; align-items: center; justify-content: space-between; padding: clamp(22px, 3vw, 32px); }
.fa-news .h3 { font-size: 19px; margin-top: 8px; }
.fa-news p { margin-top: 6px; color: var(--ink-2); font-size: 14.5px; max-width: 56ch; }
.fa-news .btn { flex: none; }
@media (max-width: 760px) { .fa-news { flex-direction: column; align-items: flex-start; } }

.fa-stack { display: grid; gap: 16px; }

/* ---------- open guide pages ---------- */
.gd-open-pill { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; vertical-align: middle; }
.gd-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.gd-body code { font-family: var(--f-mono); font-size: .9em; background: var(--accent-soft); color: var(--ink); padding: 1px 5px; border-radius: 3px; }
.gd-body > .gd-scroll, .gd-body > .gd-prompt, .gd-body > .gd-note { margin-top: 16px; }
.gd-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.gd-calc { padding: 22px 24px; display: grid; gap: 6px; min-width: 0; }
@media (max-width: 520px) { .gd-actions .btn { white-space: normal; height: auto; min-height: 42px; padding-block: 10px; text-align: center; width: 100%; justify-content: center; } }
.gd-calc .h3 { font-size: 18px; }
.gd-calc p { color: var(--ink-2); font-size: 14.5px; }
