/* The Card Studio's guided start: a third arrangement of the studio (data-ui="guide" on #hc), one question at a time
   beside the person's own post. Silverpress only: the question sits on the carbon counter, the post on a light table
   beside it. Teal in two places: the chosen state's check and the step line. The studio's own panels are hidden while
   the guide is on, never removed; its controls the guide borrows keep their own markup and get the guide's sizes here.
   Every target is at least 48 px; type is 17 px and up; nothing here moves under prefers-reduced-motion. */

/* outside the guide, its parts are not on the page */
.gd-top, .gd-screen, .gd-foot, .gd-examples { display: none; }

/* ---------- the arrangement ---------- */
.hc[data-ui="guide"] {
  --gd-table: var(--stock-3); --gd-table-hi: #232C31; --gd-gut: 20px;
  font-size: 1.0625rem; line-height: 1.5; background: var(--stock-2);
}
:root[data-theme="light"] .hc[data-ui="guide"] { --gd-table: #D6DBDA; --gd-table-hi: #F7F8F8; }
/* the bar: only its live region stays, out of sight, so what just happened is still said */
.hc[data-ui="guide"] .hc-bar { display: contents; }
.hc[data-ui="guide"] .hc-bar > * { display: none; }
.hc[data-ui="guide"] .hc-bar > .hc-status { display: block; position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hc[data-ui="guide"] .hc-ptabs,
.hc[data-ui="guide"] .hc-work > :not(.gd-top):not(.gd-screen):not(.gd-foot):not(#pane-post) { display: none; }
.hc[data-ui="guide"] .hc-work { display: flex; flex-direction: column; min-width: 0; }
.hc[data-ui="guide"] .gd-top { order: 0; display: flex; }
.hc[data-ui="guide"] #pane-post { order: 1; }
.hc[data-ui="guide"] .gd-screen { order: 2; display: block; }
.hc[data-ui="guide"] .gd-foot { order: 3; display: flex; }
.hc[data-ui="guide"]:not([data-gstep="type"]) #pane-post,
.hc[data-ui="guide"][data-gstep="type"] .gd-screen,
.hc[data-ui="guide"][data-gstep="type"] .gd-foot { display: none; }

/* ---------- the post, on its light table ---------- */
.hc[data-ui="guide"] .hc-view__top { display: none; }
.hc[data-ui="guide"][data-gstep="done"] .hc-view__top { display: flex; justify-content: center; border-bottom: 0; padding: 10px 12px 0; }
.hc[data-ui="guide"] .hc-fadd, .hc[data-ui="guide"] .hc-view__top .hc-tog, .hc[data-ui="guide"] .hc-fwhy { display: none; }
.hc[data-ui="guide"] .hc-ftabs [role="tab"] { min-height: 48px; padding: 0 14px; }
.hc[data-ui="guide"] .hc-view__top { grid-row: 1; }
.hc[data-ui="guide"] .hc-stage { grid-row: 2; }
.hc[data-ui="guide"] .hc-transport { grid-row: 3; }
.hc[data-ui="guide"] .hc-stage { background: radial-gradient(ellipse 70% 62% at 50% 45%, var(--gd-table-hi) 0%, var(--gd-table) 72%); }
.hc[data-ui="guide"] .hc-frame { box-shadow: 0 0 0 1px var(--line-2), 0 22px 48px -18px rgba(0, 0, 0, .55); }
:root[data-theme="light"] .hc[data-ui="guide"] .hc-frame { box-shadow: 0 0 0 1px var(--line-2), 0 22px 44px -20px rgba(8, 11, 13, .38); }
/* one big Play button under the post, for a video; no timecode, no scrubber */
.hc[data-ui="guide"] .hc-transport { justify-content: center; border-top: 0; padding: 10px 12px 14px; background: var(--gd-table); }
.hc[data-ui="guide"][data-mode="picture"] .hc-transport { display: none; }
.hc[data-ui="guide"] .hc-transport > :not(.hc-play) { display: none; }
.hc[data-ui="guide"] .hc-play { width: 56px; height: 56px; }
.hc[data-ui="guide"] .hc-play svg { width: 20px; height: 20px; }
/* the frame as it was, fading out over the new one when the post develops */
.gd-ghost { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; transition: opacity .18s var(--ease); }
/* a game post before the person's own card is in: the opening card stands in under a plain cover */
.hc[data-ui="guide"][data-gnocard] .hc-frame::after {
  content: "Your card goes here"; position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 16px; text-align: center;
  background: var(--gd-table); border: 2px dashed var(--edge); color: var(--ink-2); font: 700 1.0625rem/1.3 var(--sans);
}

/* ---------- the step line, and Skip ---------- */
.gd-top { flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 16px var(--gd-gut) 4px; }
.gd-step { display: flex; align-items: center; gap: 12px; margin: 0; font: 800 .72rem/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.gd-step:has(#gd-step:empty) { visibility: hidden; }
.gd-line { display: inline-flex; gap: 4px; }
.gd-line i { display: block; width: 18px; height: 3px; border-radius: 2px; background: var(--line-2); }
.gd-top[data-at="2"] .gd-line i:nth-child(-n+1), .gd-top[data-at="3"] .gd-line i:nth-child(-n+2),
.gd-top[data-at="4"] .gd-line i:nth-child(-n+3), .gd-top[data-at="5"] .gd-line i:nth-child(-n+4) { background: var(--ink-3); }
.gd-top[data-at="1"] .gd-line i:nth-child(1), .gd-top[data-at="2"] .gd-line i:nth-child(2), .gd-top[data-at="3"] .gd-line i:nth-child(3),
.gd-top[data-at="4"] .gd-line i:nth-child(4), .gd-top[data-at="5"] .gd-line i:nth-child(5), .gd-top:not([data-at]) .gd-line i:nth-child(1) { background: var(--teal); }
.hc[data-ui="guide"] .gd-skip { min-height: 48px; }
.hc[data-ui="guide"][data-gstep="done"] .gd-skip { display: none; }      /* the last screen has Open in the studio */

/* ---------- a question ---------- */
.hc[data-ui="guide"] #pane-post, .gd-screen { padding: 6px var(--gd-gut) 28px; }
.hc[data-ui="guide"] #pane-post { border: 0; }
.hc[data-ui="guide"] .st-post__h, .gd-h { font: 700 clamp(1.9rem, calc(1.2rem + 2vw), 2.6rem)/1.12 var(--display); letter-spacing: -.01em; color: var(--ink); margin: 6px 0 0; text-wrap: balance; outline: none; }
.hc[data-ui="guide"] .st-post__note, .gd-p { margin: 10px 0 0; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.5; max-width: 34em; }
.gd-h2 { font: 700 1.45rem/1.2 var(--display); color: var(--ink); margin: 34px 0 0; outline: none; }
.gd-h3 { font: 700 1.25rem/1.25 var(--display); color: var(--ink); margin: 0 0 12px; outline: none; }
.gd-screen .gd-h:focus, .gd-h3:focus, .gd-h2:focus { outline: none; }
.gd-q > .gd-tiles, .gd-q > .gd-chips, .gd-q > .gd-fields, .gd-q > .gd-field, .gd-q > .gd-panel, .gd-q > .gd-places, .gd-q > .gd-lookgrid { margin-top: 24px; }
.is-in { animation: gd-in .22s var(--ease-out) both; }
@keyframes gd-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .is-in { animation: none; } .gd-ghost { transition: none; } }

/* ---------- big choices: an icon, a bold label, one plain line ---------- */
.hc[data-ui="guide"] .st-types, .gd-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.hc[data-ui="guide"] .st-type, .gd-tile {
  position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 3px 14px; align-items: center; width: 100%; height: 100%; min-height: 76px;
  padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--stock); color: var(--ink); text-align: left; text-decoration: none; font: inherit; cursor: pointer;
}
.hc[data-ui="guide"] .st-type svg, .gd-tile svg { grid-row: span 2; width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: miter; }
.gd-tile svg .on, .hc[data-ui="guide"] .st-type svg .on { fill: var(--stock); }
.hc[data-ui="guide"] .st-type b, .gd-tile b { font: 700 1.0625rem/1.2 var(--display); align-self: end; }
.gd-tile > b:only-of-type:last-child { grid-row: span 2; align-self: center; }
.hc[data-ui="guide"] .st-type > span, .gd-tile > span { align-self: start; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.35; }
.gd-tile > b:last-of-type + .sr { position: absolute; }
.hc[data-ui="guide"] .st-type:hover, .gd-tile:hover { border-color: var(--ink); }
/* chosen: a 2 px ink edge and a teal tab with a check (never the color alone) */
.hc[data-ui="guide"] .st-type[aria-pressed="true"], .gd-tile[aria-pressed="true"] { border: 2px solid var(--ink); padding: 13.5px 15.5px; box-shadow: none; }
/* a tile that can be chosen keeps room for the check tab, chosen or not, so its words never move or sit under the tab */
.hc[data-ui="guide"] .st-type, .gd-tile[aria-pressed] { padding-right: 40px; }
.hc[data-ui="guide"] .st-type[aria-pressed="true"], .gd-tile[aria-pressed="true"] { padding-right: 39.5px; }
.hc[data-ui="guide"] .st-type[aria-pressed="true"]::after, .gd-tile[aria-pressed="true"]::after, .gd-look[aria-pressed="true"] .gd-look__pic::after {
  content: ""; position: absolute; top: -2px; right: -2px; width: 30px; height: 28px; border-radius: 0 11px 0 9px;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%23080B0D' stroke-width='2.4' stroke-linecap='square'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.gd-tiles--sources { grid-template-columns: minmax(0, 1fr); }
.gd-tile--out { border-style: dashed; }
.gd-binder { display: contents; }

/* chips: one answer from a short list */
.gd-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.gd-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border: 1.5px solid var(--line-2); border-radius: 10px; background: var(--stock); color: var(--ink); font: 600 1.0625rem/1.2 var(--sans); cursor: pointer; }
.gd-chip:hover { border-color: var(--ink); }
.gd-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--stock); }
.gd-chip[aria-pressed="true"]::before { content: ""; width: 14px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5l3.5 3.3L13.5 4' fill='none' stroke='%2316A7B8' stroke-width='2.6'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ---------- fields: big, plainly labeled ---------- */
.gd-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 14px; }
.gd-fields .wide, .gd-fields > .gd-checks { grid-column: 1 / -1; }
.hc[data-ui="guide"] .gd-field > label, .hc[data-ui="guide"] .gd-screen .hc-fields label, .hc[data-ui="guide"] .gd-wants > label, .hc[data-ui="guide"] .gd-field.wide > label {
  display: block; margin: 0 0 6px; font: 700 1rem/1.3 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink);
}
.hc[data-ui="guide"] .gd-screen input[type="text"], .hc[data-ui="guide"] .gd-screen input[type="url"], .hc[data-ui="guide"] .gd-screen input:not([type]),
.hc[data-ui="guide"] .gd-screen input[type="search"], .hc[data-ui="guide"] .gd-screen textarea, .hc[data-ui="guide"] .gd-screen select {
  min-height: 52px; padding: 12px 14px; font: 500 1.0625rem/1.35 var(--sans); border-radius: 9px;
}
.hc[data-ui="guide"] .gd-screen textarea { min-height: 11em; }
.hc[data-ui="guide"] .gd-screen input::placeholder, .hc[data-ui="guide"] .gd-screen textarea::placeholder { color: var(--ink-3); opacity: 1; }
.gd-field + .gd-field, .gd-field + .gd-check, .gd-check + .gd-field { margin-top: 18px; }
.gd-fields > .gd-field + .gd-field { margin-top: 0; }
.gd-field--price input { font: 700 1.6rem/1.2 var(--display) !important; max-width: 14rem; }
.gd-field--handle { margin-top: 34px !important; padding-top: 24px; border-top: 1px solid var(--line); }
.gd-hint, .hc[data-ui="guide"] .gd-screen .hc-note, .hc[data-ui="guide"] .gd-screen .hc-count { margin: 8px 0 0; color: var(--ink-2); font-size: 1rem; line-height: 1.45; }
.hc[data-ui="guide"] .gd-screen .hc-check { min-height: 48px; font: 600 1.0625rem/1.3 var(--sans); letter-spacing: 0; }
.hc[data-ui="guide"] .gd-screen input[type="checkbox"] { width: 22px; height: 22px; }
.gd-checks { display: flex; flex-wrap: wrap; gap: 0 22px; }
.hc[data-ui="guide"] .gd-screen .hc-btn { min-height: 48px; padding: 0 16px; font-size: .72rem; }
.gd-field--other { margin-top: 16px; max-width: 16rem; }
.gd-field--grade { margin-top: 18px; max-width: 12rem; }
.gd-field--grade input { font: 700 1.6rem/1.2 var(--display) !important; }
.hc[data-ui="guide"] .gd-screen .st-link { margin-top: 8px; }
.hc[data-ui="guide"] .gd-screen .feed-open { margin: 22px 0 0; }
.hc[data-ui="guide"] .gd-screen .feed { margin: 16px 0 0; }
.hc[data-ui="guide"] .gd-screen .feed__row { min-height: 52px; }
.hc[data-ui="guide"] .gd-screen .feed__who { font-size: 1rem; }
.hc[data-ui="guide"] .gd-screen .feed__sum { font-size: .95rem; }
.hc[data-ui="guide"] .gd-screen .feed__sports > label > span { min-height: 52px; }
.gd-q > .feed + .gd-fields { margin-top: 22px; }
.hc[data-ui="guide"] .gd-wants { margin-top: 24px; }
.hc[data-ui="guide"] .gd-wants .hc-rowbtns { margin-top: 12px; }

/* disclosures: More details, Adjust the photo */
.gd-more { margin-top: 18px; border-top: 1px solid var(--line); }
.gd-more > summary { display: flex; align-items: center; gap: 10px; min-height: 52px; cursor: pointer; font: 700 1.0625rem/1.3 var(--sans); color: var(--ink); list-style: none; }
.gd-more > summary::-webkit-details-marker { display: none; }
.gd-more > summary::before { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s var(--ease); }
.gd-more[open] > summary::before { transform: rotate(45deg); }
.gd-more > .gd-fields, .gd-adjust__in, .gd-mybrand__in { padding: 6px 0 14px; }
/* Your brand, under the handle (studio/brand-panel.js, compact): the guide's own sizes for its fields and its boxes */
.hc[data-ui="guide"] .gd-mybrand .hc-fields { gap: 14px; }
.hc[data-ui="guide"] .gd-mybrand label:not(.hc-check) { font: 700 1rem/1.3 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); }
.hc[data-ui="guide"] .gd-mybrand input[type="text"], .hc[data-ui="guide"] .gd-mybrand select { min-height: 48px; font-size: 1rem; }
.hc[data-ui="guide"] .gd-mybrand .hc-check { min-height: 48px; font-size: 1rem; }
.hc[data-ui="guide"] .gd-mybrand .hc-btn, .hc[data-ui="guide"] .gd-mybrand .btn { min-height: 48px; }
.gd-more[hidden] { display: none; }
.gd-slide { margin-bottom: 10px; }
.hc[data-ui="guide"] .gd-slide label { font: 700 1rem/1.3 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); }
.hc[data-ui="guide"] .gd-slide input[type="range"] { height: 48px; }
.hc[data-ui="guide"] .gd-slide input[type="range"]::-webkit-slider-thumb { width: 26px; height: 26px; margin-top: -11px; }
.hc[data-ui="guide"] .gd-slide input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; }
@media (prefers-reduced-motion: reduce) { .gd-more > summary::before { transition: none; } }

/* ---------- the cards ---------- */
.gd-places { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 12px 10px; padding: 0; list-style: none; }
.gd-place { display: flex; flex-direction: column; gap: 6px; width: 100%; min-height: 48px; padding: 0; border: 0; background: none; color: var(--ink-2); font: 700 .9rem/1.25 var(--sans); text-align: center; cursor: pointer; }
.gd-place__pic { position: relative; display: grid; place-items: center; aspect-ratio: 5 / 7; background: var(--stock-3); box-shadow: 0 0 0 1px var(--line-2); outline: 2px solid transparent; outline-offset: 3px; }
.gd-place__pic canvas { display: block; width: 100%; height: 100%; }
.gd-place.is-empty .gd-place__pic { background: none; box-shadow: none; border: 1.5px dashed var(--edge); padding: 6px; font: 800 .66rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.gd-place__no { position: absolute; left: 0; top: 0; min-width: 22px; padding: 4px 5px; background: var(--ink); color: var(--stock); font: 800 .68rem/1 var(--sans); }
.gd-place__name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-place[aria-pressed="true"] .gd-place__pic { outline-color: var(--ink); }
.gd-place[aria-pressed="true"] .gd-place__name { color: var(--ink); }
.gd-panel { margin-top: 24px; }
.gd-again { margin: 0 0 12px; padding: 12px 14px; border-left: 3px solid var(--ink); background: var(--stock-3); color: var(--ink); font-weight: 700; }
.gd-again[hidden] { display: none; }
.gd-reveal:not(:empty) { margin-top: 18px; }
.gd-samples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 12px; padding: 0; list-style: none; }
.gd-sample { display: block; width: 100%; padding: 0; border: 0; background: none; color: var(--ink-2); text-align: left; cursor: pointer; }
.gd-sample img { width: 100%; height: auto; aspect-ratio: 5 / 7; object-fit: cover; background: var(--stock-3); outline: 2px solid transparent; outline-offset: 3px; }
.gd-sample:hover img { outline-color: var(--line-2); }
.gd-sample span { display: block; margin-top: 7px; font: 700 .95rem/1.25 var(--sans); }
.gd-mine .hc-mine__out, .gd-mine .hc-mine__store { display: none !important; }
.gd-mine .hc-mine__h { font: 700 1.1rem/1.25 var(--display); letter-spacing: 0; text-transform: none; color: var(--ink); }
.gd-mine .hc-bin { gap: 14px 12px; }
.gd-mine .hc-tile span { font-size: .9rem; }
.hc[data-ui="guide"] .gd-mine .hc-mine__find input { min-height: 52px; font-size: 1.0625rem; }
.hc[data-ui="guide"] .gd-mine .hc-mine__find label { font: 700 1rem/1.3 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); }
.gd-about { padding: 18px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--stock); }
.gd-read { margin: 0 0 18px; padding: 0 0 18px; border-bottom: 1px solid var(--line); }
.gd-read[hidden] { display: none; }
.gd-read .gd-hint { margin-top: 10px; }
.hc[data-ui="guide"] .gd-read .btn { min-height: 48px; }
.gd-out { margin-top: 16px; }
.gd-another { margin-top: 16px; }
.hc[data-ui="guide"] .gd-another { min-height: 52px; width: 100%; font-size: .74rem; }
.gd-pick { position: relative; height: 0; overflow: visible; }
.gd-file { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ---------- the looks ---------- */
.gd-lookgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 12px; }
.gd-look { display: block; width: 100%; padding: 0; border: 0; background: none; color: var(--ink-2); text-align: left; cursor: pointer; }
.gd-look__pic { position: relative; display: block; aspect-ratio: var(--ar, 4 / 5); background: var(--stock-3); box-shadow: 0 0 0 1px var(--line-2); outline: 2px solid transparent; outline-offset: 3px; }
.gd-look__pic canvas { display: block; width: 100%; height: 100%; }
.gd-look:hover .gd-look__pic { outline-color: var(--line-2); }
.gd-look[aria-pressed="true"] .gd-look__pic { outline-color: var(--ink); }
.gd-look[aria-pressed="true"] .gd-look__pic::after { top: -5px; right: -5px; border-radius: 0 0 0 9px; }
.gd-look__name { display: block; margin-top: 9px; font: 700 1rem/1.25 var(--sans); }
.gd-look[aria-pressed="true"] .gd-look__name { color: var(--ink); }
.gd-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hc[data-ui="guide"] .gd-acts .btn { min-height: 48px; }
.gd-pals { margin-top: 18px; padding: 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--stock); }
.hc[data-ui="guide"] .gd-pals #hc-pals { display: block; }
.hc[data-ui="guide"] .gd-pals .pals__sports, .hc[data-ui="guide"] .gd-pals .pals__menu, .hc[data-ui="guide"] .gd-pals .pals__on { max-width: none; }
.hc[data-ui="guide"] .gd-pals .pals__sport { height: 52px; }
.hc[data-ui="guide"] .gd-pals .pals__c { min-height: 48px; font-size: 1rem; }
.hc[data-ui="guide"] .gd-pals .pals__p { min-height: 48px; }
.hc[data-ui="guide"] .gd-pals .pals__w input[type="color"] { width: 56px; height: 48px; }
.hc[data-ui="guide"] .gd-pals .pals__menu label, .hc[data-ui="guide"] .gd-pals .pals > .hc-h, .hc[data-ui="guide"] .gd-pals .hc-l { font: 700 1rem/1.3 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); }

/* ---------- your post is ready ---------- */
.hc[data-ui="guide"] .gd-caption { margin-top: 26px; padding: 0; border: 0; }
.hc[data-ui="guide"] .gd-caption > .hc-h { font: 700 1.25rem/1.25 var(--display); letter-spacing: 0; text-transform: none; color: var(--ink); margin: 0 0 12px; }
.hc[data-ui="guide"] .gd-caption .hc-fields { gap: 16px; }
.hc[data-ui="guide"] .gd-caption .hc-aicap { font-size: 1rem; }
.gd-done .gd-h3 { margin-top: 30px; }
.gd-picked { margin: 0; border-top: 1px solid var(--line-2); }
.gd-row { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 4px 14px; align-items: center; min-height: 56px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.gd-row[hidden] { display: none; }
.gd-row dt { font: 700 1rem/1.3 var(--sans); color: var(--ink-2); }
.gd-row dd { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; min-width: 0; }
.gd-row__v { min-width: 0; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.gd-change, .gd-again-btn { flex: none; display: inline-flex; align-items: center; min-height: 48px; padding: 0 4px; border: 0; background: none; color: var(--ink); font: 800 .76rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; cursor: pointer; }
.gd-change:hover, .gd-again-btn:hover { text-decoration-thickness: 2.5px; }
.gd-acts--done { align-items: center; gap: 14px 22px; margin-top: 26px; }
.hc[data-ui="guide"] .gd-acts--done .btn { min-height: 52px; }

/* ---------- the way on: Back and Next, pinned at the bottom on a phone, above the browser's own bar ---------- */
.gd-foot {
  position: sticky; bottom: 0; z-index: 15; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px var(--gd-gut); padding-bottom: max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line-2); background: var(--stock-2);
}
.hc[data-ui="guide"] .gd-back { min-height: 52px; padding: 0 18px; font-size: .72rem; }
.gd-back[hidden] { display: inline-flex !important; visibility: hidden; }
.gd-wait { flex: 1 1 0; min-width: 0; margin: 0; color: var(--ink-2); font-size: .95rem; line-height: 1.3; text-align: right; }
.hc[data-ui="guide"] .gd-next { min-height: 52px; min-width: 8.5rem; font-size: .8rem; }
.hc[data-ui="guide"] .gd-next[disabled] { opacity: .45; }

/* ---------- a phone (and a tablet): the post pinned on top, compact; the question under it ---------- */
@media (max-width: 1099px) {
  .hc[data-ui="guide"] { --gd-gut: 16px; }
  .hc[data-ui="guide"] .hc-stage { height: min(29vh, 290px); height: min(29dvh, 290px); }
  /* the last screen: the finished post is not pinned; it stands at the top, large, with its size tabs, the heading
     under it still on the screen (round 2, G4) */
  .hc[data-ui="guide"][data-gstep="done"] .hc-pin { position: static; }
  .hc[data-ui="guide"][data-gstep="done"] .hc-stage { height: min(52vh, calc(100vh - 230px)); height: min(52dvh, calc(100dvh - 230px)); min-height: 180px; }
  .hc[data-ui="guide"][data-gstep="done"] .hc-view__top { padding-top: 8px; }
  .hc[data-ui="guide"] .gd-caption textarea { min-height: 7.5em; }
  /* the step line and Skip on one row, Skip a quiet link; the five segments a full-width line under them (G2) */
  .hc[data-ui="guide"] .gd-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 12px; padding: 4px var(--gd-gut) 2px; }
  .hc[data-ui="guide"] .gd-step { display: contents; }
  .hc[data-ui="guide"] #gd-step { grid-column: 1; grid-row: 1; }
  .hc[data-ui="guide"] .gd-skip { grid-column: 2; grid-row: 1; justify-self: end; min-height: 48px; padding: 0 2px; border: 0; background: none; color: var(--ink);
    font: 600 1rem/1.2 var(--sans); letter-spacing: 0; text-transform: none; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
  .hc[data-ui="guide"] .gd-line { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin: 0 0 6px; }
  .hc[data-ui="guide"] .gd-line i { width: auto; height: 4px; }
  .hc[data-ui="guide"][data-gstep="done"] .gd-top { display: none; }
  .hc[data-ui="guide"] .hc-transport { padding: 6px 12px 8px; }
  .hc[data-ui="guide"] .hc-play { width: 52px; height: 52px; }
  .hc[data-ui="guide"][data-gstep="type"] .hc-pin { display: none; }
  .hc[data-ui="guide"] .gd-screen, .hc[data-ui="guide"] #pane-post, .hc[data-ui="guide"] .gd-top { max-width: 760px; width: 100%; margin: 0 auto; }
  .hc[data-ui="guide"] .gd-foot > * { max-width: 760px; }
  /* two across where the labels fit (each stands on its own line under its icon), one across where they don't */
  .hc[data-ui="guide"] .st-type { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 8px; }
  .hc[data-ui="guide"] .st-type svg { grid-row: auto; width: 38px; height: 38px; }
  .hc[data-ui="guide"] .st-type b, .hc[data-ui="guide"] .st-type > span { align-self: auto; }
  .hc[data-ui="guide"] .st-type b small { display: block; margin: 4px 0 0; }
  .gd-tiles--places { grid-template-columns: minmax(0, 1fr); }
  .gd-tiles--modes .gd-tile { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 8px; }
  .gd-tiles--modes .gd-tile svg { grid-row: auto; width: 38px; height: 38px; }
  .gd-tiles--modes .gd-tile b, .gd-tiles--modes .gd-tile > span { align-self: auto; grid-row: auto; }
  /* stacked, the icon has the top row to itself and the check tab sits beside it, so the words keep the tile's whole
     width ("New pickup" and "Looking for" stay on one line) */
  .hc[data-ui="guide"] .st-type, .gd-tiles--modes .gd-tile[aria-pressed] { padding-right: 16px; }
  .hc[data-ui="guide"] .st-type[aria-pressed="true"], .gd-tiles--modes .gd-tile[aria-pressed="true"] { padding-right: 15.5px; }
  .gd-lookgrid[data-kind="wide"] { grid-template-columns: minmax(0, 1fr); }
  .gd-lookgrid[data-kind="wide"] .gd-look { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; align-items: center; }
  .gd-lookgrid[data-kind="wide"] .gd-look__name { margin: 0; }
}
@media (max-width: 360px) {
  .gd-pals { padding: 12px 8px; }
  .hc[data-ui="guide"] .st-types, .gd-tiles { grid-template-columns: minmax(0, 1fr); }
  .hc[data-ui="guide"] .st-type { grid-template-columns: 38px minmax(0, 1fr); gap: 3px 14px; align-items: center; padding-right: 40px; }      /* the icon beside the words again: room for the tab */
  .hc[data-ui="guide"] .st-type[aria-pressed="true"] { padding-right: 39.5px; }
  .hc[data-ui="guide"] .st-type svg { grid-row: span 2; }
  .gd-fields { grid-template-columns: minmax(0, 1fr); }
  .gd-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .gd-lookgrid { gap: 10px 8px; }
  .gd-look__name { font-size: .9rem; }
}
/* a narrow phone: the reason beside Next ("Type one card to go on.") keeps to two lines between Back and Next (it ran to
   three at 375 px; the lead's hand test, November 20, 2026). Both buttons stay 52 px tall. */
@media (max-width: 430px) {
  .gd-wait { font-size: .85rem; line-height: 1.25; }
  .hc[data-ui="guide"] .gd-next { min-width: 7.25rem; }
}
@media (max-width: 360px) {
  .gd-foot { gap: 10px; }
  .gd-wait { font-size: .8rem; }
  .hc[data-ui="guide"] .gd-back { padding: 0 14px; }
  .hc[data-ui="guide"] .gd-next { min-width: 6.25rem; }
}

/* ---------- a computer: the question on the left, about 520 px; the post pinned on the right ---------- */
@media (min-width: 1100px) {
  .hc[data-ui="guide"] {
    --gd-gut: 32px;
    display: grid; grid-template-columns: clamp(560px, calc(52vw - 60px), 700px) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); grid-template-areas: "q table";
    height: clamp(700px, calc(100vh - 20px), 980px); border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; overflow: clip;
  }
  .hc[data-ui="guide"] .hc-work { grid-area: q; position: relative; overflow: auto; border-right: 1px solid var(--line-2); }
  .hc[data-ui="guide"] .gd-foot { margin-top: auto; }
  .hc[data-ui="guide"] .hc-pin { grid-area: table; display: flex; flex-direction: column; min-height: 0; background: var(--gd-table); }
  .hc[data-ui="guide"] .hc-view { flex: 1 1 auto; min-height: 0; background: var(--gd-table); }
  .hc[data-ui="guide"] .hc-transport { padding: 12px 12px 22px; }
  .hc[data-ui="guide"][data-gstep="type"] .hc-pin { display: none; }
  .hc[data-ui="guide"][data-gstep="type"] .gd-examples { grid-area: table; display: grid; place-items: center; background: radial-gradient(ellipse 70% 62% at 50% 45%, var(--gd-table-hi) 0%, var(--gd-table) 72%); }
  .hc[data-ui="guide"] .gd-tiles--sources { grid-template-columns: minmax(0, 1fr); }
  .gd-lookgrid[data-kind="wide"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.gd-ex { position: relative; height: min(74%, 660px); aspect-ratio: 4 / 5; }
.gd-ex__post { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.1s var(--ease); box-shadow: 0 0 0 1px var(--line-2), 0 26px 56px -20px rgba(0, 0, 0, .55); }
.gd-ex__post.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .gd-ex__post { transition: none; } }

/* ---------- New post, in the bar, and its question ---------- */
.hc[data-ui="simple"] .hc-new { min-height: 44px; }
.gd-dlg { width: min(460px, calc(100vw - 24px)); }
.gd-dlg h2 { font: 700 1.6rem/1.15 var(--display); }
.gd-dlg .hc-dlg__what { font-size: 1.0625rem; }
.gd-dlg .btn { min-height: 48px; }
.gd-dlg .hc-dlg__acts { margin: 18px 0 0; }

/* ---------- round 2 ---------- */
/* signed out: one line that the site can fill the card's details in, a sign-in in a new tab (G5) */
.gd-readout { margin: -4px 0 14px; }
.gd-readout[hidden] { display: none; }
.gd-readout a { display: inline-flex; align-items: center; min-height: 48px; color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
/* a Looking for post's photo: only the picture's own controls (G7) */
.gd-about--photo { padding-top: 6px; }
.gd-about--photo .gd-adjust { margin-top: 0; border-top: 0; }

/* ---------- round 3 ---------- */
/* a look whose fonts could not be had: the plain words in its tile, readable in both themes; a press tries again (G13) */
.gd-look__miss { position: absolute; inset: 0; display: grid; place-items: center; padding: 10px; border: 1.5px dashed var(--edge); background: var(--stock-3); color: var(--ink); font: 700 .95rem/1.3 var(--sans); text-align: center; }
.gd-look__miss[hidden] { display: none; }
.gd-look.is-failed .gd-look__pic canvas { visibility: hidden; }
/* "Use my brand font": the same button as its neighbours; pressed, it is inked in (and says so to a screen reader) (G12) */
.hc[data-ui="guide"] .gd-brand[aria-pressed="true"] { background: var(--ink); color: var(--stock); border-color: var(--ink); }
