/* A still material index opens edge-to-edge material studies in place. */
.material-palette--index { --palette-inset:max(56px,calc((100% - 720px) / 2)); width:min(1120px,calc(100% - 2 * var(--page))); }
.material-palette--index > .material-room__heading, .material-palette--index > .palette-samples { margin-left:var(--palette-inset); }
.material-palette--index > .material-room__heading { } /* gap to the samples: fbtn-prompt-scope--drawing (Camille 20 Oct 2026, 3:57 am) */
.material-palette--index > .material-room__heading p { max-width:390px; }
.palette-samples { display:grid; grid-template-columns:repeat(4,160px); justify-content:start; gap:24px 32px; }
.palette-sample { position:relative; display:block; align-self:start; width:160px; min-width:0; min-height:0; padding:0; margin:0; border:0; border-radius:0; background:none; color:var(--bark); cursor:pointer; text-align:left; -webkit-tap-highlight-color:transparent; }
.palette-sample__image { display:block; overflow:hidden; width:100%; height:210px; background:var(--stone,#E5E1D1); }
.palette-sample__image img { display:block; width:100%; height:100%; object-fit:cover; }
.palette-sample,.palette-sample__image,.palette-sample__image img,.palette-sample__name { animation:none !important; transition:none !important; transform:none !important; }
/* Item 14 (19 Oct 2026): the tiles join the one interaction language. Name in the caps label type; on hover, keyboard focus or
   while its study is open, one 1 px hairline frame draws round the tile, clockwise from the top left corner, exactly as the
   frame button: same stroke, 700 ms in, 500 ms out, cubic-bezier(.45,0,.55,1). No outline ring; the frame is the focus. */
.palette-sample__name { display:block; margin:12px 0 0; color:var(--bark); font:var(--type-label,600 9px/1.4 var(--sans)); letter-spacing:var(--type-label-tracking,.14em); text-transform:uppercase; }
.palette-sample__frame { position:absolute; left:-8px; top:-8px; overflow:visible; pointer-events:none; }
.palette-sample__frame path { fill:none; stroke:var(--bark); stroke-width:var(--fbtn-line,1px); stroke-linecap:butt; stroke-linejoin:miter; vector-effect:non-scaling-stroke; stroke-dasharray:1 1; stroke-dashoffset:1; transition:stroke-dashoffset var(--fbtn-out,500ms) var(--fbtn-ease,cubic-bezier(.45,0,.55,1)); }
@media (hover:hover) and (pointer:fine) { .palette-sample:hover .palette-sample__frame path { stroke-dashoffset:0; transition-duration:var(--fbtn-in,700ms); } }
.palette-sample:is(:focus-visible,[aria-expanded="true"]) .palette-sample__frame path { stroke-dashoffset:0; transition-duration:var(--fbtn-in,700ms); }
.palette-sample:focus-visible { outline:0; }
.palette-sample[aria-busy="true"] { cursor:progress; }
@media(min-width:721px) and (max-width:1100px) { .palette-samples { grid-template-columns:repeat(3,160px); } }
.palette-samples { row-gap:36px; }
@media(max-width:720px) {
 .material-palette--index { --palette-inset:0px; }
 .palette-samples { grid-template-columns:repeat(auto-fit,104px); justify-content:space-between; gap:20px 12px; }
 .palette-sample { width:104px; }
 .palette-sample__image { height:136px; }
 .palette-sample__name { margin-top:10px; }
}

/* Full-screen material study: no website chrome, image leads the entire viewport. */
.palette-sheet { position:fixed; inset:0; width:100vw; height:100dvh; max-width:none; max-height:none; margin:0; padding:0; border:0; border-radius:0; background:var(--chalk); color:var(--bark); overflow:clip; }
.palette-sheet:not([open]) { display:none; }
.palette-sheet[open] { display:block; }
.palette-sheet::backdrop { background:var(--chalk); }
.palette-sheet__article { position:absolute; inset:0; margin:0; overflow:clip; }
.palette-sheet__article[hidden] { display:none; }
.palette-sheet__material { position:absolute; inset:0; margin:0; }
/* Camille 19 Oct 2026, 7:19 am: 'Unflip them, show as shot'. No mirror. */
.palette-sheet__material img { display:block; width:100%; height:100%; object-fit:cover; }
.palette-sheet__copy { position:absolute; z-index:1; right:40px; bottom:40px; box-sizing:border-box; display:flex; flex-direction:column; width:320px; min-height:420px; max-width:calc(100% - 80px); padding:40px 28px; background:var(--sable-green); color:var(--white); overflow:visible; }
.palette-sheet__article::after { content:none; }
.palette-sheet__category { color:var(--film-yellow); margin:0 0 16px; font:600 9px/1.4 var(--sans); letter-spacing:.14em; text-transform:uppercase; }
.palette-sheet__copy h2 { color:var(--film-yellow); margin:0; font:350 44px/1 var(--serif); letter-spacing:-.025em; }
.palette-sheet__description { margin:24px 0 0; font:350 21px/1.28 var(--serif); letter-spacing:-.01em; }
.palette-sheet__specifications { margin-top:auto; padding-top:40px; font:400 12px/1.5 var(--sans); }
/* Batch 3 item A (Camille 7:56 am): Specifications is the component's show more toggle (fbtn-more, gold): no frame draw, a
   1 px chevron that turns to point up when open, on the shared curve. The body (wrapped by palette.js) eases open in height
   and its rows fade up 4 px, 80 ms apart. Replaces the batch 2 gold marker toggle. */
.palette-sheet__specifications summary.fbtn-more { align-self:flex-start; }
.palette-sheet__spec-body { overflow:hidden; }
.palette-sheet__specifications summary::-webkit-details-marker { display:none; }
.palette-sheet__specifications dl { margin:12px 0 0; }
.palette-sheet__specifications dl > div { display:grid; grid-template-columns:76px minmax(0,1fr); gap:12px; padding:10px 0; border-bottom:var(--hairline) solid rgba(255,253,248,.28); }
.palette-sheet__specifications :is(dt,dd) { min-width:0; overflow-wrap:anywhere; }
.palette-sheet__specifications dd { margin:0; }
.palette-sheet__note { margin:16px 0 0; } /* Camille 11:31 am: the note is the shared disclaimer component (sable-disclaimer--on-olive), heading MATERIALS DISCLAIMER, directly under the Specifications rows; was 10 px/1.5 at 78% white with no heading */
/* Batch 3 item E (Camille 7:59 am): CLOSE is the standard close from the component (fbtn-x, the word CLOSE in the 9 px caps
   action type, bark, no frame, eases darker with the label crossfade). The page file only places it, top right. */
.palette-sheet__close.fbtn-x { position:absolute; z-index:2; top:20px; right:26px; }
@media(max-width:720px) {
 .palette-sheet__copy { right:16px; bottom:16px; width:286px; min-height:380px; max-width:calc(100% - 32px); padding:32px 24px; }
 .palette-sheet__copy h2 { font-size:40px; }
 .palette-sheet__description { margin-top:20px; font-size:20px; }
 .palette-sheet__specifications { padding-top:32px; }
 .palette-sheet__article::after { content:none; }
 .palette-sheet__close.fbtn-x { top:8px; right:8px; }
}

/* Compact the reading rhythm on short screens; reflow wide landscapes into two columns. */
@media(max-height:650px) {
 .palette-sheet__copy { bottom:16px; min-height:min(360px,calc(100dvh - 100px)); padding:16px; }
 .palette-sheet__category { margin-bottom:8px; }
 .palette-sheet__copy h2 { font-size:32px; }
 .palette-sheet__description { margin-top:12px; font-size:19px; line-height:1.18; }
 .palette-sheet__specifications { margin-top:auto; padding-top:12px; }
 .palette-sheet__specifications dl { margin-top:4px; }
 .palette-sheet__specifications dl > div { padding:6px 0; }
 .palette-sheet__note { margin-top:12px; }
}
@media(min-width:600px) and (max-height:540px) {
 .palette-sheet__copy:has(details[open]) { width:672px; min-height:0; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.3fr); column-gap:32px; align-content:end; }
 .palette-sheet__copy:has(details[open]) > :is(p,h2) { grid-column:1; }
 .palette-sheet__copy:has(details[open]) .palette-sheet__specifications { grid-column:2; grid-row:1/4; margin-top:0; padding-top:0; }
}

/* Phone starts with the material canvas; the edge control and vertical gesture reveal the card. */
.palette-sheet__pull,.palette-sheet__hide { display:none; }
@media(max-width:720px) {
 .palette-sheet { touch-action:pan-x; }
 .palette-sheet__pull:not([hidden]) { position:absolute; z-index:2; right:16px; bottom:16px; display:flex; justify-content:center; box-sizing:border-box; width:286px; max-width:calc(100% - 32px); padding:12px 24px 8px; background:var(--sable-green); }
 .palette-sheet__handle { position:absolute; top:7px; left:calc(50% - 14px); width:28px; height:1px; background:var(--film-yellow); opacity:.6; }
 .palette-sheet__copy { visibility:hidden; pointer-events:none; transform:translateY(calc(100% + 32px)); transition:transform 450ms cubic-bezier(.45,0,.55,1),visibility 0s linear 450ms; }
 .palette-sheet[data-card-open] .palette-sheet__copy { visibility:visible; pointer-events:auto; transform:none; transition-delay:0s; }
 .palette-sheet__hide.fbtn { position:absolute; top:20px; right:42px; display:inline-flex; --fbtn-gap:10px; }
 .palette-sheet__category { padding-right:78px; }
}
@media(max-width:720px) and (max-height:650px) {
 .palette-sheet__hide.fbtn { top:4px; right:34px; }
}
@media(prefers-reduced-motion:reduce) {
 .palette-sheet__copy { transition:none; }
 .palette-sample__frame path,.palette-sheet__close svg { transition:none; }
}

/* Palette hover 1508 (19 Oct 2026, Camille by voice 3:08 pm): on hover everything stays put. No frame draw, no line, no lift,
   no shadow, no text shift. The only effect is the image scaling gently inside its fixed frame (overflow hidden), 1.05 over
   the standard base duration (600 ms) on the Sable calm curve, reversing on leave. Keyboard focus gets the same image scale
   plus a quiet 1 px focus ring. Replaces the Item 14 hairline frame on the tiles. */
.palette-sample__frame { display:none !important; }
.palette-samples .palette-sample, .palette-samples .palette-sample__name, .palette-samples .palette-sample__image { transform:none !important; box-shadow:none !important; transition:none !important; }
.palette-samples .palette-sample__image img { transform:scale(1) !important; transform-origin:50% 50%; backface-visibility:hidden; transition:transform 1000ms var(--ease-sable,cubic-bezier(.22,1,.36,1)) !important; }
/* 3:16 pm update: clearly visible and smoother. Scale 1.13 over 1000 ms in and 1000 ms back (3:17 pm: return as gentle as the expand), same curve, transition on the base state so a mid expand leave reverses from where it is, transform only; the layer is promoted (will-change) while the pointer is over the grid or a sample has focus, and palette.js pre-decodes the thumbs. */
.palette-samples:hover .palette-sample__image img, .palette-samples .palette-sample:focus-visible .palette-sample__image img { will-change:transform; }
@media (hover:hover) and (pointer:fine) { .palette-samples .palette-sample:hover .palette-sample__image img { transform:scale(1.13) !important; } }
.palette-samples .palette-sample:focus-visible .palette-sample__image img { transform:scale(1.13) !important; }
.palette-samples .palette-sample:focus-visible { outline:1px solid var(--bark,#332F24); outline-offset:6px; }
@media(prefers-reduced-motion:reduce) { .palette-samples .palette-sample__image img { transition:none !important; } }
/* palette-lock-1518 (Camille 19 Oct 3:18 pm): opening the palette sheet locks scroll (palette.js sets body overflow hidden) with no width jump: the scroll bar space stays reserved, the same rule as components/page-motion/page-motion.css. */
html { scrollbar-gutter:stable; }
/* palette-close-1528 (Camille 3:28 pm, replaces the 3:18 to 3:23 card placement): CLOSE X at the overlay's top right. Right
   edge on the page margin --page (4.1vw, the logo margin: 59 px at 1440), top set by palette.js on the header logo line.
   Never a scrim, glow, background or shadow in any state (the data-fbtn-x-auto radial ::before is switched off); the
   component still picks plain bark or white ink from the image under the word, at full opacity. Focus visible: 1 px hairline. */
@media(min-width:721px) {
 .palette-sheet .palette-sheet__close.fbtn-x { right:var(--page,59px); --fbtn-x-scrim-a:0 !important; opacity:1 !important; isolation:auto; background:none !important; box-shadow:none !important; filter:none !important; }
 .palette-sheet .palette-sheet__close.fbtn-x::before { content:none !important; display:none !important; background:none !important; }
 .palette-sheet .palette-sheet__close.fbtn-x:is(:hover,:focus,:active) { outline:none !important; background:none !important; box-shadow:none !important; filter:none !important; }
 .palette-sheet .palette-sheet__close.fbtn-x:focus-visible { outline:1px solid currentColor !important; outline-offset:2px; background:none !important; box-shadow:none !important; }
}
/* palette-close-1540 chalk band removed (Camille 3:51 pm: 'Plain caps only, no band, even on busy materials'). */
/* palette-close-1545: palette.js picks the plain ink from the image under the word (data-close-ink), so the component's auto ink is not used here. */
@media(min-width:721px) { .palette-sheet .palette-sheet__close.fbtn-x[data-close-ink="bark"] { --fbtn-x-ink:var(--bark,#332F24); color:var(--bark,#332F24) !important; } .palette-sheet .palette-sheet__close.fbtn-x[data-close-ink="white"] { --fbtn-x-ink:#FFFFFF; color:#FFFFFF !important; } }
/* palette-spec-1530 (Camille 19 Oct 3:30 pm, items 39 and 40). 39: the Specifications chevron turns on the card's motion,
   400 ms both ways on cubic-bezier(.45,0,.55,1) (Camille: the 600 ms trial felt sluggish) (was 700 ms open, 500 ms close). 40: on the olive card the table and the
   disclaimer are separate sections: 40 px from the last table rule to MATERIALS DISCLAIMER (the card's own 40 px inset, so
   the rhythm reads 16 eyebrow to title, 24 to the lede, 40 to Specifications, 40 to the disclaimer, 40 bottom = 40 top);
   the disclaimer is fine print on the component's finer tokens (--sd-size 11 px, --sd-lh 15 px, the Homes finer print),
   muted chalk at 66% over olive, full table width; heading keeps the small caps 9 px label, 6 px above the text. */
.palette-sheet__specifications .fbtn-more__chev, .palette-sheet__specifications .fbtn-more[aria-expanded="true"] .fbtn-more__chev { transition:transform 400ms cubic-bezier(.45,0,.55,1) !important; }
@media(min-width:721px) {
 .palette-sheet__specifications .palette-sheet__note { margin-top:40px; }
 .palette-sheet__specifications .sable-disclaimer--on-olive { --sd-size:11px; --sd-lh:15px; --sd-ink:color-mix(in srgb, #FFFDF8 66%, var(--sable-green,#3D3A28)); }
 .palette-sheet__specifications .sable-disclaimer.sable-disclaimer .sable-disclaimer__title.sable-disclaimer__title { margin-bottom:6px; }
}
@media(prefers-reduced-motion:reduce) { .palette-sheet__specifications .fbtn-more__chev { transition:none !important; } }
/* Phone material drawer (Camille 23 Oct 2026: "I think it should be actual swipe card - drawer at the bottom full width -
   designed for phone"). Replaces the narrow card and the separate Swipe up for details box on phone. The olive card becomes
   one full width drawer at the foot of the material: at rest it shows the category and the material's name (the peek);
   a finger drags it up (it follows the finger and snaps on the calm curve), or a tap on it opens it; a drag down on its head,
   or Hide, returns it to the peek. Open, it holds the description, Specifications and the disclaimer, and scrolls inside
   itself if they run taller than the screen. palette.js measures the peek (--peek) and runs the drag. Phone only. */
@media(max-width:720px) {
 .palette-sheet__pull, .palette-sheet__pull:not([hidden]) { display:none !important; }
 .palette-sheet__copy {
  left:0; right:0; bottom:0; width:100%; max-width:none; min-height:0; max-height:88dvh;
  padding:28px var(--page,20px) max(24px, env(safe-area-inset-bottom));
  visibility:visible; pointer-events:auto; overflow:hidden; overscroll-behavior:contain; touch-action:none;
  transform:translate3d(0, calc(100% - var(--peek,112px) - env(safe-area-inset-bottom)), 0);
  transition:transform 450ms cubic-bezier(.45,0,.55,1), visibility 0s;
 }
 .palette-sheet[data-card-open] .palette-sheet__copy { transform:translate3d(0,0,0); overflow-y:auto; touch-action:pan-y; }
 .palette-sheet__copy.is-dragging { transition:none; }
 /* Kept on its own compositor layer for the whole time the sheet is open, so a drag or a settle only moves a finished picture
    of the drawer and never repaints its text or the stone behind it on each frame. */
 .palette-sheet[open] .palette-sheet__copy { will-change:transform; backface-visibility:hidden; contain:layout paint; }
 .palette-sheet__copy :is(.palette-sheet__category, h2) { touch-action:none; } /* a drag down on the open drawer's head moves the drawer, not its content */
 /* The handle: a 1px gold line, centred on the drawer's top edge. */
 .palette-sheet__copy::before { content:""; position:absolute; top:12px; left:calc(50% - 16px); width:32px; height:1px; background:var(--film-yellow); }
 .palette-sheet__category { margin:0 0 10px; padding-right:0; }
 .palette-sheet__copy h2 { font-size:34px; }
 .palette-sheet:not([data-card-open]) .palette-sheet__copy { cursor:pointer; }
 /* No Hide on phone (Camille 23 Oct 2026: "do we need hide?"): the drawer's handle and head do it; a tap on the head or a
    drag down closes it. */
 .palette-sheet__hide.fbtn { display:none !important; }
 /* The drawer takes the whole drag, so it follows the finger; content taller than the drawer scrolls below the head. */
 .palette-sheet[data-card-open] .palette-sheet__copy { touch-action:none; }
 .palette-sheet[data-card-open] .palette-sheet__copy:has(details[open]) { touch-action:pan-y; }
 .palette-sheet__copy { transition-duration:380ms; }
}
@media(max-width:720px) and (max-height:650px) {
 .palette-sheet__copy { padding-top:24px; }
}
@media(max-width:720px) and (prefers-reduced-motion:reduce) {
 .palette-sheet__copy, .palette-sheet__hide.fbtn { transition:none; }
}

/* The sheet takes focus when it opens (so CLOSE carries no focus ring); the sheet itself draws none either. */
.palette-sheet:focus, .palette-sheet:focus-visible { outline:0; }

/* Palette samples take the zoom-in cursor, as the renders (Camille 23 Oct 2026: "I think for palette - magnifying +");
   desktop pointers only. */
@media (hover:hover) and (pointer:fine) { .interiors-materials-page .palette-sample { cursor:zoom-in; } }

/* Phone CLOSE X on the palette study sits where every other phone viewer puts it (Camille 23 Oct 2026: "check its position -
   this is a DRFIT"): 20px from the top (or the safe area) and on the page margin, not 8px in the corner. Phone only. */
@media (max-width:720px) {
 .palette-sheet__close.fbtn-x { top:max(20px, env(safe-area-inset-top)) !important; right:var(--page,20px) !important; }
}

/* Phone palette, two to a row (Camille 23 Oct 2026: "for phone - make this TWO a row"). Each sample takes half the column less
   a 16px gap (167px at 390), keeping the sample's portrait proportion (104 by 136); names wrap less. Phone only. */
@media (max-width:720px) {
 .palette-samples { grid-template-columns:repeat(2, minmax(0,1fr)); justify-content:stretch; gap:28px 16px; }
 .palette-sample { width:100%; }
 .palette-sample__image { height:auto; aspect-ratio:104 / 136; }
}

/* Accessible phone disclosure over the existing head: no change to category/title layout or the drag handle. */
.palette-sheet__drawer-toggle { display:none; }
@media(max-width:720px) {
 .palette-sheet__copy .palette-sheet__drawer-toggle { display:block; position:absolute; z-index:2; top:0; left:0; width:100%; height:var(--peek,112px); min-height:44px; margin:0; padding:0; border:0; border-radius:0; background:none; color:inherit; box-shadow:none; transform:none; cursor:pointer; touch-action:none; }
 .palette-sheet__copy .palette-sheet__drawer-toggle[hidden] { display:none; }
 .palette-sheet__drawer-toggle::before,.palette-sheet__drawer-toggle::after { content:none !important; }
 .palette-sheet__copy .palette-sheet__drawer-toggle:focus-visible { outline:1px solid var(--film-yellow); outline-offset:-8px; }
}
