/* LOVE STYLE — shared stylesheet */
:root {
  --paper: #FFFFFF;
  --surface: #F7F4F1;
  --surface-2: #EFE9E4;
  --ink: #1F1A1D;
  --ink-2: #5E565B;
  --line: #E4DDD8;
  --rose: #A3174E;
  --rose-soft: #F8E8EE;
  --on-rose: #FFFFFF;
  --t-words: #A3174E;
  --t-time: #2F4A8A;
  --t-gifts: #875400;
  --t-acts: #2B6646;
  --t-touch: #A3401F;
  --font-body: system-ui, -apple-system, "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif;
  --font-head: "Zen Old Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --r-1: 8px;
  --r-2: 14px;
  --shadow: 0 1px 0 rgba(31,26,29,.04), 0 1px 3px rgba(31,26,29,.06), 0 10px 28px -14px rgba(31,26,29,.14);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #141216;
    --surface: #1E1B21;
    --surface-2: #28242C;
    --ink: #F2EDEF;
    --ink-2: #B8AFB4;
    --line: #36313A;
    --rose: #F28AAE;
    --rose-soft: #2E1E26;
    --on-rose: #141216;
    --t-words: #F28AAE;
    --t-time: #9DB2EC;
    --t-gifts: #E3B566;
    --t-acts: #82C9A2;
    --t-touch: #EF9A7E;
    --shadow: 0 1px 0 rgba(0,0,0,.3), 0 10px 28px -14px rgba(0,0,0,.6);
  }
}

/* ---------- base ---------- */
.is-off { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.85;
  -webkit-font-smoothing: antialiased; overflow-wrap: anywhere;
}
h1, h2, h3 { text-wrap: balance; }
p, li, dd, td, legend { text-wrap: pretty; }
h1, h2, h3, p, ul, ol, dl, figure, table { margin: 0; }
h1, h2, .type-name { font-family: var(--font-head); font-weight: 400; letter-spacing: .02em; }
h1 { font-size: clamp(26px, 6.4vw, 38px); line-height: 1.4; }
h2 { font-size: 22px; line-height: 1.5; }
h3 { font-size: 17px; line-height: 1.6; font-weight: 700; }
a { color: var(--rose); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 2px; border-radius: 4px; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--r-1); }
.skip:focus { top: 8px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .in { max-width: 1040px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 56px; }
.logo { font-family: var(--font-head); font-size: 17px; letter-spacing: .14em; color: var(--ink); text-decoration: none; white-space: nowrap; display: inline-block; line-height: 44px; min-height: 44px; }
.logo b { color: var(--rose); font-weight: 400; }
.gnav { display: flex; gap: 2px; }
.gnav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: var(--r-1);
  color: var(--ink-2); text-decoration: none; font-size: 14px; white-space: nowrap;
}
.gnav a:hover, .gnav a[aria-current="page"] { color: var(--ink); background: var(--surface); }
@media (max-width: 360px) { .gnav a { padding: 0 7px; font-size: 13px; } .logo { font-size: 15px; letter-spacing: .1em; } }

/* ---------- layout ---------- */
.wrap { max-width: 680px; margin: 0 auto; padding: 0 16px; }
.wrap-wide { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.section { padding: 56px 0; border-top: 1px solid var(--line); }
.section > .wrap > h2, .section-h { margin-bottom: 16px; }
.eyebrow { font-size: 13px; letter-spacing: .12em; color: var(--ink-2); margin-bottom: 8px; }
.lead { font-size: 17px; color: var(--ink); }
.muted { color: var(--ink-2); font-size: 14px; }
.prose > * + * { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 6px; }
.card { background: var(--surface); border-radius: var(--r-2); padding: 20px; }
.card + .card { margin-top: 12px; }

/* ---------- buttons ---------- */
.btn-primary, .btn, .btn-quiet {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 16px;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .12s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--rose); color: var(--on-rose); box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-primary:active, .btn:active { transform: translateY(1px) scale(.99); }
.btn { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn:hover { background: var(--surface); }
.btn-quiet { background: transparent; color: var(--ink-2); min-height: 44px; padding: 0 12px; font-weight: 400; }
.btn-quiet:hover { color: var(--ink); background: var(--surface); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- hero ---------- */
.hero { padding: 40px 0 48px; }
.hero h1 { margin-bottom: 14px; }
.hero .lead { margin-bottom: 18px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--ink-2); font-size: 14px; margin-bottom: 24px; padding: 0; list-style: none; }
.facts li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--rose); margin-right: 8px; vertical-align: middle; }
.note { font-size: 13px; color: var(--ink-2); line-height: 1.75; margin-top: 20px; }

/* ---------- quiz ---------- */
.quiz { padding: 8px 0 48px; }
.progress { position: sticky; top: 56px; z-index: 10; background: var(--paper); padding: 12px 0 10px; }
.progress-top { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); margin-bottom: 8px; }
.progress-top strong { color: var(--ink); }
.progress-bar { height: 4px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.progress-bar i { display: block; height: 100%; width: 100%; background: var(--rose); border-radius: 99px; transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform .3s ease; }
.step { border: 0; padding: 0; margin: 0; min-width: 0; }
.step-head { margin: 16px 0 8px; }
.step-head h2 { font-size: 20px; }
.step-head p { color: var(--ink-2); font-size: 14px; margin-top: 4px; }
.q { border: 0; margin: 0; padding: 18px 0 16px; border-bottom: 1px solid var(--line); min-width: 0; scroll-margin-top: 180px; }
.q legend { padding: 0; font-size: 16px; font-weight: 700; line-height: 1.7; margin-bottom: 10px; float: left; width: 100%; }
.q legend + * { clear: left; }
.scale-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-2); margin: 0 0 6px; }
.scale { display: grid; grid-template-columns: repeat(5, minmax(44px, 1fr)); align-items: center; justify-items: center; }
.scale label { position: relative; display: grid; place-items: center; width: 100%; min-height: 48px; cursor: pointer; border-radius: var(--r-1); }
.scale input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.scale .dot {
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--ink-2); background: var(--paper);
  display: grid; place-items: center; pointer-events: none; transition: background-color .12s ease, border-color .12s ease, transform .12s ease;
}
.scale label:nth-child(2) .dot, .scale label:nth-child(4) .dot { width: 28px; height: 28px; }
.scale label:nth-child(3) .dot { width: 22px; height: 22px; }
.scale .dot::after {
  content: ""; width: 60%; height: 60%; background: var(--on-rose); opacity: 0; transform: scale(.6);
  transition: opacity .12s ease, transform .12s ease;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 6.5' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 6.5' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.scale label:hover .dot { border-color: var(--rose); }
.scale input:checked + .dot { background: var(--rose); border-color: var(--rose); transform: scale(1.06); }
.scale input:checked + .dot::after { opacity: 1; transform: scale(1); }
.scale input:focus-visible + .dot { outline: 3px solid var(--rose); outline-offset: 3px; }
.q.missing legend { color: var(--rose); }
.q.missing legend::after { content: "（未回答）"; font-weight: 400; font-size: 14px; }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 24px; }
.quiz-status { min-height: 1.8em; font-size: 14px; color: var(--rose); margin-top: 12px; }
.no-js-note { font-size: 14px; color: var(--ink-2); }

/* ---------- result ---------- */
.result { padding: 24px 0 48px; }
.result h2 { margin-bottom: 6px; }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 8px; }
.chip { background: var(--surface); border-radius: var(--r-2); padding: 14px 14px 16px; border-top: 4px solid var(--c, var(--rose)); }
.chip .k { font-size: 13px; color: var(--ink-2); }
.chip .type-name { font-size: 24px; color: var(--c, var(--ink)); line-height: 1.35; margin-top: 2px; }
.chip .type-name .nw { white-space: nowrap; }
.chip .s { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.verdict { margin: 12px 0 0; }
.bars { margin-top: 28px; }
.bars h3 { margin-bottom: 4px; }
.bar-legend { display: flex; gap: 16px; font-size: 13px; color: var(--ink-2); margin-bottom: 10px; }
.bar-legend span::before { content: ""; display: inline-block; width: 14px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: middle; background: var(--ink-2); }
.bar-legend .r::before { background: var(--ink); }
.bar-legend .g::before { background: transparent; border: 1.5px solid var(--ink-2); }
.bar-row { display: grid; grid-template-columns: 5.5em 1fr; gap: 4px 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.bar-row .nm { font-weight: 700; color: var(--c); font-size: 15px; grid-row: span 2; }
.bar { position: relative; height: 12px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w, 0%); border-radius: 99px; transform-origin: left; animation: grow .5s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d, 0ms); }
.bar.r i { background: var(--c); }
.bar.g i { background: transparent; border: 2px solid var(--c); }
.bar-val { font-size: 13px; color: var(--ink-2); }
.bar-line { display: grid; grid-template-columns: 1fr 7.5em; gap: 8px; align-items: center; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.gaps { margin-top: 28px; }
.gaps ul { list-style: none; padding: 0; margin-top: 8px; }
.gaps li { padding: 12px 14px; background: var(--surface); border-radius: var(--r-1); border-left: 4px solid var(--c); }
.gaps li + li { margin-top: 8px; }
.code-box { margin-top: 28px; background: var(--rose-soft); border-radius: var(--r-2); padding: 20px; }
.code-box h3 { margin-bottom: 6px; }
.code-line { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 22px; letter-spacing: .14em; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-1); padding: 6px 12px; min-height: 48px; width: calc(11ch + 1.54em + 28px); max-width: 100%; }
.copy-status { font-size: 14px; color: var(--ink); min-height: 1.6em; margin-top: 8px; }
.more { margin-top: 28px; }
.share { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.share a, .share button { min-height: 44px; }
.share .x, .share .line { display: inline-flex; align-items: center; padding: 0 18px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 15px; border: 1px solid var(--line); color: var(--ink); background: var(--paper); }
.share .x:hover, .share .line:hover { background: var(--surface); }

/* ---------- types overview ---------- */
.types { display: grid; gap: 12px; margin-top: 8px; }
@media (min-width: 640px) { .types { grid-template-columns: 1fr 1fr; } }
.type-card { display: block; background: var(--surface); border-radius: var(--r-2); padding: 18px 18px 16px; border-top: 4px solid var(--c); text-decoration: none; color: var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
.type-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.type-card .type-name { font-size: 22px; color: var(--c); }
.type-card dl { margin-top: 8px; font-size: 15px; }
.type-card dt { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.type-card dd { margin: 0; }
.type-card .go { display: inline-block; margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.t-words { --c: var(--t-words); } .t-time { --c: var(--t-time); } .t-gifts { --c: var(--t-gifts); } .t-acts { --c: var(--t-acts); } .t-touch { --c: var(--t-touch); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin-top: 12px; border: 1px solid var(--line); border-radius: var(--r-1); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 12px; border-bottom: 1px solid var(--line); }
th { background: var(--surface); font-weight: 700; font-size: 14px; }
tr:last-child td { border-bottom: 0; }
.cite { font-size: 14px; color: var(--ink-2); padding-left: 1.3em; }
.cite li + li { margin-top: 8px; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; min-height: 48px; padding: 14px 32px 14px 0; position: relative; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq .a { padding: 0 0 16px; color: var(--ink); }

/* ---------- compatibility ---------- */
.pair-form { display: grid; gap: 14px; margin-top: 16px; }
.pair-form label { font-weight: 700; display: block; margin-bottom: 6px; }
.pair-form input[type="text"] { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 20px; letter-spacing: .12em; text-transform: uppercase; width: 100%; max-width: 16ch; min-height: 48px; padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--r-1); background: var(--paper); color: var(--ink); }
.pair-form .hint { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.field-err { color: var(--rose); font-size: 14px; min-height: 1.4em; margin-top: 4px; }
.pair-out { margin-top: 24px; }
.pair-out h3 { font-size: 20px; margin: 0 0 8px; }
.pair-out h4 { font-size: 17px; margin: 20px 0 8px; }
.cell-type { font-weight: 700; color: var(--c); white-space: nowrap; }
th .nw, td .nw { white-space: nowrap; }
@media (max-width: 360px) { th, td { padding: 10px 6px; } th { font-size: 13px; } }
.combo { padding: 18px 0; border-bottom: 1px solid var(--line); }
.combo h3 { margin-bottom: 8px; }
.combo h4 { font-size: 15px; margin: 12px 0 4px; }
.combo p + p { margin-top: 8px; }
.combo-note { margin-bottom: 4px; }
.cn { color: var(--c); white-space: nowrap; }
.rx { margin-top: 14px; padding: 12px 14px; background: var(--surface); border-left: 4px solid var(--rose); border-radius: 0 var(--r-1) var(--r-1) 0; }
.rx h4 { margin-top: 0; }
.a8-card .fact { font-size: 13px; color: var(--ink-2); margin-top: 8px; text-align: left; padding-top: 8px; border-top: 1px solid var(--line); }
.go-line { margin-top: 6px; }
.go-line a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: 15px; }
.check li + li { margin-top: 10px; }
.legal h2 { font-size: 19px; margin-top: 32px; }
.legal h2:first-child { margin-top: 0; }
.dates { color: var(--ink-2); font-size: 14px; }
.picker { display: grid; gap: 12px; margin-top: 12px; }
.picker fieldset { border: 0; padding: 0; margin: 0; }
.picker legend { font-weight: 700; margin-bottom: 6px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 15px; cursor: pointer; }
.seg input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.seg input:focus-visible + span { outline: 3px solid var(--rose); outline-offset: 2px; }

/* ---------- affiliate ---------- */
.pr { margin-top: 32px; }
.pr-label { font-size: 12px; letter-spacing: .12em; color: var(--ink-2); margin-bottom: 6px; }
.pr h3, .pr > h2 { margin-bottom: 6px; }
.a8-grid { display: grid; gap: 12px; margin-top: 14px; }
@media (min-width: 640px) { .a8-grid { grid-template-columns: 1fr 1fr; } }
.a8-card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-2); padding: 14px; text-align: center; }
.a8-card .bn { display: block; }
.a8-grid > * { min-width: 0; }
.a8-card .bn img { display: block; margin: 0 auto; border-radius: 4px; max-width: 100%; height: auto; }
.a8-card .nm { font-weight: 700; margin-top: 10px; }
.a8-card .ds { font-size: 14px; color: var(--ink-2); margin-top: 4px; text-align: left; }
.a8-card .go { display: flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 10px; border-radius: 999px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); text-decoration: none; font-weight: 700; font-size: 15px; }
.a8-card .go:hover { background: var(--surface-2); }
.px { position: absolute; left: -9999px; width: 1px; height: 1px; }
.amz { list-style: none; padding: 0; display: grid; gap: 8px; margin-top: 12px; }
@media (min-width: 640px) { .amz { grid-template-columns: 1fr 1fr; } }
.amz a { display: flex; align-items: center; min-height: 48px; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--r-1); background: var(--paper); color: var(--ink); text-decoration: none; font-size: 15px; }
.amz a:hover { background: var(--surface); }
.pr-note { font-size: 12px; color: var(--ink-2); margin-top: 10px; line-height: 1.7; }
.pr-inline { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.pr-title { font-weight: 700; }
@media (min-width: 640px) { .pr-inline .amz { grid-template-columns: 1fr; } }

/* ---------- type pages ---------- */
.crumbs { max-width: 680px; margin: 0 auto; padding: 4px 16px 0; font-size: 13px; color: var(--ink-2); }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; align-items: center; }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: "›"; margin: 0 8px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); }
.type-hero { padding: 8px 0 40px; }
.type-hero .eyebrow .en { color: var(--c); font-weight: 700; letter-spacing: .2em; }
.type-hero h1 { color: var(--ink); }
.type-hero h1::before { content: ""; display: block; width: 48px; height: 4px; border-radius: 2px; background: var(--c); margin-bottom: 14px; }
.h1-sub { display: block; font-size: .56em; color: var(--ink-2); margin-top: 8px; letter-spacing: .04em; }
.toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 24px; padding: 0; list-style: none; }
.toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); text-decoration: none; font-size: 14px; }
.toc a:hover { background: var(--surface); }
.sides { display: grid; gap: 12px; }
@media (min-width: 640px) { .sides { grid-template-columns: 1fr 1fr; } }
.side { background: var(--surface); border-radius: var(--r-2); padding: 18px 18px 20px; border-top: 4px solid var(--c); min-width: 0; }
.side h3 { margin-bottom: 6px; }
.side p { font-size: 15px; }
.side ul { margin-top: 4px; padding-left: 1.2em; font-size: 15px; }
.side li + li { margin-top: 4px; }
.caution { margin-top: 16px; padding: 14px 16px; border-left: 4px solid var(--c); background: var(--paper); border-radius: 0 var(--r-1) var(--r-1) 0; box-shadow: inset 0 0 0 1px var(--line); }
.caution h3 { font-size: 15px; margin-bottom: 4px; }
.caution p { font-size: 15px; }
.xlate { margin-top: 8px; }
.xlate-row { padding: 18px 0; border-bottom: 1px solid var(--line); }
.xlate-row:last-child { border-bottom: 0; }
.xlate-row h3 .type-name, .read-card h3 .type-name, .type-links .type-name { color: var(--c); }
.xlate-row h3 .type-name, .read-card h3 .type-name { font-size: 19px; white-space: nowrap; }
.xlate-row ol { margin-top: 8px; padding-left: 1.4em; }
.xlate-row li + li { margin-top: 6px; }
.read-grid { display: grid; gap: 12px; margin-top: 12px; }
@media (min-width: 640px) { .read-grid { grid-template-columns: 1fr 1fr; } }
.read-card { border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: var(--r-2); padding: 16px 18px 18px; min-width: 0; }
.read-card dt { font-size: 13px; color: var(--ink-2); margin-top: 10px; }
.read-card dd { margin: 2px 0 0; font-size: 15px; }
.items-h { margin-top: 24px; }
.items { list-style: none; padding: 0; margin-top: 4px; }
.items li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.items .q-text { font-weight: 700; }
.items .q-why { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.pr-h { font-family: var(--font-body); font-size: 17px; font-weight: 700; line-height: 1.6; margin-bottom: 6px; letter-spacing: 0; }
.a8-card .cat { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
#next .btn-primary { margin-bottom: 32px; }
.type-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 640px) { .type-links { grid-template-columns: repeat(4, 1fr); } }
.type-links a { display: block; padding: 14px 14px 12px; border-radius: var(--r-2); background: var(--surface); border-top: 4px solid var(--c); color: var(--ink); text-decoration: none; min-width: 0; }
.type-links a:hover { box-shadow: var(--shadow); }
.type-links .type-name { display: block; font-size: 20px; }
.xlate-row h3 .s, .read-card h3 .s { font-size: 14px; font-weight: 400; color: var(--ink-2); margin-left: 6px; }
.read-card h3 .s { margin-left: 0; }
.next-links { display: grid; gap: 10px; margin-top: 12px; }
@media (min-width: 640px) { .next-links { grid-template-columns: 1fr 1fr; } }
.next-links a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-2); color: var(--ink); text-decoration: none; }
.next-links a:hover { background: var(--surface); }
.next-links strong { display: block; font-size: 17px; }
.next-links span { display: block; font-size: 14px; color: var(--ink-2); margin-top: 4px; }

/* ---------- ads ---------- */
.ad-slot { margin: 32px auto; min-height: 280px; max-width: 680px; padding: 0 16px; }
.ad-slot.ad-relaxed { min-height: 320px; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); background: var(--surface); padding: 40px 0 32px; margin-top: 24px; font-size: 14px; color: var(--ink-2); }
.site-foot .in { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 4px; margin: 8px 0 16px; padding: 0; list-style: none; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--ink); text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-logo { font-family: var(--font-head); font-size: 18px; letter-spacing: .14em; color: var(--ink); }
.foot-legal { line-height: 1.75; margin-top: 8px; font-size: 13px; }
.net { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.net-h { font-size: 12px; letter-spacing: .12em; color: var(--ink-2); margin-bottom: 10px; }
.net-links { display: flex; flex-wrap: wrap; gap: 6px; }
.net-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-1); color: var(--ink-2); text-decoration: none; font-size: 13px; }
.net-links a:hover { color: var(--ink); }
.net-note { font-size: 12px; margin-top: 10px; line-height: 1.6; }

/* ---------- cookie ---------- */
.cookie { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; max-width: 560px; margin: 0 auto; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-2); box-shadow: var(--shadow); padding: 14px 16px; font-size: 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cookie p { flex: 1 1 260px; line-height: 1.6; }
.cookie .acts { display: flex; gap: 8px; }
.cookie button { min-height: 44px; padding: 0 16px; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.cookie button.ok { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cookie.hidden { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
