/* Florida Finds (editorial Amazon picks). Classes are prefixed ff-.
   Built only from the site's tokens (styles/blog.css, Brand Package v1.0 since
   2026-11-21): Deep Navy, the accessible teal, Sand Cream, white, Cardo
   headings (Regular), the 8px surface radius and the warm hairline border; no
   shadows. Every value is a --ff-*
   custom property on .ff-scope (with fallbacks for the admin dashboard, which
   does not load blog.css). The two group variants share ONE set of
   typographic rules; "list" only overrides properties and layout.

   Container breakpoints (container queries cannot read custom properties, so
   they are listed here, in one place):
     ff-group >= 600px  finds page: two columns
     ff-card  >= 460px  card variant: photo floats left of the text
     ff-card  >= 480px  list variant: 96px thumbnail column (64px below)

   blog.css rules deliberately overridden (the module and the finds page sit
   inside <article>): article p, article h2, article ul, article li. Every ff-
   element those reach sets font-size, line-height, margin and colour with ONE
   class (0,1,0 beats 0,0,2); per-article <style> rules are class-qualified
   and never match ff- classes. */

.ff-scope {
  --ff-navy: var(--navy, #0C203B);
  --ff-teal: var(--teal, #326C73);
  --ff-coral-deep: var(--coral-deep, #326C73);
  --ff-cream: var(--cream, #F7F1E3);
  --ff-white: var(--white, #ffffff);
  --ff-border: #E4DDCD;
  --ff-rule: #E4DDCD;
  --ff-text-soft: #4A5869;
  --ff-hover-fill: var(--ff-cream);
  --ff-underline: rgba(50, 108, 115, 0.45);
  --ff-underline-soft: rgba(12, 32, 59, 0.3);
  --ff-shadow: none;
  --ff-radius: var(--radius-md, 8px);
  --ff-radius-sm: var(--radius-sm, 4px);
  --ff-heading: var(--font-display, "Cardo", Georgia, serif);
  /* card typography (the list variant overrides these values only) */
  --ff-eyebrow-size: 12.5px;
  --ff-eyebrow-gap: 6px;
  --ff-name-size: 1.25rem;
  --ff-name-gap: 8px;
  --ff-desc-size: 0.97rem;
  --ff-desc-lh: 1.6;
  --ff-desc-gap: 12px;
  --ff-offer-size: 0.9375rem;
  --ff-thumb: 168px;
  color: var(--ff-navy);
}

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

/* ---------------------------------------------------------------- group + disclosure */

.ff-group { container: ff-group / inline-size; }

/* Body-readable, normal weight, never the 11px caption style, never hidden. */
.ff-disclosure,
.ff-disclosure--short {
  margin: 0 0 14px;
  font-size: 0.9375rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1.55;
  color: var(--ff-navy);
}

/* The finds page's first full disclosure: a panel, still body text. */
.ff-disclosure--lead {
  margin: 0 0 18px;
  padding: 12px 16px;
  font-size: 1rem;
  background: var(--ff-cream);
  border: 1px solid var(--ff-border);
  border-left: 3px solid var(--ff-teal);
  border-radius: 0 var(--ff-radius) var(--ff-radius) 0;
}

.ff-disclosure-link {
  color: var(--ff-teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ff-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.ff-item {
  margin: 0;
  padding: 0;
  font-size: 1rem;
  line-height: 1.5;
  display: flex;
  container: ff-card / inline-size;
}

/* Finds page, two columns. Row plan decided by the renderer in reading order
   (render-fhv.js): photo items and a text item left alone just before one
   take the whole row; a pair of similar-height text items is drawn at equal
   height with the link at the bottom; any other pair keeps its own heights. */
@container ff-group (min-width: 600px) {
  .ff-group[data-ff-surface="finds_page"] .ff-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
  .ff-group[data-ff-surface="finds_page"] :is(.ff-item--media, .ff-item--span, .ff-item:only-child) { grid-column: 1 / -1; }
  .ff-group[data-ff-surface="finds_page"] .ff-item--even { align-self: stretch; }
  .ff-group[data-ff-surface="finds_page"] .ff-item--even .ff-card-body { flex: 1 1 auto; }
  .ff-group[data-ff-surface="finds_page"] .ff-item--even .ff-card-cta { margin-top: auto; }
}

/* ---------------------------------------------------------------- card (shared by both variants) */

.ff-card {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--ff-white);
  border: 1px solid var(--ff-border);
  border-radius: var(--ff-radius);
  padding: 20px 20px 20px;
}

.ff-card-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ff-card-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--ff-white);
  border-radius: var(--ff-radius-sm);
  margin: 0 0 14px;
}

.ff-card-category {
  margin: 0 0 var(--ff-eyebrow-gap);
  font-size: var(--ff-eyebrow-size);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ff-teal);
}

/* Long words break only where they must, and a dash stays with its word. */
.ff-card-name,
.ff-card-desc {
  overflow-wrap: break-word;
  hyphens: manual;
}

/* A spaced dash and the word after it (render-fhv nameText): one inline-block
   that moves to the next line as a whole. Only a block wider than the line
   (a long token) wraps inside; break-all then fills that first line after the
   dash instead of breaking at the no-break space and leaving the dash alone. */
.ff-dash {
  display: inline-block;
  max-width: 100%;
  word-break: break-all;
}

.ff-card-name {
  margin: 0 0 var(--ff-name-gap);
  font-family: var(--ff-heading);
  font-size: var(--ff-name-size);
  font-weight: 400;
  line-height: 1.3;
  color: var(--ff-navy);
}

.ff-card-desc {
  margin: 0 0 var(--ff-desc-gap);
  font-size: var(--ff-desc-size);
  line-height: var(--ff-desc-lh);
  color: var(--ff-text-soft);
}

/* Limited-time sentence: plain text, no urgency colour (WCAG 1.4.12 safe). */
.ff-card-offer {
  margin: 0 0 6px;
  font-size: var(--ff-offer-size);
  line-height: 1.5;
  color: var(--ff-navy);
}

/* An item that ended while on screen (scripts/florida-finds.js). */
.ff-ended {
  margin: 4px 0 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ff-text-soft);
}

.ff-card-cta {
  margin-top: 6px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 0.3em;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--ff-navy);
  border-radius: var(--ff-radius-sm);
  background: var(--ff-white);
  color: var(--ff-navy);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

.ff-card-cta:hover {
  background: var(--ff-hover-fill);
  color: var(--ff-navy);
}

:is(.ff-card-cta, .ff-more-link, .ff-disclosure-link, .ff-cat-list a, .ff-empty a):focus-visible {
  outline: 2px solid var(--ff-teal);
  outline-offset: 2px;
  border-radius: 4px;
}
.ff-card-cta:focus-visible { border-radius: var(--ff-radius-sm); }

.ff-paid { font-weight: 400; }

.ff-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Card variant with a photo, once the card is wide: the photo floats left and
   the text flows beside and under it (no empty column either way). */
@container ff-card (min-width: 460px) {
  .ff-group:not([data-ff-variant="list"]) .ff-card--media { display: flow-root; }
  .ff-group:not([data-ff-variant="list"]) .ff-card--media > .ff-card-img {
    float: left;
    width: var(--ff-thumb);
    margin: 4px 18px 8px 0;
  }
  .ff-group:not([data-ff-variant="list"]) .ff-card--media > .ff-card-body { display: block; }
}

/* ---------------------------------------------------------------- list variant (article module) */

/* A compact editorial list: same typography with smaller values, hairline
   separators, no per-item box, a small thumbnail in its own column (text
   never wraps under it), a quiet text link with a 44px hit area. */
.ff-group[data-ff-variant="list"] {
  --ff-eyebrow-size: 12px;
  --ff-eyebrow-gap: 2px;
  --ff-name-size: 1rem;
  --ff-name-gap: 4px;
  --ff-desc-size: 0.9375rem;
  --ff-desc-lh: 1.5;
  --ff-desc-gap: 4px;
  --ff-offer-size: 0.9rem;
  --ff-thumb: 64px;
}

.ff-group[data-ff-variant="list"] .ff-list { gap: 0; }

.ff-group[data-ff-variant="list"] .ff-item + .ff-item { border-top: 1px solid var(--ff-rule); }

.ff-group[data-ff-variant="list"] .ff-card {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 15px 0;
  box-shadow: none;
}

.ff-group[data-ff-variant="list"] .ff-card--media {
  display: grid;
  grid-template-columns: var(--ff-thumb) minmax(0, 1fr);
  column-gap: 14px;
  align-items: start;
}
/* In the list look the photo follows the text in the DOM (render-fhv.js
   imageLast): it is drawn in the left column, the text on the right. */
.ff-group[data-ff-variant="list"] .ff-card--media > .ff-card-body { grid-column: 2; grid-row: 1; }
.ff-group[data-ff-variant="list"] .ff-card--media > .ff-card-img { grid-column: 1; grid-row: 1; }

.ff-group[data-ff-variant="list"] .ff-card-img {
  width: var(--ff-thumb);
  height: var(--ff-thumb);
  aspect-ratio: 1 / 1;
  margin: 2px 0 0;
  object-fit: cover;
  background: transparent;
  border: 1px solid var(--ff-rule);
  border-radius: var(--ff-radius-sm);
}

.ff-group[data-ff-variant="list"] .ff-card-cta {
  margin: -6px -10px -10px;
  padding: 0 10px;
  border: 0;
  border-radius: 0;
  background: none;
  text-decoration: underline;
  text-decoration-color: var(--ff-underline);
  text-underline-offset: 3px;
}

.ff-group[data-ff-variant="list"] .ff-card-cta:hover { background: none; color: var(--ff-navy); }
/* The 44px hit area stays; the focus ring is drawn 8px inside it, so it
   never touches the line above (description / limited-time line) or the
   rule below. The link's 10px side padding is offset by its negative side
   margin, so its text stays aligned with the text above. */
.ff-group[data-ff-variant="list"] .ff-card-cta:focus-visible { border-radius: 4px; outline-offset: -8px; }

@container ff-card (min-width: 480px) {
  .ff-group[data-ff-variant="list"] .ff-card--media { --ff-thumb: 96px; column-gap: 16px; }
}

/* The list look below 600px of width: no photo, exactly the text-first look
   (no empty column, no indent); a lazy image that is not displayed is not
   fetched. Same specificity as the grid rule above and later, so it wins. */
@container ff-card (max-width: 599.98px) {
  .ff-group[data-ff-variant="list"] .ff-card--media { display: flex; }
  .ff-group[data-ff-variant="list"] .ff-card--media > .ff-card-img { display: none; }
}

/* ---------------------------------------------------------------- article placements */

/* ONE look for both article placements (owner, 2026-11-17): the in-article
   unit (.ff-unit, between two sections) and the end-of-article block
   (.ff-module, before the comments) share the order (label, disclosure
   line, name, description, offer line, link), the surface (hairlines above
   and below, no fill, no shadow, no box), the label, the disclosure line,
   the list-variant item typography and the quiet link. Only layout differs:
   the block lists up to two items with a separator and a "More" link.
   All outer spacing is the block's own margin (collapsing with the article's
   paragraph and heading margins), so when a block is not rendered, or the
   script removes it, the article keeps exactly its own spacing. */
.ff-unit,
.ff-module {
  margin: 28px 0;
  padding: 12px 0 14px;
  border: 0;
  border-top: 1px solid var(--ff-rule);
  border-bottom: 1px solid var(--ff-rule);
  border-radius: 0;
  background: transparent;
  max-width: 720px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* The label "Paid link · Florida Finds": a <p> in the unit, the block's <h2>.
   First in the block, typographic (never a badge), never smaller than the
   disclosure line under it. */
.ff-label,
.ff-module-title {
  margin: 0;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ff-teal);
}

/* The disclosure line, directly under the label and before the product:
   12px (0.75rem) at every width, regular weight, full-contrast body navy
   (about 14:1 on the cream page), the body font, never clipped, clamped or
   hidden (owner decision 2026-11-17). */
.ff-unit .ff-disclosure-line,
.ff-module .ff-disclosure-line {
  margin: 3px 0 9px;
  padding: 0;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0;
  line-height: 1.5;
  color: var(--ff-navy);
  white-space: normal;
  overflow: visible;
  max-height: none;
}
.ff-disclosure-line .ff-disclosure-link { font-size: inherit; }

/* The product name starts 9px under the line in both blocks. */
.ff-unit[data-ff-variant="list"] .ff-card { padding: 0 0 2px; }
.ff-module .ff-item:first-child .ff-card { padding-top: 0; }
:is(.ff-unit, .ff-module) .ff-card-offer { margin-top: 4px; }

/* One item: no extra hairline above "More Florida Finds". */
.ff-module--single .ff-module-more { padding-top: 0; border-top: 0; }

.ff-module-more {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--ff-rule);
  font-size: 0.95rem;
  line-height: 1.5;
}

.ff-more-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--ff-teal);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--ff-underline);
  text-underline-offset: 3px;
}
.ff-more-link:hover { color: var(--ff-coral-deep); }

/* ---------------------------------------------------------------- finds page */

.ff-page { margin: 8px 0 32px; }

.ff-page .ff-card { box-shadow: var(--ff-shadow); }

.ff-cat-nav,
.ff-empty-state {
  background: var(--ff-white);
  border: 1px solid var(--ff-border);
  border-radius: var(--ff-radius);
}

.ff-cat-nav { margin: 0 0 32px; padding: 16px 20px; }

.ff-cat-nav-title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ff-navy);
}

.ff-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 20px;
}

.ff-cat-list li { margin: 0; padding: 0; font-size: 1rem; line-height: 1.5; }

.ff-cat-list a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--ff-navy);
  text-decoration: underline;
  text-decoration-color: var(--ff-underline-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.ff-cat-list a:hover { color: var(--ff-teal); text-decoration-color: var(--ff-teal); }

.ff-category { margin: 0 0 36px; scroll-margin-top: 16px; }

.ff-category-title {
  margin: 0 0 10px;
  font-family: var(--ff-heading);
  font-size: 1.625rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--ff-navy);
}

.ff-empty-state { margin: 8px 0 32px; padding: 22px 24px; }
.ff-empty-state[hidden] { display: none; }

.ff-empty {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ff-navy);
}
.ff-empty a { color: var(--ff-teal); }

/* ---------------------------------------------------------------- preferences */

@media (prefers-reduced-motion: no-preference) {
  .ff-card-cta { transition: background-color 0.15s ease, color 0.15s ease; }
  /* A cleared disclosure's reserved space closes only off screen (florida-finds.js). */
  .ff-disclosure[data-ff-cleared] { transition: min-height 0.25s ease; }
}

@media (forced-colors: active) {
  :is(.ff-card, .ff-module, .ff-unit, .ff-cat-nav, .ff-empty-state, .ff-disclosure--lead) { border-color: CanvasText; }
  :is(.ff-group[data-ff-variant="list"] .ff-item + .ff-item, .ff-module-more) { border-top-color: CanvasText; }
  .ff-card-cta { border-color: LinkText; color: LinkText; background: Canvas; }
  :is(.ff-card-cta, .ff-more-link, .ff-disclosure-link, .ff-cat-list a, .ff-empty a):focus-visible { outline-color: Highlight; }
}

/* Paid links can't be followed on paper: neither placement prints. */
@media print {
  .ff-module,
  .ff-unit { display: none !important; }
}
