/* A shared closing chapter in the site's forest, ivory and champagne palette. */
body footer.site-footer{display:block;width:var(--page-width,100vw);max-width:none;margin:0 calc((100% - var(--page-width,100vw))/2);padding:52px max(5vw,calc((var(--page-width,100vw) - 1680px)/2)) 28px;background:#263c33;color:#fffaf0;border-top:1px solid #f3e1b459;font-size:12px}
.site-footer .footer-main{display:grid;grid-template-columns:1.1fr 1.2fr auto;gap:48px;align-items:center}.site-footer .footer-brand{display:grid;justify-self:start;color:#f3e1b4;text-decoration:none;line-height:1.2;font-family:'Palatino Linotype','Book Antiqua',Palatino,serif}.site-footer .footer-address{font-size:20px;letter-spacing:.065em}.site-footer .footer-name{font-size:30px;color:#fffaf0;letter-spacing:.04em;margin-top:7px}.site-footer .footer-brand small{font:9px/1.5 Arial,sans-serif;letter-spacing:.2em;color:#fffaf0;margin-top:12px}
.site-footer .footer-nav{display:grid;grid-template-columns:1fr 1fr;width:auto;gap:15px 30px;justify-self:center;font:16px/1.4 'Palatino Linotype','Book Antiqua',Palatino,serif}.site-footer .footer-nav a{text-decoration:none;color:#fffaf0}.site-footer a:hover{text-decoration:underline;text-underline-offset:5px}.site-footer .footer-top{display:inline-flex;align-items:center;gap:18px;color:#f3e1b4;font:16px/1.4 'Palatino Linotype','Book Antiqua',Palatino,serif;text-decoration:none;white-space:nowrap}.site-footer .footer-top>span[aria-hidden]{display:grid;place-items:center;width:48px;height:48px;border:1px solid #f3e1b480;border-radius:50%;font:28px/1 Georgia,serif}.site-footer .footer-bottom{display:flex;justify-content:space-between;gap:24px;margin-top:38px;padding-top:22px;border-top:1px solid #fffaf02b;color:#d7dfd8}.site-footer .footer-bottom p{font:11px/1.6 Arial,sans-serif;margin:0}.site-footer .footer-bottom p:first-child{font:italic 17px/1.5 'Palatino Linotype','Book Antiqua',Palatino,serif}.site-footer a:focus-visible{outline:2px solid #f3e1b4;outline-offset:6px}
@media(max-width:760px){body footer.site-footer{padding:36px 24px 24px}.site-footer .footer-main{grid-template-columns:1fr;gap:30px}.site-footer .footer-nav{justify-self:start;gap:8px 24px;width:100%;font-size:15px}.site-footer .footer-nav a{min-height:44px;display:flex;align-items:center}.site-footer .footer-top{justify-self:start}.site-footer .footer-top>span[aria-hidden]{width:42px;height:42px}.site-footer .footer-bottom{display:block;margin-top:28px;padding-top:20px}.site-footer .footer-bottom p+p{margin-top:15px}.site-footer .footer-address{font-size:19px}.site-footer .footer-name{font-size:28px}}
@media print{body footer.site-footer{display:none}}

@media(min-width:761px) and (max-width:1100px){.site-footer .footer-main{grid-template-columns:1fr 1fr;gap:30px}.site-footer .footer-nav{justify-self:end}.site-footer .footer-top{grid-column:1/-1;justify-self:start}}

/* The approved five-link footer menu reads across on wide screens. */
@media(min-width:1101px){.site-footer .footer-main{grid-template-columns:190px minmax(0,1fr) auto;gap:32px}.site-footer .footer-nav{display:flex;flex-wrap:nowrap;gap:18px;justify-content:center;font-size:clamp(14px,.9vw,16px);white-space:nowrap}}
.site-footer .footer-nav a[aria-current="page"]{color:#f3e1b4;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:6px;text-decoration-color:#f3e1b4}

.site-footer a.footer-top:hover{text-decoration:none}.site-footer .footer-top-label{display:inline;white-space:nowrap}.site-footer .footer-top:hover .footer-top-label{text-decoration:none}.site-footer .footer-top>span[aria-hidden]{text-decoration:none}.site-footer .footer-nav a:hover{ text-underline-offset:6px;text-decoration-color:#f3e1b4;text-decoration-thickness:1px}

/* Six destinations remain one readable row where there is room. */
@media(min-width:1101px){.site-footer .footer-main{grid-template-columns:170px minmax(0,1fr) auto;gap:22px}.site-footer .footer-nav{gap:clamp(12px,1.1vw,23px);font-size:clamp(12px,.9vw,16px)}}

/* Scale only the footer menu, allowing longer labels to wrap as needed. */
.site-footer .footer-nav{font-size:clamp(15px,1.45vw,24px)}
@media(min-width:1101px){.site-footer .footer-nav{flex-wrap:wrap}}

/* The footer identity now pairs Carpathia with its regional location. */
.site-footer .footer-name{font-size:18px;line-height:1.4;letter-spacing:.04em}
@media(max-width:760px){.site-footer .footer-name{font-size:16px}}
.site-footer .footer-name{font-size:14px;letter-spacing:.06em}

/* A compact top control with matching circle and arrow strokes. */
.site-footer .footer-top{gap:8px;min-height:44px}
.site-footer .footer-top>span[aria-hidden]{width:34px;height:34px;border-width:2px}
.site-footer .footer-top svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:760px){.site-footer .footer-top>span[aria-hidden]{width:32px;height:32px}.site-footer .footer-top svg{width:18px;height:18px}}

/* Light the complete top control on hover and keyboard focus. */
.site-footer .footer-top>span[aria-hidden]{transition:color .18s,border-color .18s,background-color .18s,box-shadow .18s}
.site-footer .footer-top:is(:hover,:focus-visible)>span[aria-hidden]{color:#fff0c9;border-color:currentColor;background:#f3e1b41a;box-shadow:0 0 14px #f3e1b447}
.site-footer .footer-top:is(:hover,:focus-visible) svg{filter:drop-shadow(0 0 3px #ffe5ad80)}
@media(prefers-reduced-motion:reduce){.site-footer .footer-top>span[aria-hidden]{transition:none}}
.site-footer .footer-top svg path,.section-top svg path{vector-effect:non-scaling-stroke}

/* Repeat the footer's compact top control at the close of major chapters. */
.section-top-row{display:flex;justify-content:flex-end;margin-top:32px}
body[class] a.section-top{--top-control-color:#7d5b31;--top-control-hover:#5b3b1d;--top-control-glow:#9c6c3a47;display:inline-flex;align-items:center;gap:8px;min-height:44px;color:var(--top-control-color);font:16px/1.4 var(--serif);white-space:nowrap;text-decoration:none}
body[class] a.section-top>span[aria-hidden]{display:grid;place-items:center;width:34px;height:34px;border:2px solid currentColor;border-radius:50%;transition:color .18s,background-color .18s,box-shadow .18s}
.section-top svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
body[class] a.section-top:is(:hover,:focus-visible){color:var(--top-control-hover)}
body[class] a.section-top:is(:hover,:focus-visible)>span[aria-hidden]{background:#f3e1b41a;box-shadow:0 0 14px var(--top-control-glow)}
body[class] a.section-top:is(:hover,:focus-visible) svg{filter:drop-shadow(0 0 3px var(--top-control-glow))}
body[class] a.section-top:hover .footer-top-label{text-decoration:none}
html:is([data-theme="charcoal-light"],[data-theme="charcoal"],[data-theme="black"]) body[class] a.section-top,.power-chapter a.section-top,.earth-principles a.section-top{--top-control-color:#f3e1b4;--top-control-hover:#fff0c9;--top-control-glow:#f3e1b447}
@media(max-width:760px){body[class] a.section-top>span[aria-hidden]{width:32px;height:32px}.section-top svg{width:18px;height:18px}}
@media print{.section-top-row{display:none}}
@media(prefers-reduced-motion:reduce){body[class] a.section-top>span[aria-hidden]{transition:none}}
html[data-theme] body[class] main .section-top-row>a.section-top{color:var(--top-control-color);text-decoration:none}
html[data-theme] body[class] main .section-top-row>a.section-top:is(:hover,:focus-visible){color:var(--top-control-hover)}

/* Keep the regional signature together beside a small, quiet Zia. */
.site-footer .footer-brand{grid-template-columns:26px max-content;column-gap:12px;align-items:center}
.site-footer .footer-zia{grid-column:1;grid-row:1/3;width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:4}
.site-footer .footer-brand :is(.footer-address,.footer-name){grid-column:2;white-space:nowrap}
.site-footer .footer-name{font-size:12px;letter-spacing:.025em;margin-top:6px}
@media(min-width:1101px){.site-footer .footer-main{grid-template-columns:220px minmax(0,1fr) auto}}
body[class] a:is(.footer-top,.section-top):is(:hover,:focus-visible),body[class] a:is(.footer-top,.section-top):is(:hover,:focus-visible) .footer-top-label{text-decoration:none}
.site-footer .footer-name{margin-top:8px}

/* The footer signature carries a steady warm light rather than a hover cue. */
.site-footer .footer-brand{grid-template-columns:42px max-content;column-gap:12px;text-shadow:0 0 8px #ffe5ad70,0 0 18px #f3e1b433}
.site-footer .footer-zia{width:42px;height:42px;filter:drop-shadow(0 0 4px #ffe5ad70)}
.site-footer .footer-brand .footer-address{text-transform:none}
.site-footer a.footer-brand:is(:hover,:focus-visible){color:#f3e1b4;text-decoration:none;text-shadow:0 0 8px #ffe5ad70,0 0 18px #f3e1b433}
@media(min-width:1101px){.site-footer .footer-main{grid-template-columns:230px minmax(0,1fr) auto}}
html[data-theme] body[class] .site-footer a.footer-brand,html[data-theme] body[class] .site-footer a.footer-brand:is(:hover,:focus-visible){color:#f3e1b4;text-decoration:none;text-shadow:0 0 8px #ffe5ad70,0 0 18px #f3e1b433}

/* Give long photo and story chapters the same quiet route back to the header. */
:is(.home-page,.journey-page,.photographs-page) .section-top-row{grid-column:1/-1;position:relative;z-index:2;width:100%}
.home-page .scene-glass .section-top-row{margin-top:24px}
.home-page .valdez-interlude>.section-top-row{margin-top:0;padding-bottom:24px}
/* Footer and chapter top links share the same complete hover/focus treatment. */
html[data-theme] body[class] .site-footer a.footer-top{--top-control-color:#f3e1b4;--top-control-hover:#fff0c9;--top-control-glow:#f3e1b447;display:inline-flex;align-items:center;gap:8px;min-height:44px;color:var(--top-control-color);font:16px/1.4 var(--serif);white-space:nowrap;text-decoration:none}
html[data-theme] body[class] .site-footer a.footer-top>span[aria-hidden]{display:grid;place-items:center;width:34px;height:34px;border:2px solid currentColor;border-radius:50%;color:inherit;transition:color .18s,background-color .18s,box-shadow .18s}
html[data-theme] body[class] .site-footer a.footer-top:is(:hover,:focus-visible){color:var(--top-control-hover);text-decoration:none}
html[data-theme] body[class] .site-footer a.footer-top:is(:hover,:focus-visible)>span[aria-hidden]{color:inherit;border-color:currentColor;background:#f3e1b41a;box-shadow:0 0 14px var(--top-control-glow)}
html[data-theme] body[class] .site-footer a.footer-top:is(:hover,:focus-visible) svg{filter:drop-shadow(0 0 3px var(--top-control-glow))}
@media(max-width:760px){html[data-theme] body[class] .site-footer a.footer-top>span[aria-hidden]{width:32px;height:32px}}
@media(prefers-reduced-motion:reduce){html[data-theme] body[class] .site-footer a.footer-top>span[aria-hidden]{transition:none}}
