/* FullFlow catalog cards (assets/fullflow/catalog-cards.js). Uses the estimator theme: --brand, --brand-ink, --accent,
   --ink, --muted, --line (estimator.css :root); fallbacks keep the cards readable on a page without them.
   v2 (2026-10-09): crisp cards that lift on hover, a ring + "Selected" badge when chosen, and deck boards drawn with
   procedural wood grain (an SVG feTurbulence tile, data: URI, no requests) over each catalog.js color. */
/* (the tokens on every card and section too: no page put the .ffc scope on them, so the cards had no brand color and
   the "Selected" badge was a see-through outline with a white dot over the card's words: Rebar grid, 2026-10-12) */
.ffc,.ffc-section,.ffc-card,.ffc-counter{--ffc-brand:var(--brand,#173f32);--ffc-line:var(--line,#e3e7ec);--ffc-muted:var(--muted,#56616d);--ffc-ink:var(--ink,#16202a);color:var(--ffc-ink);
  --ffc-ease:cubic-bezier(.2,.7,.2,1);
  /* grain along the boards: dark streaks (alpha from the red noise channel) + light streaks (green channel) */
  --ffc-grain-h:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='180'%3E%3Cfilter id='d' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.003 0.14' numOctaves='4' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.95 0 0 0 -0.40'/%3E%3C/filter%3E%3Cfilter id='l' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.006 0.32' numOctaves='3' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0.8 0 0 -0.46'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23d)'/%3E%3Crect width='100%25' height='100%25' filter='url(%23l)'/%3E%3C/svg%3E");
  --ffc-grain-v:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='520'%3E%3Cfilter id='d' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.14 0.003' numOctaves='4' seed='5' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.95 0 0 0 -0.40'/%3E%3C/filter%3E%3Cfilter id='l' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.32 0.006' numOctaves='3' seed='13' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0.8 0 0 -0.46'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23d)'/%3E%3Crect width='100%25' height='100%25' filter='url(%23l)'/%3E%3C/svg%3E")}
.ffc-section{margin:22px 0 8px}
.ffc-label{font-weight:700;font-size:17px;letter-spacing:-.01em;margin:0 0 10px}
.ffc-help{font-size:14px;color:var(--ffc-muted);margin:-6px 0 10px}
/* one grid rhythm (look-1: 3 cards in a 4-column track, a lone "Fieldstone" or "Black" on a row of its own): the cards
   share the row (auto-fit), and a count that would leave one alone is laid out so the rows come out even */
.ffc-grid{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.ffc-grid.ffc-two{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.ffc-grid.ffc-four{grid-template-columns:repeat(auto-fit,minmax(118px,1fr));gap:10px}
@media (min-width:421px){
  .ffc-grid:not(.ffc-two):has(> :nth-child(5):last-child),.ffc-grid:not(.ffc-two):has(> :nth-child(6):last-child),.ffc-grid:not(.ffc-two):has(> :nth-child(9):last-child){grid-template-columns:repeat(3,minmax(0,1fr))}
  .ffc-grid:not(.ffc-two):has(> :nth-child(7):last-child),.ffc-grid:not(.ffc-two):has(> :nth-child(8):last-child){grid-template-columns:repeat(4,minmax(0,1fr))}
}
/* a row of colors fits on one line on a wide card (six colors + "Not sure yet" = 7, never 6 + 1) */
@media (min-width:760px){
  .ffc-grid.ffc-four:has(> :nth-child(5):last-child){grid-template-columns:repeat(5,minmax(0,1fr))}
  .ffc-grid.ffc-four:has(> :nth-child(6):last-child){grid-template-columns:repeat(6,minmax(0,1fr))}
  .ffc-grid.ffc-four:has(> :nth-child(7):last-child){grid-template-columns:repeat(7,minmax(0,1fr))}
}
@media (max-width:420px){.ffc-grid,.ffc-grid.ffc-four{grid-template-columns:repeat(2,minmax(0,1fr))}.ffc-grid.ffc-two{grid-template-columns:1fr}
  /* an odd last card takes the whole row, its picture as tall as its neighbors' (no empty half row) */
  .ffc-grid:not(.ffc-two) > .ffc-card:last-child:nth-child(odd):not(:first-child){grid-column:1 / -1}
  .ffc-grid:not(.ffc-two) > .ffc-card:last-child:nth-child(odd):not(:first-child) .ffc-media{aspect-ratio:8/3}
  .ffc-grid:not(.ffc-two) > .ffc-compact:last-child:nth-child(odd):not(:first-child) .ffc-media:not(:has(> svg)):not(:has(> img)):not(:has(.ffc-tag)){aspect-ratio:6/1}}
/* a folded phone's 280 px cover screen: the light counters (two 48 px buttons each) one per row */
@media (max-width:340px){.ffc-grid:has(.ffc-counter){grid-template-columns:1fr}}

/* card: whole card is the tap target (min 44px; real cards are much taller) */
.ffc-card{position:relative;display:flex;flex-direction:column;align-items:stretch;gap:0;min-height:44px;min-width:0;padding:0;margin:0;
  border:1.5px solid var(--ffc-line);border-radius:14px;background:#fff;text-align:left;cursor:pointer;overflow:hidden;font:inherit;color:inherit;
  box-shadow:0 1px 2px rgba(16,24,40,.05);transition:border-color .18s var(--ffc-ease),box-shadow .2s var(--ffc-ease),transform .2s var(--ffc-ease)}
@media (hover:hover){
  .ffc-card:hover:not([disabled]):not(.ffc-counter){border-color:color-mix(in srgb,var(--ffc-brand) 40%,var(--ffc-line));transform:translateY(-2px);box-shadow:0 2px 6px rgba(16,24,40,.05),0 14px 28px -12px rgba(16,24,40,.22)}
  .ffc-card:hover:not([disabled]) .ffc-media img{transform:scale(1.03)}
}
.ffc-card:active:not([disabled]):not(.ffc-counter){transform:translateY(0)}
.ffc-card[disabled]{cursor:not-allowed;opacity:.55}
/* selected: ONE look for every choice in the estimators (look-1: four different selected styles on one page): the brand
   border with a 1.5 px ring, a light brand tint under the words, and a 22 px brand check in the top-right corner (the same
   badge as estimator.css .ff-choice). The word "Selected" stays in the badge for screen readers; the button's pressed
   state says it too, so it is shape and state, not color alone. */
.ffc-card[aria-pressed=true],.ffc-counter[data-on=true]{border-color:var(--ffc-brand);box-shadow:0 0 0 1.5px var(--ffc-brand),0 8px 22px -12px color-mix(in srgb,var(--ffc-brand) 70%,transparent)}
.ffc-card[aria-pressed=true]{background:var(--brand-soft,color-mix(in srgb,var(--ffc-brand) 7%,#fff))}
.ffc-counter[data-on=true]{background:var(--brand-soft,color-mix(in srgb,var(--ffc-brand) 7%,#fff))}
.ffc-tick{display:none;position:absolute;top:7px;right:7px;z-index:2;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--ffc-brand);color:var(--brand-ink,#fff);
  font-size:0;line-height:1;overflow:hidden;box-shadow:0 0 0 2px #fff,0 2px 6px rgba(16,24,40,.22)}
.ffc-tick::before{content:"\2713";font-size:12px;font-weight:800;color:var(--brand-ink,#fff)}
.ffc-card[aria-pressed=true] .ffc-tick,.ffc-counter[data-on=true] .ffc-tick{display:grid}

/* media: fixed 4:3 ratio for photos, boards, strips and placeholders, so nothing shifts while images load */
.ffc-media{display:block;position:relative;aspect-ratio:4/3;width:100%;background:#eef1f4;overflow:hidden}
.ffc-media img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s var(--ffc-ease)}
.ffc-tag{position:absolute;left:8px;bottom:8px;background:rgba(17,24,39,.74);color:#fff;font-size:13px;font-weight:600;border-radius:6px;padding:2px 7px;backdrop-filter:blur(2px)}
/* one board color: a sample of boards running across, grain along each board, a dark seam and a lit edge per board */
.ffc-board{--bw:25%;background-color:var(--chip);
  background-image:var(--ffc-grain-h),
    repeating-linear-gradient(180deg,rgba(255,255,255,.16) 0 1px,transparent 1px calc(var(--bw) - 2px),rgba(0,0,0,.42) calc(var(--bw) - 2px) var(--bw)),
    linear-gradient(180deg,rgba(255,255,255,.06) 0 25%,rgba(0,0,0,.07) 25% 50%,rgba(255,255,255,0) 50% 75%,rgba(0,0,0,.1) 75%),
    linear-gradient(180deg,rgba(255,255,255,.1),rgba(0,0,0,.1));
  background-size:520px 180px,100% 100%,100% 100%,100% 100%}
/* a fan of planks (a line card): one board per color, stacked like a sample set */
.ffc-planks{display:flex;flex-direction:column;background:#3b3530}
.ffc-plank{flex:1;position:relative;background-color:var(--chip);background-image:var(--ffc-grain-h),linear-gradient(180deg,rgba(255,255,255,.18) 0 1px,rgba(255,255,255,.04) 1px,rgba(0,0,0,.14));
  background-size:520px 180px,100% 100%;box-shadow:inset 0 -2px 0 rgba(0,0,0,.38)}
.ffc-plank:nth-child(2){background-position:-140px -40px,0 0}.ffc-plank:nth-child(3){background-position:-290px -90px,0 0}.ffc-plank:nth-child(4){background-position:-60px -120px,0 0}.ffc-plank:nth-child(5){background-position:-370px -20px,0 0}.ffc-plank:nth-child(6){background-position:-210px -150px,0 0}
.ffc-plank:last-child{box-shadow:none}
/* several colors side by side (brands, wood species): vertical boards, grain running up each one */
.ffc-strip{display:flex;background:#3b3530}
.ffc-chip{flex:1;background-color:var(--chip);background-image:var(--ffc-grain-v),linear-gradient(90deg,rgba(255,255,255,.16) 0 1px,transparent 1px calc(100% - 2px),rgba(0,0,0,.4) calc(100% - 2px));background-size:180px 520px,100% 100%}
.ffc-chip:nth-child(2){background-position:-50px -130px,0 0}.ffc-chip:nth-child(3){background-position:-110px -260px,0 0}.ffc-chip:nth-child(4){background-position:-20px -380px,0 0}.ffc-chip:nth-child(5){background-position:-90px -60px,0 0}.ffc-chip:nth-child(6){background-position:-140px -300px,0 0}
.ffc-chip:last-child{background-image:var(--ffc-grain-v);background-size:180px 520px}
.ffc-empty{display:flex;align-items:center;justify-content:center;background:repeating-linear-gradient(135deg,#f4f6f7 0 10px,#eef1f3 10px 20px);color:var(--ffc-muted);font-size:14px;font-weight:600;text-align:center;padding:8px}
.ffc-compact .ffc-media{aspect-ratio:3/1}
.ffc-text{display:flex;flex-direction:column;gap:3px;padding:11px 12px 13px}
.ffc-text b{font-size:16px;line-height:1.25;font-weight:700;letter-spacing:-.005em}
.ffc-text > span{font-size:14px;color:var(--ffc-muted);line-height:1.35}
.ffc-card:not(:has(.ffc-media)) .ffc-text{padding:12px;min-height:44px;justify-content:center}

/* rich cards (deck-board lines): brand eyebrow, line name, Good / Better / Best, 2-3 facts and the color row */
.ffc-text > .ffc-eyebrow{font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--ffc-muted)}
.ffc-rich .ffc-text{gap:6px;padding:14px 14px 16px}
.ffc-rich .ffc-text b{font-size:19px;margin-top:-2px}
.ffc-text > .ffc-facts{display:flex;flex-direction:column;gap:4px;margin:2px 0 2px;color:var(--ffc-ink)}
.ffc-fact{position:relative;padding-left:20px;font-size:14px;line-height:1.35;color:#2b3640}
.ffc-fact::before{content:"";position:absolute;left:3px;top:.45em;width:9px;height:5px;border-left:2px solid var(--ffc-brand);border-bottom:2px solid var(--ffc-brand);transform:rotate(-45deg)}
.ffc-text > .ffc-dots{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin-top:4px;font-size:13px;color:var(--ffc-muted)}
.ffc-dots i{width:20px;height:20px;border-radius:50%;background-color:var(--chip);background-image:var(--ffc-grain-h);background-size:260px 90px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.18),0 0 0 2px #fff}
.ffc-grade{position:absolute;left:8px;top:8px;z-index:1;background:rgba(255,255,255,.95);color:#16202a;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;border-radius:999px;padding:4px 10px;box-shadow:0 2px 6px rgba(0,0,0,.2)}
.ffc-grade::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:6px;vertical-align:1px;background:#8a6a3a}
.ffc-grade-better::before{background:#5b6b7a}.ffc-grade-best::before{background:var(--ffc-brand)}

/* fire-rated toggle */
.ffc-check{display:flex;gap:12px;align-items:center;min-height:48px;margin:10px 0 2px;padding:4px 14px;font-size:16px;cursor:pointer;border:1px solid var(--ffc-line);border-radius:12px;background:#fbfbfa}
.ffc-check input{width:22px;height:22px;margin:0;accent-color:var(--ffc-brand);flex:0 0 auto}

/* "More options" expander */
.ffc-more{margin:12px 0 0;border:1px dashed var(--ffc-line);border-radius:12px;padding:0 14px;background:#fff}
.ffc-more summary{cursor:pointer;font-weight:650;color:var(--ffc-brand);min-height:46px;display:flex;align-items:center;list-style-position:inside}
.ffc-more[open]{padding-bottom:14px}
.ffc-more-body .ffc-section:first-child{margin-top:4px}

/* lighting counters */
.ffc-counter{cursor:default}
.ffc-stepper{display:flex;align-items:center;justify-content:space-between;gap:4px;padding:0 10px 12px}
.ffc-step{flex:0 0 auto;width:48px;min-width:44px;height:44px;border:1.5px solid var(--ffc-line);border-radius:12px;background:#fff;font-size:22px;font-weight:700;line-height:1;cursor:pointer;color:var(--ffc-brand);transition:background-color .15s,border-color .15s}
@media (hover:hover){.ffc-step:hover:not([disabled]){background:color-mix(in srgb,var(--ffc-brand) 8%,#fff);border-color:var(--ffc-brand)}}
.ffc-step[disabled]{opacity:.4;cursor:not-allowed}
.ffc-count{min-width:2ch;text-align:center;font-size:18px;font-weight:700;font-variant-numeric:tabular-nums}

@media (prefers-reduced-motion:reduce){.ffc-card,.ffc-media img{transition:none}.ffc-card:hover:not([disabled]){transform:none!important}.ffc-card:hover .ffc-media img{transform:none!important}}
.ffc-text .ffc-placed{display:block;color:var(--brand,#173f32);font-weight:600;margin-top:4px}

/* focus ring: 3 px solid dark ink on every card and control */
.ffc-card:focus-visible,.ffc-step:focus-visible,.ffc-more summary:focus-visible,.ffc-check input:focus-visible{outline:3px solid #1d232b;outline-offset:2px}
/* a short question the homeowner can open (the Materials step is shorter: senior tester Dorothy), a note when a border
   color is not made for the new boards (senior tester Walt) */
.ffc-why{margin:-4px 0 10px}
.ffc-why>summary{cursor:pointer;color:var(--ffc-brand);font-weight:600;font-size:14px;min-height:44px;display:flex;align-items:center;list-style-position:inside}
.ffc-why>.ffc-help{margin:0 0 8px}
.ffc-why.ffc-fire{margin:8px 0 2px}
.ffc-note{margin:0 0 10px;padding:8px 12px;border-radius:10px;background:#fffaeb;border:1px solid #f0c36d;color:#5c4400;font-size:14px;line-height:1.4}
/* side trim: "Pick another color" opens the full color list under the three choices; its card shows a chevron */
.ffc-fascia-colors{margin-top:14px}
.ffc-fascia-colors[hidden]{display:none}
.ffc-card[aria-expanded] .ffc-text b::after{content:"";display:inline-block;width:8px;height:8px;margin-left:10px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-3px) rotate(45deg);transition:transform .2s var(--ffc-ease)}
.ffc-card[aria-expanded=true] .ffc-text b::after{transform:translateY(1px) rotate(-135deg)}
/* a card with no picture (the patio's "Steel in the slab": Rebar grid): the Selected badge sat on top of the title's
   letters (Elijah, 2026-10-12). Without a picture the words move down to make room for it */
.ffc-card:not(:has(.ffc-media)) .ffc-text{padding-right:38px}
/* a small card with a drawing or a photo (a fence's post caps, bots-v5 fence-b #10): the thin 3:1 strip cropped the
   picture to a sliver, so it gets a 4:3 picture like the big cards; a strip of color chips stays thin */
.ffc-compact .ffc-media:has(> svg),.ffc-compact .ffc-media:has(> img),.ffc-compact .ffc-media:has(.ffc-tag){aspect-ratio:4/3}
.ffc-compact .ffc-media > svg{width:100%;height:100%}
/* (the check is a small corner badge on every card now, so it never meets the picture's tag at the bottom left) */
