/* The plugin pages (design-plugins gate 1, design-tools gate 1): the plugin top and its layouts, section heads,
   the settings table, the dark count band, the "More plugins" tabs and the shared screen plate and catalog tile.
   Loaded after lander_v2/sections.css (s-k, s-cap, s-arrow). Ported from the sketches' plugins-eco.css; the sketch-only
   rules (stand-in labels, state strips) and its first tile proposal are left out. No pure white: every screen sits on
   the warm plate. */

:root { --screen-plate: #efece6; }

/* ---------- the plugin top: wall picture, copy at left, buttons at bottom left ---------- */
.pt { position: relative; overflow: hidden; background: #c3826a; --ink: var(--cream); --ink-2: var(--cream-2); --hair: rgba(246,241,234,.34); color: var(--cream); }
.pt::after { content: ""; position: absolute; z-index: 1; left: var(--m); right: var(--m); top: 76px; height: 1px; background: var(--hair); }
.pt .nav { z-index: 4; }
.pt-art { position: absolute; inset: 0; z-index: 0; overflow: hidden; margin: 0; }
/* The wall picture and its screen rectangle come from LanderV2::WallScreenComponent (left, top, width, height, turn). */
/* The picture keeps its place beside the copy column (1440 wide, centered) at every width; past its own edges the wall
   carries on as the picture's mirror image, until a render wide enough for 2560 replaces it. */
.pt-img { position: absolute; top: 0; height: 100%; aspect-ratio: var(--wall-ratio); left: calc(max(0px, (100% - 1440px) / 2) - 33px); container-type: size; }
.pt-img > img { width: 100%; height: 100%; max-width: none; }
.pt-img::before, .pt-img::after { content: ""; position: absolute; top: 0; width: 100%; height: 100%; background: var(--wall-img) 0 0 / 100% 100%; transform: scaleX(-1); }
.pt-img::before { right: 100%; } .pt-img::after { left: 100%; }
/* The screen on the display: the device box carries the scene's empty display (its light and the bezel's shadow), the
   screen is masked to the display pixels the camera sees and multiplied onto it. Without tan() or container units the
   screen fills the opening's bounding box. */
.pt-panel { position: absolute; left: var(--panel-left); top: var(--panel-top); width: var(--panel-width); height: var(--panel-height); }
.pt-panel-base { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.pt-scr { position: absolute; inset: 0; mix-blend-mode: multiply; -webkit-mask: var(--panel-mask) 0 0 / 100% 100% no-repeat; mask: var(--panel-mask) 0 0 / 100% 100% no-repeat; }
.pt-scr-in { position: absolute; left: var(--scr-left); top: var(--scr-top); width: var(--scr-width); height: var(--scr-height); background: #fff; overflow: hidden; }
.pt-scr-in img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: var(--scr-ink); }
/* The matrix is in picture pixels: lay the screen out at the picture's drawn scale, undo it, place, redo it. */
@supports (scale: tan(atan2(1px, 1px))) and (width: 1cqh) {
  .pt-scr-in { left: 0; top: 0; width: var(--scr-layout-w); height: var(--scr-layout-h); transform-origin: 0 0; outline: 1px solid transparent;
    transform: scale(tan(atan2(100cqh, var(--wall-h)))) translate(calc(-1 * var(--panel-x)), calc(-1 * var(--panel-y))) var(--scr-matrix) scale(tan(atan2(var(--wall-h), 100cqh))); }
}
.pt-grid { position: relative; z-index: 2; min-height: 824px; }
.pt-copy { grid-column: 1 / span 5; display: flex; flex-direction: column; padding: 84px 24px 72px 0; }
.pt-crumb { font-size: 15px; font-weight: 540; color: var(--cream); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pt-crumb a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; text-decoration-color: rgba(246,241,234,.5); }
.pt-crumb a[aria-current] { text-decoration: none; }
.pt-crumb span[aria-hidden] { opacity: .6; }
.pt-name { margin-top: 32px; display: flex; align-items: center; gap: 20px; }
.pt-icon { flex: none; width: 64px; height: 64px; border-radius: 14px; background: var(--paper); display: grid; place-items: center; }
.pt-icon img { width: 40px; height: 40px; object-fit: contain; }
.pt h1 { font-size: var(--t-hero); line-height: 1.04; color: var(--cream); }
.pt-sub { margin-top: 24px; font-size: var(--t-hero-line); line-height: 1.4; letter-spacing: -0.01em; color: var(--cream); max-width: 19em; }
.pt-facts { margin-top: auto; max-width: 440px; border-top: 1px solid var(--hair); display: flex; flex-wrap: wrap; gap: 8px 28px; padding-top: 18px; }
.pt-facts span { font-size: 14.5px; font-weight: 520; color: var(--cream); }
.pt-facts b { font-weight: 620; }
.pt .actions { margin-top: 32px; }
.pt :is(.btn-go, .btn-go:hover, .ds-btn-primary, .ds-btn-primary:hover) { background: var(--cream); color: #211e1b; }
.pt :is(.btn-line, .ds-btn-secondary) { border-color: var(--cream); color: var(--cream); }
.pt-cap { position: absolute; z-index: 2; left: var(--m); right: var(--m); bottom: 30px; color: var(--cream-2); }
@media (min-width: 1440px) { .pt::after, .pt-cap { left: max(var(--m), (100% - 1440px) / 2 + var(--m)); right: max(var(--m), (100% - 1440px) / 2 + var(--m)); } }
@media (max-width: 1239px) {
  .pt { display: flex; flex-direction: column; }
  .pt > .wrap { width: 100%; } /* an auto-margined flex item would shrink to its content */
  .pt-grid { order: 2; min-height: 0; }
  .pt-copy { grid-column: 1 / -1; padding: 36px 0 48px; }
  .pt-art { position: relative; order: 3; height: min(100vw, 640px); inset: auto; }
  .pt-img { left: 50%; transform: translateX(-49%); }
  .pt-cap { position: relative; order: 4; left: auto; right: auto; bottom: auto; padding: 14px var(--m) 18px; }
  .pt-facts { margin-top: 28px; }
  .pt-cap .r { white-space: nowrap; }
}
@media (max-width: 760px) {
  .pt::after { top: 64px; }
  .pt h1 { font-size: var(--t-hero-phone); }
  .pt-name { gap: 14px; margin-top: 22px; }
  .pt-icon { width: 52px; height: 52px; border-radius: 12px; } .pt-icon img { width: 32px; height: 32px; }
  .pt-sub { font-size: var(--t-hero-line-phone); margin-top: 16px; }
  .pt .actions .btn { flex: 1 1 auto; }
}

/* ---------- section heads ---------- */
.ps { position: relative; padding: 96px 0; }
.ps.paper-bg { background: var(--paper); } .ps.stone-bg { background: var(--stone); }
.ps-head { grid-column: 1 / span 4; }
.ps-head h2 { margin-top: 14px; font-size: 32px; line-height: 1.1; letter-spacing: -0.03em; font-weight: var(--w-display); text-wrap: balance; }
.ps-count { margin-top: 14px; font-size: 14px; color: var(--ink-3); font-feature-settings: "tnum" 1; }
.ps-lede { grid-column: 6 / span 7; }
.ps-lede p { font-size: 17px; line-height: 1.55; letter-spacing: -0.008em; color: var(--ink); max-width: 38em; }
.ps-lede p + p { margin-top: 1em; }
@media (max-width: 760px) {
  .ps { padding: 56px 0; }
  .ps-head h2 { font-size: 26px; margin-top: 10px; }
  .ps-lede { margin-top: 18px; } .ps-lede p { font-size: 16px; }
}

/* ---------- the layouts: listed under the description, the chosen one on the display; phones step back and forth ---------- */
.pt-lays { margin-top: 28px; max-width: 440px; }
.pt-lays[hidden] { display: none; }
.pt-lay-k { font-size: var(--t-kicker); font-weight: var(--w-label); line-height: 1.5; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-2); }
/* A plain ruled list in the copy column. Six or more layouts run in two columns, so the list stays short. */
.pt-lay-pick { margin-top: 10px; border-top: 1px solid var(--hair); }
.pt-lay-pick:has(> button:nth-child(6)) { column-count: 2; column-gap: 28px; }
.pt-lay-pick button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: baseline; gap: 12px; width: 100%; padding: 7px 0 8px;
  border-bottom: 1px solid var(--hair); break-inside: avoid; font-size: 15px; line-height: 1.3; font-weight: 440; color: var(--cream-2); }
.pt-lay-pick .n { flex: none; width: 18px; font-size: 11px; font-weight: 560; letter-spacing: .06em; font-feature-settings: "tnum" 1; color: var(--cream-3); }
.pt-lay-pick .t { flex: 1; min-width: 0; }
.pt-lay-pick button::after { content: "\2192"; opacity: 0; }
.pt-lay-pick button:hover { color: var(--cream); }
.pt-lay-pick button[aria-checked="true"] { color: var(--cream); font-weight: 560; }
.pt-lay-pick button[aria-checked="true"]::after { opacity: 1; }
.pt-lay-pick button:focus-visible, .pt-lay button:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }
.pt-lay { display: none; }
@media (max-width: 760px) {
  /* Phones: back and forth on the wall under the device, the layout's name and place between; the list is not shown. */
  .pt-lays { display: none; }
  .pt-lay { display: block; position: relative; z-index: 3; order: 3; padding: 0 var(--m); --lay-art: min(100vw, 640px);
    height: calc(var(--lay-art) * (1 - var(--lay-t) / 100)); margin-top: calc(var(--lay-art) * (var(--lay-t) / 100 - 1)); }
  .pt-lay[hidden] { display: none; }
  .pt-lay-step { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; column-gap: 6px; width: min(100%, 320px); margin: 0 auto; padding: 4px; border-radius: 999px;
    background: var(--glass-tint); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
  .pt-lay-step button { all: unset; box-sizing: border-box; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--cream-3); color: var(--cream); }
  .pt-lay-step button:active { background: var(--cream-hair); }
  .pt-lay-step p { display: grid; min-width: 0; line-height: 1.25; text-align: center; }
  .pt-lay-name { font-size: 15px; font-weight: 520; color: var(--cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pt-lay-pos { font-size: 11.5px; color: var(--cream-2); font-feature-settings: "tnum" 1; }
}

/* ---------- the plugin top in a short window (a 13-inch laptop): all of it on the first screen ---------- */
/* The wall is cropped evenly above and below the picture, which keeps its size; the type keeps its sizes and only the
   spaces close up, from today's at a 900 px window (--pt-fit 1px) to the least at 650 px (0px). */
@media (min-width: 1240px) {
  .pt { --pt-fit: clamp(0px, (100vh - 650px) / 250, 1px); }
  .pt-grid { min-height: min(824px, 100vh - 76px); }
  .pt-img { height: max(100%, 900px); top: min(0px, (100% - 900px) / 2); }
  .pt-copy { padding-top: calc(36px + 48 * var(--pt-fit)); padding-bottom: calc(60px + 12 * var(--pt-fit)); }
  .pt-name { margin-top: calc(20px + 12 * var(--pt-fit)); }
  .pt-sub { margin-top: calc(16px + 8 * var(--pt-fit)); }
  .pt-lays { margin-top: calc(20px + 8 * var(--pt-fit)); }
  .pt-lay-pick button { padding-block: calc(4px + 3 * var(--pt-fit)) calc(5px + 3 * var(--pt-fit)); }
  .pt-copy > :has(+ .pt-facts) { margin-bottom: calc(20px + 8 * var(--pt-fit)); } /* the least space over the facts */
  .pt-facts { padding-top: calc(14px + 4 * var(--pt-fit)); }
  .pt .actions { margin-top: calc(20px + 12 * var(--pt-fit)); }
  .pt-cap { bottom: calc(24px + 6 * var(--pt-fit)); }
}

/* ---------- the screen plate: a preview's white reads as paper (warm plate, image multiplied, hairline, no card) ---------- */
.pl-screen { background: var(--screen-plate); border: 1px solid var(--hair); overflow: hidden; }
.pl-screen img { mix-blend-mode: multiply; }

/* ---------- an X owner's X screen under the top, flat, at its own pixels ---------- */
.pl-lay-body { margin-top: 36px; align-items: start; }
.pl-view { width: 100%; max-width: 600px; margin: 0; }
.pl-view.solo { grid-column: 1 / span 12; justify-self: start; }
.pl-screen { position: relative; aspect-ratio: 5 / 3; }
.pl-screen img { width: 100%; height: 100%; display: block; }
.pl-view .s-cap { margin-top: 14px; font-size: 11.5px; }
@media (max-width: 760px) {
  .pl-lay-body { margin-top: 24px; }
  .pl-view { max-width: none; }
}

/* ---------- settings: every option as a ruled row ---------- */
.pl-opts { margin-top: 72px; }
.ps-head + .pl-opts, .pl-opts:first-child { margin-top: 0; }
.pl-opts-head { align-items: end; }
.pl-table { margin-top: 28px; border-bottom: 1px solid var(--hair); }
.pl-row { display: grid; grid-template-columns: 3fr 5fr 4fr; column-gap: var(--g); padding: 14px 0 16px; border-top: 1px solid var(--hair); align-items: start; }
.pl-row.hd { padding: 0 0 12px; border-top: 0; }
.pl-row.hd span { font-size: var(--t-kicker); font-weight: var(--w-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.pl-row h3 { font-size: 16px; font-weight: 500; letter-spacing: -0.005em; line-height: 1.35; }
.pl-row p { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); max-width: 52ch; }
.pl-row p a { text-decoration: underline; text-underline-offset: 3px; }
.pl-row .ex { margin-top: 6px; font-size: 13.5px; color: var(--ink-3); }
.pl-row .ex code { font: 12.5px/1.5 var(--mono); color: var(--syntax-base, #2b2b2b); background: var(--code-plate); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; } /* the help text's own HTML: the code plate's inline look (.ds-code-in) */
.pills { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.pill { display: inline-block; font-size: 12.5px; line-height: 1; padding: 7px 11px; border: 1px solid rgba(72,68,62,.26); border-radius: 999px; color: var(--ink); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.pill.more { border-style: dashed; color: var(--ink-2); }
.pl-more { display: none; }
.pl-opts.open .pl-more { display: grid; }
.pl-toggle { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-top: 1px solid var(--hair); font-size: 15px; font-weight: 520; color: var(--ink); }
.pl-toggle:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.pl-toggle::after { content: "+"; font-size: 20px; font-weight: 300; }
.pl-opts.open .pl-toggle::after { content: "\2212"; }
.pl-toggle .lbl-open { display: none; }
.pl-opts.open .pl-toggle .lbl-open { display: inline; } .pl-opts.open .pl-toggle .lbl-closed { display: none; }
@media (max-width: 760px) {
  .pl-opts { margin-top: 48px; }
  .pl-row { grid-template-columns: 1fr; row-gap: 8px; }
  .pl-row.hd { display: none; }
  .pl-row .pills { margin-top: 4px; }
}

/* ---------- tabs ---------- */
.ptabs { display: flex; gap: 36px; flex-wrap: wrap; border-bottom: 1px solid var(--hair); }
.ptabs button { all: unset; cursor: pointer; padding: 0 0 12px; margin-bottom: -1px; font-size: 20px; letter-spacing: -0.02em; font-weight: 340; color: var(--ink-3); border-bottom: 2px solid transparent; }
.ptabs button:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.ptabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.ptabs button:hover { color: var(--ink); }
.prel-top { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-top: 24px; }
.prel-top .s-arrow { margin: 0 0 14px; white-space: nowrap; }
#more .dgrid { margin-top: 32px; }
@media (max-width: 760px) {
  /* Phones: the tabs scroll sideways to the window's edges, the hairline keeping to the margins; a fade at the right says
     more follow until the last is in view. Each tab is a 44 px target. */
  .ptabs { gap: 22px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; margin: 0 calc(-1 * var(--m)); padding: 0 var(--m); border-bottom: 0;
    background: linear-gradient(var(--hair), var(--hair)) var(--m) 100% / calc(100% - 2 * var(--m)) 1px no-repeat;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); }
  .ptabs::-webkit-scrollbar { display: none; }
  .ptabs[data-end="true"] { -webkit-mask-image: none; mask-image: none; }
  .ptabs button { font-size: 17px; white-space: nowrap; padding: 8px 0 10px; margin-bottom: 0; }
  .prel-top { flex-direction: column; align-items: stretch; }
  /* The links under and over the cards: 44 px targets, the words where they were. */
  #more .s-arrow { min-height: 44px; align-items: center; align-self: flex-start; }
  .prel-top .s-arrow { margin: 7px 0 0; }
  #more .tabact { margin-top: 17px; }
}

/* ---------- the catalog tile: the plugin's icon on a paper plate, its name and one line; the screen on demand ---------- */
.dgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 48px; }
.dgrid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.dgrid[hidden] { display: none; }
.dt { position: relative; display: grid; grid-template-columns: 60px minmax(0, 1fr); column-gap: 16px; align-items: center; min-width: 0; min-height: 88px;
  padding: 14px 18px 14px 14px; border-radius: 14px; background: color-mix(in srgb, currentColor 4.5%, transparent); color: var(--ink); text-decoration: none;
  transition: background .2s; }
.dt:hover { background: color-mix(in srgb, currentColor 8.5%, transparent); }
.dt:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
/* Icons are drawn for a light ground, so the plate stays paper in the dark too. */
.dt-ic { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 13px; background: #fbfaf7; box-shadow: inset 0 0 0 1px rgba(61,61,62,.12); color: #3d3d3e; overflow: hidden; }
.dt-ic > img, .dt-ic > svg { width: 38px; height: 38px; object-fit: contain; }
.dt-meta { display: grid; row-gap: 3px; min-width: 0; }
.dt-n { font-size: 15.5px; font-weight: 500; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.dt:hover .dt-n { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.dt-d { font-size: 13.5px; line-height: 1.4; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dt-by { font-size: var(--t-caption); line-height: 1.4; color: var(--ink-3); }
/* The screen: above the tile while it is pointed at or focused, where a pointer can hover; on touch, the plugin's page shows it. */
.dt-pop { display: none; position: absolute; left: 0; right: 0; bottom: calc(100% + 10px); z-index: 5; aspect-ratio: 5 / 3; pointer-events: none;
  background: var(--screen-plate); border: 1px solid var(--hair); box-shadow: 0 18px 44px rgba(34,32,30,.2), 0 2px 6px rgba(34,32,30,.08); overflow: hidden; }
.dt-pop img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.dt-pop img.cover { object-fit: cover; }
@media (hover: hover) and (min-width: 1024px) {
  .dt:is(:hover, :focus-visible) .dt-pop { display: block; animation: dt-pop .2s cubic-bezier(.4, 0, .2, 1) .25s both; }
}
@keyframes dt-pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dt:is(:hover, :focus-visible) .dt-pop { animation: none; } }
@media (max-width: 1239px) { .dgrid, .dgrid.five { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .dgrid, .dgrid.five { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .dgrid, .dgrid.five { grid-template-columns: 1fr; gap: 8px; margin-top: 28px; }
  .dt { grid-template-columns: 52px minmax(0, 1fr); column-gap: 14px; min-height: 76px; padding: 12px 14px 12px 12px; }
  .dt-ic { width: 52px; height: 52px; border-radius: 12px; } .dt-ic > img, .dt-ic > svg { width: 32px; height: 32px; }
}

/* ---------- closing ---------- */
@media (max-width: 760px) { .cta-split-img { min-height: 360px; } }

/* ---------- catalog list (Plugins, Recipes): group rows, a group's sheet, loading ---------- */
.dgrp { display: grid; grid-template-columns: 96px 1fr auto; column-gap: 20px; align-items: center; padding: 18px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); margin-bottom: 8px; width: 100%; text-align: left; background: none; border-left: 0; border-right: 0; font: inherit; color: inherit; cursor: pointer; }
.dgrp img, .dgrp-ph { width: 96px; height: 58px; object-fit: contain; background: var(--screen-plate); border: 1px solid var(--hair); }
.dgrp b { display: block; font-size: 16px; font-weight: 480; } .dgrp span span { font-size: 13.5px; color: var(--ink-2); }
.dgrp .n { font-size: var(--t-kicker); font-weight: var(--w-label); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.dgrp:hover b { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
/* the group's members, in a sheet over the page */
.dsheet { width: min(1100px, calc(100% - 2 * var(--m))); max-height: calc(100% - 64px); margin: auto; padding: 40px; border: 1px solid var(--hair); background: var(--paper); color: var(--ink); overflow: auto; }
.dsheet::backdrop { background: rgba(24,23,22,.48); }
.dsheet-close { position: absolute; top: 16px; right: 16px; }
.dsheet-ic { width: 40px; height: 40px; object-fit: contain; }
.dsheet h3 { margin-top: 14px; font-size: 28px; font-weight: 340; letter-spacing: -0.02em; }
.dsheet > p { margin-top: 6px; font-size: var(--t-body-s); color: var(--ink-2); }
.dsheet .dgrid { margin-top: 28px; }
.dskel .dt-ic { box-shadow: none; background: var(--well-on-paper); }
.dskel .dt-meta span { display: block; height: 10px; border-radius: 3px; background: #ebe7df; margin-top: 6px; }
.dskel .dt-meta span:first-child { width: 70%; } .dskel .dt-meta span:last-child { width: 45%; }
.cmore { margin-top: 48px; display: flex; justify-content: center; align-items: center; gap: 16px; font-size: 13.5px; color: var(--ink-3); }
@media (max-width: 760px) {
  .dgrp { grid-template-columns: 72px 1fr; } .dgrp img, .dgrp-ph { width: 72px; height: 44px; } .dgrp .n { grid-column: 2; }
  .dsheet { padding: 28px 20px; width: calc(100% - 24px); }
}

/* ---------- recipe page bits ---------- */
.pt-back { display: inline-flex; gap: 10px; align-items: center; font-size: 15px; font-weight: 540; color: var(--cream); align-self: flex-start; }
.pt-back::before { content: "\2190"; font-weight: 400; }
.pt-chip { display: inline-block; font-size: 12.5px; font-weight: 520; padding: 3px 10px; border: 1px solid var(--hair); border-radius: 999px; }
.pt-facts .pt-chip { font-size: 12.5px; }
.pt-own { margin-top: 16px; font-size: 13.5px; color: var(--cream-2); }
.pt-own a { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
.pt .actions form { display: contents; }
.rbadge { display: inline-block; vertical-align: middle; font-size: 12px; font-weight: 520; letter-spacing: .02em; padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(72,68,62,.3); color: var(--ink-2); }
.bio-help { font-size: 15px; color: var(--ink-2); }
.ps-lede .bio-help { font-size: 15px; color: var(--ink-2); }
.bio-links { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.bio-links .s-arrow { margin-top: 0; }
.ps-lede p a { text-decoration: underline; text-underline-offset: 3px; }
/* the recipe's kind (an info message) and a degraded recipe's warning, both line-and-stop messages */
.rinfo { margin-top: 40px; }
.rinfo .ph { display: none; }
.rwarn { background: var(--paper); padding-top: 40px; }
.tabact { margin-top: 28px; } .tabact[hidden] { display: none; }
.pl-screen.x-screen { aspect-ratio: 4 / 3; }
@media (max-width: 760px) { .rinfo .ph { display: inline; } .rinfo .dk { display: none; } }

/* ---------- the confirm dialog today's Turbo setup draws (Fork this recipe): its app classes do not exist here ---------- */
#turbo-confirm-dialog { width: min(420px, calc(100% - 2rem)); margin: auto; padding: 0; border: 1px solid var(--hair); background: var(--paper); color: var(--ink); }
#turbo-confirm-dialog::backdrop { background: rgba(24,23,22,.48); }
#turbo-confirm-dialog > div { padding: 28px; }
#turbo-confirm-dialog h2 { font-size: 22px; font-weight: 400; letter-spacing: -0.01em; }
#turbo-confirm-dialog p { margin-top: 10px; font-size: var(--t-body-s); color: var(--ink-2); }
#turbo-confirm-dialog > div > div { margin-top: 24px; display: flex; justify-content: flex-end; gap: 12px; }
#turbo-confirm-dialog button { display: inline-flex; align-items: center; height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid rgba(61,61,62,.34); background: transparent; font: 520 15px var(--sans); color: var(--ink); cursor: pointer; }
#turbo-confirm-dialog [data-confirm-accept] { background: var(--orange); border-color: var(--orange); color: #fff; }

/* ---------- a search field's clear button, drawn in ink (the browser's own is blue) ---------- */
.tb-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; width: 14px; height: 14px; margin-left: 10px; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M2 2l10 10M12 2L2 12' fill='none' stroke='%233d3d3e' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat; }
.tb-search input:placeholder-shown::-webkit-search-cancel-button { display: none; }

/* ---------- Plugins and Recipes lists (design-tools gate 1, direction B): a paper top with the tool in it (CatalogTopComponent, sections.css) ---------- */
.pl-count { font-feature-settings: "tnum" 1; }
.tb { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--g); align-items: center; }
.tb-search { grid-column: 1 / span 8; position: relative; }
.tb-sort { grid-column: 10 / span 3; justify-self: end; display: flex; align-items: center; gap: 12px; }
.tb-sort .ds-in { width: auto; min-width: 180px; }
.tb-sort label { font-size: 13px; font-weight: 520; color: var(--ink-2); white-space: nowrap; }
.tb-hint { grid-column: 1 / span 8; margin: 10px 0 0 24px; min-height: 20px; }
.tb-hint.invisible { visibility: hidden; }
/* ---------- Plugins: the search in the top (catalog_state_controller.js) ---------- */
/* The field alone, as wide as the words, in the top's action. */
#catalog-tools:has(> .tb-solo) { flex: 1 1 100%; max-width: 560px; }
@media (min-width: 1000px) { #catalog-tools:has(> .tb-solo) { min-width: 448px; } } /* the whole placeholder in the field */
.tb-solo { display: block; position: relative; }
.pl-count ~ a.u { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; } /* the intro's recipes link */
/* Docked, the hint stands beside the field. */
@media (min-width: 761px) {
  .is-docked .tb-solo .tb-hint { position: absolute; left: calc(100% + 20px); top: 50%; margin: 0; min-height: 0; translate: 0 -50%;
    white-space: nowrap; }
}
/* Docked: once its place in the top has scrolled away, the same field, at the same left and width, stands in the page's
   own bar at the window's top: paper with a hairline, as the site's other bars (--dock-*, --vv-top from catalog-state). */
#catalog-tools.is-docked { --ink: var(--well-ink); position: fixed; z-index: 1; top: var(--vv-top, 0px); left: 0; right: 0; min-width: 0; max-width: none;
  padding: 11px var(--dock-right) 11px var(--dock-left); background: rgba(242, 239, 233, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(72, 68, 62, .18); animation: pl-bar .2s ease-out; }
#catalog-tools.is-docked .tb-solo { width: var(--dock-width); }
#catalog-tools.is-docked .tb-hint { color: var(--well-ink); opacity: .78; }
#catalog-tools.is-docked .tb-hint.invisible { display: none; } /* the bar is the field's own height until the hint shows */
#catalog-tools.is-docked .ds-in { --ds-gap: var(--band-paper); --ds-ring: var(--orange); }
@keyframes pl-bar { from { opacity: 0; } }
/* A search's count at the bar's right, aligned with the content's right edge, once the list's own count is under the bar. */
.tb-count { display: none; }
#catalog-tools.is-docked.shows-count .tb-count:not(:empty) { display: block; position: absolute; right: var(--dock-right); top: 50%; translate: 0 -50%; max-width: 40%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: var(--well-ink); opacity: .78; }
@media (max-width: 760px) { #catalog-tools.is-docked .tb-count { display: none !important; } }
/* A head the page scrolls to (a Back, a clear) stands clear of the bar. */
:root:has(#explore.pl-cat) { scroll-padding-top: 96px; }
/* The sort at the right end of the head of the list it orders (All plugins: SectionHeadComponent :bar; a search's summary); under it on phones. */
.pl-results-head .pl-sort { margin-left: auto; align-self: center; }
.pl-results-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.pl-results-head > p.status { margin-top: 0; }
.pl-results-head + .dgrp { margin-top: 28px; }
@media (max-width: 760px) {
  .pl-all .pl-sort, .pl-results-head .pl-sort { flex: 1 1 100%; margin: 0; justify-content: space-between; }
  .pl-results-head { row-gap: 22px; } /* from a head to its row */
}
.cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cats .chip { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--hair); font: 480 13px var(--sans); color: var(--ink); white-space: nowrap; cursor: pointer; background: transparent; }
.cats .chip i { font-style: normal; color: var(--ink-3); margin-right: 2px; }
.cats .chip:hover { border-color: rgba(61,61,62,.5); }
.cats .chip.on { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.cats .chip.on i { color: var(--cream-3); }
.pl-cat-b { padding-top: 24px; }
/* The Plugins list: Popular (the Works with wall), the categories, then every plugin and recipe; each part under a section head. */
.pl-part + .pl-part { margin-top: 112px; }
.pl-popular .ww { margin-top: 48px; }
.pl-cats .cats { list-style: none; margin: 28px 0 0; padding: 0; }
.pl-cats .chip { text-decoration: none; }
.pl-all .dgrid { margin-top: 32px; }
.pl-cat .status .pl-all-link { margin-left: 10px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
@media (max-width: 760px) {
  .pl-part + .pl-part { margin-top: 72px; }
  .pl-popular .ww { margin-top: 32px; }
  .pl-cats .cats { flex-wrap: wrap; overflow: visible; margin: 22px 0 0; padding: 0; }
}
.pl-cat .dgrid { margin-top: 48px; }
/* The Recipes list's cards: three to a row on small laptops and tablets held wide, where two would each be near 500 px. */
@media (min-width: 861px) and (max-width: 1100px) { .pl-cat .rc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pl-cat .status { margin-top: 40px; font-size: 14px; color: var(--ink-2); }
.pl-cat .status b { color: var(--ink); font-weight: 560; }
.pl-cat .status + .dgrp { margin-top: 28px; }
.pl-cat .sub-k { margin-top: 72px; }
.pl-cat .sub-k + .dgrid { margin-top: 28px; }
/* sample screens, a dark band running to the window's right edge */
.ss { background: var(--blk-panel); color: var(--on-blk); padding: 112px 0 104px; overflow: hidden; }
.ss .s-k { color: var(--on-blk-3); }
.ss-head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--g); align-items: end; }
.ss-head .s-k { grid-column: 1 / span 3; }
.ss-head p { grid-column: 5 / span 5; font-size: 15px; color: var(--on-blk-2); }
.ss-head .ss-nav { grid-column: 11 / span 2; justify-self: end; display: flex; gap: 8px; }
.ss-row { display: flex; gap: var(--g); margin-top: 48px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-left: max(var(--m), calc((100vw - 1440px) / 2 + var(--m))); padding-right: var(--m); }
.ss-row::-webkit-scrollbar { display: none; }
.ss-it { flex: none; width: 440px; scroll-snap-align: start; scroll-margin-left: max(var(--m), calc((100vw - 1440px) / 2 + var(--m))); }
.ss-it.sm { width: 300px; }
.ss-scr { position: relative; display: block; aspect-ratio: 5 / 3; background: #d9d5cd; overflow: hidden; }
.ss-scr img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.ss-cap { border-top: 1px solid var(--blk-hair); margin-top: 16px; padding-top: 14px; display: grid; grid-template-columns: 1fr auto; column-gap: 12px; }
.ss-cap b { font-weight: 480; font-size: 15px; color: var(--on-blk); }
.ss-cap span { grid-column: 1; font-size: 13px; color: var(--on-blk-2); }
.ss-cap em { grid-column: 2; grid-row: 1; font-style: normal; font-size: var(--t-kicker); font-weight: var(--w-label); letter-spacing: .1em; text-transform: uppercase; color: var(--on-blk-3); align-self: center; }
@media (max-width: 760px) {
  .tb { display: block; }
  .tb-sort { display: flex; width: 100%; justify-content: space-between; margin-top: 12px; }
  .tb-sort .ds-in { flex: 1; max-width: 240px; }
  .tb-hint { margin-left: 20px; }
  .cats { flex-wrap: nowrap; overflow-x: auto; margin: 14px calc(-1 * var(--m)) 0; padding: 0 var(--m); scrollbar-width: none; }
  .cats::-webkit-scrollbar { display: none; }
  .ss { padding: 72px 0; }
  .ss-head { display: block; }
  .ss-head p { margin-top: 14px; }
  .ss-head .ss-nav { display: none; }
  .ss-it, .ss-it.sm { width: 78vw; }
  .ss-row { margin-top: 32px; }
  .req-row { grid-template-columns: 40px 1fr; row-gap: 12px; }
  .req-row .s-arrow { grid-column: 2; }
}

/* ---------- the visitor's dark setting (plugin page, Recipes, recipe page; as today): hairlines and placeholders on the dark scale ---------- */
:root.dark body:not(.ground-a) :is(.cats .chip, .pill, .rbadge) { border-color: var(--dark-rule); }
:root.dark body:not(.ground-a) .cats .chip.on { color: var(--paper); }
:root.dark body:not(.ground-a) .cats .chip.on i { color: rgba(39,35,31,.6); }
:root.dark body:not(.ground-a) .dskel :is(.dt-ic, .dt-meta span) { background: var(--dark-well); }
:root.dark body:not(.ground-a) .dt-pop { border-color: var(--dark-rule); box-shadow: 0 18px 44px rgba(0,0,0,.45); }
/* the icon keeps its paper plate on the picture top: icons are drawn for a light ground */
:root.dark body:not(.ground-a) .pt-icon { background: #f2efe9; }
/* A refined search moves the list's tiles in a view transition (catalog-state): the field and its panel are their own
   group, drawn live, so what is typed never doubles while the rest cross-fades. */
#catalog-tools { view-transition-name: catalog-field; }
::view-transition-old(catalog-field) { display: none; }
::view-transition-new(catalog-field) { animation: none; }
/* ---------- The panel hanging from the search field (catalog-state): the best matches as rows, then the step to all of them in
   the list. Fixed, under the field wherever the field stands (its place in the top, or the docked bar), by --panel-*; over the
   top's picture and the page (top.css lifts the top's grid while it is open), under the site's open menus. ---------- */
.tb-panel { position: fixed; z-index: 2; top: var(--panel-top); left: var(--panel-left); width: var(--panel-width); max-height: var(--panel-max);
  box-sizing: border-box; padding: 6px; overflow: auto; overscroll-behavior: contain; border: 1px solid rgba(72, 68, 62, .16); border-radius: 18px;
  background: var(--well); color: var(--well-ink); box-shadow: 0 22px 48px -12px rgba(34, 32, 30, .3), 0 2px 6px rgba(34, 32, 30, .08);
  text-align: left; view-transition-name: catalog-panel; }
.tb-panel[hidden] { display: none; }
.tb-opt { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; align-items: center; min-height: 60px; padding: 8px 10px;
  border-radius: 12px; color: inherit; text-decoration: none; }
.tb-opt[aria-selected="true"], a.tb-opt:hover { background: color-mix(in srgb, var(--well-ink) 7%, transparent); }
.tb-opt-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; background: #fbfaf7; box-shadow: inset 0 0 0 1px rgba(61, 61, 62, .12); overflow: hidden; }
.tb-opt-ic img { width: 28px; height: 28px; object-fit: contain; }
.tb-opt-t { display: grid; row-gap: 2px; min-width: 0; }
.tb-opt-n { font-size: 15px; font-weight: 500; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-opt-d { font-size: 13px; line-height: 1.4; opacity: .72; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-all { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; margin-top: 4px;
  padding: 0 12px; border-top: 1px solid rgba(72, 68, 62, .12); border-radius: 0 0 12px 12px; background: var(--well); font-size: 14px; font-weight: 500;
  color: inherit; text-decoration: none; } /* always in sight, the rows scrolling under it */
.tb-all::after { content: "\2193"; opacity: .6; }
.tb-all[aria-selected="true"], .tb-all:hover { background: color-mix(in srgb, var(--well-ink) 7%, var(--well)); }
.tb-none { margin: 0; padding: 14px 12px; font-size: 14px; opacity: .78; }
/* Waiting for a first answer: rows in the tile's own shape, breathing slowly. */
.tb-wait .tb-opt-ic { box-shadow: none; background: var(--well-on-paper); }
.tb-wait .tb-opt-t span { display: block; height: 10px; border-radius: 3px; background: var(--well-on-paper); }
.tb-wait .tb-opt-t span:first-child { width: 60%; }
.tb-wait .tb-opt-t span:last-child { width: 38%; }
@media (prefers-reduced-motion: no-preference) {
  .tb-panel:not([hidden]) { animation: tb-panel .16s ease-out; }
  .tb-opt.is-new { animation: tb-opt .22s ease-out both; }
  .tb-wait .tb-opt { animation: tb-wait 1.2s ease-in-out infinite alternate; }
  /* The list's next page arrives in a calm fade (catalog-state marks the new tiles). */
  .dt.is-new { animation: dt-new .3s ease-out both; }
}
@keyframes tb-panel { from { opacity: 0; translate: 0 -4px; } }
@keyframes tb-opt { from { opacity: 0; } }
@keyframes tb-wait { to { opacity: .55; } }
@keyframes dt-new { from { opacity: 0; translate: 0 6px; } }
