:root{color-scheme:light;--ink:#34382e;--muted:#6c6754;--gold:#ad9972;--red:#963f2c;--paper:#f5eedb;--atlas-serif:"IM FELL English",Georgia,serif;font-family:var(--atlas-serif);color:var(--ink)}*{box-sizing:border-box}html,body,main{width:100%;height:100%;margin:0;overflow:hidden}main{position:relative;background:#dfdfc7}button,input{font:inherit;color:inherit}button,summary{cursor:pointer}button:focus-visible,summary:focus-visible,input:focus-visible,canvas:focus-visible{outline:3px solid #863d26;outline-offset:2px}button:hover,summary:hover{color:var(--red)}button{border:0;background:none}#map{width:100%;height:100%;display:block;touch-action:none;cursor:grab}#map:active{cursor:grabbing}.neatline{position:absolute;inset:8px;pointer-events:none;border:1px solid #7063449e;outline:1px solid #8274516e;outline-offset:3px}.paper,dialog,.toolgroup{background:linear-gradient(115deg,#faf5e6,#efe5cd);border:1px solid #928567;box-shadow:0 2px 9px #47392126}.cartouche,.legend,.note{position:absolute;padding:18px 22px;outline:1px solid #ab9a76;outline-offset:-5px}.cartouche{top:24px;left:24px;text-align:center}.eyebrow,.rule,.foot,.meta{font:600 10px/1.35 system-ui,sans-serif;letter-spacing:.17em;color:#6e654d}.diamond{font-size:8px;color:var(--red);vertical-align:2px;margin-right:5px}h1,h2,p{margin:0}h1{font-weight:normal;font-size:clamp(32px,3.4vw,53px);line-height:1.17;letter-spacing:-.055em;margin:5px 0 4px}.cartouche p{font-style:italic;font-size:15px;color:#695e49}.cartouche p span{padding:0 3px}.legend{left:24px;bottom:28px;width:253px;padding:15px 18px}.legend summary{display:flex;align-items:center;gap:9px;list-style:none}.legend summary::-webkit-details-marker{display:none}.legend summary b{font-size:19px;font-style:italic;font-weight:normal}.legend summary .eyebrow{font-size:8px;color:var(--red);border-right:1px solid #b7a684;padding-right:9px}.chev{margin-left:auto;border:solid currentColor;border-width:0 1px 1px 0;padding:3px;transform:rotate(45deg)}[open] .chev{transform:rotate(225deg)}.rule{display:flex;align-items:center;gap:8px;font-size:8px;margin:14px 0 9px}.rule i{height:1px;background:#c6b899;flex:1}.keys{display:grid;grid-template-columns:1fr 1fr;gap:8px 4px}.keys span,.bounds span{display:flex;align-items:center;gap:7px;font-size:12px}.bounds{display:grid;gap:6px}.sw{display:inline-block;width:24px;border-top:2px solid var(--red)}.rail{border-color:#364f5b;border-top-style:dashed}.cart{border-color:#806116;border-top-style:dotted;border-width:3px}.attempt{border-top:1.5px dashed #934c3c}.walk{border-top:2.6px solid #9d412c;box-shadow:0 1px #faf1d9,0 -1px #faf1d9}.frontier{border:0;height:1.7px;background:repeating-linear-gradient(to right,#626659 0 8px,transparent 8px 11px,#626659 11px 12.5px,transparent 12.5px 15.5px);box-shadow:0 1px #efdfc1,0 -1px #efdfc1}.province{border-top:1px dashed #766d56}.pt{width:8px;height:8px;background:#fff2d5;border-radius:50%;border:2px solid var(--red);margin:0 8px}.sight{width:24px;text-align:center}.sight:before{content:'△';color:#684a33;font-size:14px}.legend p{font-size:12px;line-height:1.4;font-style:italic;color:var(--muted);margin:12px 0 0}.tools{position:absolute;top:24px;right:24px;display:grid;justify-items:center;gap:9px}.compass{text-align:center;color:#474c40;text-shadow:0 1px #f7f0d9}.compass small{font-size:12px;display:block}.compass svg{width:26px;height:40px}.toolgroup{display:grid;padding:2px}.toolgroup button{width:38px;height:39px;display:grid;place-items:center;font-size:24px}.toolgroup button+button{border-top:1px solid #c4b79b}.toolgroup button:disabled{opacity:.35;cursor:default}button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linejoin:round}.browse{position:absolute;bottom:28px;left:50%;transform:translateX(-50%);padding:11px 16px;display:flex;align-items:center;gap:9px;font:15px var(--atlas-serif)}.foot{position:absolute;bottom:25px;right:24px;display:grid;justify-items:end;gap:8px;letter-spacing:0;font-size:10px;text-shadow:0 0 4px #fff}.foot button{font:inherit;text-decoration:underline;background:#f5edd9db;padding:3px 5px}#scale{border:1px solid #58563e;border-top:none;text-align:center;padding:0 0 2px}.note{bottom:85px;left:50%;transform:translateX(-50%);width:min(360px,calc(100% - 30px));padding:19px 24px}.note h2,dialog h2{font-size:28px;font-weight:normal;letter-spacing:-.035em;margin:6px 0}.note h2{padding-right:12px}.meta{font-size:10px;letter-spacing:.03em}.note p,dialog p{font-size:15px;line-height:1.45;margin-top:10px}.close{position:absolute;right:9px;top:7px;width:30px;height:30px;font-size:24px}.note .eyebrow{font-size:8px}.note button:not(.close){text-decoration:underline;font-style:italic;margin:10px 0 0;padding:0}dialog{color:var(--ink);padding:0;width:min(430px,92vw);max-height:80dvh}dialog::backdrop{background:#2c322855}.sheet{position:relative;padding:25px}.sheet label{display:block;font-size:13px;margin:12px 0 5px}.sheet input{width:100%;padding:9px;border:1px solid #ad9c7d;background:#fffbef}.sheet a{color:#813f2e}.group{margin:16px 0 5px;padding:7px 0;border-bottom:1px solid #c6b99d;width:100%;text-align:left;font-size:14px;font-style:italic;color:#7b422d}.row{width:100%;text-align:left;padding:7px 4px;display:block}.row:hover{background:#e5dac0}.sheet h2{margin-bottom:14px}
@media(max-width:720px),(max-height:530px){.cartouche{top:16px;left:16px;padding:13px 16px}.cartouche p{font-size:12px}h1{font-size:31px}.cartouche .eyebrow{font-size:8px}.tools{top:16px;right:16px;gap:4px}.compass svg{height:28px}.legend{left:16px;bottom:53px;width:228px}.legend:not([open]){width:auto;padding:10px 12px}.legend:not([open]) summary b{font-size:16px}.legend:not([open]) summary .eyebrow{display:none}.browse{left:16px;bottom:14px;transform:none;padding:7px 12px;font-size:14px}.foot{right:16px;bottom:16px}.note{bottom:102px;z-index:2}.legend[open]{z-index:3}}
@media(max-height:460px){.compass{display:none}.note{bottom:48px;left:auto;right:66px;transform:none}}
@media(max-height:340px){.legend[open]{bottom:8px}.cartouche p{display:none}}
[hidden]{display:none!important}
.depth-tint{height:8px;border:1px solid #8faaa799;background:linear-gradient(to right,#d7e4de,#c2d7d3 33.33%,#b9d0cf 66.67%,#a7c2c5)}
.depth-labels{display:flex;justify-content:space-between;font:10px/1.5 var(--atlas-serif);color:var(--muted)}
@media(max-height:540px){.legend[open]{max-height:calc(100dvh - 70px);overflow:auto}}
.uncertain{border-top:2px dotted #a45840}.road-key{border-top:3px solid #c7aa70}.canal-key{border-top:1px solid #779e9f}.farm-key,.pontoon-key{font-style:normal;text-align:center;width:24px;color:#69553c}.field-link{font-style:italic;color:#88462e;text-align:left;border-bottom:1px solid #c6b99d;padding:3px 0 8px}.legend[open]{max-height:calc(100dvh - 165px);overflow:auto}
.survey-control{display:flex;gap:5px;align-items:center;font-size:12px;margin:4px 0 9px}.survey-control input{accent-color:#795e47}.pack-trail{border-top:2px dashed #756044}.turn-area{width:24px;height:10px;border:1px dotted #8b462e;border-radius:50%;background:#9b482a29}.note:not([hidden]){max-height:50dvh;overflow:auto}
#italianCredit{color:#79523b;font-size:13px;text-underline-offset:2px}#italianEdition{display:block;margin-top:3px;color:var(--muted);font:italic 12px/1.35 var(--atlas-serif)}

#geography{position:absolute;top:0;left:0;pointer-events:none;transform-origin:0 0;will-change:transform}
#map{position:relative}

.note { width: min(420px, calc(100% - 30px)); }
.passage { margin: 14px 0 0; border-bottom: 1px solid #c6b899; padding-bottom: 12px; }
.passage blockquote { margin: 0; font-size: 17px; line-height: 1.4; font-style: italic; white-space: pre-line; }
.passage figcaption { margin-top: 7px; font: 11px/1.5 system-ui, sans-serif; color: var(--muted); }
.passage a { color: #813f2e; text-underline-offset: 2px; }
.passage-setting { display: block; margin-bottom: 5px; font: 11px/1.4 system-ui, sans-serif; color: var(--muted); }
#morePassages { margin-top: 8px; }
#morePassages summary { width: fit-content; color: #813f2e; font-size: 14px; }
.read-book { display: inline-block; margin-top: .55em; color: var(--red); text-underline-offset: 3px; }
.cartouche .ebook-link { display: block; margin-top: 10px; padding-top: 9px; border-top: 1px solid #c6b899; color: var(--red); font-size: 15px; text-decoration: none; }
.ebook-link small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.ebook-link:hover, .ebook-link:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
body.reading { --reader-width: clamp(350px, 39vw, 640px); }
body.reading > main { width: calc(100% - var(--reader-width)); }
body.reading .cartouche { display: none; }
#bookPanel:not([hidden]) {
  position: fixed; inset: 0 0 0 auto; width: var(--reader-width); z-index: 5;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: #faf6e9;
  color: #36382e; border-left: 1px solid #9b896b; box-shadow: -4px 0 15px #4d391c20;
}
.book-toolbar, .book-footer { display: flex; align-items: center; gap: .65rem; padding: .7rem 1rem; background: #f3ecd9; }
.book-toolbar { border-bottom: 1px solid #c6b899; flex-wrap: wrap; }
.book-download { flex-basis: 100%; padding-top: .45rem; border-top: 1px solid #d6c9ac; font-size: .87rem; color: #703e2d; text-underline-offset: 3px; }
.book-toolbar strong { margin-right: auto; font-weight: normal; font-style: italic; font-size: 1.05rem; }
.book-toolbar button { font-size: .94rem; color: #703e2d; padding: .3em; }
.book-toolbar button[aria-expanded=true] { text-decoration: underline; text-underline-offset: 3px; }
#bookClose { font: 1.5rem/1 Georgia, serif; }
.book-footer { border-top: 1px solid #c6b899; justify-content: space-between; font-size: .95rem; }
.book-footer label { white-space: nowrap; cursor: pointer; }
.book-footer input { accent-color: #86432e; }
#bookLocation { text-align: right; font-style: italic; }
#bookHost { min-height: 0; position: relative; }
body.reading.reader-full #bookPanel { inset: 0; width: 100%; border: 0; }
body.reader-full .book-toolbar, body.reader-full .book-footer { padding-inline: max(1rem, calc((100% - 40rem)/2)); }
@media (max-width: 760px) {
  body.reading > main { width: 100%; height: 39%; }
  body.reading #bookPanel { width: 100%; inset: 39% 0 0; border-left: 0; border-top: 1px solid #9b896b; }
  body.reading .legend, body.reading .browse, body.reading .foot button, body.reading .compass { display: none; }
  body.reading .tools { top: 12px; right: 12px; }
  body.reading .foot { left: 14px; right: auto; bottom: 13px; }
  .book-toolbar, .book-footer { padding: .45rem .8rem; }
}

#dufourCredit { display: block; margin-bottom: .7em; color: var(--muted); font: italic 12px/1.4 var(--atlas-serif); }
#dufourCredit a { color: #79523b; }
#frenchKey small { display:block; margin:.35em 0 .7em; color:var(--muted); font:italic 12px/1.4 var(--atlas-serif); }
#frenchKey a { color:#79523b; text-underline-offset:2px; }

.lake-depth-tint{height:8px;border:1px solid #8faaa799;background:linear-gradient(to right,#d1e2dc,#a6c3c9)}
#lakeBathyKey small{display:block;margin:.35em 0 .7em;color:var(--muted);font:italic 12px/1.4 var(--atlas-serif)}

/* The article owns expansion; keep the inline atlas quiet and compact. */
body.embedded #fullscreen { display: none; }
body.embedded:not(.embed-expanded) .cartouche { top: 14px; left: 14px; padding: 12px 16px; }
body.embedded:not(.embed-expanded) .cartouche h1 { font-size: 28px; }
body.embedded:not(.embed-expanded) .cartouche .eyebrow,
body.embedded:not(.embed-expanded) .cartouche p,
body.embedded:not(.embed-expanded) .compass { display: none; }
body.embedded:not(.embed-expanded) .tools { top: 14px; right: 14px; }
body.embedded:not(.embed-expanded) .read-book { font-size: 13px; margin-top: 3px; }
body.embedded:not(.embed-expanded) .legend { left: 14px; bottom: 54px; }
body.embedded:not(.embed-expanded) .legend:not([open]) { width: auto; padding: 9px 12px; }
body.embedded:not(.embed-expanded) .legend:not([open]) summary .eyebrow { display: none; }
body.embedded:not(.embed-expanded) .legend summary b { font-size: 15px; }
body.embedded:not(.embed-expanded) .browse { left: 14px; bottom: 14px; transform: none; padding: 7px 12px; font-size: 14px; }
body.embedded:not(.embed-expanded) .foot { bottom: 14px; right: 14px; }

.cartouche .relief-link{margin-left:10px;color:#8e3829}
@media(max-width:600px){.cartouche .relief-link{margin-left:7px}}

#credits { width: min(560px, 92vw); overflow: hidden; }
#credits .credits-sheet { display: flex; flex-direction: column; max-height: calc(80dvh - 2px); padding: 0; }
.credits-header { flex: none; padding: 25px 25px 0; }
.credits-header h2 { padding-right: 15px; }
.credits-tabs { display: flex; gap: 20px; border-bottom: 1px solid #c6b899; }
.credits-tabs [role="tab"] { padding: 10px 0; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--muted); font-size: 16px; }
.credits-tabs [aria-selected="true"] { color: var(--red); border-bottom-color: var(--red); }
.credits-content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px 25px 25px; }
.credits-content [role="tabpanel"] { outline-offset: -2px; }
#creditsSources { font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
#creditsSources .source-intro { color: var(--muted); font-style: italic; }
#creditsSources h3 { margin: 23px 0 9px; font-size: 20px; font-weight: normal; }
#creditsSources ul { margin: 0; padding-left: 20px; }
#creditsSources li { margin: 0 0 10px; padding-left: 3px; }
#creditsSources li::marker { color: var(--gold); }
#creditsSources a { text-underline-offset: 2px; }
.sources-share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin: 10px 0 14px; }
.sources-share button { padding: 3px 8px; border: 1px solid #c6b899; color: var(--red); font-size: 14px; }
#sourcesLinkStatus { color: var(--muted); font-size: 13px; }
