/* Page CSS on top of the taste-skill kit (public/assets). Only what sits inside a visual,
   plus the long-form "doc" pages, which the kit's one-screen sections do not cover. */

/* ---- the checker window (app-frame recipe, sections-library.md) ---- */
.app.ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-6); background: var(--u-bg, #fff); border: 1px solid var(--u-border, var(--line)); border-radius: var(--u-r, 12px); box-shadow: var(--u-shadow, none); min-height: 0; overflow: hidden; }
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.app > .app__pane + .app__pane { border-left: 1px solid var(--u-line, var(--line)); }
@media (max-width: 1023px) {
  .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line, var(--line)); }
}
.ck-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 8px 16px; border-bottom: 1px solid var(--u-line, var(--line)); font: 500 14px/1.3 var(--font-text); }
.ck-form { display: grid; gap: 12px; padding: 16px; flex: 1; min-height: 0; grid-template-rows: auto minmax(96px, 1fr) auto auto auto; }
.ck-form label { font: 500 14px/1.3 var(--font-text); }
.ck-form textarea, .ck-form input { width: 100%; font: 400 16px/1.4 var(--font-text); color: var(--p-ink); background: var(--p-bg); border: 1px solid var(--line-strong, var(--line)); border-radius: var(--r-sm, 8px); padding: 10px 12px; }
.ck-form textarea { resize: none; min-height: 96px; height: 100%; }
.ck-form input { height: 48px; }
.ck-note { font: 400 14px/1.45 var(--font-text); color: var(--muted); margin: 0; }
.ck-btn { font: 500 14px/1 var(--font-text); min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong, var(--line)); border-radius: var(--r-sm, 8px); background: transparent; color: var(--p-ink); cursor: pointer; }
.ck-btn:hover { background: var(--p-surface); }
.ck-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ck-list { list-style: none; margin: 0; padding: 0; overflow: auto; flex: 1; min-height: 0; }
.ck-list > li { padding: 12px 16px; border-bottom: 1px solid var(--u-line, var(--line)); display: grid; gap: 4px; }
.ck-title { font: 400 16px/1.4 var(--font-text); margin: 0; }
.ck-why { font: 400 14px/1.4 var(--font-text); color: var(--muted); margin: 0; }
.ck-chip { justify-self: start; font: 500 13px/1 var(--font-text); padding: 5px 8px; border-radius: 999px; border: 1px solid var(--p-ink); }
.ck-chip[data-v="multi-brand"], .ck-chip[data-v="likely"] { background: var(--p-ink); color: var(--p-bg); }
.ck-chip[data-v="check"] { background: transparent; }
.ck-chip[data-v="multipack"], .ck-chip[data-v="clear"] { border-color: var(--line-strong, var(--line)); color: var(--muted); }
.ck-title mark { background: var(--p-surface); color: inherit; padding: 1px 3px; border-radius: 3px; box-shadow: inset 0 -2px 0 var(--p-ink); }
.ck-title mark[data-k="pack"], .ck-title mark[data-k="multipack"] { box-shadow: inset 0 -2px 0 var(--line-strong, var(--line)); }

/* ---- the hero's window: a still of the same checker ---- */
.hw { background: #fff; color: var(--p-ink); border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px rgb(6 82 92 / .12), 0 30px 70px -30px rgb(6 82 92 / .45); text-align: left; }
.hw__bar { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font: 500 14px/1.3 var(--font-text); }
.hw__bar span + span { color: var(--muted); font-weight: 400; }
.hw .ck-list { overflow: hidden; }

/* ---- the notice as a document, in the rule section ---- */
.notice { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 32px; font: 400 18px/1.55 var(--font-text); }
.notice__from { font: 500 14px/1.3 var(--font-text); color: var(--muted); margin: 0 0 16px; }
.notice p { margin: 0 0 16px; }
.notice mark { background: var(--p-surface); color: inherit; box-shadow: inset 0 -2px 0 var(--p-ink); padding: 1px 2px; }
.facts { list-style: none; padding: 0; margin: var(--s-5) 0; display: grid; gap: 8px; }
.facts li { padding-bottom: 8px; border-bottom: 1px solid var(--line); }

/* ---- screenshots of the kit files ---- */
.shot { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; background: #fff; }
.shot--contain { object-fit: contain; }
.status-word { color: var(--muted); }

/* ---- words the checker looks for (the marquee row's label) ---- */
.mq-label { font: 500 13px/1 var(--font-text); color: var(--muted); margin: var(--s-5) 0 var(--s-2); }

/* ---- long-form pages: the rule, the questions, a category, the example ---- */
.doc { padding: calc(var(--nav) + var(--s-8)) 0 var(--s-9); }
.doc h1 { font: var(--display-weight) clamp(38px, 4.4vw, 60px)/1.04 var(--font-display); letter-spacing: var(--display-tracking); max-width: 20ch; margin: 0 0 var(--s-5); }
.doc h2 { font: var(--display-weight) clamp(26px, 2.4vw, 34px)/1.15 var(--font-display); letter-spacing: -0.02em; margin: var(--s-8) 0 var(--s-4); scroll-margin-top: calc(var(--nav) + 24px); }
.doc h3 { font: 500 20px/1.3 var(--font-text); margin: var(--s-6) 0 var(--s-3); scroll-margin-top: calc(var(--nav) + 24px); }
.doc p, .doc li { font-size: 17px; line-height: 1.65; max-width: 62ch; }
.doc p { margin: 0 0 var(--s-4); }
.doc .lead { font-size: 20px; line-height: 1.5; max-width: 56ch; }
.doc ul, .doc ol { padding-left: 1.2em; margin: 0 0 var(--s-4); display: grid; gap: 8px; }
.doc__cols { display: grid; gap: var(--s-8); grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: start; }
@media (max-width: 1023px) { .doc__cols { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); } }
.doc aside { border: 1px solid var(--line); border-radius: var(--r-md, 12px); padding: var(--s-5); background: #fff; }
.doc aside h2 { margin-top: 0; font-size: 22px; }
.src { margin: 0 0 var(--s-4); padding: var(--s-4) var(--s-5); background: #fff; border: 1px solid var(--line); border-radius: var(--r-md, 12px); max-width: 68ch; }
.src blockquote { margin: 0; font-size: 17px; line-height: 1.6; }
.src figcaption { margin-top: var(--s-3); display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: 14px; color: var(--muted); }
.tag { font: 500 13px/1 var(--font-text); padding: 5px 8px; border-radius: 999px; border: 1px solid var(--p-ink); color: var(--p-ink); white-space: nowrap; }
.tag[data-o="notice"], .tag[data-o="policy"] { background: var(--p-ink); color: var(--p-bg); }
.tag[data-o="seller"] { border-style: dashed; }
.caveat { border: 1px dashed var(--p-ink); border-radius: var(--r-md, 12px); padding: var(--s-4) var(--s-5); max-width: 68ch; }
.tagkey { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; padding: 0; font-size: 15px; color: var(--muted); }
.tagkey li { display: flex; gap: 8px; align-items: center; }
.doc .rows a { color: inherit; }
.catlist { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-5); }
@media (max-width: 767px) { .catlist { grid-template-columns: minmax(0, 1fr); } }
.catlist li { padding: var(--s-4) 0; border-bottom: 1px solid var(--line); max-width: none; }
.catlist a { font: 500 20px/1.3 var(--font-text); }
.catlist p { margin: 4px 0 0; font-size: 16px; }
.doc .faq { max-width: 68ch; }
.doc .faq__item { scroll-margin-top: calc(var(--nav) + 24px); }
.doc .faq__item > h2 { margin: 0; font: 500 20px/1.4 var(--font-text); letter-spacing: 0; }
.step { display: grid; gap: var(--s-5); grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; padding: var(--s-7) 0; border-top: 1px solid var(--line); }
@media (max-width: 1023px) { .step { grid-template-columns: minmax(0, 1fr); } }
.step h2 { margin: 0 0 var(--s-3); }
.step figure { margin: 0; border: 1px solid var(--line); border-radius: var(--r-md, 12px); overflow: hidden; background: #fff; }
.step figure + figure { margin-top: var(--s-4); }
.step img { display: block; width: 100%; height: auto; }
.step .pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.step .pair figure + figure { margin-top: 0; }
@media (max-width: 639px) { .step .pair { grid-template-columns: minmax(0, 1fr); } }
.doc .closing-note { font-size: 15px; color: var(--muted); }

/* the footer's name is three words: on a phone it is set to fit the line */
@media (max-width: 639px) { .close__word { font-size: 11.5vw; } }

/* reading text in the ink (7:1); grey stays for labels */
.hero--centred .hero__lead, .card > p, .ck-why, .faq__item > p, .footer__lede { color: var(--p-ink); }
#kit .panel { --p-h: 300px; }
.close__word { font-size: clamp(40px, 10.2vw, 148px); }
.app > .app__pane--open::after { content: ""; position: absolute; inset: auto 0 0 0; height: 48px; background: linear-gradient(transparent, var(--u-bg, #fff)); pointer-events: none; }
.notice { font-size: 20px; }
@media (max-width: 639px) {
  #kit .panel { --p-h: 120px; }
  .notice { font-size: 16px; padding: 20px; }
  .ck-form { grid-template-rows: auto 120px auto auto auto; }
}
.close__word { line-height: 1.05; padding-top: 0.14em; overflow: visible; }
@media (max-width: 639px) {
  .hw .ck-list > li:nth-child(n+3) { display: none; }
  .notice { font-size: 18px; }
  #rule .facts li, #example .facts li { padding: 8px 0 16px; }
  #questions .faq__item { padding: 28px 0; }
}
@media (max-width: 639px) {
  .notice { font-size: 20px; padding: 24px; }
  #questions .faq__item { padding: 40px 0; }
}
@media (min-width: 1024px) {
  #rule .grid.fill > .span-6 { height: 100%; }
  #rule .notice { height: 100%; }
  #questions .faq__item { padding: 30px 0; }
  #questions .faq__item:first-child { padding-top: 0; }
}
@media (max-width: 639px) {
  .notice { font-size: 22px; padding: 44px 24px; }
  #rule .facts li { padding: 16px 0 24px; }
  #questions .faq__item { padding: 64px 0; }
  #questions .faq__item:first-child { padding-top: 0; }
}
@media (max-width: 639px) {
  .notice { padding: 24px; }
  #rule .facts li { padding: 12px 0 20px; }
  #questions .faq__item { padding: 72px 0; }
  #questions .faq__item:first-child { padding-top: 0; }
}
@media (max-width: 639px) { #questions .faq__item { padding: 66px 0; } #questions .faq__item:first-child { padding-top: 0; } }
@media (max-width: 359px) { .notice { font-size: 17px; padding: 16px; } #rule .facts li { padding: 8px 0 12px; } }

/* screenshots wider than their panel: shown from the top-left corner at a readable size */
.panel { position: relative; overflow: hidden; }
.panel > img.shot--wide { position: absolute; left: 16px; top: 16px; width: 165%; max-width: none; height: auto; object-fit: initial; border: 1px solid var(--line); }
#example .frame--fill { position: relative; background: #fff; border: 1px solid var(--line); overflow: hidden; }
#example .frame--fill > img { position: absolute; inset: 24px; width: calc(100% - 48px); height: calc(100% - 48px); object-fit: contain; object-position: center; }

/* report upload, listing ids, the next step after a check */
.ck-file { display: inline-flex; align-items: center; cursor: pointer; }
.ck-id { font: 400 13px/1.3 var(--font-mono); color: var(--muted); margin: 0; }
.ck-next { margin: 0; padding: 12px 16px; background: var(--p-surface); border-bottom: 1px solid var(--u-line, var(--line)); font: 500 15px/1.4 var(--font-text); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ck-file:focus-within, input.sr-only:focus-visible + * { outline: 2px solid var(--p-action); }

/* the removal fee calculator */
.calc { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: grid; gap: 24px; max-width: 900px; }
.calc__form { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.calc__form label { display: block; font: 500 14px/1.3 var(--font-text); margin-bottom: 6px; }
.calc__form input, .calc__form select { width: 100%; height: 48px; font: 400 16px/1 var(--font-text); color: var(--p-ink); background: var(--p-bg); border: 1px solid var(--line-strong, var(--line)); border-radius: var(--r-sm, 8px); padding: 0 12px; }
.calc__out { width: 100%; border-collapse: collapse; font-size: 16px; }
.calc__out caption { text-align: left; font: 500 14px/1.3 var(--font-text); color: var(--muted); padding-bottom: 8px; }
.calc__out th, .calc__out td { text-align: left; padding: 12px 8px 12px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.calc__out thead th { font: 500 14px/1.3 var(--font-text); color: var(--muted); }
.calc__out td { font-variant-numeric: tabular-nums; }
.keyfacts { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md, 12px); padding: var(--s-5); max-width: 68ch; margin-bottom: var(--s-6); }
.keyfacts h2 { margin: 0 0 var(--s-3); font-size: 22px; }
.updated { font-size: 15px; color: var(--muted); }

/* The footer is at least one screen and grows when its links need more room, so the wordmark
   never shrinks into the link columns (it overlapped them on short or wide windows). */
footer.closing { height: auto; min-height: calc(var(--h, 1) * 100svh); }
footer.closing > .wrap { grid-template-rows: auto auto; align-content: space-between; }
footer.closing .close__word { margin: 0; line-height: 0.95; }
