/* F-RC-002: task-first travel fieldnotes; existing evidence tokens are retained. */
:root {
  --plan-radius-control: 2px;
  --plan-radius-tile: 8px;
  --plan-radius-note: 16px;
  --plan-shadow: 0 4px 16px rgb(22 19 17 / 3%);
}
[hidden] { display: none !important; }
html { scroll-padding-top: 24px; }
main { overflow-wrap: anywhere; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 10; background: var(--paper-card); padding: 12px 20px; }
.skip-link:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 4px; }
.wordmark { font-size: 24px; }
:lang(ko) .claim, :lang(zh-Hant) .claim { font-family: var(--text); }
.masthead__link { display: inline-flex; align-items: center; min-height: 36px; }
.home-hero { background: linear-gradient(115deg, var(--paper) 65%, var(--clear-bg)); }
.plan-primary { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--clear); color: var(--paper-card); padding: 14px 22px; border: 1px solid var(--clear); border-radius: var(--plan-radius-control); text-decoration: none; font-size: 16px; font-weight: 600; }
.plan-primary:hover { background: var(--ink); color: var(--paper-card); }
.home-hero .plan-primary { margin-top: 24px; }
.plan-caption { color: var(--ink-faint); font-size: 14px; line-height: 1.6; margin: 12px 0 0; max-width: 70ch; }
.plan-nav { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; margin-top: 24px; font-size: 14px; }
.opening { padding-block: 48px 40px; }
.opening .claim { font-size: clamp(34px, 4.2vw, 56px); }
#check { background: var(--paper-deep); padding-block: 48px 56px; border-bottom: 1px solid var(--rule-strong); }
#check .mid > * { max-width: none; }
#check .section-head { max-width: 720px; }
#check .tool-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
#check .tool { background: transparent; }
#check .tool fieldset:first-child { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#check .tool legend { margin-bottom: 16px; }
#check .opt { border: 1px solid var(--rule-strong); background: var(--paper-card); border-radius: var(--plan-radius-tile); padding: 14px; margin: 0; min-height: 80px; transition: border-color .15s, background .15s; }
#check .opt:has(input:checked) { border-color: var(--clear); background: var(--clear-bg); }
#check input[type="checkbox"] { accent-color: var(--clear); width: 19px; height: 19px; flex-shrink: 0; }
#check .result { border: 1px solid var(--rule-strong); border-top: 4px solid var(--clear); border-radius: 0 0 var(--plan-radius-note) var(--plan-radius-note); box-shadow: var(--plan-shadow); background: var(--paper-card); padding: 24px; }
#check .result__title { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; border-bottom: 1px dashed var(--rule-strong); padding-bottom: 16px; letter-spacing: .08em; }
.plan-destination { color: var(--clear); border: 1px solid var(--clear); padding: 4px 10px; border-radius: var(--plan-radius-control); font-weight: 600; }
.plan-actions { border-top: 1px solid var(--rule-strong); margin-top: 28px; padding-top: 24px; }
.evidence > *, .svc__top > * { min-width: 0; }
.svc__top { flex-wrap: wrap; }
.verdict-chip { flex-shrink: 0; max-width: 100%; white-space: normal; }
.svc, .svc a { overflow-wrap: anywhere; }
.plan-toolbar { display: flex; flex-wrap: wrap; gap: 10px; }
.plan-toolbar button { font: inherit; font-size: 14px; min-height: 44px; padding: 10px 16px; border: 1px solid var(--rule-strong); border-radius: var(--plan-radius-control); color: var(--ink); background: var(--paper-card); cursor: pointer; }
.plan-toolbar button:first-child { color: var(--paper-card); border-color: var(--clear); background: var(--clear); }
.plan-toolbar button:hover { border-color: var(--ink); text-decoration: underline; }
#plan-reset { margin-left: auto; background: transparent; }
#plan-status { margin: 12px 0 0; color: var(--clear); font-size: 14px; }
.result-evidence { display: inline-block; margin-top: 20px; font-size: 14px; }
#result-summary { font-family: var(--text); font-size: 25px; line-height: 1.4; margin-bottom: 16px; }
#check .result__verdict { font-family: var(--text); font-size: 16px; line-height: 1.65; color: var(--ink-soft); }
#plan-link-label { display: block; font-size: 14px; margin-top: 16px; }
#plan-link { display: block; width: 100%; margin-top: 8px; padding: 12px; border: 1px solid var(--rule-strong); background: var(--paper-card); color: var(--ink); font: inherit; }
@media (max-width: 700px) {
  .masthead__note { flex-basis: 100%; }
  .masthead__spacer { display: none; }
  .opening { padding-block: 32px; }
  #check .tool-wrap { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  #check .result { position: static; order: 0; max-height: none; overflow: visible; }
  #check .opt { padding: 12px; }
  #check .opt__label { font-size: 15px; }
  #check .opt__sub { font-size: 12px; }
  .plan-nav { gap: 16px; }
  .plan-nav .plan-primary { width: 100%; }
  #plan-reset { margin-left: 0; }
}
@media (max-width: 560px) {
  #check .tool fieldset:first-child { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  #check .opt { min-height: 0; }
  #check .result__verdict { font-family: var(--text); font-size: 19px; line-height: 1.55; }
  #plan-reset { flex-basis: 100%; text-align: left; border-color: transparent; padding-left: 0; color: var(--ink-faint); }
}
@media print {
  body:has(#tool) { background: white; font-size: 12pt; }
  body:has(#tool) :is(.masthead, .site-footer, .opening, main > section:not(#check), .plan-toolbar, .plan-caption, #plan-status, #plan-link-label, .skip-link) { display: none !important; }
  #check { background: white; padding: 0; border: 0; }
  #check .tool-wrap { display: block; }
  #check .tool, #check .result { border: 0; box-shadow: none; position: static; max-height: none; overflow: visible; padding: 12px 0; }
  #check .opt:has(input:not(:checked)) { display: none; }
  #check .tool fieldset:first-child { display: block; }
  #check .opt { min-height: 0; padding: 6px; }
  #check .opt__sub { display: none; }
  .result__list li { break-inside: avoid; }
  .plan-actions { display: none; }
  .result-evidence { display: none; }
}
