/* The catalogue (resources/views/catalogue/show.blade.php): the whole range as a printed lookbook. The site's own parts
   (cf-sub, cf-band, cf-panel, the swing tags) arranged as a book: a cover, a contents page, a chapter per category with
   its big number, the pieces set like a magazine page. Tokens only (public/css/tokens.css): no colour of its own. */

/* #top: the cover. */
.cf-book__tally {
    margin: 0; font-weight: var(--s-w-tag); font-size: var(--s-size-tag); line-height: var(--s-leading-tag);
    letter-spacing: var(--s-track-tag); text-transform: uppercase; color: var(--s-on-field-muted);
    font-variation-settings: "opsz" var(--s-opsz-body), "wdth" var(--s-wdth-tag);
}
.cf-book__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-space-xs) var(--s-space-m); }
.cf-book__note { margin: 0; font-size: var(--s-size-small); color: var(--s-on-field-muted); }

/* #contents: a contents page; each row its number, its name, its count, on a hairline. */
.cf-book__contents-in {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--s-space-xl) var(--s-space-2xl); align-items: start;
}
.cf-book__contents-title { color: var(--s-link); }
.cf-book__toc { display: grid; border-top: var(--s-rule-w) solid var(--s-rule); }
.cf-book__toc li { border-bottom: var(--s-rule-w) solid var(--s-rule); }
.cf-book__toc-row {
    display: grid; grid-template-columns: calc(var(--s-book-toc-num) * 1.9) minmax(0, 1fr) auto;
    align-items: baseline; gap: var(--s-space-s); min-height: var(--s-tap);
    padding-block: var(--s-space-s); color: var(--s-text); text-decoration: none;
}
.cf-book__toc-num {
    font-weight: var(--s-w-numeral); font-size: var(--s-book-toc-num); line-height: 1;
    letter-spacing: var(--s-track-numeral); font-variant-numeric: tabular-nums;
    font-variation-settings: "opsz" var(--s-opsz-display), "wdth" var(--s-wdth-numeral);
    color: var(--s-kraft-shade);
}
.cf-book__toc-name {
    font-weight: var(--s-w-heading); font-size: var(--s-size-h3); line-height: var(--s-leading-heading);
    letter-spacing: var(--s-track-heading); font-variation-settings: "opsz" var(--s-opsz-display), "wdth" var(--s-wdth-display);
}
.cf-book__toc-count { font-family: var(--s-font-voice); font-style: italic; font-weight: var(--s-w-voice); color: var(--s-text-muted); font-variation-settings: normal; }
.cf-book__toc-row:hover .cf-book__toc-name, .cf-book__toc-row:focus-visible .cf-book__toc-name { text-decoration: underline; text-underline-offset: var(--s-link-offset); }
.cf-book__toc-row:hover .cf-book__toc-num { color: var(--s-link); }

/* A chapter: drawn only when it comes near the screen (a range of hundreds stays quick on a slow phone). */
.cf-book__chapter { content-visibility: auto; contain-intrinsic-size: auto var(--s-book-chapter-h); }
.cf-book__chapter--alt { background: var(--s-page-alt); }
.cf-book__opener {
    display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 26rem);
    gap: var(--s-space-m) var(--s-space-l); align-items: end;
    padding-bottom: var(--s-space-l); margin-bottom: var(--s-space-xl);
    border-bottom: var(--s-rule-w) solid var(--s-madder);
}
.cf-book__num {
    margin: 0; font-weight: var(--s-w-numeral); font-size: var(--s-book-num); line-height: var(--s-leading-numeral);
    letter-spacing: var(--s-track-numeral); font-variant-numeric: tabular-nums;
    font-variation-settings: "opsz" var(--s-opsz-display), "wdth" var(--s-wdth-numeral);
    color: var(--s-kraft);
}
.cf-book__opener-words { display: grid; gap: var(--s-space-2xs); justify-items: start; }
.cf-book__runner, .cf-book__section {
    margin: 0; font-weight: var(--s-w-tag); font-size: var(--s-size-tag); line-height: var(--s-leading-tag);
    letter-spacing: var(--s-track-tag); text-transform: uppercase; color: var(--s-text-muted);
    font-variation-settings: "opsz" var(--s-opsz-body), "wdth" var(--s-wdth-tag);
}
.cf-book__count { margin: 0; color: var(--s-text-muted); }
.cf-book__opener-photo { aspect-ratio: var(--s-ratio-wide); align-self: end; }

/* A sub-group inside a chapter: a running head on the twine. */
.cf-book__section { display: flex; align-items: center; gap: var(--s-space-s); margin-block: var(--s-space-l) var(--s-space-m); color: var(--s-leaf); }
.cf-book__section::after { content: ""; flex: 1 1 auto; height: var(--s-twine-w); background: var(--s-twine); }

/* The pieces, set like a magazine page: photo, name in the card voice, price, one line. */
.cf-book__entries {
    display: grid; grid-template-columns: repeat(var(--s-book-cols), minmax(0, 1fr));
    gap: var(--s-space-xl) var(--s-grid-gap); margin-bottom: var(--s-space-xl);
}
.cf-book__entries:last-child { margin-bottom: 0; }
.cf-book__entry { display: grid; align-content: start; gap: var(--s-space-3xs); color: var(--s-text); text-decoration: none; }
.cf-book__photo { display: block; aspect-ratio: var(--s-ratio-photo); overflow: hidden; margin-bottom: var(--s-space-2xs); background: var(--s-tissue-deep); }
.cf-book__photo .cf-photo { transition: transform var(--s-dur-swing) var(--s-ease-swing); }
.cf-book__name {
    font-family: var(--s-font-voice); font-style: italic; font-weight: var(--s-w-voice);
    font-size: var(--s-size-voice); line-height: var(--s-leading-voice); font-variation-settings: normal;
}
.cf-book__price { color: var(--s-link); }
.cf-book__price.cf-price--request { color: var(--s-text-muted); font-weight: var(--s-w-body); }
.cf-book__line {
    font-size: var(--s-size-small); color: var(--s-text-muted);
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
@media (hover: hover) {
    .cf-book__entry:hover .cf-book__name { text-decoration: underline; text-underline-offset: var(--s-link-offset); }
    .cf-book__entry:hover .cf-photo { transform: scale(1.03); }
}
.cf-book__entry:focus-visible .cf-book__name { text-decoration: underline; }

/* Pieces without a photo, named at the foot of the chapter as in the PDF: name and price on a ruled line, two columns
   on wider screens. */
.cf-book__also { display: grid; gap: 0 var(--s-grid-gap); border-top: var(--s-rule-w) solid var(--s-rule); }
@media (min-width: 48rem) { .cf-book__also { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cf-book__also li { border-bottom: var(--s-rule-w) solid var(--s-rule); }
.cf-book__also-row {
    display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-space-s);
    min-height: var(--s-tap); padding-block: var(--s-space-2xs); color: var(--s-text); text-decoration: none;
}
.cf-book__also-name { font-family: var(--s-font-voice); font-style: italic; font-weight: var(--s-w-voice); }
.cf-book__also-row .cf-book__price { flex: none; }
.cf-book__also-row:hover .cf-book__also-name, .cf-book__also-row:focus-visible .cf-book__also-name { text-decoration: underline; text-underline-offset: var(--s-link-offset); }

/* #occasions: the field, as the site closes its pages. */
.cf-book__occasions { background: var(--s-field); color: var(--s-on-field); }
.cf-book__occasions .cf-book__runner, .cf-book__occasions .cf-lede { color: var(--s-on-field-muted); }
.cf-book__occasions :focus-visible { outline-color: var(--s-focus-on-field); }

/* #ask: hotels, venues, events; the branches. */
.cf-book__ask-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-space-xl) var(--s-space-2xl); align-items: start; }
.cf-book__ask-panel { display: grid; gap: var(--s-space-s); justify-items: start; }

/* The full catalogue (owner, 2026-11-22): the panel that sells it, each plant's growing facts, the A-Z index. */
.cf-book__full-panel { display: grid; gap: var(--s-space-s); justify-items: start; max-width: 46rem; }
.cf-book__full-panel form { margin: 0; }
.cf-book__facts { margin: var(--s-space-xs) 0 0; display: grid; gap: var(--s-space-3xs); font-size: var(--s-size-small); }
.cf-book__facts div { display: grid; grid-template-columns: minmax(0, 1fr); }
.cf-book__facts dt { color: var(--s-text-muted); font-size: var(--s-size-tag); text-transform: uppercase; letter-spacing: 0.06em; }
.cf-book__facts dd { margin: 0 0 var(--s-space-3xs); overflow-wrap: anywhere; }
@media (min-width: 64rem) {
    .cf-book__facts div { grid-template-columns: 6.5em minmax(0, 1fr); gap: var(--s-space-xs); }
    .cf-book__facts dt { font-size: inherit; text-transform: none; letter-spacing: 0; }
    .cf-book__facts dd { margin: 0; }
}
.cf-book__note-text { margin: var(--s-space-xs) 0 0; font-size: var(--s-size-small); font-family: var(--s-font-voice); font-style: italic; }
.cf-book__also li .cf-book__facts, .cf-book__also li .cf-book__note-text { padding-bottom: var(--s-space-s); }
.cf-book__az { columns: 1; column-gap: var(--s-grid-gap); }
@media (min-width: 48rem) { .cf-book__az { columns: 2; } }
@media (min-width: 64rem) { .cf-book__az { columns: 3; } }
.cf-book__az-letter { break-inside: avoid; margin: 0 0 var(--s-space-m); }
.cf-book__az-head { margin: 0 0 var(--s-space-2xs); font-family: var(--s-font-voice); font-size: var(--s-size-h3); border-bottom: var(--s-rule-w) solid var(--s-rule); }
.cf-book__az ul { margin: 0; padding: 0; list-style: none; }
.cf-book__az li a { display: flex; flex-wrap: wrap; gap: 0 var(--s-space-xs); padding: var(--s-space-3xs) 0; color: inherit; text-decoration: none; font-size: var(--s-size-small); }
.cf-book__az li a:hover .cf-book__az-name, .cf-book__az li a:focus-visible .cf-book__az-name { text-decoration: underline; text-underline-offset: var(--s-link-offset); }
.cf-book__az-bot { color: var(--s-text-muted); }
.cf-book__az-ch { margin-inline-start: auto; color: var(--s-text-muted); white-space: nowrap; }
.cf-book__index .cf-book__note { color: var(--s-text-muted); }
.cf-book__reach { margin: 0; }
.cf-book__branches { display: grid; gap: var(--s-space-s); }
.cf-book__branches ul { display: grid; gap: var(--s-space-s); }
.cf-book__branches strong { font-weight: var(--s-w-heading); }

@media (prefers-reduced-motion: reduce) {
    .cf-book__photo .cf-photo { transition: none; }
}
@media (max-width: 63.99rem) {
    .cf-book__entries { grid-template-columns: repeat(var(--s-book-cols-tablet), minmax(0, 1fr)); }
    .cf-book__contents-in, .cf-book__ask-in { grid-template-columns: minmax(0, 1fr); }
    .cf-book__opener { grid-template-columns: auto minmax(0, 1fr); }
    .cf-book__opener-photo { display: none; }   /* the pieces show the photographs; the phone saves the bytes */
}
@media (max-width: 47.99rem) {
    .cf-book__entries { grid-template-columns: repeat(var(--s-book-cols-phone), minmax(0, 1fr)); gap: var(--s-space-l) var(--s-space-s); }
    .cf-book__name { font-size: var(--s-size-lede); }
    .cf-book__opener { gap: var(--s-space-xs) var(--s-space-s); margin-bottom: var(--s-space-l); }
}
