/* /trust (ja + en): trust center on the LP skeleton (site.css). Colours only from BRAND §2 tokens (brand/kizunatap.css).
   Hero on Milk with the five key points, then one Paper sheet: sticky table of contents + the 15 sections.
   No JS needed; no shadows or gradients (site.css plan B). */

/* ---------- hero ---------- */
.th { padding: clamp(24px, 4vw, 56px) 0 calc(clamp(40px, 5vw, 72px) + var(--mk-sheet-r)); }
.th-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(20px, 4vw, 56px); }
.th.no-art .th-in { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.th h1 { font-size: clamp(28px, 3.6vw, 48px); }
.th-lead { margin-top: 16px !important; font-size: clamp(17px, 1.5vw, 20px); font-weight: 600; color: var(--kz-plum); max-width: 34em; }
.th-meta { margin-top: 12px !important; font-size: 14px; color: var(--kz-mauve); }
.th-art { display: block; }
/* the generated scene has its own pale ground: fade its edges into Milk instead of showing a box */
.th-art img { display: block; width: 100%; height: auto;
  -webkit-mask-image: radial-gradient(ellipse 62% 68% at 62% 52%, #000 62%, transparent 100%);
          mask-image: radial-gradient(ellipse 62% 68% at 62% 52%, #000 62%, transparent 100%); }

/* five key points */
.tk { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: clamp(24px, 3vw, 40px) !important; }
.tk-card { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 16px; background: var(--kz-paper); border: 1px solid var(--mk-line); border-radius: 18px; }
.tk-card:first-child { border-top: 4px solid var(--kz-pink); }
.tk-card:nth-child(2) { border-top: 4px solid var(--kz-amber); }
.tk-card:nth-child(3) { border-top: 4px solid var(--kz-rose); }
.tk-card:nth-child(4) { border-top: 4px solid var(--kz-plum); }
.tk-card:nth-child(5) { border-top: 4px solid var(--kz-mauve); }
.tk-h { font-size: 13px; font-weight: 700; color: var(--kz-mauve); }
.tk-v { font-family: var(--font-round); font-size: 17px; font-weight: 700; line-height: 1.45; color: var(--kz-plum); }
.tk-p { font-size: 14px; line-height: 1.6; color: var(--kz-mauve); }
.site .tk-p a, .site .tc a { color: var(--kz-rose); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- body sheet: toc + sections ---------- */
.tb { padding-top: clamp(40px, 5vw, 72px); }
.tb-in { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.toc { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; }
.toc summary { font-size: 13px; font-weight: 700; color: var(--kz-mauve); cursor: pointer; padding: 6px 0; }
.toc ol { counter-reset: toc; margin-top: 6px !important; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 8px; min-height: 36px; align-items: center; padding: 4px 10px; border-radius: 10px; color: var(--kz-plum); text-decoration: none; font-size: 14px; font-weight: 600; line-height: 1.4; }
.toc a::before { content: counter(toc, decimal-leading-zero); flex: none; font-size: 12px; color: var(--kz-mauve); font-variant-numeric: tabular-nums; }
.toc a:hover, .toc a:focus-visible { background: var(--kz-blush); }
.tc { max-width: 860px; min-width: 0; }
.ts { padding: 0 0 clamp(36px, 4vw, 56px); margin-bottom: clamp(36px, 4vw, 56px); border-bottom: 1px solid var(--mk-line); scroll-margin-top: 84px; }
.ts:last-child { border-bottom: 0; margin-bottom: 0; }
.ts h2 { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 16px !important; scroll-margin-top: 84px; }
.ts > p + p, .ts > p + .td, .ts > .td + .tt-wrap, .ts > p + .tt-wrap, .ts > .tt-wrap + p { margin-top: 14px; }
.ts h3 { font-size: clamp(17px, 1.8vw, 20px); margin: 28px 0 10px !important; scroll-margin-top: 84px; }
.ts-note { font-size: 14px; color: var(--kz-mauve); }
.ts-v { margin-top: 16px !important; font-size: 13px; color: var(--kz-mauve); }
.ts-key { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.ts-k { font-size: 14px; color: var(--kz-mauve); }
.ts-key strong { font-family: var(--font-round); font-size: 22px; color: var(--kz-plum); }
.th-list li { padding: 6px 0; }

/* definition rows */
.td { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--mk-line); }
.td > div { display: grid; grid-template-columns: minmax(0, 13em) minmax(0, 1fr); gap: 8px 24px; padding: 14px 0; border-bottom: 1px solid var(--mk-line); }
.td dt { font-weight: 700; color: var(--kz-plum); font-size: 15px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; align-content: flex-start; }
.td dd { margin: 0; font-size: 15px; line-height: 1.8; color: var(--kz-plum); overflow-wrap: anywhere; }

/* tables */
.tt-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--mk-line); border-radius: 16px; margin-top: 18px; }
.tt { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.6; }
.tt caption { caption-side: top; text-align: left; padding: 12px 16px; font-weight: 700; color: var(--kz-plum); background: var(--kz-milk); border-bottom: 1px solid var(--mk-line); }
.tt th, .tt td { padding: 10px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--mk-line); }
.tt tbody tr:last-child th, .tt tbody tr:last-child td { border-bottom: 0; }
.tt thead th { font-size: 12px; font-weight: 700; color: var(--kz-mauve); white-space: nowrap; }
.tt tbody th { font-weight: 700; color: var(--kz-plum); }
.tt td { color: var(--kz-plum); }
.tt-sub { min-width: 720px; }

/* status pills: text colour always Plum or Rose on light grounds (AA) */
.tt-pill { display: inline-flex; align-items: center; min-height: 24px; padding: 1px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.6; white-space: nowrap; border: 1px solid var(--mk-line); background: var(--kz-paper); color: var(--kz-plum); }
.tt-pill[data-s="yes"], .tt-pill[data-s="done"], .tt-pill[data-s="pd-yes"] { background: var(--kz-blush); border-color: var(--kz-blush); color: var(--kz-rose); }
.tt-pill[data-s="no"] { background: var(--kz-plum); border-color: var(--kz-plum); color: #fff; }
.tt-pill[data-s="planned"], .tt-pill[data-s="unknown"] { background: var(--mk-amber-20); border-color: var(--mk-amber-20); color: var(--kz-plum); }
.tt-pill[data-s="in_progress"] { background: var(--kz-paper); border-color: var(--kz-rose); color: var(--kz-rose); }

/* ---------- narrow screens ---------- */
@media (max-width: 1200px) {
  .tk { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .tb-in { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; max-height: none; border: 1px solid var(--mk-line); border-radius: 16px; padding: 6px 14px; }
  .toc-d:not([open]) ol { display: none; }
}
@media (max-width: 900px) {
  .th-in { grid-template-columns: minmax(0, 1fr); }
  .th-art { order: -1; }
  .th-art img { aspect-ratio: 16 / 7; height: auto; object-fit: cover; object-position: 78% 55%;
    -webkit-mask-image: radial-gradient(ellipse 48% 62% at 62% 50%, #000 60%, transparent 100%);
            mask-image: radial-gradient(ellipse 48% 62% at 62% 50%, #000 60%, transparent 100%); }
  .tk { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .th-art img { aspect-ratio: 16 / 6; }
  .tk { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .tk-card { padding: 12px 14px; gap: 2px; border-radius: 14px; }
  .tk-v { font-size: 16px; }
  .tk-p { font-size: 13px; line-height: 1.55; }
  .td > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
}
@media (prefers-reduced-motion: no-preference) {
  html:focus-within { scroll-behavior: smooth; }
}
