/* Shared reading styles for the four local IAA guides. */
:root {
  --paper: #faf9f5;
  --sheet: #fff;
  --ink: #153a32;
  --muted: #4b6159;
  --green: #21624c;
  --line: #d8e2d8;
  --stroke: #d0dfd5;
  --cover: #12392f;
  --tint: #edf4ef;
  --lime: #dcf7a2;
  --wide: 1180px;
  --accent-warm: #b8552a;
}
::selection { background: #f4d1ad; color: #17382e; }
.reading-header { background: #12352d; color: white; border-bottom: 1px solid #466456; }
.reading-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 62px; padding-block: 9px; }
.reading-header .brand { font-size: .98rem; text-decoration: none; color: #fff; }
.reading-header .library-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.library-nav a, .reading-header .reading-source {
  display: inline-flex; align-items: center; justify-content: center; color: #d8e6dc;
  min-height: 36px; padding: 3px 13px; font-size: .88rem; text-decoration: none; border-radius: 5px;
}
.library-nav a:hover, .reading-header .reading-source:hover { background: #284c3f; color: white; }
.library-nav a[aria-current="page"] { color: #effecb; background: #335646; box-shadow: inset 0 -2px #d8ef9c; font-weight: 700; }
.reading-header .reading-source { border: 1px solid #607a6a; font-size: .8rem; padding-inline: 10px; }
.reading-header a:focus-visible { outline: 2px solid #f3c790; outline-offset: 2px; }
.hero, .cover { background-color: #12392f; }
.hero h1 { max-width: 14em; font-size: clamp(2.2rem, 4.25vw, 3.65rem); letter-spacing: -.045em; }
.hero-layout { padding-block: clamp(24px, 3.8vw, 48px); }
.hero-copy p { line-height: 1.72; }
.quick-nav { background-color: #193c30; }
.guide-layout { column-gap: clamp(24px,4.1vw,60px); }
.toc { border-inline-start: 2px solid #dbe3d9; padding-inline-start: 8px; max-height: calc(100vh - 42px); overflow-y: auto; }
.toc h2 { color: var(--green); }
.toc a[aria-current="location"] { background: #e7f0e8; color: #174b38; box-shadow: inset 3px 0 #367456; font-weight: 700; }
.guide-section, .report-section { scroll-margin-top: 18px; }
.guide-section > h2 { letter-spacing: -.045em; line-height: 1.25; }
.guide-section > :is(p,ul,ol) { line-height: 1.82; }
.guide-section > :is(ul,ol):not([class]) > li { color: #344d41; font-size: .95rem; }
.guide-section > :is(ul,ol):not([class]) > li > strong:first-child { color: var(--ink); font-size: 1rem; }
.guide-section > :is(p,ol,ul) a[href^="http"] { font-size: .88em; }
.guide-section :is(figure, section) { min-width: 0; }
.guide-section figcaption { line-height: 1.55; }
.guide-section h3 { text-wrap: pretty; }
.report-index { padding-block: 15px; border-bottom: 1px solid var(--stroke); background: #fff; }
.report-index .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 17px; }
.report-index strong { font-size: .85rem; color: #2e634d; }
.report-index a { color: #36584a; font-size: .88rem; padding: 3px 0; white-space: normal; }
.reading-return { position: fixed; right: max(12px, env(safe-area-inset-right)); bottom: max(15px, env(safe-area-inset-bottom));
  z-index: 9; color: #fff; background: #245540; box-shadow: 0 2px 10px #12342730; border: 1px solid #a8bfac;
  font-size: .83rem; padding: .4rem .85rem; border-radius: 100px; text-decoration: none; }
.reading-return[hidden] { display: none; }
.reading-return:hover { background: #153c2c; }
@media (min-width: 900px) { body:has(.guide-layout) .reading-return { display: none; } }
@media (max-width: 760px) {
  .reading-header .wrap { display: grid; grid-template-columns: 1fr auto; gap: 6px 8px; padding-block: 8px; }
  .reading-header .library-nav { grid-column: 1 / -1; grid-row: 2; margin: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); width: 100%; }
  .library-nav a { padding-inline: 2px; }
  .reading-header .reading-source { grid-column: 2; grid-row: 1; }
  .toc { max-height: none; overflow: visible; padding-left: 0; border-inline-start: 0; }
  .guide-section > :is(ul,ol):not([class]) > li { font-size: .96rem; }
  .report-index .wrap { column-gap: 14px; }
  footer { padding-bottom: 42px; }
}
@media print {
  .reading-header, .reading-return, .report-index { display: none; }
  .hero { background: transparent; }
  .guide-section { break-inside: auto; }
  .guide-section :is(h2,h3,figcaption) { break-after: avoid; }
}

.report-index a[aria-current="location"] {
  color: #174c38;
  font-weight: 700;
  text-decoration-thickness: 3px;
}
.development-guide .hero-layout {
  grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr);
  gap: clamp(22px, 4vw, 52px);
}
.development-guide .hero h1 { max-width: 11em; }
.dev-lead { font-size: clamp(1rem,1.7vw,1.17rem); }
.dev-jumps { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 18px 0 0; border: 0; background: transparent; }
.dev-jumps a { border: 1px solid #769180; font-size: .85rem; padding: .35rem .65rem; flex: 0 1 auto; }
.dev-jumps .primary { border-color: transparent; }
.dev-cover-image { overflow: hidden; border-radius: 10px; border: 1px solid #587364; background: #1c342a; }
.dev-cover-image img, .dev-build-shot img { display: block; width: 100%; height: auto; }
.dev-cover-image figcaption { padding: .45rem .75rem; font-size: .81rem; color: #e1ece2; }
.dev-cover-image figcaption a { color: #e3f9bd; }
.dev-fine { padding: .7rem .9rem; margin-block: 14px; border: 1px solid var(--stroke); border-radius: 7px; background: #f0f4ee; }
.dev-fine summary { cursor: pointer; font-size: .93rem; color: #28533f; font-weight: 720; }
.dev-fine[open] summary { margin-bottom: .5rem; }
.dev-fine :is(p,ul,ol) { font-size: .92rem; color: #344c3e; line-height: 1.85; }
.dev-fine p + p { margin-top: .45rem; }
.dev-fine a { font-size: .93em; }
.dev-next-step { display: block; max-width: 34em; text-align: center; margin: auto; padding: .55rem .8rem; border-radius: 6px; background: #fff; font-weight: 660; }
.dev-flow, .dev-timeline, .dev-build-shot {
  padding: clamp(14px,2.2vw,22px); margin-block: 1.1rem;
  border-radius: 12px; border: 1px solid #cddfd4; background: #edf5ef;
}
.dev-flow figcaption, .dev-timeline figcaption { font-weight: 750; font-size: 1.07rem; margin-bottom: 14px; }
.guide-section .dev-stages, .guide-section .dev-timeline ol {
  display: flex; list-style: none; padding: 0; gap: 19px; margin: 0;
}
.guide-section .dev-stages li, .guide-section .dev-timeline li { flex: 1 1 0; position: relative; margin: 0; min-width: 0; }
.dev-stages li {
  border-block-start: 3px solid #528165; border-radius: 4px; background: white; padding: .65rem .7rem;
}
.dev-stages li + li::before { content: "→"; position: absolute; left: -18px; top: 35%; color: #45745b; font-weight: 750; }
.dev-stages strong, .dev-timeline li > *, .dev-outcomes strong { display: block; }
.dev-stages small, .dev-timeline small, .dev-outcomes p { color: #486155; font-size: .86rem; line-height: 1.6; }
.dev-outcomes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 12px; }
.dev-outcomes > div { background: #deeddf; padding: .65rem .8rem; border-inline-start: 3px solid #4d7859; border-radius: 4px; }
.dev-outcomes > div + div { background: #fcf1e4; border-color: #bb7644; }
.dev-outcomes strong { font-size: .91rem; }
.dev-register { background: #f7f2e9; border-color: #e4d8c7; }
.dev-register .dev-stages li { border-color: #b77748; }
.dev-timeline { background: #234839; border-color: #234839; color: white; }
.dev-timeline figcaption { color: white; }
.dev-timeline li { border-top: 1px solid #7a9e85; padding-top: .45em; }
.dev-timeline li b { color: #ddf7a8; font: 700 1.6rem/1.3 ui-monospace,monospace; margin-bottom: .2rem; }
.dev-timeline small { color: #e0ece0; }
.dev-build-shot { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: center; background: #fff; }
.dev-build-shot img { border-radius: 5px; }
.dev-build-shot figcaption { color: #405748; font-size: .88rem; }
.dev-build-shot strong { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: .45rem; }
.dev-build-shot figcaption a { display: block; margin-top: .4rem; }
@media (max-width: 800px) {
  .development-guide .hero-layout { grid-template-columns: minmax(0,1fr); }
  .dev-cover-image { max-width: 530px; }
}
@media (max-width: 620px) {
  .guide-section .dev-stages { flex-direction: column; gap: 18px; }
  .dev-stages li + li::before { content: "↓"; left: 50%; top: -24px; }
  .guide-section .dev-timeline ol { flex-direction: column; gap: 12px; }
  .dev-timeline li { padding-inline-start: 3.6rem; }
  .dev-timeline li b { position: absolute; left: 0; top: .2em; font-size: 1.3rem; }
  .dev-outcomes, .dev-build-shot { grid-template-columns: minmax(0,1fr); }
}
@media print {
  .dev-cover-image, .dev-flow, .dev-timeline, .dev-build-shot { break-inside: avoid; print-color-adjust: exact; }
  .dev-jumps { display: none; }
}
.dev-image-alt { display: block; padding: 1.3rem 1rem; color: var(--green); background: #e8f2e9; font-weight: 680; text-align: center; }
.dev-cover-image img[hidden], .dev-build-shot img[hidden], .dev-image-alt[hidden] { display: none; }
.development-guide .hero h1 span { display: block; }
.dev-cover-image figcaption a { display: inline-block; }
.dev-commercial { background: #fbf4e9; border-color: #ead6b9; }
.dev-commercial .dev-stages li { border-color: #ba7742; }
.dev-commercial .dev-stages strong { color: #754422; font-size: .87rem; }
.dev-commercial .dev-stages b { display: block; color: var(--ink); font-size: 1.04rem; padding-block: .22rem; }
.guide-section > .dev-business-note { color: #254b3c; line-height: 1.74; margin-bottom: 1rem; }

.dev-subnav { margin-inline-start: .7rem; }
.dev-plan-table { width: 100%; border-collapse: collapse; margin-block: 1.2rem; table-layout: fixed; font-size: .91rem; line-height: 1.65; }
.dev-plan-table caption { text-align: left; font-size: 1.02rem; font-weight: 720; color: var(--ink); margin-bottom: .48rem; }
.dev-plan-table :is(th,td) { text-align: left; vertical-align: top; padding: .62rem .7rem; border-bottom: 1px solid var(--stroke); }
.dev-plan-table thead { background: #204c3a; color: white; }
.dev-plan-table thead th:first-child { width: 20%; }
.dev-plan-table tbody th { color: var(--ink); }
.dev-plan-table tbody th small { display: block; color: var(--muted); font-weight: 550; font-size: .8rem; }
.dev-plan-table td > strong { display: block; color: #365e42; font-size: .88rem; }
.dev-plan-table tbody tr:nth-child(even) { background: #f1f5ee; }
.dev-plan-note { font-size: .9rem; color: var(--muted); }
@media (max-width: 900px) {
  .dev-plan-table, .dev-plan-table :is(tbody,tr,th,td) { display: block; width: auto; }
  .dev-plan-table caption { display: block; }
  .dev-plan-table thead { position: absolute; height: 1px; width: 1px; overflow: hidden; clip-path: inset(50%); }
  .dev-plan-table tr { margin-bottom: .65rem; border: 1px solid var(--stroke); border-radius: 7px; background: white; padding: .6rem .75rem; }
  .dev-plan-table :is(th,td) { padding: .16rem 0; border: 0; }
  .dev-plan-table td::before { content: attr(data-column) "　"; color: #4c6456; font-size: .8rem; font-weight: 690; }
  .dev-plan-table td > strong { display: inline; margin-right: .3rem; }
}

.rd-funding { background: #eaf3ed; border: 1px solid #c6dacb; border-radius: 10px; padding: 1rem; margin-top: 1rem; }
.rd-funding label, .rd-funding small { display: block; }
.rd-funding input { max-width: 100%; width: 14rem; font: inherit; padding: .4rem .55rem; border: 1px solid #8da597; border-radius: 4px; margin-block: .4rem .65rem; }
.rd-funding output { color: var(--green); font-size: 1.3rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.rd-funding small { font-size: .84rem; color: var(--muted); }

/* Shared publication header and chapter navigation. */
.reading-header { background: linear-gradient(102deg,#102f28,#193e30 72%,#233e31); border-bottom-color: #3c5c49; }
.reading-header .brand { letter-spacing: .025em; }
.reading-header .library-nav { gap: 5px; }
.library-nav a { border-radius: 20px; padding-inline: 15px; }
.library-nav a[aria-current="page"] { color: #163f31; background: #dfedc0; box-shadow: none; }
.library-nav a[aria-current="page"]:hover { color: #123a2c; background: #edf5d8; }
@media (min-width: 900px) {
  .guide-layout > .toc { padding: 14px 10px; border: 1px solid #dfdfd2; border-radius: 12px; background: #f5f4ee; }
  .guide-layout > .toc h2 { margin-bottom: .65rem; }
}

.team-page .hero {
  background: radial-gradient(ellipse at 82% 25%,#f3e5d0 0,transparent 45%), #f7f4ec;
  color: #173e33; border-bottom: 1px solid #dddacf;
}
.team-page .hero-layout { grid-template-columns: minmax(0,1.18fr) minmax(0,.85fr); align-items: center; gap: clamp(24px,6vw,78px); padding-block: clamp(30px,4.3vw,66px); }
.team-page .hero h1 { font-family: "Songti SC","STSong","Noto Serif CJK SC",serif; letter-spacing: -.035em; line-height: 1.12; font-size: clamp(2.45rem,4.6vw,4.35rem); font-weight: 750; margin-bottom: 18px; }
.team-page .hero h1 span { display: block; }
.team-page .hero-copy .team-hero-lead { color: #234d3d; max-width: 28em; font-size: clamp(1.02rem,1.5vw,1.2rem); }
.team-page .hero-copy .team-hero-scope { color: #566457; font-size: .92rem; }
.team-page .hero-copy .team-actions a { color: #254c3e; text-decoration: none; border: 1px solid #b9c8ba; background: transparent; border-radius: 6px; min-height: 38px; }
.team-page .hero-copy .team-actions a:first-child { background: #214d3b; border-color: #214d3b; color: #fff; }
.team-page .team-actions a:hover { text-decoration: underline; }
.team-page .team-actions a:focus-visible { outline-color: #975121; }
.team-capital { position: relative; padding: clamp(18px,2.7vw,32px); min-width: 0; background: linear-gradient(130deg,#183f32 0,#234c3c 100%); border: 1px solid #345742; color: #f5f5e9; border-radius: 18px; box-shadow: 0 14px 35px #253a2b13; }
.team-capital figcaption { display:flex; justify-content:space-between; gap:.65rem; align-items:baseline; color:#eff5e8; }
.team-capital figcaption small { color: #d1e0d1; font-size:.78rem; font-weight:500; }
.team-capital .capital-amount { color: #e4f2bb; font: 600 clamp(2.9rem,5vw,4.55rem)/1.15 "Songti SC",Georgia,serif; letter-spacing: -.045em; margin:.22em 0 .3em; font-variant-numeric:lining-nums tabular-nums; }
.capital-amount small { color:#e4f2bb; font:600 .98rem/1.3 system-ui,sans-serif; letter-spacing:0; }
.capital-period { display:grid; grid-template-columns:1fr 2fr; height:5px; overflow:hidden; gap:4px; margin-block:.4rem .7rem; }
.capital-period span:first-child { background:#a8c6ab; }
.capital-period span:last-child { background:#e7b181; }
.capital-split { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.45fr); gap:12px; }
.capital-split span,.capital-split small {display:block;color:#d3dfd1;font-size:.8rem;line-height:1.55;}
.capital-split strong {display:block;font-size:1.4rem;line-height:1.55;}
.capital-foot { border-top:1px solid #50715a; padding-top:.72rem; margin-top:.8rem; color:#d8e5d9; font-size:.84rem; }
.capital-foot strong { color:white; }
.xm-policy-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:1.25rem 0 1.45rem; }
.xm-policy-cards a { display:grid; grid-template-rows:auto 1fr auto; align-content:start; gap:6px; border:1px solid #cbd7ca; border-top:4px solid #517b63; padding:clamp(12px,2vw,20px); border-radius:9px; text-decoration:none; background:#edf3ea; color:#1e523b; }
.xm-policy-cards a:nth-child(2) { background:#fbf1e4; color:#784422; border-color:#e5d4bf; border-top-color:#b77b4b; }
.xm-policy-cards a:last-child { background:#f0f3ed; border-top-color:#85947b; }
.xm-policy-cards a:hover { box-shadow:0 3px 11px #20372c1b; }
.xm-policy-cards a > span { font-weight:650; font-size:.85rem; }
.xm-policy-cards a > strong { align-self:center; font:650 clamp(1.8rem,3.3vw,2.7rem)/1.3 Georgia,"Songti SC",serif; font-variant-numeric: lining-nums tabular-nums; }
.xm-policy-cards small { font:650 .85rem/1.5 system-ui,sans-serif; margin-left:.18rem; }
.xm-policy-cards em { font-size:.79rem; font-style:normal; }
.team-page #rd-support h3 { padding-top:.55rem; border-top:1px solid var(--stroke); }
.team-page .rd-funding { border-inline-start:4px solid #4f785c; }
@media (max-width: 820px) {
  .team-page .hero-layout { grid-template-columns:minmax(0,1fr); gap:22px; }
  .team-page .team-capital { width:100%; max-width:none; }
}
@media (max-width: 600px) {
  .library-nav a { padding-inline: 2px; }
  .xm-policy-cards { grid-template-columns:1fr; gap:7px; }
  .xm-policy-cards a { grid-template-columns:1fr auto; grid-template-rows:auto auto; gap:2px 10px; padding:.6rem .78rem; border-top-width:1px; border-left-width:3px; }
  .xm-policy-cards a > strong { grid-column:2; grid-row:1 / 3; }
}
@media print {
 .team-page .hero { background:transparent; }
 .team-capital,.xm-policy-cards { print-color-adjust:exact; break-inside:avoid; }
 .guide-layout > .toc { display:none; }
}

.planned-games .project-list-wrap { border: 1px solid #cfdbd0; border-radius: 13px; overflow: hidden; background: #fff; }
.project-list { border-collapse: collapse; width: 100%; line-height: 1.64; }
.project-list thead { background: #214637; color: #f5faf3; }
.project-list :is(td,th) { text-align: start; vertical-align: top; padding: .7rem .8rem; font-size: .92rem; border-bottom: 1px solid #e0e6dd; }
.project-list td:nth-child(2), .project-list td:last-child, .project-list th[scope="row"] { white-space: nowrap; }
.project-list .in-prototype { background: #edf4e6; }
.project-list .in-prototype th { color: #215843; box-shadow: inset 3px 0 #608963; }
.project-list tbody tr:last-child > * { border-bottom: 0; }
.project-plan-links { display:flex; flex-wrap:wrap; gap:7px 18px; margin-top:.9rem; font-size:.88rem; }
@media (max-width: 820px) {
  .planned-games .project-list-wrap { border: 0; border-radius: 0; overflow: visible; background: transparent; }
  .project-list, .project-list :is(tbody,tr,td,th) { display:block; }
  .project-list thead { position:absolute; width:1px; height:1px; clip-path:inset(50%); overflow:hidden; }
  .project-list tbody { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
  .project-list tbody tr { min-width:0; padding:.7rem .85rem; border:1px solid #d6dfd1; border-radius:8px; background:white; }
  .project-list tbody .in-prototype { background:#edf4e6; border-color:#b2c8ae; }
  .project-list :is(td,th) { border:0; padding:.16rem 0; }
  .project-list .in-prototype th { box-shadow:none; }
  .project-list td::before { content:attr(data-label) "　"; font-size:.78rem; color: #486653; font-weight:700; }
}
@media (max-width: 535px) { .project-list tbody { grid-template-columns:1fr; } }
@media (max-width: 600px) { .report-home .cover-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); } }
