.cs-main {
  --navy: #102a43;
  --rust: #943e2d;
  --pale: #faf8f1;
  --gold: #edc16b;
  --serif: Georgia, 'Times New Roman', serif;
  background: var(--pale);
  color: var(--navy);
}
.cs-main h1, .cs-main h2, .cs-main h3, .cs-portrait q {
  font-family: var(--serif); font-weight: 400;
}
.cs-main h1, .cs-main h2 { text-wrap: balance; }
.cs-main h2 { font-size: clamp(2.45rem, 4.5vw, 4.15rem); line-height: 1.04; letter-spacing: -.05em; }
.cs-main h1 em, .cs-main h2 em { font-weight: normal; }
.cs-main h1 { font-size: clamp(3rem, 4.7vw, 5.4rem); letter-spacing: -.064em; line-height: 1.01; margin: 0; }
.cs-main h1 em { color: var(--rust); }
.cs-main .cs-label, .cs-portrait figcaption span {
  font-family: 'DM Sans', sans-serif; text-transform: uppercase; font-size: .81rem;
  letter-spacing: .15em; line-height: 1.4; font-weight: 750; margin: 0 0 1.3rem;
}
.cs-line { display: flex; align-items: center; gap: .8rem; color: var(--rust); }
.cs-line::before { content: ''; width: 2rem; height: 3px; background: currentColor; flex-shrink: 0; }
.cs-hero { display: grid; grid-template-columns: 1fr 1fr; max-width: 112rem; margin: auto; }
.cs-intro { align-self: center; padding: clamp(2.6rem, 4.5vw, 5.1rem) clamp(1.8rem, 4.1vw, 4.7rem) clamp(2.6rem, 4.5vw, 5.1rem) max(6vw, calc((100vw - 89rem)/2)); }
.cs-deck { font-size: clamp(1.05rem, 1.26vw, 1.23rem); line-height: 1.56; margin: 1.45rem 0 1.65rem; color: #344855; max-width: 35rem; }
.cs-portrait { background: var(--navy); margin: 0; position: relative; overflow: hidden; min-height: 31rem; isolation: isolate; }
.cs-portrait img { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; object-position: 41% 48%; z-index: -2; }
.cs-portrait::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #081b2bee 1%, #0e1d2d82 22%, transparent 53%); z-index: -1; }
.cs-portrait figcaption { position: absolute; left: 8%; bottom: 7%; right: 6%; color: white; }
.cs-portrait figcaption span { display: block; color: #f5d398; margin-bottom: .65rem; }
.cs-portrait q { display: block; font-size: clamp(1.7rem, 2.65vw, 3.1rem); line-height: 1.08; letter-spacing: -.035em; }
.cs-download { max-width: 37rem; scroll-margin-top: 1.6rem; border-top: 1px solid #c5c8c1; padding-top: 1.05rem; }
.cs-download label { display: block; font-weight: 700; font-size: 1rem; margin-bottom: .5rem; }
.cs-form-row { display: flex; align-items: stretch; gap: .5rem; }
.cs-form-row input { flex: 1; min-width: 0; font: inherit; border: 1px solid #7a8690; color: var(--navy); border-radius: 3px; padding: .85rem 1rem; background: #fff; }
.cs-form-row button, .cs-file-button { display: inline-flex; justify-content: center; align-items: center; gap: .6rem; background: var(--navy); color: #fff; border: 0; border-radius: 3px; font: 700 .85rem 'DM Sans',sans-serif; letter-spacing: .045em; padding: .95rem 1.05rem; min-height: 48px; }
.cs-form-row button:hover, .cs-file-button:hover { background: #204863; }
.cs-main input:focus-visible, .cs-main button:focus-visible, .cs-main a:focus-visible, .cs-main summary:focus-visible { outline: 3px solid #b57b19; outline-offset: 3px; }
.cs-form-note { font-size: .86rem; line-height: 1.45; color: #4b5c63; margin: .6rem 0 0; }
.cs-error { color: #8e241d; font-size: .97rem; font-weight: 600; margin: 0 0 .65rem; }
.cs-unlocked { display: flex; gap: 1.2rem; align-items: center; }
.cs-unlocked .cs-thumb { flex: 0 0 5.4rem; border-radius: 2px; }
.cs-thumb img { box-shadow: 0 4px 10px #18283440; width: 100%; height: auto; display: block; }
.cs-unlocked h2 { font-size: 1.65rem; line-height: 1.08; letter-spacing: -.04em; margin: 0 0 .35rem; }
.cs-unlocked p { font-size: .92rem; margin: .25rem 0 .65rem; }
.cs-file-button { min-height: 44px; padding: .7rem 1rem; }
.cs-wrap, .cs-model-inner { margin: auto; width: min(88%, 83rem); }
.cs-model { background: var(--navy); color: #fff; }
.cs-model-inner { padding: clamp(2.8rem, 5vw, 5rem) 0; display: grid; grid-template-columns: 1fr .94fr; align-items: center; gap: clamp(2rem, 8vw, 8rem); }
.cs-model .cs-label { color: #f0c67e; }
.cs-model h2 { margin-bottom: 1.1rem; color: #fff; }
.cs-model h2 em { color: #f3ce8c; }
.cs-model-copy > p:last-child, .cs-inside-intro > p:last-child { max-width: 33rem; margin: 0; font-size: 1.05rem; line-height: 1.6; }
.cs-model-copy > p:last-child { color: #dfE6ed; }
.cs-calculation { border-left: 1px solid #627589; padding-left: clamp(1.8rem, 4.5vw, 5rem); }
.cs-scale { padding: 0; border: 0; margin: 0 0 1rem; min-width: 0; }
.cs-scale legend { margin-bottom: .45rem; font-weight: 650; font-size: .92rem; }
.cs-options { display: inline-flex; gap: .3rem; }
.cs-options label { display: block; position: relative; cursor: pointer; }
.cs-options input { position: absolute; opacity: 0; }
.cs-options span { display: block; min-width: 4.7rem; text-align: center; padding: .5rem .78rem; border: 1px solid #8c9baa; border-radius: 2px; font-size: .92rem; }
.cs-options input:checked + span { background: #f3ce8c; color: var(--navy); border-color: #f3ce8c; font-weight: 750; }
.cs-options input:focus-visible + span { outline: 3px solid white; outline-offset: 3px; }
.cs-result { display: grid; }
.cs-result strong { font: 400 clamp(3.1rem,5.7vw,6.3rem)/1 var(--serif); letter-spacing: -.065em; }
.cs-result span { margin-top: .3rem; font-size: 1.1rem; }
.cs-formula { color: #f3ce8c; margin: .65rem 0 .2rem; font-size: .91rem; }
.cs-note { color: #c5cfdb; font-size: .84rem; line-height: 1.5; margin: 0; max-width: 29rem; }
.cs-inside { padding: clamp(3.4rem,7vw,7rem) 0; display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem,7vw,7rem); }
.cs-inside-intro > p:last-child { color: #425560; }
.cs-inside h2, .cs-tools h2 { margin-bottom: 1.15rem; }
.cs-contents { border-top: 2px solid var(--navy); }
.cs-contents details { border-bottom: 1px solid #b7c0c1; }
.cs-contents summary { position: relative; list-style: none; padding: 1.15rem 2.3rem 1.15rem 0; cursor: pointer; }
.cs-contents summary::-webkit-details-marker { display: none; }
.cs-contents summary::after { content: '+'; position: absolute; right: .15rem; top: 50%; transform: translateY(-50%); font-size: 1.45rem; color: var(--rust); }
.cs-contents details[open] summary::after { content: '−'; }
.cs-contents summary span { text-transform: uppercase; display: block; font-weight: 700; letter-spacing: .09em; color: var(--rust); font-size: .77rem; margin-bottom: .25rem; }
.cs-contents summary strong { font: 400 clamp(1.35rem, 2.1vw, 2rem)/1.12 var(--serif); letter-spacing: -.035em; }
.cs-contents details p { margin: -.25rem 1.75rem 1.2rem 0; font-size: 1rem; line-height: 1.55; color: #425560; }
.cs-tools { background: #e9eee9; border-top: 1px solid #d2dad5; }
.cs-tools-inner { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: clamp(2rem,7vw,7rem); padding: clamp(3.4rem,6vw,6rem) 0; }
.cs-sheets { position: relative; aspect-ratio: 1.08; width: min(100%, 29rem); margin: auto; }
.cs-sheets img { position: absolute; width: 65%; height: auto; box-shadow: 0 8px 23px #0b29372b; outline: 1px solid #c6d0ca; }
.cs-frontsheet { left: 7%; top: 2%; transform: rotate(-7deg); }
.cs-backsheet { right: 7%; bottom: 2%; transform: rotate(8deg); }
.cs-tools ul { padding: 0; list-style: none; margin: 1.5rem 0; }
.cs-tools li { padding: .65rem 0; border-top: 1px solid #bac6c1; }
.cs-tools li strong, .cs-tools li span { display: block; }
.cs-tools li span { line-height: 1.5; margin-top: .16rem; color: #425560; }
.cs-text-link { display: inline-block; font-weight: 750; padding: .45rem 0; border-bottom: 2px solid var(--rust); }
.cs-skip { position: absolute; top: -10rem; z-index: 10; left: 1rem; padding: 1rem; background: white; }
.cs-skip:focus { top: 1rem; }
@media (max-width: 900px) {
  .cs-hero { grid-template-columns: 1.12fr .88fr; }
  .cs-intro { padding: 2.6rem 1.75rem 2.7rem 6vw; }
  .cs-main h1 { font-size: clamp(2.75rem,5.25vw,4rem); }
  .cs-form-row { flex-wrap: wrap; }
  .cs-form-row input { min-width: min(10rem, 100%); }
}
@media (max-width: 700px) {
  .cs-hero, .cs-model-inner, .cs-inside, .cs-tools-inner { grid-template-columns: 1fr; }
  .cs-intro { padding: 2.3rem 6vw 2rem; }
  .cs-main h1 { font-size: clamp(2.7rem,9.9vw,4.5rem); }
  .cs-main h2 { font-size: clamp(2.25rem,7.6vw,3.5rem); }
  .cs-main .cs-label { margin-bottom: .85rem; }
  .cs-portrait { min-height: 0; aspect-ratio: 1.68; }
  .cs-portrait img { object-position: 50% 38%; }
  .cs-portrait figcaption { left: 6%; bottom: 8%; }
  .cs-portrait q { font-size: clamp(1.55rem,4.5vw,2.25rem); }
  .cs-portrait figcaption span { font-size: .76rem; margin-bottom: .25rem; }
  .cs-model-inner, .cs-inside, .cs-tools-inner { gap: 1.75rem; }
  .cs-calculation { border-left: 0; border-top: 1px solid #627589; padding: 1.5rem 0 0; }
  .cs-unlocked h2 { font-size: 1.5rem; }
  .cs-sheets { width: min(75%, 17rem); }
  .cs-tools-copy { grid-row: 1; }
}
@media (max-width: 395px) {
  .cs-form-row { flex-direction: column; }
  .cs-form-row input, .cs-form-row button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
