/* EPCOT Flower and Garden 2027, card 886.
   A garden center seed rack: kraft paper, leaf green, petal pink and marigold. Each packet is a
   real week with its crowd score and a seed per day, the bloom bars are real festival lengths.
   Dark mode is the greenhouse after hours. */

.fgx {
    --paper: #f5f0e2;
    --paper2: #ebe3cd;
    --card: #fffcf3;
    --ink: #1f2a1c;
    --ink2: #55604d;
    --leaf: #2f6b3a;
    --leaf2: #8fc27a;
    --petal: #c2416b;
    --sun: #e0a526;
    --kraft: #d8c29a;
    --rule: color-mix(in srgb, var(--ink) 20%, transparent);
    --t-quiet: #c4e5c9;
    --t-moderate: #f3e1a0;
    --t-busy: #f3bc95;
    --t-packed: #e894a4;
    --t-none: #e3dccb;
    --t-ink: #1f2a1c;
    --radius: 14px;
    --display: var(--font-display, "Bricolage Grotesque", system-ui, sans-serif);
    --body: var(--font-text, "Hanken Grotesk", system-ui, sans-serif);
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.55;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .fgx {
        --paper: #0f1a12; --paper2: #0b140d; --card: #17261a; --ink: #edf2e4; --ink2: #b8c4ad;
        --leaf: #9fd68a; --leaf2: #3f7a45; --petal: #ff92b4; --sun: #f2c35a; --kraft: #4a3f2a;
        --t-quiet: #1f4a2a; --t-moderate: #4b4219; --t-busy: #5a3422; --t-packed: #5c2132; --t-none: #2a3a2c; --t-ink: #edf2e4;
    }
}
:root[data-theme="dark"] .fgx {
    --paper: #0f1a12; --paper2: #0b140d; --card: #17261a; --ink: #edf2e4; --ink2: #b8c4ad;
    --leaf: #9fd68a; --leaf2: #3f7a45; --petal: #ff92b4; --sun: #f2c35a; --kraft: #4a3f2a;
    --t-quiet: #1f4a2a; --t-moderate: #4b4219; --t-busy: #5a3422; --t-packed: #5c2132; --t-none: #2a3a2c; --t-ink: #edf2e4;
}

.fgx *, .fgx *::before, .fgx *::after { box-sizing: border-box; }
.fgx-wrap { max-width: 1160px; margin-inline: auto; padding-inline: 16px; }
.fgx h1, .fgx h2, .fgx h3 { font-family: var(--display); letter-spacing: -.02em; }
.fgx h3 { line-height: 1.15; }
.fgx :where(a) { color: var(--petal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.fgx :where(a):focus-visible, .fgx summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--sun); border-radius: 8px; }

/* Hero */
.fgx-hero { padding: 40px 0 18px; background: linear-gradient(180deg, var(--paper2), var(--paper)); border-bottom: 2px solid var(--rule); }
.fgx-hero-in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 36px; align-items: center; }
.fgx-kick { display: inline-block; margin: 0; font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--petal); }
.fgx h1 { font-size: clamp(38px, 5.6vw, 74px); line-height: .96; margin: 14px 0 18px; color: var(--leaf); font-weight: 800; }
.fgx h1 span { display: block; color: var(--ink2); font-size: .42em; letter-spacing: -.01em; margin-top: 12px; line-height: 1.15; font-weight: 600; }
.fgx-answer { margin: 0; font-size: 18.5px; max-width: 660px; background: var(--card); border: 2px solid var(--leaf); border-radius: var(--radius); padding: 18px 20px; box-shadow: 6px 6px 0 var(--leaf2); }
.fgx-by { margin: 16px 0 0; font-size: 14.5px; color: var(--ink2); }
.fgx-photo { margin: 0; }
.fgx-frame { border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden; border: 6px solid var(--leaf); aspect-ratio: 4 / 4.4; background: var(--leaf2); }
.fgx-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 30% 60%; }
.fgx-photo figcaption { font-size: 13px; color: var(--ink2); margin-top: 8px; }
.fgx-photo figcaption a { color: inherit; }
.fgx-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; padding-bottom: 8px; }
.fgx-tabs a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14.5px; padding: 7px 13px; border: 2px solid var(--leaf); border-radius: 999px; background: var(--card); }
.fgx-tabs a:hover { background: var(--leaf); color: var(--paper); }

/* Sections */
.fgx-sec { padding: 60px 0; }
.fgx-alt { background: var(--paper2); }
.fgx h2 { font-size: clamp(29px, 4vw, 44px); color: var(--leaf); margin: 0 0 10px; line-height: 1.06; font-weight: 800; max-width: 920px; }
.fgx-lede { max-width: 760px; margin: 0 0 24px; font-size: 18px; color: var(--ink2); }
.fgx-src { font-size: 15px; color: var(--ink2); max-width: 900px; margin: 18px 0 0; }

.fgx-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 0; margin: 0 0 16px; font-size: 14px; font-weight: 600; }
.fgx-legend li { display: inline-flex; align-items: center; gap: 7px; }
.fgx-legend li::before { content: ""; width: 14px; height: 18px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; border: 1.5px solid var(--ink); background: var(--t-none); }
.fgx-legend .quiet::before { background: var(--t-quiet); }
.fgx-legend .moderate::before { background: var(--t-moderate); }
.fgx-legend .busy::before { background: var(--t-busy); }
.fgx-legend .packed::before { background: var(--t-packed); }

/* The seed rack */
.fgx-rack { list-style: none; padding: 16px; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; background: repeating-linear-gradient(0deg, var(--kraft) 0 2px, transparent 2px 92px), var(--paper2); border: 2px solid var(--ink); border-radius: var(--radius); }
.fgx-packet { background: var(--card); border: 2px solid var(--ink); border-radius: 6px 6px 10px 10px; padding: 0 0 12px; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.fgx-packet::before { content: ""; display: block; height: 10px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 6px); opacity: .25; }
.fgx-pk-top { padding: 10px 14px 8px; background: var(--leaf); color: #fffcf3; }
:root[data-theme="dark"] .fgx-pk-top { background: #2f6b3a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fgx-pk-top { background: #2f6b3a; } }
.fgx-packet.is-calm .fgx-pk-top { background: #2a7a5a; }
.fgx-packet.is-busy .fgx-pk-top { background: #a8355b; }
.fgx-pk-top small { font-size: 13px; font-weight: 700; letter-spacing: .04em; opacity: .9; }
.fgx-pk-top h3 { margin: 0; font-size: 19px; color: #fffcf3; }
.fgx-pk-score { display: flex; align-items: baseline; gap: 8px; padding: 10px 14px 4px; }
.fgx-pk-score b { font-family: var(--display); font-size: 34px; line-height: 1; padding: 2px 8px; border-radius: 8px; background: var(--t-none); color: var(--t-ink); }
.fgx-packet.quiet .fgx-pk-score b { background: var(--t-quiet); }
.fgx-packet.moderate .fgx-pk-score b { background: var(--t-moderate); }
.fgx-packet.busy .fgx-pk-score b { background: var(--t-busy); }
.fgx-packet.packed .fgx-pk-score b { background: var(--t-packed); }
.fgx-pk-score small { font-size: 13px; color: var(--ink2); }
.fgx-seeds { display: flex; flex-wrap: wrap; gap: 5px; padding: 6px 14px; }
.fgx-seeds i { width: 22px; height: 28px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: var(--t-none); border: 1.5px solid color-mix(in srgb, var(--t-ink) 50%, transparent); display: grid; place-content: center; font-style: normal; }
.fgx-seeds i span { font-size: 10px; font-weight: 800; color: var(--t-ink); opacity: .7; }
.fgx-seeds i.quiet { background: var(--t-quiet); }
.fgx-seeds i.moderate { background: var(--t-moderate); }
.fgx-seeds i.busy { background: var(--t-busy); }
.fgx-seeds i.packed { background: var(--t-packed); }
.fgx-packet p { margin: 4px 14px 0; font-size: 14px; color: var(--ink2); }
.fgx-flag { align-self: flex-start; margin: 8px 14px 0; font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; }
.fgx-flag.is-calm { background: var(--t-quiet); color: var(--t-ink); }
.fgx-flag.is-busy { background: var(--petal); color: #fff; }
.fgx-packet.is-now { box-shadow: 0 0 0 3px var(--sun); }

/* Bloom bars */
.fgx-bars { display: grid; gap: 14px; max-width: 860px; }
.fgx-bar { display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; }
.fgx-bar b { font-family: var(--display); font-size: 22px; grid-row: span 2; }
.fgx-stem { height: 22px; position: relative; }
.fgx-stem i { position: absolute; left: 0; top: 9px; height: 5px; width: var(--w); background: var(--leaf); border-radius: 3px; }
.fgx-stem i::after { content: ""; position: absolute; right: -11px; top: -8px; width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle, var(--sun) 0 4px, var(--petal) 5px); }
.fgx-bar.is-now .fgx-stem i { background: var(--petal); }
.fgx-bar span { font-size: 15px; color: var(--ink2); }
.fgx-bar strong { color: var(--ink); }

/* Garden Rocks */
.fgx-stage { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px; align-items: start; }
.fgx-times { background: var(--leaf); color: #fffcf3; border-radius: 120px 120px var(--radius) var(--radius); padding: 40px 22px 22px; text-align: center; }
:root[data-theme="dark"] .fgx-times { background: #2f6b3a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fgx-times { background: #2f6b3a; } }
.fgx-times h3 { margin: 0 0 12px; font-size: 20px; color: #fffcf3; }
.fgx-times ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.fgx-times li { font-family: var(--display); font-size: 28px; font-weight: 800; background: rgba(255,252,243,.14); border-radius: 8px; padding: 4px; }
.fgx-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.fgx-facts li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: baseline; border-bottom: 1px solid var(--rule); padding-bottom: 10px; }
.fgx-facts b { font-family: var(--display); font-size: 26px; color: var(--petal); line-height: 1; }

/* Kitchens as plant tags */
.fgx-tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.fgx-tags li { background: var(--card); border: 2px solid var(--leaf); padding: 8px 14px 8px 30px; font-weight: 700; position: relative; border-radius: 999px 8px 8px 999px; }
.fgx-tags li::before { content: ""; position: absolute; left: 11px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--paper2); border: 2px solid var(--leaf); }

/* Topiary beds */
.fgx-beds { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fgx-beds > div { background: var(--card); border: 2px solid var(--leaf); border-radius: var(--radius); padding: 16px 18px; border-bottom: 10px solid var(--leaf2); }
.fgx-beds h3 { margin: 0 0 8px; font-size: 20px; color: var(--leaf); }
.fgx-beds ul { margin: 0; padding-left: 20px; }
.fgx-beds li { margin: 4px 0; }
.fgx-beds li::marker { color: var(--petal); }

/* FAQ */
.fgx-faq { display: grid; gap: 10px; max-width: 900px; }
.fgx-faq details { background: var(--card); border: 2px solid var(--leaf); border-radius: 10px; padding: 4px 18px; }
.fgx-faq summary { cursor: pointer; list-style: none; padding: 10px 0; }
.fgx-faq summary::-webkit-details-marker { display: none; }
.fgx-faq summary h3 { display: inline; margin: 0; font-size: 18.5px; }
.fgx-faq summary::after { content: "+"; float: right; font-weight: 800; font-size: 22px; line-height: 1; color: var(--petal); }
.fgx-faq details[open] summary::after { content: "\2212"; }
.fgx-faq p { margin: 0 0 14px; }

/* Plan links */
.fgx-plan { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fgx-plan a { display: grid; gap: 2px; padding: 14px 16px; background: var(--card); border: 2px solid var(--leaf); border-radius: 10px; text-decoration: none; color: var(--ink); }
.fgx-plan a b { color: var(--leaf); line-height: 1.2; }
.fgx-plan a span { font-size: 14px; color: var(--ink2); }
.fgx-plan a:hover { border-color: var(--petal); }

@media (max-width: 960px) {
    .fgx-hero-in { grid-template-columns: 1fr; }
    .fgx-photo { max-width: 360px; }
    .fgx-rack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fgx-stage { grid-template-columns: 1fr; }
    .fgx-times { max-width: 360px; }
}
@media (max-width: 720px) {
    .fgx { font-size: 16.5px; }
    .fgx-sec { padding: 44px 0; }
    .fgx-rack { padding: 10px; gap: 10px; }
    .fgx-pk-top h3 { font-size: 17px; }
    .fgx-pk-score b { font-size: 27px; }
    .fgx-seeds { gap: 3px; padding: 6px 10px; }
    .fgx-seeds i { width: 18px; height: 23px; }
    .fgx-beds, .fgx-plan { grid-template-columns: 1fr; }
    .fgx-facts li { grid-template-columns: 90px 1fr; }
    .fgx-facts b { font-size: 21px; }
}
@media (max-width: 380px) {
    .fgx-rack { grid-template-columns: 1fr; }
}
