/* September reference pass: Dalian RIGHT, Kyoto and Los Angeles only.
   Stamp/tag colors, sketch activation, and the book controls keep their rules. */
.page:is([data-chapter-page=dalian],[data-chapter-page=kyoto],[data-chapter-page=la]).right {
  --reference-ink:#082d54;
  --reference-body:#355776;
  --reference-red:#bb302b;
}
.page:is([data-chapter-page=dalian],[data-chapter-page=kyoto],[data-chapter-page=la]).right .detail-heading {
  width:100%;font:800 clamp(23px,6.2cqi,31px)/1.4 var(--sans);
  letter-spacing:-.025em;color:var(--reference-ink);margin:0;padding-right:0;
}
.page:is([data-chapter-page=dalian],[data-chapter-page=kyoto],[data-chapter-page=la]).right .detail-intro {
  width:100%;font-size:clamp(13px,3.55cqi,17px);line-height:1.75;
  color:var(--reference-body);margin-top:13px;
}
.page:is([data-chapter-page=dalian],[data-chapter-page=kyoto]).right .evidence h3 {
  font:800 clamp(17px,4.4cqi,22px)/1.4 var(--sans);
  color:var(--reference-ink);gap:13px;
}
.page:is([data-chapter-page=dalian],[data-chapter-page=kyoto]).right .evidence h3::before {
  width:3px;height:1.05em;background:var(--reference-red);opacity:1;
}
.page:is([data-chapter-page=dalian],[data-chapter-page=kyoto]).right .evidence p {
  font-size:clamp(13px,3.55cqi,17px);line-height:1.75;
  color:var(--reference-body);padding-left:16px;margin-top:7px;
}
.page:is([data-chapter-page=dalian],[data-chapter-page=kyoto],[data-chapter-page=la]).right .lesson small {
  font:800 clamp(16px,4.1cqi,21px)/1.3 var(--sans);
  color:var(--reference-ink);border-left:3px solid var(--reference-red);
  padding-left:13px;letter-spacing:0;margin-bottom:12px;
}
.page:is([data-chapter-page=dalian],[data-chapter-page=kyoto],[data-chapter-page=la]).right .lesson p {
  font-family:'Passport ZhenKai','LXGW ZhenKai','LXGW ZhenKai GB','KaiTi',cursive;
  color:var(--reference-ink);font-weight:400;font-synthesis:none;
}

/* Dalian: retain every word; reproduce the section rhythm in reference 6. */
.page[data-chapter-page=dalian].right .detail-heading {white-space:nowrap}
.page[data-chapter-page=dalian].right .detail-intro {padding-bottom:14px;border-bottom:1px solid var(--line)}
.page[data-chapter-page=dalian].right .evidence {margin-top:13px}
.page[data-chapter-page=dalian].right .metric-row {margin-top:16px;padding:10px 0;border-top-style:dashed}
.page[data-chapter-page=dalian].right .metric strong {font-size:clamp(31px,9cqi,43px);color:var(--reference-ink)}
.page[data-chapter-page=dalian].right .metric span {font-size:clamp(12px,3.3cqi,16px);color:var(--reference-body)}
.page[data-chapter-page=dalian].right .achievement-strip {padding:12px 0}
.page[data-chapter-page=dalian].right .achievement-strip h3 {font:800 clamp(16px,4.1cqi,21px)/1.3 var(--sans);padding-left:13px;margin-bottom:10px}
.page[data-chapter-page=dalian].right .achievement-strip p {font-size:clamp(13px,3.35cqi,17px);white-space:normal;letter-spacing:0;padding-left:13px;line-height:1.65}
.page[data-chapter-page=dalian].right .achievement-strip .award-context {font-size:inherit}
.page[data-chapter-page=dalian].right .achievement-strip .award-separator {padding:0 .08em}
.page[data-chapter-page=dalian].right .lesson {border-top-style:solid;padding-top:12px}
.page[data-chapter-page=dalian].right .lesson p {width:100%;font-size:clamp(17px,4.5cqi,23px);line-height:1.6;white-space:nowrap;padding:4px 0;letter-spacing:-.07em}
.page[data-chapter-page=dalian].right .lesson br {display:none}
.page[data-chapter-page=dalian].right .deco-pen {right:-9px;bottom:12px}

/* Complete transparent artwork. contain preserves the tower tops and ground. */
body[data-layout] .page:is([data-chapter-page=kyoto],[data-chapter-page=la]).left .journey-sketch {
  background-size:contain;background-position:center bottom;
  max-width:none;aspect-ratio:auto;width:100%;min-height:0;
  margin:12px auto 0;
}
body[data-layout] .page[data-chapter-page=kyoto].left .journey-sketch {background-image:url('assets/kyoto-sketch-full.png')}
body[data-layout] .page[data-chapter-page=la].left .journey-sketch {background-image:url('assets/la-sketch-full.png')}
.page:is([data-chapter-page=kyoto],[data-chapter-page=la]).left .place-caption {
  width:100%;font-size:clamp(17px,4.65cqi,23px);line-height:1.5;
  margin:12px 0 0;padding:5px 4px;white-space:nowrap;letter-spacing:0;
}
.page:is([data-chapter-page=kyoto],[data-chapter-page=la]).left .chapter-institution {
  font:700 clamp(25px,6.5cqi,33px)/1.3 var(--serif);color:#082d54;margin-top:18px;
}
.page:is([data-chapter-page=kyoto],[data-chapter-page=la]).left .chapter-degree {
  font-size:clamp(13px,3.5cqi,17px);line-height:1.5;color:#355776;margin-top:2px;
}
.page[data-chapter-page=kyoto].left .deco-book,
.page[data-chapter-page=la].left .deco-book {display:none}
.page[data-chapter-page=kyoto].left .academic-evidence {
  display:grid;grid-template-columns:37% minmax(0,1fr);gap:8px;
  margin-top:10px;padding-top:12px;border-top:1px solid #a7b7b7;
}
.page[data-chapter-page=kyoto].left .academic-evidence .gpa {border-left:3px solid #bb302b;padding-left:9px;letter-spacing:-.04em}
.page[data-chapter-page=kyoto].left .academic-evidence .gpa strong {font-size:clamp(31px,9cqi,43px);color:#082d54}
.page[data-chapter-page=kyoto].left .academic-evidence .gpa span {font-size:clamp(11px,2.9cqi,14px)}
.page[data-chapter-page=kyoto].left .academic-evidence .award {width:auto;padding-left:10px}
.page[data-chapter-page=kyoto].left .academic-evidence .award strong {
  font:700 clamp(14px,3.8cqi,19px)/1.6 var(--sans);
  white-space:nowrap;letter-spacing:0;color:#082d54;
}
.page[data-chapter-page=kyoto].left .academic-evidence .award span {
  font:600 clamp(11px,3cqi,14.5px)/1.6 Arial,var(--sans);
  letter-spacing:-.025em;color:#355776;white-space:nowrap;
}
.page[data-chapter-page=la].left .la-context {
  color:#082d54;font:600 clamp(13px,3.45cqi,17px)/1.75 var(--sans);
  margin-top:7px;padding-top:10px;border-top:1px solid #a7b7b7;
}

/* Kyoto: one-line title, violet annotation, evenly separated sections. */
.page[data-chapter-page=kyoto].right .detail-heading {white-space:nowrap}
.page[data-chapter-page=kyoto].right .detail-intro {border:0;padding-bottom:0}
.page[data-chapter-page=kyoto].right .evidence {margin-top:20px}
.page[data-chapter-page=kyoto].right .note-paper {
  font-size:clamp(13px,3.4cqi,16px);line-height:1.75;color:#72558e;
  border:0;border-radius:7px;background:#b5a1c224;
  padding:14px 15px 14px 49px;margin-top:19px;
}
.page[data-chapter-page=kyoto].right .note-paper::before {
  width:21px;height:28px;left:15px;top:18px;
  background-size:12px 1.2px,12px 1.2px,12px 1.2px;
}
.page[data-chapter-page=kyoto].right .note-paper+.evidence {border-top:1px dashed #a7b7b7;padding-top:20px;margin-top:23px}
.page[data-chapter-page=kyoto].right .lesson {padding-top:20px;margin-top:auto}
.page[data-chapter-page=kyoto].right .lesson p {font-size:clamp(22px,6cqi,29px);line-height:1.55;padding:4px 5px}
.page[data-chapter-page=kyoto].right .deco-pen {display:none}

/* LA right follows reference 5, including the staggered numbered journey. */
.page[data-chapter-page=la].right .detail-heading {font-size:clamp(23px,6.2cqi,31px);max-width:100%;line-height:1.4;white-space:normal;text-wrap:initial}
.page[data-chapter-page=la].right .detail-intro {font-size:clamp(13px,3.4cqi,16px);line-height:1.65;margin-top:8px;padding:0;border:0}
.page[data-chapter-page=la].right .la-flow-heading,
.page[data-chapter-page=la].right .metric-heading {
  width:100%;font:800 clamp(17px,4.4cqi,22px)/1.4 var(--sans);color:#082d54;gap:13px;
}
.page[data-chapter-page=la].right .la-flow-heading {margin-top:12px}
.page[data-chapter-page=la].right :is(.la-flow-heading,.metric-heading)>span {background:#bb302b;width:3px;height:1.05em}
.page[data-chapter-page=la].right .la-flow {margin-top:10px;min-height:180px;height:auto;width:100%;flex:1 1 0}
.page[data-chapter-page=la].right .la-flow-track {display:block;height:100%;width:100%}
.page[data-chapter-page=la].right .la-route-art {
  position:absolute;pointer-events:none;mix-blend-mode:multiply;opacity:.6;
  background-image:url('assets/la-flow-reference.png');background-repeat:no-repeat;
  mask-image:radial-gradient(ellipse at center,#000 50%,transparent 73%);
}
.page[data-chapter-page=la].right .la-route-palms {right:1%;top:0;width:24%;aspect-ratio:120/138;background-size:436.67% 562.32%;background-position:97.77% 38.87%}
.page[data-chapter-page=la].right .la-route-city {left:0;bottom:10%;width:40%;aspect-ratio:199/160;background-size:263.32% 485%;background-position:7.69% 57.95%}
.page[data-chapter-page=la].right .la-route-camera {right:0;bottom:-6%;width:21%;aspect-ratio:110/73;background-size:476.36% 1063.01%;background-position:96.135% 71.266%}
.page[data-chapter-page=la].right .la-flow-node {position:absolute;padding:0;display:block;width:max-content;max-width:none}
.page[data-chapter-page=la].right .la-flow-node:nth-child(1) {left:8%;top:5%}
.page[data-chapter-page=la].right .la-flow-node:nth-child(2) {left:29%;top:31%}
.page[data-chapter-page=la].right .la-flow-node:nth-child(3) {left:48%;top:56%}
.page[data-chapter-page=la].right .la-flow-node:nth-child(4) {left:68%;top:79%}
.page[data-chapter-page=la].right .la-flow-trigger {align-items:center;gap:11px;cursor:pointer;width:max-content;max-width:none}
.page[data-chapter-page=la].right .la-flow .la-flow-node .la-flow-disc {width:36px;height:36px;opacity:1;transform:none;box-shadow:0 0 0 1px currentColor,0 0 0 3.5px color-mix(in srgb,currentColor 78%,#fff)}
.page[data-chapter-page=la].right .la-flow-disc>span {font-size:23px}
.page[data-chapter-page=la].right .la-flow .la-flow-node .la-flow-label {font-size:clamp(13px,3.55cqi,17px);font-weight:600;color:#082d54;padding:0;opacity:1}
.page[data-chapter-page=la].right .la-flow-body {position:static;display:block}
.page[data-chapter-page=la].right .la-flow-curve {display:block;width:100%;height:100%;inset:0;overflow:visible}
.page[data-chapter-page=la].right .la-flow-curve path {stroke:#bfa084;stroke-width:1.35;stroke-dasharray:4 5;vector-effect:non-scaling-stroke}
.page[data-chapter-page=la].right .la-flow-slip {
  position:absolute;left:0;top:calc(100% + 9px);width:210px;max-width:none;
  padding:9px 12px;margin:0;font-size:13px;line-height:1.65;
  border:1px solid #b9c4cf;border-top:2px solid #8fa2b4;
  background:linear-gradient(174deg,#eef0ec,#e1e6df);
  box-shadow:1px 3px 7px #4b51432b;color:#35516a;
  opacity:0;visibility:hidden;pointer-events:none;
  transform:translateY(5px) rotate(-1.4deg);
  transition:opacity .25s ease,transform .25s ease,visibility 0s linear .25s;
}
.page[data-chapter-page=la].right .la-flow-node:nth-child(1) .la-flow-slip {left:calc(100% + 12px);top:-5px;width:180px}
.page[data-chapter-page=la].right .la-flow-node:nth-child(2) .la-flow-slip {left:-95px;top:calc(100% + 10px);width:165px}
.page[data-chapter-page=la].right .la-flow-node:nth-child(3) .la-flow-slip {left:-180px;top:-6px;width:165px}
.page[data-chapter-page=la].right .la-flow-node:nth-child(4) .la-flow-slip {left:-195px;top:0;width:180px}
.page[data-chapter-page=la].right .la-flow-node:has(:focus-visible),
.page[data-chapter-page=la].right .la-flow-node[data-open=true] {z-index:3}
.page[data-chapter-page=la].right .la-flow .la-flow-node:is(:has(:focus-visible),[data-open=true]) .la-flow-disc {transform:scale(1.1)}
.page[data-chapter-page=la].right .la-flow .la-flow-node:is(:has(:focus-visible),[data-open=true]) .la-flow-label {font-weight:800}
.page[data-chapter-page=la].right .la-flow-node:has(:focus-visible) .la-flow-slip,
.page[data-chapter-page=la].right .la-flow-node[data-open=true] .la-flow-slip {opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0) rotate(-1.4deg);transition-delay:0s}
@media(hover:hover) {
  .page[data-chapter-page=la].right .la-flow-node:hover {z-index:3}
  .page[data-chapter-page=la].right .la-flow .la-flow-node:hover .la-flow-disc {transform:scale(1.1)}
  .page[data-chapter-page=la].right .la-flow .la-flow-node:hover .la-flow-label {font-weight:800}
  .page[data-chapter-page=la].right .la-flow-node:hover .la-flow-slip {opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0) rotate(-1.4deg);transition-delay:0s}
}
.page[data-chapter-page=la].right .metric-heading {margin-top:8px}
.page[data-chapter-page=la].right .metric-row {margin-top:6px;padding:5px 0 10px;border-top:0;border-bottom:0}
.page[data-chapter-page=la].right .metric strong {font-size:clamp(23px,6.8cqi,33px);color:#082d54;white-space:nowrap}
.page[data-chapter-page=la].right .metric span {font-size:clamp(11px,3cqi,14px);color:#355776}
.page[data-chapter-page=la].right .lesson {border:0;padding-top:6px;margin-top:5px}
.page[data-chapter-page=la].right .lesson small {
  display:inline-block;padding:4px 10px;border:1px solid #bb302b;color:#b52b28;
  font-size:clamp(15px,3.8cqi,19px);transform:rotate(-4deg);margin-bottom:10px;
}
.page[data-chapter-page=la].right .lesson p {font-size:clamp(17px,4.65cqi,23px);white-space:nowrap;line-height:1.6;padding:6px 0;letter-spacing:0}
.page[data-chapter-page=la].right .lesson br {display:none}
.page[data-chapter-page=la].right .deco-pen {display:none}

@media(min-width:761px) {
  .page:is([data-chapter-page=dalian],[data-chapter-page=kyoto],[data-chapter-page=la]).right>.page-content {height:calc(100% - 2px);min-height:0;padding:12px 0 13px;transform:scale(var(--page-scale,1))}
  .page:is([data-chapter-page=kyoto],[data-chapter-page=la]).left>.page-content {height:100%;min-height:0;padding-bottom:14px}
  body[data-layout] .page:is([data-chapter-page=kyoto],[data-chapter-page=la]).left .journey-sketch {flex:1 1 0;height:0;min-height:170px}
}
@media(min-width:761px) and (max-height:849px) {
  .page:is([data-chapter-page=dalian],[data-chapter-page=kyoto],[data-chapter-page=la]).right>.page-content {padding-top:4px;padding-bottom:5px}
  .page[data-chapter-page=dalian].right .evidence {margin-top:10px}
  .page[data-chapter-page=dalian].right .metric-row {margin-top:10px;padding-block:8px}
  .page[data-chapter-page=dalian].right .achievement-strip {padding:10px 0 8px}
  .page[data-chapter-page=dalian].right .detail-intro {padding-bottom:8px}
  .page[data-chapter-page=dalian].right .evidence p {line-height:1.65}
  .page[data-chapter-page=dalian].right .achievement-strip h3 {margin-bottom:7px}
  .page[data-chapter-page=kyoto].right .evidence {margin-top:13px}
  .page[data-chapter-page=kyoto].right .note-paper {padding-block:11px;margin-top:13px}
  .page[data-chapter-page=kyoto].right .note-paper+.evidence {margin-top:17px;padding-top:17px}
  .page[data-chapter-page=kyoto].right .lesson {padding-top:17px}
  .page[data-chapter-page=la].right .la-flow {min-height:150px;margin-top:10px}
  .page[data-chapter-page=la].right .la-flow-heading {margin-top:10px}
}
@media(max-width:760px) {
  body[data-layout] .page:is([data-chapter-page=kyoto],[data-chapter-page=la]).left .journey-sketch {height:auto;aspect-ratio:1.15;min-height:0;flex:none}
  .page:is([data-chapter-page=dalian],[data-chapter-page=kyoto]).right .detail-heading {white-space:normal}
  .page[data-chapter-page=la].right .lesson p,
  .page:is([data-chapter-page=kyoto],[data-chapter-page=la]).left .place-caption {white-space:normal}
  .page[data-chapter-page=dalian].right .achievement-strip p {white-space:normal}
  .page[data-chapter-page=la].right .la-flow {height:250px;min-height:250px;flex:none}
  .page[data-chapter-page=la].right .la-flow .la-flow-node .la-flow-disc {width:30px;height:30px}
  .page[data-chapter-page=la].right .la-flow-disc>span {font-size:20px}
  .page[data-chapter-page=la].right .la-flow-trigger {gap:8px}
  .page[data-chapter-page=la].right .la-flow-node:nth-child(4) {left:63%}
  .page[data-chapter-page=la].right .la-flow-slip {transform:translateY(5px) rotate(-1.4deg)!important}
  .page[data-chapter-page=la].right .la-flow-node:nth-child(1) .la-flow-slip {left:calc(100% + 7px);width:130px}
  .page[data-chapter-page=la].right .la-flow-node:nth-child(2) .la-flow-slip {left:-80px;width:130px}
  .page[data-chapter-page=la].right .la-flow-node:nth-child(3) .la-flow-slip {left:-143px;width:130px}
  .page[data-chapter-page=la].right .la-flow-node:nth-child(4) .la-flow-slip {left:-150px;width:140px}
  .page[data-chapter-page=la].right .la-flow-node[data-open=true] .la-flow-slip,
  .page[data-chapter-page=la].right .la-flow-node:has(:focus-visible) .la-flow-slip {transform:translateY(0) rotate(-1.4deg)!important}
  .page[data-chapter-page=kyoto].right .lesson {margin-top:22px}
}
@media(prefers-reduced-motion:reduce) {
  .page[data-chapter-page=la].right .la-flow-slip {transition:none}
}

/* Let the complete drawing extend behind the typography without changing the
   original button's layout, activation state, cursor, or animation. */
.page[data-chapter-page=kyoto].left {--full-sketch:url('assets/kyoto-sketch-full.png');--sketch-ratio:560/546}
.page[data-chapter-page=la].left {--full-sketch:url('assets/la-sketch-full.png');--sketch-ratio:560/528}
body[data-layout] .page:is([data-chapter-page=kyoto],[data-chapter-page=la]).left .journey-sketch {
  position:relative;z-index:0;overflow:visible;background-image:none;
}
body[data-layout] .page:is([data-chapter-page=kyoto],[data-chapter-page=la]).left .journey-sketch::before {
  content:'';position:absolute;pointer-events:none;width:94%;height:auto;
  aspect-ratio:var(--sketch-ratio);left:3%;bottom:-45px;
  background:var(--full-sketch) center/contain no-repeat;
}
body[data-layout] .page[data-chapter-page=kyoto].left .journey-sketch::before {
  width:97%;left:1%;bottom:-85px;clip-path:inset(28% 0 0);
  background-size:100% 90%;background-position:center bottom;
}
body[data-layout] .page[data-chapter-page=kyoto].left .page-content .place-caption {margin-top:80px !important}
body[data-layout] .page[data-chapter-page=kyoto].left .page-content .place-caption {
  font-size:clamp(19px,5.15cqi,25px);font-weight:700;
}
body[data-layout] .page[data-chapter-page=kyoto].left .academic-evidence {margin-top:14px}
body[data-layout] .page[data-chapter-page=kyoto].left .academic-evidence .gpa strong {font-size:clamp(36px,10.5cqi,49px)}
body[data-layout] .page[data-chapter-page=kyoto].left .academic-evidence .gpa span {font-size:clamp(13px,3.3cqi,16px)}
body[data-layout] .page[data-chapter-page=kyoto].left .academic-evidence .award strong {font-size:clamp(16px,4.2cqi,21px)}
body[data-layout] .page[data-chapter-page=kyoto].left .academic-evidence .award span {font-size:clamp(11px,3cqi,14.5px)}
body[data-layout] .page[data-chapter-page=la].left .journey-sketch::before {
  width:92%;left:4%;bottom:-99px;aspect-ratio:1.2;
  background-size:100% 100%;
  mask-image:linear-gradient(#000 0 86%,transparent 100%);
}
body[data-layout] .page[data-chapter-page=la].left .page-content .place-caption {margin-top:85px !important}
.page:is([data-chapter-page=kyoto],[data-chapter-page=la]).left :is(.chapter-heading,.chapter-stamp,.place-caption,.chapter-institution,.chapter-degree,.academic-evidence,.la-context) {z-index:1}
.page:is([data-chapter-page=kyoto],[data-chapter-page=la]).left :is(.chapter-heading,.chapter-institution,.chapter-degree,.academic-evidence,.la-context) {position:relative}
.page:is([data-chapter-page=kyoto],[data-chapter-page=la]).left :is(.chapter-heading,.place-caption,.chapter-institution) {text-shadow:0 0 3px #f8f3e7,0 0 7px #f8f3e7}
.page:is([data-chapter-page=kyoto],[data-chapter-page=la]).left .chapter-tag {background-color:#f8f3e7f2}
.page[data-chapter-page=la].left .chapter-institution {font-family:var(--sans);font-weight:800}
.page[data-chapter-page=la].left .chapter-degree {font-weight:700;color:#082d54}
.page[data-chapter-page=kyoto].left .chapter-institution {
  font-family:var(--sans);font-weight:800;
}
@media(min-width:761px) {
  .page[data-chapter-page=kyoto].left .chapter-institution,
  .page[data-chapter-page=la].left .chapter-institution {margin-top:6px}
}
@media(max-width:760px) {
  body[data-layout] .page:is([data-chapter-page=kyoto],[data-chapter-page=la]).left .journey-sketch::before {width:100%;left:0;bottom:-15px}
  .page[data-chapter-page=dalian].right .lesson p {font-size:5cqi;letter-spacing:-.07em}
  .page[data-chapter-page=kyoto].left .academic-evidence {grid-template-columns:44% minmax(0,1fr);gap:5px}
  .page[data-chapter-page=kyoto].left .academic-evidence .award strong {white-space:normal;line-height:1.35}
  .page[data-chapter-page=kyoto].left .academic-evidence .award span {font-size:12px;line-height:1.5;white-space:normal;overflow-wrap:normal;word-break:normal}
  body[data-layout] .page[data-chapter-page=kyoto].left .page-content .place-caption {
    margin-top:46px !important;font-size:17px;font-weight:700;
  }
  body[data-layout] .page[data-chapter-page=la].left .page-content .place-caption {margin-top:60px !important}
}


/* ===========================================================================
   Appendix spreads — 龟冈 / OfferFlow / 尾页 (2026-09-28 round)
   Scope: ONLY [data-chapter-page=kameoka|offer|contact]. Nothing here can
   reach the other pages. Ink colours below are measured off 龟冈.png /
   offerflow.png / 尾页.png (darkest-6% average, see measure_ink.py):
     龟冈 body #0a2e78 / tag #135647 / stamp teal #0a7460
     OfferFlow body #01225e / tag #de0c10 / stamp red #d50305
     尾页 title #042244 / body #42596d / TO BE CONTINUED #c61624
   ========================================================================== */

/* ---- page ink + stamp ink (stamp frame/text follow --stamp) ------------- */
.page[data-chapter-page=kameoka]{--ink:#0a2e78;--muted:#3d5774}
.page[data-chapter-page=kameoka] .chapter-stamp{--stamp:#0a7460}
.page[data-chapter-page=offer]{--ink:#01225e;--muted:#3d5774}
.page[data-chapter-page=offer] .chapter-stamp{--stamp:#b8912f} /* stella：印章改金色，与大连的红区分 */
.page[data-chapter-page=contact]{--ink:#0f2b53;--muted:#42596d}
.page[data-chapter-page=contact] .contact-stamp{--stamp:#c61624}

/* cqi units need an inline-size container, same as dalian/kyoto/la. */
.page:is([data-chapter-page=kameoka],[data-chapter-page=offer],[data-chapter-page=contact]) .page-content{container-type:inline-size}

/* ---- left-page heading block (same geometry as kyoto/la) ---------------- */
.page:is([data-chapter-page=kameoka],[data-chapter-page=offer]) .chapter-heading{
  display:flex;flex-direction:column;align-items:flex-start;
  width:100%;padding-right:112px;margin-top:0; /* keep clear of the stamp */
}
.page[data-chapter-page=kameoka] .chapter-heading h2{
  font-size:clamp(46px,13.6cqi,62px);letter-spacing:.1em;line-height:1.02;
  font-weight:600;color:var(--ink);
}
.page[data-chapter-page=offer] .chapter-heading h2.latin-title{
  font-family:var(--serif);font-size:clamp(38px,11cqi,54px);line-height:1.05;
  font-weight:700;letter-spacing:.01em;color:var(--ink);
}
.page:is([data-chapter-page=kameoka],[data-chapter-page=offer]) .chapter-heading .date{
  display:block;font:12.5px/1.35 Consolas,monospace;color:var(--muted);
  letter-spacing:5px;margin-top:2px;padding-left:3px;
}
/* chapter tags — 龟冈 teal, OfferFlow red (measured off the references). */
.page[data-chapter-page=kameoka] .chapter-tag{
  display:inline-flex;align-items:center;gap:6px;background:transparent;
  border:2px solid #135647;color:#135647;font-size:13px;font-weight:600;padding:2px 12px 3px;
  transform:rotate(-1.6deg);margin-top:8px;letter-spacing:.06em;
}
.page[data-chapter-page=kameoka] .chapter-tag .app-icon{width:13px;height:13px}
.page[data-chapter-page=offer] .chapter-tag{
  display:inline-block;background:transparent;border:2px solid #b8912f;
  color:#b8912f;font-size:13px;font-weight:600;padding:2px 12px 3px;transform:rotate(-1.6deg);
  margin-top:8px;letter-spacing:.06em;
}
/* stamp position + size — 复制 dalian/kyoto/la 的最终几何（stella：位置不对且
   太小，参考前几页）。波纹邮戳 ::before 也一并复制，currentColor 自动跟随
   各章的 --stamp（龟冈青绿 / OfferFlow 金）。 */
.page[data-chapter-page=kameoka] .chapter-stamp{
  right:6px;top:14px;width:98px;height:76px;
  border-width:3px;outline-width:1px;outline-offset:-8px;
}
.page[data-chapter-page=offer] .chapter-stamp{
  right:6px;top:14px;width:98px;height:76px;
  border-width:3px;outline-width:1px;outline-offset:-8px;
}
.page:is([data-chapter-page=kameoka],[data-chapter-page=offer]) .chapter-stamp::before{
  content:'';position:absolute;
  right:calc(100% + 8px);top:34px;
  width:78px;height:20px;
  transform:rotate(-1.5deg);
  pointer-events:none;
  background-color:currentColor;
  -webkit-mask-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='26' height='20' viewBox='0 0 26 20'><g fill='none' stroke='%23000' stroke-width='1' stroke-linecap='round'><path d='M0 6 q 6.5 -3 13 0 t 13 0'/><path d='M0 15 q 6.5 -3 13 0 t 13 0'/></g></svg>"),
    linear-gradient(90deg,transparent 0,#000 16%,#000 78%,transparent 100%);
  mask-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='26' height='20' viewBox='0 0 26 20'><g fill='none' stroke='%23000' stroke-width='1' stroke-linecap='round'><path d='M0 6 q 6.5 -3 13 0 t 13 0'/><path d='M0 15 q 6.5 -3 13 0 t 13 0'/></g></svg>"),
    linear-gradient(90deg,transparent 0,#000 16%,#000 78%,transparent 100%);
  -webkit-mask-repeat:repeat-x,no-repeat;
  mask-repeat:repeat-x,no-repeat;
  -webkit-mask-size:26px 20px,100% 100%;
  mask-size:26px 20px,100% 100%;
  -webkit-mask-composite:source-in;
  mask-composite:intersect;
  opacity:.72;
}

/* ---- sketch plates + the copied 素描/印章 interaction ------------------- */
body[data-layout] .page[data-chapter-page=kameoka] .place-art,
body[data-layout] .page[data-chapter-page=kameoka] .journey-sketch{
  flex:0 0 auto;min-height:0;height:auto;width:100%;
  aspect-ratio:1021/628; /* kameoka-sketch-cut.png：按实心内容紧裁后的比例 */
  background-image:url('assets/kameoka-sketch-cut.png');
  background-size:contain;background-position:center;background-repeat:no-repeat;
  mix-blend-mode:multiply;margin:8px auto 0;
}
body[data-layout] .page[data-chapter-page=kameoka] .journey-sketch{
  opacity:.3;filter:saturate(.18) contrast(.62);
  transition:opacity 400ms ease,filter 180ms ease;
  cursor:url('assets/cursors/magic-wand.svg') 8 8,crosshair;
}
body[data-layout] .page[data-chapter-page=kameoka] .journey-sketch[aria-pressed=true]{opacity:1;filter:saturate(1) contrast(1)}
body[data-layout] .page[data-chapter-page=kameoka] .journey-sketch[aria-pressed=false]:hover{opacity:.62;filter:saturate(.42) contrast(.82)}

/* OfferFlow 左页：素描外包一层 place-wrap，屏幕热区链接悬浮其上。 */
.page[data-chapter-page=offer] .place-wrap{
  position:relative;width:100%;flex:0 0 auto;margin:8px auto 0;
}
body[data-layout] .page[data-chapter-page=offer] .place-art,
body[data-layout] .page[data-chapter-page=offer] .journey-sketch{
  flex:0 0 auto;min-height:0;height:auto;width:100%;
  aspect-ratio:1314/854; /* offerflow-sketch-cut.png 的原始比例 */
  background-image:url('assets/offerflow-sketch-cut.png');
  background-size:contain;background-position:center;background-repeat:no-repeat;
  mix-blend-mode:multiply;margin:0;
}
body[data-layout] .page[data-chapter-page=offer] .journey-sketch{
  opacity:.3;filter:saturate(.18) contrast(.62);
  transition:opacity 400ms ease,filter 180ms ease;
  cursor:url('assets/cursors/magic-wand.svg') 8 8,crosshair;
}
body[data-layout] .page[data-chapter-page=offer] .journey-sketch[aria-pressed=true]{opacity:1;filter:saturate(1) contrast(1)}
body[data-layout] .page[data-chapter-page=offer] .journey-sketch[aria-pressed=false]:hover{opacity:.62;filter:saturate(.42) contrast(.82)}

/* ---- 素描图中间的屏幕 → 真实产品入口 -----------------------------------
   stella：热区不要占满屏幕——缩成屏幕中心的一个小正方形（约 40px），
   hover 时金框提示可点，点击进入 https://offer.stellalala.me/ 。
   中心坐标取原屏幕矩形（left 13.32% / top 2.34% / w 75.42% / h 76.23%）
   的中点：51% / 40.5%。 */
.offer-screen-link{
  position:absolute;left:51%;top:40.5%;
  width:clamp(32px,9cqi,44px);aspect-ratio:1;
  transform:translate(-50%,-50%);
  z-index:2;display:block;
  border-radius:8px;text-decoration:none;cursor:pointer;
}
.offer-screen-link::after{
  content:'';position:absolute;inset:0;border-radius:8px;
  border:1.5px solid rgba(184,145,47,.35);background:rgba(184,145,47,.06);
  transition:border-color 200ms ease,background 200ms ease;
}
.offer-screen-link:hover::after,
.offer-screen-link:focus-visible::after{
  border-color:rgba(184,145,47,.9);background:rgba(184,145,47,.12);
}

/* ---- 印章交互态（复制 dalian/kyoto/la 的既定设计）---------------------- */
.page:is([data-chapter-page=kameoka],[data-chapter-page=offer]) .journey-stamp{opacity:.4}
.page:is([data-chapter-page=kameoka],[data-chapter-page=offer]) .journey-stamp[aria-pressed=true]{opacity:1;transform:rotate(9deg) scale(1.04)}
.page:is([data-chapter-page=kameoka],[data-chapter-page=offer]) .journey-stamp[aria-pressed=false]:hover{opacity:.62;scale:1.03}

/* ---- 左页说明文字 ------------------------------------------------------- */
.page[data-chapter-page=kameoka] .place-caption{color:#082d54;margin-top:10px;font-size:clamp(19px,4.9cqi,22px)}
.page[data-chapter-page=offer] .place-caption{color:#082d54;margin-top:10px}
.page:is([data-chapter-page=kameoka],[data-chapter-page=offer]) .chapter-institution{
  font-weight:800;font-size:clamp(22px,6.8cqi,28px);margin-top:8px;letter-spacing:.02em;color:var(--ink);
}
/* AMITA Holdings · MEGURU STATION 一行放下（stella：MEGURU 后面有留白、
   STATION 被挤到第二行）——龟冈单独压到前几章机构行字号并禁换行。 */
.page[data-chapter-page=kameoka] .chapter-institution{
  font-size:clamp(16px,4.6cqi,20px);white-space:nowrap;letter-spacing:.01em;
}
.page:is([data-chapter-page=kameoka],[data-chapter-page=offer]) .chapter-degree{
  font-size:13.5px;margin-top:4px;color:var(--muted);
}
.page[data-chapter-page=kameoka] .chapter-degree{
  font-size:clamp(13.5px,3.5cqi,15px);line-height:1.75;
}
.page[data-chapter-page=offer] .offer-desc{
  width:100%;margin-top:8px;font-size:clamp(12px,3.3cqi,15px);line-height:1.7;color:#355776;
}
.page[data-chapter-page=offer] .offer-metrics{margin-top:8px;padding-block:8px}
.page[data-chapter-page=offer] .metric strong{color:var(--ink)}
.page[data-chapter-page=offer] .metric span{color:#355776}

/* ===========================================================================
   龟冈 右页 —— 步骤 / 三地模式对比 / 未完成的验证
   ========================================================================== */
.page[data-chapter-page=kameoka].right .detail-heading{
  width:100%;font:800 clamp(23px,6.2cqi,31px)/1.4 var(--sans);
  letter-spacing:-.025em;color:var(--ink);margin:0;
}
.page[data-chapter-page=kameoka].right .detail-intro{
  width:100%;font-size:clamp(13px,3.55cqi,17px);line-height:1.6;color:#355776;margin-top:8px;
}
.kx-steps{display:grid;gap:0;width:100%;margin-top:10px}
.kx-step{
  display:flex;flex-wrap:wrap;align-items:baseline;gap:7px;
  padding:6px 0;border-bottom:1px dashed rgba(10,46,120,.28);
}
.kx-step:first-child{border-top:1px dashed rgba(10,46,120,.28)}
.kx-step-icon{width:17px;height:17px;color:#135647;flex:0 0 auto;align-self:center}
.kx-step-num{font:700 clamp(15px,4.2cqi,19px)/1 Consolas,monospace;color:var(--ink)}
.kx-step-title{font-weight:800;color:var(--ink);font-size:clamp(15px,4.5cqi,20px)}
/* stella：02/03 的说明文字必须一行——字号随容器宽度缩放（26 字上限），
   永不折行；缩进从 24px 收到 12px 给长句让位。 */
.kx-step-text{flex-basis:100%;margin:2px 0 0 12px;font-size:clamp(12px,3.6cqi,15.5px);line-height:1.6;color:#355776;white-space:nowrap}

.kx-modes-heading{
  display:flex;align-items:center;gap:8px;margin-top:12px;
  font:800 clamp(15px,4cqi,18px)/1.4 var(--sans);color:var(--ink);
  /* 与下方“这一站教会我的”同款深绿竖线 */
  border-left:3px solid #0a7460;padding-left:13px;
}
.kx-modes-icon{width:16px;height:16px;color:#135647;flex:0 0 auto}
/* stella：网格随缩放向右平移（系数减半：之前右移过头），scale=1 不位移。 */
.kx-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:10px;width:100%;transform:translateX(calc((1 - var(--page-scale, 1)) * 275px))}
.kx-mode{display:flex;flex-direction:column;align-items:center;text-align:center;min-width:0}
.kx-blob{
  width:clamp(52px,14cqi,64px);aspect-ratio:1;border-radius:50%;
  display:grid;place-items:center;color:#fff;opacity:.92;
}
.kx-blob .app-icon{width:42%;height:42%}
.kx-blob-kobe{background:#5b8a95;font:700 clamp(24px,6cqi,30px)/1 var(--serif)}   /* 神户 圆底，实测；衬线单字替代幼稚图标 */
.kx-blob-me{background:#54624d;font:700 clamp(25px,6.3cqi,32px)/1 var(--serif)} /* 龟冈「？」 */
.kx-blob-ono{background:#be9e70;font:700 clamp(24px,6cqi,30px)/1 var(--serif)}   /* 大刀洗町 圆底，实测 */
.kx-mode-name{margin-top:5px;font:800 clamp(15px,4.3cqi,19px)/1.3 var(--sans);color:var(--ink)}
.kx-mode-type{margin-top:2px;font-size:clamp(11px,3.2cqi,13.5px);letter-spacing:.12em;color:var(--muted)}
.kx-mode-caption{margin-top:4px;font-size:clamp(11px,3cqi,13px);line-height:1.5;color:#355776}

/* 「龟冈｜？」默认态：卡片只亮出名称+？；hover / 点击才翻开答案。 */
.kx-trigger{
  border:1px dashed rgba(84,98,77,.55);border-radius:10px;
  background:rgba(84,98,77,.06);cursor:pointer;font-family:var(--sans);
  text-align:center;padding:4px 6px;width:100%;
}
.kx-hint{
  display:flex;flex-direction:column;align-items:center;gap:3px;
  font-size:clamp(10px,2.8cqi,12.5px);line-height:1.5;color:#41563f;
}
.kx-answer{display:none;font-size:clamp(11px,3cqi,13.5px);line-height:1.6;color:#355776}
.kx-answer strong{color:#135647}
.kx-mode-me[data-open="true"] .kx-answer{display:block}
.kx-mode-me[data-open="true"] .kx-hint{display:none}
@media(hover:hover){
  .kx-mode-me:hover .kx-answer{display:block}
  .kx-mode-me:hover .kx-hint{display:none}
  .kx-trigger:hover{border-color:#135647;background:rgba(10,116,96,.08)}
}

/* 「未完成的验证」——参考图是一条深色纸带，点击后在其下方展开说明。 */
.kx-verify{margin-top:12px;width:100%}
/* 效果图：浅米色纸签横条，深褐字 + 描边圆问号 + 锁形提示，右侧一枚牛皮纸小签。 */
.kx-verify-trigger{
  display:flex;align-items:center;gap:10px;width:100%;
  padding:6px 14px;border:1px solid #b3a077;border-radius:7px;
  background:#f6efdb;color:#211e19;cursor:pointer;font-family:var(--sans);
  box-shadow:0 1px 0 rgba(120,100,60,.14);
  transition:background 160ms ease;
}
.kx-verify-trigger:hover{background:#f1e8d0}
.kx-verify-q{
  display:grid;place-items:center;width:22px;height:22px;border-radius:50%;
  border:1.5px solid #211e19;color:#211e19;font:700 13px/1 var(--serif);flex:0 0 auto;
}
.kx-verify-title{font:800 clamp(14px,3.6cqi,17px)/1.3 var(--sans);letter-spacing:.04em}
.kx-verify-hint{
  margin-left:auto;display:flex;align-items:center;gap:5px;
  font-size:clamp(10px,2.6cqi,11.5px);color:#6b5d40;white-space:nowrap;
}
.kx-verify-hint .app-icon{width:13px;height:13px;color:#6b5d40}
/* 展开态：横条右侧压一条牛皮纸短签（还原效果图右端的深色小片）。 */
.kx-verify::after{
  content:'';position:absolute;right:-7px;top:6px;bottom:6px;width:9px;
  background:#c9a86a;border-radius:2px;opacity:.85;pointer-events:none;
}
.kx-verify{position:relative}
.kx-verify-body{
  display:none;margin-top:8px;padding:8px 12px;border-radius:7px;
  border:1px dashed rgba(10,46,120,.35);background:rgba(10,46,120,.05);
  font-size:clamp(12px,3.2cqi,15px);line-height:1.7;color:#355776;
}
.kx-verify[data-open="true"] .kx-verify-body{display:block}
.kx-verify[data-open="true"] .kx-verify-q{background:#211e19;color:#f6efdb;border-color:#211e19}

/* stella：步骤块字号加大（对齐前几章视觉）；间距同步收紧保 scale。 */
.page[data-chapter-page=kameoka].right .lesson{margin-top:auto;padding-top:10px}
.page[data-chapter-page=kameoka].right .lesson small{
  font:800 clamp(17px,4.4cqi,21px)/1.3 var(--sans);color:var(--ink);
  border-left:3px solid #0a7460;padding-left:13px;letter-spacing:0;margin-bottom:8px;
}
/* Keep the lesson readable; allow wrapping when the page cannot fit one line. */
@font-face{
  font-family:'Passport Kameoka Lesson';
  src:url('assets/fonts/passport-kameoka-lesson.woff2') format('woff2');
  font-style:normal;font-weight:400;font-display:swap;
}
@font-face{
  font-family:'Passport OfferFlow Lesson';
  src:url('assets/fonts/passport-offerflow-lesson.woff2') format('woff2');
  font-style:normal;font-weight:400;font-display:swap;
}
.page[data-chapter-page=kameoka].right .lesson p{
  font-family:'Passport Kameoka Lesson','KaiTi',cursive;
  color:#082d54;font-weight:400;font-synthesis:none;
  font-size:clamp(18px,5.1cqi,24px);line-height:1.55;text-wrap:balance;
  width:100%;text-align:center;
}
.page[data-chapter-page=kameoka].right .lesson p .marker-text{white-space:normal}
.page:is([data-chapter-page=kameoka],[data-chapter-page=offer]).right .lesson p .marker-text{font-weight:400;letter-spacing:.01em}
/* Preserve each comparison caption's two authored lines, freeing the row below. */
.page[data-chapter-page=kameoka].right .kx-mode:not(.kx-mode-me) .kx-mode-caption{
  font-size:min(12.5px,3cqi);white-space:nowrap;
  width:100%;text-align:center;
  /* Optical centering: compensate for the empty half of terminal punctuation. */
  transform:translateX(.25em);
}

/* ===========================================================================
   OfferFlow 右页 —— 三步迭代 + 结语
   ========================================================================== */
.page[data-chapter-page=offer].right .detail-heading{
  width:100%;font:800 clamp(23px,6.2cqi,31px)/1.4 var(--sans);
  letter-spacing:-.025em;color:var(--ink);margin:0;
}
.page[data-chapter-page=offer].right .detail-intro{
  width:100%;font-size:clamp(13px,3.55cqi,17px);line-height:1.65;color:#355776;margin-top:8px;
}
.of-steps{display:grid;gap:0;width:100%;margin-top:10px}
.of-item{padding:7px 0;border-bottom:1px dashed rgba(1,34,94,.25)}
.of-item:first-child{border-top:1px dashed rgba(1,34,94,.25)}
.of-head{display:flex;align-items:center;gap:8px;position:relative;padding-left:15px}
.of-head::before{content:'';position:absolute;left:0;top:50%;transform:translateY(-50%);width:4px;height:1.3em;background:#c1121f;border-radius:1px}
.of-icon{width:17px;height:17px;color:#b8912f;flex:0 0 auto}
.of-num{font:700 clamp(14px,3.4cqi,17px)/1 Consolas,monospace;color:var(--ink)}
.of-title{font-weight:800;color:var(--ink);font-size:clamp(15px,3.9cqi,19px)}
.of-text{margin:3px 0 0 27px;font-size:clamp(12px,3.2cqi,15px);line-height:1.6;color:#355776}
.of-closing{
  margin-top:10px;padding-top:10px;border-top:1px dashed rgba(1,34,94,.25);
  font-size:clamp(12px,3.2cqi,14.5px);line-height:1.7;color:#355776;width:100%;
}
.page[data-chapter-page=offer].right .lesson small{
  font:800 clamp(16px,4.1cqi,20px)/1.3 var(--sans);color:var(--ink);
  border-left:3px solid #b8912f;padding-left:13px;letter-spacing:0;margin-bottom:8px;
}
.page[data-chapter-page=offer].right .lesson p{
  font-family:'Passport ZhenKai','LXGW ZhenKai','LXGW ZhenKai GB','KaiTi',cursive;
  color:#082d54;font-weight:400;font-synthesis:none;
  font-size:clamp(19px,4.5cqi,22px);line-height:1.62;
}

/* ===========================================================================
   尾页 —— 左：结语+天际线+签名；右：联系方式+TO BE CONTINUED 章
   ========================================================================== */
.page[data-chapter-page=contact] .contact-heading{
  font:800 clamp(26px,7cqi,34px)/1.45 var(--sans);letter-spacing:.02em;
  color:#042244;margin:6px 0 0;
}
.page[data-chapter-page=contact] .closing-copy{
  margin-top:22px;font-size:clamp(17px,4.6cqi,22px);line-height:2;color:#42596d;
}
.page[data-chapter-page=contact] .closing-note{
  margin-top:22px;padding:12px 0 0;border-top:1px dashed rgba(15,43,83,.25);
  font-weight:700;font-size:clamp(17px,4.6cqi,22px);line-height:1.9;color:#0f2b53;width:100%;
}
/* 左页底部：头像抠图（不圆形）+ 手写签名——整体从左下角上移右移（stella 红框位） */
.ct-bottom{display:flex;align-items:flex-end;gap:clamp(20px,5cqi,34px);margin-top:30px;margin-left:56px;width:calc(100% - 56px)}
.ct-avatar{width:clamp(170px,44cqi,210px);aspect-ratio:1;flex:0 0 auto;object-fit:contain}
.ct-signature{height:clamp(52px,14cqi,68px);width:auto;margin-bottom:14px;mix-blend-mode:multiply}

.page[data-chapter-page=contact].right .detail-heading{
  width:100%;font:800 clamp(23px,6.2cqi,31px)/1.4 var(--sans);
  letter-spacing:-.025em;color:#042346;margin:24px 0 0;
  position:relative;top:-24px;
}
.page[data-chapter-page=contact].right .detail-intro{
  width:100%;font-size:clamp(15px,4.15cqi,18.5px);line-height:1.8;color:#3d5369;margin-top:-12px;
}
.page[data-chapter-page=contact] .contact-details{margin-top:22px}
.page[data-chapter-page=contact] .contact-details dt{
  font-size:13px;letter-spacing:.2em;color:#42596d;
}
.page[data-chapter-page=contact] .contact-details dd{
  margin-top:6px;font-size:clamp(20px,5.4cqi,26px);color:#173656;
}
.page[data-chapter-page=contact] .contact-details dd a{
  color:#173656;text-decoration-color:rgba(198,22,36,.5);text-underline-offset:4px;
}
.page[data-chapter-page=contact] .contact-details dd a:hover{color:#c61624}
.page[data-chapter-page=contact] .contact-actions{margin-top:16px}
/* 「下载完整简历」按钮底色实测 #293f57。 */
.page[data-chapter-page=contact] .action{
  background:#293f57;color:#f8f3e7;border:1px solid #293f57;
}
.page[data-chapter-page=contact] .action:hover{background:#1c3046}
.page[data-chapter-page=contact] .action.secondary{
  background:transparent;color:#293f57;border:1.5px solid #293f57;
}
.page[data-chapter-page=contact] .action.secondary:hover{background:rgba(41,63,87,.08)}

/* ---- marker 荧光笔：把全站的 .marker-text 沙色底扩展到三个附录章 --------
   （大连/京都/洛杉矶在 passport.css 已有同款，这里逐字复制，值不改。） */
.page:is([data-chapter-page=kameoka],[data-chapter-page=offer],[data-chapter-page=contact]) .marker-text{position:relative;isolation:isolate;display:inline-block;padding:0 .16em .06em}
.page:is([data-chapter-page=kameoka],[data-chapter-page=offer],[data-chapter-page=contact]) .marker-text::before{content:'';position:absolute;z-index:-1;inset:.28em -.13em .03em;background:rgba(215,184,125,.18);clip-path:polygon(2% 14%,12% 9%,11% 3%,33% 7%,51% 1%,67% 7%,87% 0,96% 9%,94% 20%,100% 29%,97% 43%,100% 56%,96% 66%,98% 82%,90% 89%,91% 97%,73% 94%,56% 100%,40% 93%,21% 100%,8% 91%,3% 94%,4% 79%,0 67%,3% 51%,0 38%,4% 26%);transform:rotate(-.6deg);pointer-events:none}

/* ===========================================================================
   尾页复刻（stella 第二轮）—— 参照 尾页.png
   ========================================================================== */
.page[data-chapter-page=contact] .page-content{position:relative}
/* Leave the paper margin available for the repositioned stamp. */
.map-sheet[data-chapter=contact] .map-content,
.page[data-chapter-page=contact].right{overflow:visible}
/* 左页标题右侧的淡蓝飞机邮戳（stella 素材图，替换 CSS 绘制版） */
.ct-postmark-img{
  position:absolute;right:4px;top:14px;width:clamp(190px,47cqi,250px);
  opacity:.6;mix-blend-mode:multiply;pointer-events:none;
}
.page[data-chapter-page=contact] .contact-details dd{
  margin-top:4px;font-size:clamp(18px,4.8cqi,22px);color:#173656;
}
/* 尾页内容撑满页高：ct-sketch 的 margin-top:auto 才能把天际线压到页底。 */
.page[data-chapter-page=contact]>.page-content{min-height:100%}

/* TO BE CONTINUED 大章：stella 素材图（自带双线框/✳/飞机/波纹/斜度）。
   按钮仅承载点击交互（火花 + click 提示 + 按下状态），本体为印章图。 */
.page[data-chapter-page=contact] .contact-stamp{
  position:relative;right:-28px;top:-42px;
  width:clamp(280px,66cqi,330px);height:auto;
  margin:18px 2px 0 auto;padding:0;transform:none;
  border:none;outline:none;background:none;
}
.page[data-chapter-page=contact] .contact-stamp .stamp-img{
  display:block;width:100%;height:auto;user-select:none;
  /* stella：太红 → 压暗降饱和成深红 */
  filter:drop-shadow(2px 6px 14px #3a2c1833) brightness(.72) saturate(.88);
}
/* click 提示小胶囊：盖章后隐藏 */
.stamp-click-hint{
  position:absolute;top:-13px;right:-12px;z-index:2;
  background:#c61624;color:#f8f3e7;font:700 11px/1.6 var(--sans);
  letter-spacing:.1em;padding:2px 10px;border-radius:999px;
  box-shadow:0 1px 5px rgba(60,20,20,.3);pointer-events:none;
}
.page[data-chapter-page=contact] .journey-stamp[aria-pressed="true"] .stamp-click-hint{display:none}
.page[data-chapter-page=contact] .journey-stamp{opacity:.4}
.page[data-chapter-page=contact] .journey-stamp[aria-pressed=true]{opacity:1;transform:scale(1.04)}
.page[data-chapter-page=contact] .journey-stamp[aria-pressed=false]:hover{opacity:.75;scale:1.03}

/* 矮视口保险：窗口偏矮时再收一档字号与间距，保证 scale 不掉、右侧不出大片空白
   （stella 的窗口约 870-880px 高，这一档就是给它的）。 */
@media(min-width:761px) and (max-height:920px){
  .page[data-chapter-page=kameoka].right .detail-heading{font-size:clamp(22px,5.6cqi,27px)}
  .page[data-chapter-page=kameoka].right .detail-intro{font-size:clamp(12.5px,3.3cqi,15.5px);line-height:1.55;margin-top:5px}
  .page[data-chapter-page=kameoka].right .kx-steps{margin-top:5px}
  .page[data-chapter-page=kameoka].right .kx-step{padding:2px 0;gap:6px}
  .page[data-chapter-page=kameoka].right .kx-step-text{margin-left:22px;font-size:15px}
  .page[data-chapter-page=kameoka].right .kx-modes-heading{margin-top:6px;font-size:16px}
  .page[data-chapter-page=kameoka].right .kx-modes{margin-top:5px;gap:6px}
  .page[data-chapter-page=kameoka].right .kx-blob{width:clamp(38px,9cqi,44px)}
  .page[data-chapter-page=kameoka].right .kx-blob-me{font-size:24px}
  .page[data-chapter-page=kameoka].right .kx-mode-name{font-size:15px;margin-top:3px}
  .page[data-chapter-page=kameoka].right .kx-mode-caption{font-size:12.5px;line-height:1.45;margin-top:2px}
  .page[data-chapter-page=kameoka].right .kx-verify{margin-top:6px}
  .page[data-chapter-page=kameoka].right .kx-verify-trigger{padding:4px 12px}
  .page[data-chapter-page=kameoka].right .kx-verify-body{margin-top:6px;padding:6px 10px}
  .page[data-chapter-page=kameoka].right .lesson{margin-top:auto;padding-top:5px}
  .page[data-chapter-page=kameoka].right .lesson small{font-size:19px;margin-bottom:4px}
}
/* 左页同档：机构行、素描上边距略收 */
@media(min-width:761px) and (max-height:920px){
  .page[data-chapter-page=kameoka] .place-art,body[data-layout] .page[data-chapter-page=kameoka] .journey-sketch{margin-top:6px}
  .page[data-chapter-page=kameoka] .place-caption{margin-top:8px}
  .page[data-chapter-page=kameoka] .chapter-institution{margin-top:6px}
}

/* Match the Los Angeles stamp geometry at the same viewport breakpoints. */
@media(min-width:761px) and (max-width:1100px){
  .page:is([data-chapter-page=kameoka],[data-chapter-page=offer]) .chapter-stamp{width:86px;height:68px;top:10px}
}

/* ---- 窄屏微调（沿用既有断点）------------------------------------------- */
@media(max-width:760px){
  .kx-modes{gap:8px;width:100%;margin-left:0;margin-right:0}
  .kx-blob{width:48px}
  .kx-mode-caption{white-space:normal;font-size:12px}
  .page[data-chapter-page=kameoka].right .kx-step-text{white-space:normal}
  .page:is([data-chapter-page=kameoka],[data-chapter-page=offer]) .chapter-stamp{right:30px;top:58px;width:80px;height:62px}
  .page[data-chapter-page=contact] .contact-stamp{width:clamp(220px,60cqi,260px);margin-top:14px;right:0}
  .ct-postmark-img{width:clamp(150px,40cqi,190px);right:2px;top:10px}
}

/* OfferFlow's thin paper slip. No folding, resizing, or document overflow. */
.passport-shell:has(.page[data-chapter-page=offer]){transition:transform .42s cubic-bezier(.25,.7,.2,1)}
.passport-shell[data-pfold-open]{transform:translateX(var(--pfold-shift-x,0px))}
.page[data-chapter-page=offer] .of-lesson-heading{display:flex;align-items:center;gap:12px}
.page[data-chapter-page=offer].right .of-lesson-heading small{margin-bottom:0}
.pfold-tab{
  flex:0 0 auto;display:grid;place-items:center;width:38px;height:25px;padding:0;
  border:1px solid #bcaa805e;border-radius:2px;background:#f4eddb;color:#8a6d3b;
  font:17px/1 var(--sans);cursor:pointer;
}
.pfold-tab:hover,.pfold-tab:focus-visible{background:#eee4cd;border-color:#b49b68}
.pfold-note{
  position:fixed;z-index:25;left:16px;top:16px;width:320px;max-width:calc(100vw - 32px);
  max-height:calc(100dvh - 40px);overflow:auto;text-align:left;
  border:1px solid #d3c39a;border-radius:4px;background:#faf6ec;
  box-shadow:6px 10px 30px #3a2c1826,0 2px 6px #3a2c1815;
  visibility:hidden;opacity:0;transform:translateX(-24px);clip-path:inset(-16px 100% -16px -16px);
  transition:transform .42s cubic-bezier(.25,.7,.2,1),clip-path .42s cubic-bezier(.25,.7,.2,1),opacity .25s,visibility 0s .42s;
}
.pfold-note::before{content:'';position:absolute;left:0;right:0;top:0;height:3px;background:linear-gradient(90deg,#c9a86a,#b8912f)}
.pfold-label{font:700 10px/1 var(--sans);letter-spacing:.28em;color:#8a6d3b;margin:0 0 10px;padding-bottom:8px;border-bottom:1px solid #c9a86a44}
.pfold-note[data-open=true]{visibility:visible;opacity:1;transform:translateX(0);clip-path:inset(-16px);transition-delay:0s}
.pfold-paper{position:relative;padding:20px 22px 20px}
.pfold-body{font:14px/2 var(--sans);color:#31435a;margin:0;overflow-wrap:anywhere;text-align:justify}
.pfold-close{position:absolute;right:12px;top:9px;width:30px;height:28px;padding:0;border:0;background:none;color:#8a6d3b;font:19px/1 var(--sans);cursor:pointer}
.pfold-close:hover,.pfold-close:focus-visible{background:#eee4cd;color:#5d4a25}
@media(prefers-reduced-motion:reduce){
  .passport-shell:has(.page[data-chapter-page=offer]),.pfold-note{transition:none}
}

/* ---- OfferFlow 布局修正（stella 标注）---------------------------------- */
/* 标签加大 */
.page[data-chapter-page=offer] .chapter-tag{font-size:15px;padding:3px 14px}
/* 屏幕热区：隐藏正方形提示，仅保留点击跳转 */
.offer-screen-link::after{display:none}
/* 手写句加大 */
.page[data-chapter-page=offer] .place-caption{font-size:clamp(21px,5.2cqi,25px);text-align:center;width:100%}
/* 副标题与描述加大、不随意换行 */
.page[data-chapter-page=offer] .chapter-degree{font-size:clamp(16px,4.2cqi,18.5px);font-weight:700;white-space:nowrap}
.page[data-chapter-page=offer] .offer-desc{font-size:clamp(15px,4cqi,18px)}
/* 6/4/1 居中且加大 */
.offer-metrics{justify-content:space-between;gap:12px;text-align:center;padding:0 10px;margin-top:auto}
.offer-metrics .metric{flex:0 0 auto}
.offer-metrics .metric strong{font-size:clamp(32px,8.6cqi,44px)}
.offer-metrics .metric span{margin-top:6px;font-size:13px}

/* OfferFlow refinements, scoped to this spread. */
/* stella：手写句换回全站手写体（原自定义字体笔画偏重，显得像加粗） */
.page[data-chapter-page=offer] .place-caption{font-family:'Passport OfferFlow Lesson','KaiTi',cursive;font-weight:400;font-synthesis:none}
.page[data-chapter-page=offer].right .lesson p{font-family:'Passport OfferFlow Lesson','KaiTi',cursive;font-weight:400;font-synthesis:none}
/* stella：印章尺寸对齐洛杉矶（98×76 同款几何），旧 132×103 放大规则已删 */
.page[data-chapter-page=offer] .chapter-heading{padding-right:118px}
.page[data-chapter-page=offer] .place-wrap{margin-top:20px;isolation:isolate}
.page[data-chapter-page=offer] .place-wrap::before{
  content:'';position:absolute;z-index:-1;pointer-events:none;inset:4% 0 -4%;
  background:radial-gradient(ellipse 24% 38% at 25% 62%,#8baeb84d 0%,#9dbdc236 40%,transparent 100%),
    radial-gradient(ellipse 24% 40% at 75% 57%,#8badb747 0%,#a2c1c62e 40%,transparent 100%),
    radial-gradient(ellipse 46% 21% at 52% 80%,#9bbac14a 0%,#afcbd035 40%,transparent 100%);
  mask-image:radial-gradient(ellipse 32% 40% at 50% 30%,transparent 60%,#000 100%);
  filter:blur(5px);border-radius:43% 57% 48% 52% / 51% 44% 56% 49%;
}
.page[data-chapter-page=offer] .place-caption{margin-top:14px}
.page[data-chapter-page=offer] .chapter-institution{margin-top:22px}
.page[data-chapter-page=offer] .offer-metrics{border:0;margin-top:10px;margin-bottom:0;padding-block:4px}
.page[data-chapter-page=offer].right .detail-intro{font-size:clamp(12px,3.05cqi,14px);line-height:1.75;margin-top:10px}
.page[data-chapter-page=offer] .of-steps{margin-top:15px}
.page[data-chapter-page=offer] .of-item{padding:12px 0}
.page[data-chapter-page=offer] .of-text{margin-top:7px;line-height:1.75}
.page[data-chapter-page=offer].right .lesson{margin-top:18px;padding-top:0;border:0}
.page[data-chapter-page=offer].right .lesson p{text-align:center;margin-top:12px}
@media(max-width:760px){
  .page[data-chapter-page=offer] .chapter-heading{padding-right:158px;min-height:110px}
  .page[data-chapter-page=offer] .chapter-heading h2.latin-title{font-size:clamp(24px,8cqi,30px)}
  .page[data-chapter-page=offer] .chapter-heading .date{font-size:9px;letter-spacing:0;white-space:nowrap}
  .page[data-chapter-page=offer] .chapter-tag{font-size:10px;padding:3px 4px;white-space:nowrap}
  .page[data-chapter-page=offer] .place-caption{font-size:clamp(18px,5.6cqi,22px)}
  .page[data-chapter-page=offer].right .detail-heading,
  .page[data-chapter-page=offer].right .detail-intro{padding-right:26px}
  .page[data-chapter-page=offer] .chapter-degree{white-space:normal}
  .page[data-chapter-page=offer] .chapter-institution{margin-top:16px}
  .page[data-chapter-page=offer] .of-item{padding:10px 0}
  .pfold-paper{padding:42px 20px 22px}
}


/* ===========================================================================
   OfferFlow 第三轮（stella 2026-09-30 标注，只动本章）
   根因先说清：左页内容排版高约 736px > 页高 633px，fitPageContent 把整页
   压到 0.859，内容以左上角为原点缩放 → 右侧空出 ~64px 纸边。印章离书签远、
   素描偏左、6/4/1 偏左，全是这一个根因（洛杉矶 scale 0.997 所以正常，
   其印章实测渲染 108×90、距页右缘仅 2px、top +7px）。
   本轮把左页高度收进一页让 scale 回 1，再按洛杉矶基准给印章显式几何。
   ========================================================================== */

/* 1) 印章尺寸和位置统一使用上方与洛杉矶一致的规则。 */

/* 2) 素描盒 90% 宽、margin auto 居中：scale 回 1 后，电脑（资产内实测
   底座中心 50.2%）正好落在页心上。 */
body[data-layout] .page[data-chapter-page=offer] .place-art,
body[data-layout] .page[data-chapter-page=offer] .journey-sketch{
  width:90%;margin:0 auto;
}
.page[data-chapter-page=offer] .place-wrap{margin-top:10px}

/* 3) 水彩晕染：向左右（尤其电脑两侧）与底部扩展，各外扩 5%；椭圆+blur
   自然渐隐、不成矩形；mask 挖掉屏幕区，蓝色不盖屏幕内容；晕染层在
   place-wrap 内、caption 之上边界处已渐隐，不碰下方文字。整块重声明，
   覆盖上一轮的三 blob 版本。 */
.page[data-chapter-page=offer] .place-wrap::before{
  content:'';position:absolute;z-index:-1;pointer-events:none;
  inset:2% -5% -5%;
  background:
    radial-gradient(ellipse 30% 42% at 16% 60%, #8baeb84d 0%, #9dbdc23a 42%, transparent 100%),
    radial-gradient(ellipse 30% 44% at 84% 56%, #8badb74d 0%, #a2c1c632 42%, transparent 100%),
    radial-gradient(ellipse 42% 30% at 6% 80%, #93b3bd40 0%, transparent 100%),
    radial-gradient(ellipse 42% 30% at 94% 78%, #97b5bf3c 0%, transparent 100%),
    radial-gradient(ellipse 64% 26% at 50% 88%, #9bbac14f 0%, #afcbd03a 45%, transparent 100%);
  -webkit-mask-image:radial-gradient(ellipse 36% 44% at 51% 32%, transparent 58%, #000 100%);
  mask-image:radial-gradient(ellipse 36% 44% at 51% 32%, transparent 58%, #000 100%);
  filter:blur(8px);
  border-radius:43% 57% 48% 52% / 51% 44% 56% 49%;
}

/* 4) 「OfferFlow」+「面向校招求职者的求职管理工具」同一行（book.js 已把
   两个 <p> 包进 .offer-idline），定位语字号跟着标题走、同一档 clamp。 */
.page[data-chapter-page=offer] .offer-idline{
  display:flex;align-items:baseline;gap:12px;min-width:0;
  margin-top:14px;width:100%;white-space:nowrap;line-height:1.3;
}
.page[data-chapter-page=offer] .offer-idline .chapter-institution{
  margin:0;font-size:clamp(18px,4.9cqi,22px);letter-spacing:.02em;
}
.page[data-chapter-page=offer] .offer-idline .chapter-degree{
  margin:0;font-size:clamp(18px,4.9cqi,22px);font-weight:600;color:#355776;letter-spacing:0;
}

/* 5) 介绍文字加大一号。 */
.page[data-chapter-page=offer] .offer-desc{font-size:clamp(15px,4.1cqi,18.5px);margin-top:6px}

/* 6) 6/4/1 整体居中：宽度吃满 + 居中分布；数字档位微收，换回排版高度。 */
.page[data-chapter-page=offer] .offer-metrics{
  width:100%;justify-content:center;gap:clamp(26px,8cqi,44px);
  margin-top:auto;padding-block:8px;
}
.page[data-chapter-page=offer] .offer-metrics .metric strong{font-size:clamp(28px,7.2cqi,33px)}
.page[data-chapter-page=offer] .offer-metrics .metric span{font-size:12.5px;margin-top:4px}
.page[data-chapter-page=offer]>.page-content{min-height:100%}

/* Same ZhenKai face as LA, with complete caption coverage and one weight. */
.page[data-chapter-page=kameoka] .place-caption{
  font-family:'Passport Kameoka Lesson','KaiTi',cursive;
  font-weight:400;font-synthesis:none;
}
.page:is([data-chapter-page=kameoka],[data-chapter-page=offer]) .place-caption .marker-text{
  font-family:inherit;
  font-weight:400;font-synthesis:none;
}

/* 8) 01/02/03 小标题下方说明加大一号。 */
.page[data-chapter-page=offer] .of-text{font-size:clamp(13.5px,3.6cqi,16.5px)}

/* 9) 垂直预算的零头：标题块日期/标签间距微收（肉眼不可感），保 scale≈1。 */
.page[data-chapter-page=offer] .chapter-heading .date{margin-top:0}
.page[data-chapter-page=offer] .chapter-tag{margin-top:6px}
.page[data-chapter-page=offer] .place-caption{margin-top:10px}

@media(max-width:760px){
  .page[data-chapter-page=offer] .offer-idline{white-space:normal;flex-wrap:wrap;row-gap:2px;margin-top:12px}
  .page[data-chapter-page=offer]>.page-content{min-height:0}
}
