/* MoveRecord: warm ivory, sage, charcoal, a little coral. No external fonts. */
:root {
  --ivory: #f7f3ea; --paper: #fffdf8; --sage: #4e6b55; --sage-2: #7d9a7e; --sage-3: #dfe8dc;
  --ink: #26302b; --muted: #5b6660; --line: #d9d3c4; --coral: #d9654c; --coral-2: #fbe3dc;
  --ok: #2f6b3f; --bad: #a3392a; --radius: 14px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 17px/1.6 var(--sans); word-break: keep-all; overflow-wrap: anywhere; }
a { color: var(--sage); text-underline-offset: 3px; }
a:hover { color: var(--coral); }
img, svg, canvas { max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: 1.55rem; margin: 1.6em 0 .5em; }
h3 { font-size: 1.15rem; margin: 1.4em 0 .4em; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
.sr-file:focus-visible + label { outline: 3px solid var(--coral); outline-offset: 2px; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 9; }
.skip:focus { left: 8px; }
.sr-only, .sr-file { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* header / footer */
.site-head { background: var(--paper); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.2rem var(--serif); color: var(--ink); text-decoration: none; }
.site-head ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; flex-wrap: wrap; }
.site-head nav a { display: block; padding: 6px 12px; border-radius: 99px; text-decoration: none; color: var(--ink); }
.site-head nav a[aria-current="page"] { background: var(--sage-3); }
.site-foot { margin-top: 64px; background: var(--ink); color: #e9e5da; padding: 40px 0 24px; }
.site-foot a { color: #f2d9cf; }
.site-foot h2 { color: #fff; font-size: 1rem; font-family: var(--sans); margin: 0 0 .6em; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin: 4px 0; }
.foot-grid { display: grid; grid-template-columns: 2fr 1.4fr 1fr; gap: 28px; }
.foot-brand { display: flex; align-items: center; gap: 8px; font: 700 1.1rem var(--serif); color: #fff; margin: 0 0 .4em; }
.foot-note { font-size: .88rem; color: #bdb8ac; margin-top: 28px; }

/* hero */
.hero { padding: 48px 0 28px; background: radial-gradient(circle at 85% 20%, var(--coral-2), transparent 42%), radial-gradient(circle at 10% 90%, var(--sage-3), transparent 45%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.lede { font-size: 1.15rem; color: var(--muted); }
.hero-points { list-style: none; padding: 0; margin: 1em 0 0; display: grid; gap: 8px; }
.hero-points li { display: flex; gap: 10px; align-items: flex-start; }
.hero-points li::before { content: ""; flex: 0 0 10px; height: 10px; margin-top: .55em; border-radius: 3px; background: var(--coral); transform: rotate(45deg); }
.hero-art svg { width: 100%; height: auto; display: block; }
.sample-note { font-size: .85rem; color: var(--muted); text-align: center; margin: .4em 0 0; }

/* tool */
.tool-wrap { padding: 8px 0 24px; }
.tool { display: grid; gap: 20px; }
.tool-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tool-notes p { margin: 0; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--sage-2); border-radius: 10px; padding: 12px 14px; font-size: .95rem; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 1px 0 rgba(38,48,43,.04), 0 10px 30px -22px rgba(38,48,43,.35); }
.panel-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 1.3rem; }
.panel-title .ico { width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: var(--sage-3); stroke: var(--sage); }
.ico { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.field { display: grid; gap: 4px; min-width: 0; }
.field label { font-weight: 600; font-size: .95rem; display: flex; justify-content: space-between; gap: 8px; }
.count { font-weight: 400; color: var(--muted); font-size: .82rem; white-space: nowrap; }
.count.over { color: var(--bad); font-weight: 700; }
input[type="text"], input[type="date"], textarea, select { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid #bfb8a6; border-radius: 9px; padding: 9px 11px; }
textarea { resize: vertical; min-height: 78px; }
[aria-invalid="true"] { border-color: var(--bad); background: #fff6f4; }
.hint { color: var(--muted); font-size: .9rem; margin: .3em 0 0; }
.btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 600; font-size: .98rem; cursor: pointer; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--sage); background: #fff; color: var(--sage); text-decoration: none; min-height: 44px; }
.btn:hover { background: var(--sage-3); color: var(--ink); }
.btn-primary { background: var(--sage); color: #fff; }
.btn-primary:hover { background: #3d5743; color: #fff; }
.btn-quiet { border-color: var(--line); color: var(--ink); }
.btn-small { padding: 7px 12px; min-height: 40px; font-size: .92rem; }
.btn:disabled, .icon-btn:disabled { opacity: .45; cursor: not-allowed; }
.danger { color: var(--bad); }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.icon-btn:hover:not(:disabled) { background: var(--sage-3); }
.link { background: none; border: 0; color: var(--sage); text-decoration: underline; cursor: pointer; font: inherit; padding: 0 0 0 6px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0; }
.empty { color: var(--muted); background: var(--ivory); border: 1px dashed var(--line); border-radius: 10px; padding: 16px; }
.areas { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.area { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: linear-gradient(180deg, #fff, var(--paper)); }
.area-head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: end; }
.area-num { font: 700 1.4rem var(--serif); color: var(--coral); padding-bottom: 8px; }
.area-tools { display: flex; gap: 6px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.slot { border-radius: 10px; padding: 12px; background: var(--ivory); display: grid; gap: 8px; align-content: start; }
.slot-head { margin: 0; }
.phase { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 10px; border-radius: 99px; }
.phase-in { background: var(--sage-3); color: var(--sage); }
.phase-out { background: var(--coral-2); color: #8d3a28; }
.thumb { position: relative; aspect-ratio: 4 / 3; border-radius: 8px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.thumb-empty { display: grid; justify-items: center; gap: 4px; color: var(--muted); font-size: .9rem; }
.thumb-empty .ico { width: 30px; height: 30px; stroke: var(--sage-2); }
.slot-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.slot-msg { margin: 0; font-size: .9rem; padding: 8px 10px; border-radius: 8px; }
.slot-msg.pending { background: var(--sage-3); }
.slot-msg.error { background: #fbe9e5; color: var(--bad); }
.add-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.add-row select { width: auto; min-width: 220px; }
.usage { color: var(--muted); font-size: .88rem; margin: 10px 0 0; }
.problems { border-radius: 10px; padding: 12px 14px; background: var(--ivory); border: 1px solid var(--line); }
.problems p { margin: 0; }
.problems ul { margin: .4em 0 0; padding-left: 1.2em; }
.problems-title { font-weight: 700; color: var(--bad); }
.ready { color: var(--ok); font-weight: 600; }
.notice { border-radius: 10px; padding: 10px 14px; margin: 10px 0; }
.notice-info { background: var(--sage-3); }
.notice-ok { background: #e3efe2; color: var(--ok); font-weight: 600; }
.notice-bad { background: #fbe9e5; color: var(--bad); font-weight: 600; }
.preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 12px; }
.preview .page { margin: 0; }
.preview canvas { width: 100%; height: auto; display: block; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 18px -12px rgba(0,0,0,.4); }
.preview figcaption { text-align: center; font-size: .85rem; color: var(--muted); margin-top: 4px; }

/* content */
.doc-after { margin-top: 24px; }
.steps { list-style: none; counter-reset: s; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.steps li { counter-increment: s; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font: 700 1.3rem var(--serif); color: var(--coral); margin-bottom: 4px; }
.steps strong { display: block; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 0; list-style: none; }
.cards li { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.cards a { font-weight: 700; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin: 10px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: .6em 0 0; }
.reviewed { color: var(--muted); font-size: .9rem; }
.doc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; padding-top: 32px; }
.doc { max-width: 720px; }
.doc li { margin: .3em 0; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 12px; }
.doc-side { align-self: start; position: sticky; top: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.doc-side p { margin: .6em 0 1em; }
.callout { background: var(--coral-2); border-radius: 12px; padding: 14px 16px; margin: 1.2em 0; }
.callout-sage { background: var(--sage-3); }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; background: var(--paper); }
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: var(--sage-3); }
.figure-svg { margin: 1.2em 0; }
.figure-svg svg { width: 100%; height: auto; }
.figure-svg figcaption { font-size: .88rem; color: var(--muted); }

@media (max-width: 900px) {
  .hero-grid, .foot-grid, .doc-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .doc-side { position: static; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .tool-notes, .grid-2, .grid-3, .pair, .cards, .steps { grid-template-columns: 1fr; }
  .area-head { grid-template-columns: 1fr; }
  .area-num { padding: 0; }
  .panel { padding: 16px; }
  .add-row select { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
