.office-hero {
  padding: clamp(8.5rem, 15vw, 12rem) 0 clamp(4rem, 8vw, 7rem);
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}

.office-hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(17rem, .65fr); gap: clamp(3rem, 9vw, 8rem); align-items: end; }
.office-hero h1 { max-width: 10ch; margin: 1rem 0 1.35rem; font-size: clamp(3.5rem, 8vw, 8rem); font-weight: 560; line-height: .9; letter-spacing: -.065em; }
.office-hero h1 em { color: #b64b34; font-family: var(--serif); font-weight: 400; font-style: normal; }
.office-hero-lead { max-width: 44rem; font-size: clamp(1.05rem, 1.8vw, 1.25rem); line-height: 1.9; }
.office-hero-note { padding: 1.3rem 0 0; border-top: 3px solid var(--ink); }
.office-hero-note strong { display: block; margin-bottom: .55rem; font-size: .82rem; letter-spacing: .08em; }
.office-hero-note p { margin: 0; line-height: 1.8; }

.office-app-section { padding: 0 0 clamp(5rem, 10vw, 9rem); }
.office-app-switch { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--ink); }
.office-app-tab { position: relative; display: grid; grid-template-columns: auto auto 1fr; grid-template-rows: auto auto; gap: .25rem 1rem; min-height: 9.5rem; padding: 1.5rem; color: inherit; background: transparent; border: 0; border-right: 1px solid var(--ink); font: inherit; text-align: left; cursor: pointer; }
.office-app-tab:last-child { border-right: 0; }
.office-app-tab > span { grid-row: 1 / 3; color: var(--muted); font-family: var(--mono); font-size: .7rem; }
.office-app-tab > b { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; color: #fff; background: var(--app-color); font-family: Georgia, serif; font-size: 1.7rem; font-weight: 400; }
.office-app-tab > strong { align-self: center; font-size: 1.25rem; }
.office-app-tab > small { grid-column: 2 / 4; font-size: .82rem; line-height: 1.6; }
.office-app-tab[aria-pressed="true"] { color: #fff; background: var(--ink); }
.office-app-tab[aria-pressed="true"]::after { position: absolute; right: 1.3rem; bottom: 1.2rem; width: 2.7rem; height: 2px; background: var(--app-color); content: ""; }

.office-manual { scroll-margin-top: 7rem; }
.office-manual-head { display: grid; grid-template-columns: 1fr auto; gap: 1.4rem 3rem; padding: clamp(4rem, 8vw, 7rem) 0 3rem; }
.office-manual-title { display: flex; gap: 1.25rem; align-items: center; }
.office-app-mark { display: grid; flex: 0 0 auto; place-items: center; width: clamp(4rem, 7vw, 5.7rem); aspect-ratio: 1; color: #fff; background: var(--app-color); font-family: Georgia, serif; font-size: clamp(2.4rem, 5vw, 4rem); }
.office-manual-title p { margin: 0 0 .35rem; font: 700 .72rem/1 var(--mono); letter-spacing: .12em; }
.office-manual-title h2 { max-width: 16ch; margin: 0; font-size: clamp(2.15rem, 5vw, 5rem); font-weight: 570; line-height: 1; letter-spacing: -.05em; }
.office-device-switch { display: flex; align-self: start; border: 1px solid var(--ink); }
.office-device-switch button { min-width: 5.5rem; min-height: 3rem; padding: .65rem 1rem; color: inherit; background: transparent; border: 0; font: 700 .85rem/1 var(--sans); cursor: pointer; }
.office-device-switch button + button { border-left: 1px solid var(--ink); }
.office-device-switch button[aria-pressed="true"] { color: #fff; background: var(--ink); }
.office-manual-lead { grid-column: 1 / -1; max-width: 52rem; margin: 1rem 0 0; font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.9; }
.office-route-facts { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr .45fr 1.1fr; margin: 1rem 0 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.office-route-facts div { padding: 1.1rem 1.2rem; }
.office-route-facts div + div { border-left: 1px solid rgba(29, 28, 25, .35); }
.office-route-facts dt { margin-bottom: .4rem; color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .08em; }
.office-route-facts dd { margin: 0; line-height: 1.55; }
.office-verification-note { grid-column: 1 / -1; margin: 0; padding: 1.2rem 1.3rem; color: #3b342c; background: #efe2b9; border-left: 5px solid #c59b26; line-height: 1.8; }
.office-verification-note strong { display: block; }
.office-progress { grid-column: 1 / -1; display: grid; grid-template-columns: 8rem 1fr; gap: 1.5rem; align-items: center; }
.office-progress > div:first-child { display: flex; justify-content: space-between; gap: .6rem; font-size: .8rem; }
.office-progress-track { height: 3px; background: var(--line); }
.office-progress-track i { display: block; height: 100%; transition: width .2s ease; }

.office-common-rule { padding: 2.5rem 0 3.5rem; border-top: 3px solid var(--ink); }
.office-common-rule > p, .office-practice > div > p, .office-quiz > p:first-child { margin: 0 0 .65rem; color: var(--app-color); font: 700 .72rem/1 var(--mono); letter-spacing: .12em; }
.office-common-rule h3 { margin: 0 0 2rem; font-size: clamp(2rem, 4vw, 3.8rem); font-weight: 560; letter-spacing: -.04em; }
.office-common-rule ol { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); list-style: none; }
.office-common-rule li { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; padding: 1.2rem; }
.office-common-rule li + li { border-left: 1px solid rgba(29, 28, 25, .35); }
.office-common-rule li > span { grid-row: 1 / 3; color: var(--muted); font: .72rem/1 var(--mono); }
.office-common-rule li b { font-size: 1.05rem; }
.office-common-rule li small { line-height: 1.55; }

.office-step { display: grid; grid-template-columns: minmax(17rem, .72fr) minmax(0, 1.28fr); gap: clamp(2.5rem, 7vw, 7rem); padding: clamp(4rem, 8vw, 7rem) 0; border-top: 1px solid var(--ink); }
.office-step-copy > p { margin: 0 0 1rem; color: var(--app-color); font: 700 .76rem/1 var(--mono); letter-spacing: .12em; }
.office-step-copy h3 { margin: 0 0 2rem; font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 560; line-height: 1.13; letter-spacing: -.04em; }
.office-action, .office-reason { display: grid; grid-template-columns: 5rem 1fr; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.office-action b, .office-reason b { font-size: .78rem; }
.office-action p, .office-reason p { margin: 0; line-height: 1.85; }
.office-reason { color: #514c44; }
.office-done { display: grid; grid-template-columns: auto 1fr; gap: .25rem .8rem; margin-top: 1.5rem; padding: 1rem; border: 1px solid var(--ink); cursor: pointer; }
.office-done input { grid-row: 1 / 3; width: 1.35rem; height: 1.35rem; accent-color: var(--app-color); }
.office-done span { font-weight: 700; }
.office-done small { line-height: 1.55; }
.office-shot { align-self: start; margin: 0; padding: 1rem; color: #fff; background: #191919; box-shadow: .85rem .85rem 0 color-mix(in srgb, var(--app-color) 22%, transparent); }
.office-shot button { display: block; width: 100%; padding: 0; background: transparent; border: 0; cursor: zoom-in; }
.office-shot img { display: block; width: 100%; height: auto; }
.office-shot.is-ipad img { width: auto; max-width: 100%; max-height: 34rem; margin: auto; image-rendering: auto; }
.office-shot figcaption { display: flex; justify-content: space-between; gap: 1rem; padding-top: .8rem; color: #c9c5bc; font-size: .72rem; line-height: 1.5; }
.office-shot figcaption a { color: inherit; }
.office-shot figcaption span { color: #fff; white-space: nowrap; }

.office-workshop { margin: clamp(4rem, 8vw, 8rem) 0; padding-top: 2rem; border-top: 4px solid var(--app-color); }
.office-workshop-head { display: grid; grid-template-columns: minmax(18rem, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 8vw, 8rem); padding: 2rem 0 3rem; }
.office-workshop-head > div:first-child > p { margin: 0 0 .9rem; color: var(--app-color); font: 700 .72rem/1 var(--mono); letter-spacing: .12em; }
.office-workshop-head h3 { max-width: 12ch; margin: 0; font-size: clamp(2.5rem, 5vw, 5.4rem); font-weight: 560; line-height: .98; letter-spacing: -.055em; }
.office-workshop-head > div:last-child { align-self: end; }
.office-workshop-head > div:last-child p { margin: 0 0 1rem; font-size: clamp(1.05rem, 1.8vw, 1.28rem); line-height: 1.85; }
.office-workshop-head small { display: block; color: var(--muted); line-height: 1.65; }
.office-workshop-start { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--ink); }
.office-workshop-start > div { display: grid; gap: .45rem; min-height: 6rem; padding: 1.25rem; }
.office-workshop-start > div + div { border-left: 1px solid var(--ink); }
.office-workshop-start span { color: var(--app-color); font: 700 .7rem/1 var(--mono); letter-spacing: .1em; }
.office-workshop-start strong { align-self: end; font-size: 1.05rem; line-height: 1.5; }
.office-workshop-start > p { grid-column: 1 / -1; margin: 0; padding: 1rem 1.25rem; color: #4f493f; background: #e8e3d8; border-top: 1px solid var(--ink); line-height: 1.65; }
.office-workshop-files { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .65rem; padding: 0 1.25rem 1.25rem; background: #e8e3d8; }
.office-workshop-files a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .65rem .9rem; color: #fff; background: var(--ink); border: 1px solid var(--ink); font-size: .84rem; font-weight: 700; line-height: 1.35; text-decoration: none; }
.office-workshop-files a:last-child { color: var(--ink); background: transparent; }
.office-workshop-files a:hover, .office-workshop-files a:focus-visible { color: #fff; background: var(--app-color); border-color: var(--app-color); }
.office-exercise-list { margin: 2.5rem 0 0; padding: 0; border-top: 1px solid var(--ink); list-style: none; }
.office-exercise-list > li { border-bottom: 1px solid var(--ink); }
.office-exercise summary { display: grid; grid-template-columns: 3rem 1fr auto; gap: 1rem; align-items: center; min-height: 5rem; padding: .85rem 0; cursor: pointer; list-style: none; }
.office-exercise summary::-webkit-details-marker { display: none; }
.office-exercise summary span { color: var(--muted); font: .75rem/1 var(--mono); }
.office-exercise summary strong { font-size: clamp(1.1rem, 2vw, 1.5rem); line-height: 1.35; }
.office-exercise summary i { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; color: #fff; background: var(--ink); border-radius: 50%; font-style: normal; transition: transform .2s ease; }
.office-exercise[open] summary i { transform: rotate(45deg); }
.office-exercise-body { display: grid; grid-template-columns: minmax(16rem, .64fr) minmax(0, 1.36fr); gap: clamp(2rem, 5vw, 5rem); padding: 1rem 0 4rem 4rem; }
.office-exercise-copy > div { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.office-exercise-copy b { display: block; margin-bottom: .45rem; font-size: .78rem; }
.office-exercise-copy p { margin: 0; line-height: 1.8; }
.office-workshop-shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1rem; align-content: start; }
.office-workshop-shot { min-width: 0; margin: 0; padding: .7rem; color: #fff; background: #191919; }
.office-workshop-shot button { display: block; width: 100%; padding: 0; background: transparent; border: 0; cursor: zoom-in; }
.office-workshop-shot img { display: block; width: 100%; height: auto; }
.office-workshop-shot figcaption { display: grid; grid-template-columns: auto 1fr auto; gap: .7rem; align-items: center; padding: .7rem .15rem .1rem; color: #bdb8ae; font-size: .68rem; line-height: 1.4; }
.office-workshop-shot figcaption strong { color: #fff; }
.office-workshop-shot figcaption i { color: #fff; font-style: normal; }

.office-practice { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2.5rem, 8vw, 8rem); padding: clamp(4rem, 8vw, 7rem); color: #fff; background: var(--ink); }
.office-practice h3 { margin: 0 0 1.2rem; font-size: clamp(2rem, 4vw, 4.4rem); font-weight: 560; line-height: 1.05; letter-spacing: -.05em; }
.office-practice > div > span { color: #d5d0c7; line-height: 1.85; }
.office-practice-checks { border-top: 1px solid #827f78; }
.office-practice-checks label { display: flex; gap: 1rem; align-items: center; min-height: 3.8rem; border-bottom: 1px solid #827f78; cursor: pointer; }
.office-practice-checks input { width: 1.35rem; height: 1.35rem; accent-color: var(--app-color); }

.office-quiz { padding: clamp(4rem, 8vw, 7rem) 0; border-bottom: 1px solid var(--ink); }
.office-quiz h3 { max-width: 24ch; margin: 0 0 2rem; font-size: clamp(1.8rem, 3.5vw, 3.4rem); font-weight: 560; line-height: 1.2; letter-spacing: -.035em; }
.office-choice-list { max-width: 58rem; border-top: 1px solid var(--ink); }
.office-choice-list button { display: grid; grid-template-columns: 3.2rem 1fr; width: 100%; min-height: 4rem; padding: 0; color: inherit; background: transparent; border: 0; border-bottom: 1px solid var(--ink); font: inherit; text-align: left; cursor: pointer; }
.office-choice-list button span { display: grid; place-items: center; border-right: 1px solid var(--ink); font-family: Georgia, serif; }
.office-choice-list button:not(span) { align-items: center; }
.office-choice-list button[aria-pressed="true"] { color: #fff; background: var(--app-color); }
.office-choice-list button { gap: 1rem; padding-right: 1rem; }
.office-quiz-feedback { max-width: 58rem; margin: 1.2rem 0 0; padding: 1rem; background: #e8e3d8; line-height: 1.7; }

.office-sources { padding: clamp(4rem, 8vw, 7rem) 0; }
.office-sources-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(2.5rem, 8vw, 8rem); }
.office-sources h2 { margin: .8rem 0 0; font-size: clamp(2rem, 4vw, 4rem); font-weight: 560; letter-spacing: -.04em; }
.office-source-list { margin: 0; padding: 0; border-top: 1px solid var(--ink); list-style: none; }
.office-source-list li { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.office-source-list span { color: var(--muted); font: .72rem/1.6 var(--mono); }
.office-source-list a { color: inherit; font-weight: 700; }

.office-image-dialog { width: min(96vw, 96rem); max-height: 94vh; padding: 0; background: #111; border: 1px solid #fff; }
.office-image-dialog::backdrop { background: rgba(0, 0, 0, .86); }
.office-image-dialog img { display: block; width: 100%; max-width: 100%; max-height: 88vh; margin: auto; object-fit: contain; }
.office-image-dialog button { position: absolute; top: .8rem; right: .8rem; width: 3rem; height: 3rem; color: #fff; background: #111; border: 1px solid #fff; font-size: 1.5rem; cursor: pointer; }

@media (max-width: 800px) {
  .office-hero-grid, .office-step, .office-practice, .office-sources-grid, .office-workshop-head, .office-exercise-body { grid-template-columns: 1fr; }
  .office-app-switch { grid-template-columns: 1fr; }
  .office-app-tab { min-height: 7.5rem; border-right: 0; border-bottom: 1px solid var(--ink); }
  .office-manual-head { grid-template-columns: 1fr; }
  .office-device-switch { width: 100%; }
  .office-device-switch button { flex: 1; }
  .office-route-facts, .office-common-rule ol { grid-template-columns: 1fr; }
  .office-route-facts div + div, .office-common-rule li + li { border-top: 1px solid rgba(29, 28, 25, .35); border-left: 0; }
  .office-step { gap: 2rem; }
  .office-shot { order: -1; padding: .55rem; box-shadow: .45rem .45rem 0 color-mix(in srgb, var(--app-color) 22%, transparent); }
  .office-shot figcaption { display: block; }
  .office-shot figcaption span { display: block; margin-top: .25rem; }
  .office-workshop-start { grid-template-columns: 1fr; }
  .office-workshop-start > div + div { border-top: 1px solid var(--ink); border-left: 0; }
  .office-workshop-start > p { grid-column: 1; }
  .office-workshop-files { grid-column: 1; }
  .office-exercise-body { gap: 1.5rem; padding: .5rem 0 3rem; }
  .office-exercise summary { grid-template-columns: 2rem 1fr auto; min-height: 5.5rem; }
  .office-workshop-shots { grid-template-columns: 1fr; }
  .office-workshop-shot figcaption { grid-template-columns: auto 1fr; }
  .office-workshop-shot figcaption i { display: none; }
  .office-practice { margin-inline: calc(50% - 50vw); padding-inline: max(1.25rem, calc((100vw - var(--max-width)) / 2)); }
  .office-action, .office-reason { grid-template-columns: 1fr; gap: .35rem; }
}

@media (prefers-reduced-motion: reduce) {
  .office-progress-track i, .office-exercise summary i { transition: none; }
}
