/* v10.5.70-forge: Audiogarden Plugins — the Forge look for the plugin pages.
   Everything lives under .agfg (same habit as .agsw in software.css), and the palette
   tokens are declared on .agfg, never on :root, so this dark section cannot leak into
   the rest of the site.

   Palette is the binding one from Audiogarden Forge/docs/DESIGN.md and does not change.
   Ember (#F0752E) is the only accent and means one thing: this is active or modulated.
   Depth is made with text contrast, not with colour.
   --t3/--t4 are for labels and meta only; running text uses --t2 or --text. */

.agfg {
    /* ---- Forge palette, lifted for a web page ----
       In the plugin the window is the darkest thing on the screen and the panels sit on
       top of it. On a page that reads as one black field, so the whole scale moves up by
       the same amount and keeps its hue: the page is grey, a card is lighter than the
       page, and only a display stays at the value DESIGN.md fixes, so the ember curves
       on it still look like a screen. */
    --bg: #201F22;
    --panel: #2B292E;
    --panel2: #252329;
    --disp: #111012;
    --line: rgba(255, 255, 255, .08);
    --line2: rgba(255, 255, 255, .14);
    --text: #E9E6E2;
    --t2: #9C9792;
    --t3: #6A6661;
    --t4: #474441;
    --ember: #F0752E;

    /* ---- derived, all of them ember or plain white at low alpha ---- */
    --ember-ring: rgba(240, 117, 46, .75);
    --ember-halo: rgba(240, 117, 46, .22);
    --ember-wash: rgba(240, 117, 46, .10);
    --fill: rgba(255, 255, 255, .05);
    --fill2: rgba(255, 255, 255, .09);
    /* damage red, sanctioned by DESIGN.md for danger only — used by .agfg-notice--err */
    --danger: #C4564A;

    --font: -apple-system, "Inter", "Helvetica Neue", sans-serif;
    --radius: 12px;
    --radius-band: 9px;
    --wrap: 1180px;

    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding: 36px 20px 60px;
    max-width: 100%;
    overflow-wrap: break-word;
}

.agfg *,
.agfg *::before,
.agfg *::after { box-sizing: border-box; }

/* the browser puts its own margins on figure and dl and they fight the layout below.
   :where() holds this reset at zero weight, so every class rule further down still wins. */
:where(.agfg) :where(figure, figcaption, dl, dd, blockquote) { margin: 0; }

/* every top level block keeps the same measure and stays centred */
.agfg > * {
    max-width: var(--wrap);
    margin-left: auto;
    margin-right: auto;
}

.agfg img,
.agfg svg,
.agfg video,
.agfg canvas { max-width: 100%; }

.agfg img,
.agfg video { height: auto; }

/* the plain elements are written as .agfg :where(tag) — one class worth of weight, so a
   theme cannot reach them but every .agfg-* class below can still override them */

.agfg :where(h1, h2, h3, h4) {
    color: var(--text);
    font-weight: 600;
    letter-spacing: -.015em;
    line-height: 1.18;
    margin: 0 0 10px;
}

.agfg :where(h1) { font-size: clamp(30px, 4.2vw, 46px); }
.agfg :where(h2) { font-size: clamp(22px, 2.6vw, 28px); margin-top: 6px; }
.agfg :where(h3) { font-size: 18px; }
.agfg :where(h4) { font-size: 14px; letter-spacing: .02em; }

.agfg :where(p) { margin: 0 0 12px; color: var(--t2); }
.agfg :where(strong) { color: var(--text); font-weight: 600; }

.agfg :where(a) {
    color: var(--text) !important;
    text-decoration: none;
    border-bottom: 1px solid var(--line2);
    transition: border-color .18s, color .18s;
}

.agfg :where(a):hover { border-bottom-color: var(--ember); }

.agfg :where(hr) {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 40px 0;
}

.agfg :where(ul, ol) { margin: 0 0 12px; padding-left: 20px; color: var(--t2); }

.agfg-overview { }
.agfg-detail { }

/* ------------------------------------------------------------------ hero */

.agfg-hero { padding: 6px 0 34px; }
.agfg-hero--product { padding-top: 0; padding-bottom: 28px; }

.agfg-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ember);
    margin: 0 0 12px !important;
}

.agfg-lead {
    font-size: 17px;
    line-height: 1.6;
    color: var(--t2);
    max-width: 660px;
    margin-bottom: 14px;
}

.agfg-hero--product .agfg-lead { font-size: 18px; }

.agfg-tagline {
    font-size: 16px;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 8px;
}

/* ------------------------------------------------- buttons, badges, strip */

.agfg-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 20px 0 0;
}

.agfg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font: 600 14.5px/1.2 var(--font);
    padding: 11px 20px;
    border-radius: 10px;
    border: 1px solid var(--line2);
    background: var(--fill);
    color: var(--text) !important;
    text-decoration: none !important;
    cursor: pointer;
    white-space: nowrap;
    transition: background .18s, border-color .18s, color .18s, box-shadow .18s;
}

.agfg-btn small {
    font-weight: 400;
    font-size: 12px;
    color: var(--t3);
}

.agfg-btn:hover {
    background: var(--fill2);
    border-color: rgba(255, 255, 255, .18);
}

.agfg-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--ember-halo);
    border-color: var(--ember);
}

.agfg-btn--primary {
    background: var(--ember);
    border-color: var(--ember);
    color: #170B03 !important;
}

.agfg-btn--primary small { color: rgba(23, 11, 3, .72); }

.agfg-btn--primary:hover {
    background: var(--ember);
    border-color: var(--ember);
    box-shadow: 0 0 0 3px var(--ember-halo);
}

.agfg-btn--ghost {
    background: transparent;
    border-color: var(--line2);
    color: var(--t2) !important;
}

.agfg-btn--ghost:hover { color: var(--text) !important; }

.agfg-btn--lg {
    padding: 14px 26px;
    font-size: 16px;
    border-radius: 11px;
}

.agfg-btn.is-disabled,
.agfg-btn[disabled] {
    opacity: .45;
    cursor: default;
    pointer-events: none;
}

.agfg-badge {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--t2);
    background: var(--fill);
    border: 1px solid var(--line2);
    border-radius: 99px;
    padding: 3px 10px;
    white-space: nowrap;
    vertical-align: middle;
}

/* beta is a live state, so it earns the ember rule — not decoration */
.agfg-beta-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 14px;
    background: var(--panel2);
    border: 1px solid var(--line);
    border-left: 2px solid var(--ember);
    border-radius: 8px;
    padding: 11px 16px;
    font-size: 13.5px;
    color: var(--t2);
    margin-bottom: 26px;
}

.agfg-beta-strip strong {
    color: var(--ember);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}

/* ------------------------------------------------------- overview: cards */

.agfg-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 18px;
    margin: 0 0 40px;
}

.agfg-card {
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    min-width: 0;
}

.agfg-card h3 { margin-bottom: 4px; }
.agfg-card p { font-size: 14px; }
.agfg-card .agfg-actions { margin-top: auto; padding-top: 14px; }

.agfg-card-shot {
    margin: -22px -22px 18px;
    background: var(--disp);
    border-bottom: 1px solid var(--line);
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
    line-height: 0;
}

.agfg-card-shot img,
.agfg-card-shot svg {
    display: block;
    width: 100%;
    height: auto;
}

.agfg-points {
    list-style: none;
    margin: 6px 0 14px;
    padding: 0;
    display: grid;
    gap: 6px;
    font-size: 14px;
    color: var(--t2);
}

.agfg-points li {
    display: grid;
    grid-template-columns: 16px 1fr;
    align-items: baseline;
}

.agfg-points li::before {
    content: "–";
    color: var(--t4);
}

.agfg-platforms {
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--t3);
    margin: 0 0 10px;
}

.agfg-choose {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0;
    background: var(--panel2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 0 0 40px;
}

.agfg-choose > * {
    padding: 22px;
    border-left: 1px solid var(--line);
    min-width: 0;
}

.agfg-choose > *:first-child { border-left: 0; }
.agfg-choose h3 { font-size: 16px; }
.agfg-choose p { font-size: 14px; margin-bottom: 0; }

.agfg-why {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 24px 28px;
    border-top: 1px solid var(--line);
    padding-top: 26px;
    margin: 0 0 44px;
}

.agfg-why > * { min-width: 0; }
.agfg-why h3 { font-size: 16px; margin-bottom: 6px; }
.agfg-why p { font-size: 14px; margin-bottom: 0; }

/* ------------------------------------------------- detail: shots, features */

.agfg-shot {
    background: var(--disp);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px;
    margin: 0 0 34px;
    line-height: 0;
}

.agfg-shot img,
.agfg-shot svg {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.agfg-shot figcaption {
    line-height: 1.5;
    font-size: 12px;
    color: var(--t3);
    padding: 10px 4px 2px;
}

.agfg-features {
    display: grid;
    gap: 44px;
    margin: 0 0 48px;
}

.agfg-feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 30px;
    align-items: center;
}

.agfg-feature-text { min-width: 0; }
.agfg-feature-text h3 { margin-bottom: 8px; }
.agfg-feature-text p { font-size: 15px; }
.agfg-feature-text .agfg-points { font-size: 14px; }

.agfg-feature-shot {
    min-width: 0;
    background: var(--disp);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px;
    line-height: 0;
}

.agfg-feature-shot img,
.agfg-feature-shot svg {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.agfg-feature-shot figcaption {
    line-height: 1.5;
    font-size: 12px;
    color: var(--t3);
    padding: 10px 4px 2px;
}

/* flipped puts the picture first on wide screens */
.agfg-feature.is-flipped .agfg-feature-text { order: 2; }
.agfg-feature.is-flipped .agfg-feature-shot { order: 1; }

.agfg-betabox {
    background: var(--panel);
    border: 1px solid var(--line2);
    border-radius: var(--radius);
    padding: 26px;
    margin: 0 0 40px;
}

.agfg-betabox h2 { margin-bottom: 8px; }
.agfg-betabox p { max-width: 620px; }

/* ------------------------------------------------------------- module sheet */

.agfg-modules { margin: 0 0 48px; }

.agfg-sheet-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 12px;
    margin: 0 0 16px;
}

.agfg-sheet-head svg,
.agfg-sheet-head img {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
}

.agfg-sheet-head strong {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .17em;
    text-transform: uppercase;
    color: var(--text);
}

.agfg-sheet-head em {
    font-style: normal;
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--t3);
}

.agfg-sheet-head p {
    margin: 0 0 0 auto;
    max-width: 560px;
    text-align: right;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--t2);
}

.agfg-sheet {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px 14px;
}

/* one cell = the module card plus its description underneath */
.agfg-sheet > * {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.agfg-band {
    background: var(--disp);
    border: 1px solid var(--line);
    border-radius: var(--radius-band);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.agfg-band-head {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 34px;
    padding: 5px 14px;
    flex-shrink: 0;
}

.agfg-cap {
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--t3);
    white-space: nowrap;
}

.agfg-tabs {
    display: flex;
    gap: 2px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.agfg-tabs::-webkit-scrollbar { display: none; }

.agfg-tab {
    font-size: 11px;
    line-height: 1.3;
    padding: 3px 8px;
    border-radius: 4px;
    color: var(--t3);
    white-space: nowrap;
}

.agfg-tab.on {
    background: rgba(255, 255, 255, .06);
    color: var(--text);
}

.agfg-band-right {
    margin-left: auto;
    display: flex;
    gap: 12px;
    font-size: 10.5px;
    color: var(--t3);
    white-space: nowrap;
}

.agfg-band-body {
    flex: 1;
    display: flex;
    align-items: stretch;
    min-width: 0;
}

.agfg-gfx {
    position: relative;
    flex: 0 0 47%;
    min-width: 0;
    border-right: 1px solid var(--line);
    overflow: hidden;
}

/* keeps the drawing box on the 286 x 238 proportion of the template
   while it stretches to whatever width the card has */
.agfg-gfx::before {
    content: "";
    display: block;
    padding-top: 83.2%;
}

.agfg-gfx svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.agfg-ctrl {
    flex: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 8px;
    align-content: flex-start;
    padding: 15px 14px;
}

.agfg-knob {
    text-align: center;
    min-width: 0;
}

.agfg-dial {
    width: 42px;
    height: 42px;
    margin: 0 auto;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 30%, #2C2A2C, #1A191B 72%);
    border: 1px solid rgba(255, 255, 255, .07);
    position: relative;
}

.agfg-dial i {
    position: absolute;
    left: calc(50% - 1px);
    top: 5px;
    width: 2px;
    height: 12px;
    border-radius: 1px;
    background: var(--t2);
    transform-origin: 50% 16px;
    transform: rotate(var(--rot, 0deg));
}

.agfg-klab {
    font-size: 11px;
    line-height: 1.25;
    color: var(--t2);
    margin-top: 6px;
    overflow-wrap: break-word;
}

.agfg-kval {
    font-size: 10.5px;
    line-height: 1.25;
    color: var(--t3);
    margin-top: 1px;
    overflow-wrap: break-word;
}

.agfg-knob.lit .agfg-dial { box-shadow: 0 0 0 1.5px var(--ember-ring); }
.agfg-knob.lit .agfg-dial i { background: var(--text); }
.agfg-knob.lit .agfg-kval { color: var(--ember); }

.agfg-seg {
    grid-column: 1 / -1;
    justify-self: start;
    display: flex;
    flex-wrap: wrap;
    border: 1px solid var(--line2);
    border-radius: 5px;
    overflow: hidden;
    max-width: 100%;
}

.agfg-seg > * {
    padding: 4px 10px;
    font-size: 11px;
    line-height: 1.3;
    color: var(--t3);
    white-space: nowrap;
}

.agfg-seg > *.on {
    background: rgba(255, 255, 255, .07);
    color: var(--text);
}

.agfg-mod-desc {
    margin: 10px 2px 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--t2);
}

/* ------------------------------------------------------- specs, table, faq */

.agfg-specs {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    border-top: 1px solid var(--line);
    font-size: 14px;
    margin: 0 0 40px;
}

.agfg-specs dt {
    color: var(--t3);
    padding: 11px 14px 11px 0;
    border-bottom: 1px solid var(--line);
}

.agfg-specs dd {
    margin: 0;
    color: var(--text);
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}

.agfg-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin: 0 0 40px;
    color: var(--t2);
}

.agfg-table th,
.agfg-table td {
    text-align: left;
    padding: 10px 14px 10px 0;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.agfg-table th {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--t3);
    white-space: nowrap;
}

.agfg-table td strong { color: var(--text); }

.agfg-faq { margin: 0 0 40px; }

.agfg-faq details {
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
}

.agfg-faq summary {
    cursor: pointer;
    list-style: none;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.agfg-faq summary::-webkit-details-marker { display: none; }

.agfg-faq summary::after {
    content: "+";
    margin-left: auto;
    color: var(--t3);
    font-weight: 400;
    font-size: 17px;
    line-height: 1;
}

.agfg-faq details[open] summary::after { content: "\2013"; }
.agfg-faq details p { margin: 10px 0 0; font-size: 14.5px; }

/* --------------------------------------------------------- forms, notices */

.agfg-form {
    display: grid;
    gap: 14px;
    max-width: 560px;
}

.agfg-form label {
    display: grid;
    gap: 6px;
    font-size: 13px;
    color: var(--t2);
}

.agfg-field,
.agfg-form input[type="text"],
.agfg-form input[type="email"],
.agfg-form input[type="url"],
.agfg-form input[type="tel"],
.agfg-form input[type="number"],
.agfg-form input[type="password"],
.agfg-form select,
.agfg-form textarea {
    width: 100%;
    font: 15px/1.4 var(--font);
    color: var(--text);
    background: var(--disp);
    border: 1px solid var(--line2);
    border-radius: 8px;
    padding: 11px 13px;
    appearance: none;
    transition: border-color .18s, box-shadow .18s;
}

.agfg-form textarea {
    min-height: 120px;
    resize: vertical;
}

.agfg-form ::placeholder { color: var(--t4); }

.agfg-field:focus,
.agfg-form input:focus,
.agfg-form select:focus,
.agfg-form textarea:focus {
    outline: none;
    border-color: var(--ember);
    box-shadow: 0 0 0 3px var(--ember-halo);
}

.agfg-check {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: var(--t2);
}

.agfg-check input[type="checkbox"],
.agfg-check input[type="radio"] {
    margin: 3px 0 0;
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    accent-color: var(--ember);
}

.agfg-check a { color: var(--t2) !important; }

.agfg-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--panel2);
    border: 1px solid var(--line);
    border-left: 2px solid var(--line2);
    border-radius: 8px;
    padding: 11px 15px;
    font-size: 14px;
    color: var(--t2);
    margin: 0 0 18px;
}

.agfg-notice::before {
    content: "·";
    color: var(--t3);
    font-weight: 700;
    line-height: 1.45;
}

.agfg-notice--ok {
    border-left-color: var(--text);
    color: var(--text);
}

.agfg-notice--ok::before {
    content: "\2713";
    color: var(--text);
}

.agfg-notice--warn { border-left-color: var(--ember); }

.agfg-notice--warn::before {
    content: "!";
    color: var(--ember);
}

.agfg-notice--err {
    border-left-color: var(--danger);
    color: var(--text);
}

.agfg-notice--err::before {
    content: "\00D7";
    color: var(--danger);
}

/* ------------------------------------------------------------------ foot */

.agfg-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 20px;
    border-top: 1px solid var(--line);
    margin-top: 48px;
    padding-top: 20px;
    font-size: 12.5px;
    color: var(--t3);
}

.agfg-foot a { color: var(--t2) !important; border-bottom-color: transparent; }
.agfg-foot a:hover { color: var(--text) !important; border-bottom-color: var(--line2); }

/* --------------------------------------------------------- responsiveness */

/* two module cards side by side once there is room for them */
@media (min-width: 1000px) {
    .agfg-sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* between the breakpoints one card fills the whole row and grows tall,
   so the knobs sit in the middle of it instead of hanging at the top */
@media (min-width: 901px) and (max-width: 999px) {
    .agfg-ctrl { align-content: center; }
}

@media (max-width: 900px) {
    .agfg { padding: 28px 16px 48px; }

    /* single column everywhere, and the module card stacks its two halves */
    .agfg-sheet { grid-template-columns: minmax(0, 1fr); }
    .agfg-cards { grid-template-columns: minmax(0, 1fr); }
    .agfg-why { grid-template-columns: minmax(0, 1fr); gap: 20px; }

    .agfg-feature {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    /* on a phone the text always comes before the picture, flipped or not */
    .agfg-feature .agfg-feature-text,
    .agfg-feature.is-flipped .agfg-feature-text { order: 1; }

    .agfg-feature .agfg-feature-shot,
    .agfg-feature.is-flipped .agfg-feature-shot { order: 2; }

    .agfg-band-body { display: block; }

    .agfg-gfx {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        width: 100%;
    }

    .agfg-gfx::before { padding-top: 62%; }

    .agfg-ctrl { padding: 14px 12px; gap: 12px 6px; }

    .agfg-dial { width: 36px; height: 36px; }

    .agfg-dial i {
        top: 4px;
        height: 11px;
        transform-origin: 50% 14px;
    }

    .agfg-klab { font-size: 10.5px; margin-top: 5px; }
    .agfg-kval { font-size: 10px; }

    .agfg-sheet-head p {
        margin-left: 0;
        text-align: left;
        max-width: none;
    }

    .agfg-specs { grid-template-columns: minmax(0, 1fr); }
    .agfg-specs dt { border-bottom: 0; padding-bottom: 0; }
    .agfg-specs dd { padding-top: 2px; }

    .agfg-choose > * { border-left: 0; border-top: 1px solid var(--line); }
    .agfg-choose > *:first-child { border-top: 0; }
}

@media (max-width: 620px) {
    .agfg-band-right { display: none; }
    .agfg-card { padding: 18px; }
    .agfg-card-shot { margin: -18px -18px 14px; }
    .agfg-betabox { padding: 20px; }
    .agfg-actions .agfg-btn { flex: 1 1 auto; justify-content: center; }

    /* the table scrolls inside itself so the page never scrolls sideways */
    .agfg-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* --------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
    .agfg,
    .agfg *,
    .agfg *::before,
    .agfg *::after {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}

/* ----------------------------------------------------------------- print */

@media print {
    .agfg {
        --bg: #ffffff;
        --panel: #ffffff;
        --panel2: #ffffff;
        --disp: #ffffff;
        --line: #d8d5d2;
        --line2: #b8b4b0;
        --text: #141313;
        --t2: #3c3a38;
        --t3: #5d5a57;
        --t4: #7c7874;
        --fill: transparent;
        --fill2: transparent;
        background: #fff;
        color: #141313;
        padding: 0;
    }

    .agfg a { color: #141313 !important; border-bottom: 0; }
    .agfg-actions,
    .agfg-form,
    .agfg-betabox .agfg-btn { display: none; }

    .agfg-sheet { grid-template-columns: minmax(0, 1fr); }

    .agfg-band,
    .agfg-card,
    .agfg-feature {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .agfg-dial { background: #f1efed; }
}

/* =========================================================================
   v10.5.71 — the pieces the pages added after the first pass: the way back,
   the module list under the sheet, the requirements block and the beta
   sign-up. Same tokens, same habits; nothing here introduces a colour.
   ========================================================================= */

/* ------------------------------------------------------------- small type */

.agfg-back {
    font-size: 13px;
    margin: 0 0 14px;
}

.agfg-back a {
    color: var(--t2) !important;
    border-bottom-color: transparent;
}

.agfg-back a:hover { color: var(--text) !important; }

.agfg-price-note {
    font-size: 12.5px;
    color: var(--t3);
    align-self: center;
    margin: 0;
}

.agfg-actions--hero {
    align-items: center;
    margin: 0 0 32px;
}

/* a card with no screenshot yet says the name instead of showing a hole */
/* a plugin whose shot is still to come keeps the box, and says nothing in it */
.agfg-card-shot--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    background: var(--disp);
}

.agfg-badge--wip {
    margin-left: 8px;
    vertical-align: middle;
    color: var(--t3);
    border-color: var(--line2);
    background: transparent;
}

/* --------------------------------------------------- module list (words) */

.agfg-modlist {
    margin: 22px 0 0;
    border-top: 1px solid var(--line);
}

.agfg-modrow {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 4px 18px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.agfg-modname {
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text);
    padding-top: 2px;
}

.agfg-moddesc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--t2);
    min-width: 0;
}

/* ---------------------------------------------------------- narrow screens */

@media (max-width: 900px) {
    .agfg-dev-body { grid-template-columns: minmax(0, 1fr); padding: 22px; }
    .agfg-modrow { grid-template-columns: minmax(0, 1fr); }
    .agfg-modname { padding-top: 0; }
}

@media (max-width: 620px) {
    .agfg-actions--hero { align-items: stretch; }
    .agfg-price-note { align-self: flex-start; }
    .agfg-cards--stack .agfg-card > :not(.agfg-card-shot) { margin-left: 18px; margin-right: 18px; }
}

/* the card is a flex column, so a badge inside it must not stretch across it */
.agfg-card > .agfg-badge { align-self: flex-start; }

/* ------------------------------------------- the two plugins, one under the other */

.agfg-cards--stack {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
}

/* narrower than the text column, so the shot is not lost in an empty card */
.agfg-cards--stack .agfg-card {
    padding: 0 0 22px;
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
}

.agfg-cards--stack .agfg-card > :not(.agfg-card-shot) {
    margin-left: 22px;
    margin-right: 22px;
}

.agfg-cards--stack h2 { font-size: 22px; margin: 18px 0 6px; }
.agfg-cards--stack .agfg-tagline { font-size: 15px; font-weight: 400; color: var(--t2); }
.agfg-cards--stack .agfg-actions { margin-top: 14px; padding-top: 0; }

/* both shots sit in the same box, whatever proportions the window has */
a.agfg-card-shot {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    height: clamp(190px, 31vw, 372px);
    padding: 16px;
    border-bottom: 1px solid var(--line);
    border-radius: var(--radius) var(--radius) 0 0;
    line-height: 0;
}

a.agfg-card-shot img {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

a.agfg-card-shot:hover { border-bottom-color: var(--ember); }
a.agfg-card-shot.agfg-card-shot--empty { min-height: 0; }

/* ------------------------------------------------ the line that closes the page */

.agfg-dev {
    border-top: 1px solid var(--line);
    padding-top: 24px;
    margin: 4px 0 40px;
    scroll-margin-top: 24px;
}

.agfg-dev summary {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    cursor: pointer;
    list-style: none;
    font-size: 15.5px;
    color: var(--t2);
}

.agfg-dev summary::-webkit-details-marker { display: none; }

.agfg-dev summary::after {
    content: "\2192";
    color: var(--ember);
    transition: transform .18s;
}

.agfg-dev[open] summary::after { content: "\2191"; }
.agfg-dev summary:hover { color: var(--text); }

.agfg-dev-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 26px 40px;
    align-items: start;
    background: var(--panel2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    margin-top: 20px;
}

.agfg-dev-text { min-width: 0; }
.agfg-dev-text h3 { font-size: 16px; margin: 20px 0 6px; }
.agfg-dev-text p { font-size: 14.5px; }
.agfg-dev-text .agfg-points { font-size: 14px; }

/* --------------------------------------------------------- the sign-up form */

.agfg-beta-done { background: var(--panel); }
.agfg-beta-done .agfg-actions { padding-top: 10px; }
.agfg-inline-form { margin: 0; }

.agfg-join {
    max-width: none;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px 16px;
    align-content: start;
}

.agfg-join .agfg-wide { grid-column: 1 / -1; }
.agfg-join .agfg-actions { align-items: center; }

.agfg-flabel {
    display: block;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--t3);
    margin-bottom: 6px;
}

.agfg-check .agfg-flabel { margin-bottom: 0; }

.agfg-check-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
}

.agfg-check-row .agfg-check { margin: 0; }
