:root {
  color-scheme: light;
  --papyrus: #f3eddf;
  --stone: #e8ddc8;
  --paper: #fbf7ee;
  --ink: #203b36;
  --muted: #526057;
  --copper: #8b3f24;
  --gold: #aa7934;
  --rule: #c6b99b;
  --focus: #174f74;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--papyrus); color: var(--ink); line-height: 1.65; }
body, input, select, button { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--copper); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
a, button, input, select { -webkit-tap-highlight-color: #aa793433; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
main:focus { outline: none; }
button, input, select { font-size: 1rem; }
button, select { cursor: pointer; }
button, select, input { min-height: 48px; border-radius: 0; }
img { display: block; max-width: 100%; }
p { margin: 0 0 1rem; }
h1, h2, h3 { margin: 0; font-weight: 650; }
h1 { font-size: clamp(2.5rem, 4.3vw, 3.65rem); line-height: 1.06; letter-spacing: -.047em; text-wrap: balance; }
h2 { margin-bottom: 1.2rem; font-size: 1.75rem; line-height: 1.2; letter-spacing: -.025em; text-wrap: balance; }
h3 { font-size: 1.16rem; line-height: 1.35; letter-spacing: -.01em; }
ul, ol { padding: 0; margin: 0; }
::selection { background: #d5bc84; color: var(--ink); }

.skip-reading { position: absolute; top: 8px; left: 12px; z-index: 5; padding: 12px 20px; min-height: 48px; background: var(--paper); transform: translateY(-160%); }
.skip-reading:focus { transform: translateY(0); }
.guide-masthead { min-height: 102px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 20px 42px; border-top: 6px solid var(--ink); border-bottom: 1px solid var(--rule); background: var(--stone); }
.guide-name { display: flex; align-items: center; gap: 16px; min-height: 48px; color: var(--ink); text-decoration: none; }
.guide-name strong { display: block; font-size: 1.25rem; line-height: 1.1; letter-spacing: .01em; }
.guide-name > span > span { display: block; font-size: .9rem; line-height: 1.5; }
.stone-mark { position: relative; width: 31px; height: 44px; display: block; border: 2px solid var(--ink); border-top-width: 6px; clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%); background: linear-gradient(90deg, transparent 29%, var(--ink) 30%, var(--ink) 36%, transparent 37%, transparent 63%, var(--ink) 64%, var(--ink) 70%, transparent 71%); }
.stone-mark::before { content: ""; position: absolute; left: 8px; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--copper); }
.index-jump { display: none; min-height: 48px; align-items: center; gap: 8px; padding: 10px 2px; }
.reading-layout { display: grid; grid-template-columns: 256px minmax(0, 1fr); align-items: start; }
.care-reading { grid-column: 2; grid-row: 1; min-width: 0; width: 100%; max-width: 1230px; padding: 52px 62px 80px; }
.side-index { grid-column: 1; grid-row: 1; align-self: stretch; min-width: 0; padding: 32px 20px 45px 32px; border-right: 1px solid var(--rule); background: #eee6d4; }
.index-inner { position: sticky; top: 24px; }
.side-index .index-title { font-size: 1.08rem; line-height: 1.2; font-weight: 650; margin: 0 0 15px; letter-spacing: .055em; text-transform: uppercase; }
.side-index .index-group { font-size: .9rem; line-height: 1.35; color: var(--muted); font-weight: 600; margin: 14px 0 3px; }
.side-index ul { list-style: none; }
.side-index a { display: flex; align-items: center; min-height: 46px; padding: 8px 10px; font-size: .9rem; line-height: 1.45; color: var(--ink); text-decoration: none; border-left: 2px solid transparent; }
.side-index a:hover { background: #fff7e980; border-left-color: var(--gold); }
.side-index a[aria-current="page"] { background: var(--ink); color: var(--paper); border-left-color: var(--gold); }
.side-index .reading-return { display: none; }
.briefing-label { font-size: .9rem; text-transform: uppercase; letter-spacing: .11em; line-height: 1.5; color: var(--copper); margin: 0 0 22px; font-weight: 650; }
.briefing-opening { max-width: 72ch; margin-bottom: 48px; padding-bottom: 35px; border-bottom: 3px double var(--gold); }
.briefing-opening h1 { max-width: 18ch; margin-bottom: 23px; }
.briefing-lead { font-size: 1.12rem; line-height: 1.55; max-width: 54ch; margin-bottom: 0; color: var(--muted); }
.briefing-section { max-width: 70ch; margin: 42px 0; }
.briefing-section > p { max-width: 68ch; }
.care-checklist { list-style: none; }
.care-checklist > li { position: relative; padding: 24px 0 24px 38px; border-bottom: 1px solid var(--rule); }
.care-checklist > li:first-child { padding-top: 4px; }
.care-checklist > li::before { content: ""; width: 18px; height: 18px; border: 1.5px solid var(--copper); background: var(--paper); position: absolute; left: 0; top: 28px; }
.care-checklist > li:first-child::before { top: 8px; }
.care-checklist h3 { margin-bottom: 10px; }
.care-checklist p:last-child { margin-bottom: 0; }
ol.care-checklist { counter-reset: licence-step; }
ol.care-checklist > li { counter-increment: licence-step; padding-left: 48px; }
ol.care-checklist > li::before { content: counter(licence-step, upper-roman); width: 32px; height: 32px; top: 22px; border: 0; background: none; color: var(--copper); font-size: 1.06rem; line-height: 1.35; font-weight: 650; }
ol.care-checklist > li:first-child::before { top: 3px; }
.reading-note { max-width: 70ch; margin: 42px 0; padding: 27px 30px; border-left: 5px solid var(--gold); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--stone); }
.reading-note h3 { margin-bottom: 15px; }
.reading-note p:last-child { margin-bottom: 0; }
.source-readings { list-style: none; }
.source-readings li { padding: 14px 0 21px; border-bottom: 1px solid var(--rule); }
.source-readings a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; padding: 7px 0; font-weight: 600; }
.source-readings p { color: var(--muted); margin: 7px 0 0; font-size: 1rem; }
.source-section { border-top: 3px double var(--gold); padding-top: 29px; }
.source-section h2 { font-size: 1.3rem; }
.source-action { display: inline-flex; min-height: 50px; align-items: center; gap: 15px; padding: 11px 20px; border: 1px solid var(--copper); background: var(--paper); font-size: 1rem; font-weight: 600; }
.next-briefing { max-width: 70ch; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 20px; min-height: 88px; padding: 24px 0 21px; margin-top: 40px; border-top: 1px solid var(--ink); color: var(--ink); text-decoration: none; }
.next-briefing > span:first-child { color: var(--muted); font-size: .9rem; }
.next-briefing strong { grid-column: 1; font-size: 1.12rem; line-height: 1.4; }
.next-briefing > span:last-child { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 1.7rem; color: var(--copper); }
.next-briefing:hover strong { text-decoration: underline; text-underline-offset: .2em; }
.guide-footer { margin-left: 256px; padding: 28px 62px 36px; border-top: 3px double var(--gold); background: var(--ink); color: var(--paper); font-size: .95rem; }
.guide-footer p { max-width: 68ch; margin: 0 0 12px; }
.guide-footer > div { display: flex; flex-wrap: wrap; gap: 10px 35px; }
.guide-footer a { min-height: 48px; display: inline-flex; align-items: center; padding: 9px 0; color: #ecd39e; font-size: .95rem; }

.start-opening { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(0, .72fr); gap: 35px; align-items: stretch; margin-bottom: 46px; }
.start-copy { min-width: 0; }
.start-copy h1 { font-size: clamp(2.65rem, 4.5vw, 3.75rem); margin-bottom: 24px; }
.start-copy .briefing-lead { font-size: 1.08rem; }
.start-checklist { list-style: none; margin-top: 33px; border-top: 1px solid var(--rule); }
.start-checklist li { border-bottom: 1px solid var(--rule); }
.start-checklist a { display: grid; grid-template-columns: 18px minmax(0, 1fr) 22px; align-items: start; gap: 15px; min-height: 81px; padding: 17px 0; color: var(--ink); text-decoration: none; }
.start-checklist strong { display: block; font-size: 1.1rem; line-height: 1.35; }
.start-checklist a > span > span { display: block; margin-top: 5px; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.start-checklist a:hover strong { color: var(--copper); text-decoration: underline; text-underline-offset: .18em; }
.check-square { width: 17px; height: 17px; border: 1.5px solid var(--copper); margin-top: 5px; }
.check-arrow { font-size: 1.3rem; color: var(--copper); line-height: 1.4; }
.harbour-image { min-width: 0; margin: 0; display: flex; flex-direction: column; padding-top: 1px; }
.image-stone { background: linear-gradient(168deg, #d4b981 0%, #c9baa0 32%, #778c80 33%, #485f54 70%, #263f3b 100%); overflow: hidden; }
.harbour-image .image-stone { flex: 1; border-top: 6px solid var(--gold); border-bottom: 6px solid var(--gold); min-height: 470px; }
.harbour-image img { width: 100%; height: 100%; min-height: 470px; object-fit: cover; color: transparent; }
figcaption { font-size: .9rem; line-height: 1.5; padding-top: 14px; color: var(--muted); }
.place-image { max-width: 70ch; margin: 42px 0; }
.place-image img { width: 100%; height: auto; object-fit: cover; color: transparent; }
.place-image .image-stone { border-left: 5px solid var(--gold); }
.briefing-doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.briefing-doors a { display: grid; grid-template-columns: minmax(0, 1fr) 20px; gap: 9px 16px; padding: 24px 20px 24px 0; min-height: 158px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
.briefing-doors a:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--rule); }
.briefing-doors strong { font-size: 1.13rem; line-height: 1.35; }
.briefing-doors a > span:first-of-type { font-size: 1rem; line-height: 1.6; color: var(--muted); grid-column: 1; }
.briefing-doors a > span:last-child { grid-column: 2; grid-row: 1 / 3; color: var(--copper); align-self: center; }
.briefing-doors a:hover strong { text-decoration: underline; text-underline-offset: .2em; }

.cost-worksheet { min-width: 0; padding: 25px 28px 28px; margin: 28px 0; border: 1px solid var(--gold); background: var(--paper); }
.cost-worksheet legend { padding: 0 10px; max-width: 100%; font-size: 1.1rem; line-height: 1.4; font-weight: 650; }
.fee-row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 25px; padding: 25px 0; border-top: 1px solid var(--rule); }
.fee-heading h3 { margin-bottom: 10px; }
.fee-heading p { font-size: .95rem; margin: 0; color: var(--muted); }
.fee-fields { min-width: 0; }
.fee-fields label { display: block; margin: 0 0 6px; font-size: .9rem; }
.fee-fields select, .fee-fields input { display: block; width: 100%; min-width: 0; padding: 10px; background: var(--papyrus); color: var(--ink); border: 1px solid #9b927a; }
.fee-fields select { margin-bottom: 15px; }
.worksheet-actions { display: flex; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--rule); padding-top: 25px; }
button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ink); padding: 12px 17px; background: var(--ink); color: var(--paper); line-height: 1.4; text-align: left; }
button:hover { background: #31564e; }
.quiet-button { background: transparent; color: var(--ink); }
.quiet-button:hover { background: var(--stone); }
.worksheet-result { margin-top: 28px; padding-top: 24px; border-top: 3px double var(--gold); }
.worksheet-result h3 { margin-bottom: 14px; }
.worksheet-result p:last-child { margin: 0; }
.worksheet-result ul { padding-left: 25px; }
.worksheet-result li { margin: 12px 0; }
.quote-notes { margin-bottom: 28px; }
.quote-notes li { overflow-wrap: anywhere; }

@media (min-width: 1600px) {
  .reading-layout { grid-template-columns: 290px minmax(0, 1fr); }
  .care-reading { padding-left: 80px; }
  .guide-footer { margin-left: 290px; padding-left: 80px; }
  .side-index { padding-left: 42px; }
}

@media (max-width: 1150px) {
  .reading-layout { grid-template-columns: 230px minmax(0, 1fr); }
  .care-reading { padding: 42px 35px 65px; }
  .side-index { padding-left: 20px; padding-right: 14px; }
  .guide-footer { margin-left: 230px; padding-left: 35px; padding-right: 35px; }
  .start-opening { grid-template-columns: minmax(0, 1fr); }
  .harbour-image { max-width: 70ch; }
  .harbour-image .image-stone, .harbour-image img { min-height: 0; height: 280px; }
  .harbour-image img { object-position: center 58%; }
  .start-copy h1 { max-width: 17ch; }
}

@media (max-width: 760px) {
  :root { font-size: 17px; }
  .guide-masthead { min-height: 96px; padding: 16px 20px; gap: 12px; }
  .guide-name { gap: 10px; }
  .guide-name strong { font-size: 1.18rem; }
  .guide-name > span > span { font-size: 16px; }
  .stone-mark { width: 24px; height: 36px; }
  .stone-mark::before { left: 5px; top: 6px; width: 10px; height: 10px; }
  .index-jump { display: flex; font-size: 16px; max-width: 94px; line-height: 1.3; }
  .reading-layout { display: flex; flex-direction: column; }
  .care-reading { width: 100%; padding: 34px 23px 47px; }
  .side-index { width: 100%; padding: 30px 23px 35px; border-top: 3px double var(--gold); border-right: 0; background: var(--stone); }
  .index-inner { position: static; }
  .side-index nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 17px; align-items: start; }
  .side-index nav .index-group { grid-column: 1 / -1; font-size: 16px; margin: 15px 0 4px; }
  .side-index nav ul { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 17px; }
  .side-index a { font-size: 16px; min-height: 48px; padding: 9px 7px; }
  .side-index .reading-return { display: flex; margin-top: 20px; text-decoration: underline; color: var(--copper); }
  .side-index .index-title { font-size: 18px; }
  .briefing-label { font-size: 16px; letter-spacing: .08em; margin-bottom: 20px; }
  h1 { font-size: 2.48rem; line-height: 1.08; letter-spacing: -.04em; }
  h2 { font-size: 1.53rem; }
  h3 { font-size: 1.15rem; }
  .briefing-opening { margin-bottom: 34px; padding-bottom: 29px; }
  .briefing-opening h1 { margin-bottom: 21px; }
  .briefing-lead { font-size: 1.1rem; }
  .briefing-section { margin: 34px 0; }
  .care-checklist > li { padding-left: 30px; }
  .care-checklist > li::before { width: 16px; height: 16px; top: 29px; }
  .reading-note { margin: 34px 0; padding: 22px 20px; }
  .start-opening { gap: 32px; margin-bottom: 32px; }
  .start-copy h1 { font-size: 2.53rem; line-height: 1.08; margin-bottom: 22px; }
  .start-checklist { margin-top: 29px; }
  .start-checklist a { padding: 15px 0; gap: 12px; }
  .start-checklist a > span > span { font-size: 16px; }
  .start-checklist strong { font-size: 1.1rem; }
  figcaption { font-size: 16px; }
  .harbour-image .image-stone, .harbour-image img { height: 250px; }
  .briefing-doors { grid-template-columns: minmax(0, 1fr); }
  .briefing-doors a { min-height: 123px; padding: 21px 0; }
  .briefing-doors a:nth-child(even) { padding-left: 0; border-left: 0; }
  .guide-footer { margin-left: 0; padding: 27px 23px 34px; font-size: 16px; }
  .guide-footer a { font-size: 16px; }
  .guide-footer > div { gap: 2px 25px; }
  .next-briefing > span:first-child { font-size: 16px; }
  .cost-worksheet { padding: 20px 16px 23px; }
  .cost-worksheet legend { font-size: 1.04rem; padding: 0 5px; }
  .fee-row { grid-template-columns: minmax(0, 1fr); gap: 17px; padding: 24px 0; }
  .fee-fields label, .fee-heading p { font-size: 16px; }
  .worksheet-actions { flex-direction: column; }
  .worksheet-actions button { width: 100%; }
  .source-readings a { overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  :root { font-size: 16px; }
  body { background: white; color: black; }
  .guide-masthead, .side-index, .guide-footer, .skip-reading, .worksheet-actions, .next-briefing, .source-section { display: none; }
  .reading-layout { display: block; }
  .care-reading { width: 100%; max-width: none; padding: 0; }
  .briefing-opening { margin-bottom: 20px; padding-bottom: 15px; }
  h1 { font-size: 32px; }
  .briefing-section { margin: 22px 0; }
  .cost-worksheet, .reading-note { background: white; }
  .fee-row { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); break-inside: avoid; padding: 16px 0; }
  .fee-fields input, .fee-fields select { background: white; color: black; }
  .worksheet-result, .reading-note { break-inside: avoid; }
  a { color: black; }
}
