/* Shared optical finish: a bright upper edge, a soft lower edge and a solid colour under glass. */
:root {
  --foil: #ebc65e;
  --foil-ink: #153322;
  --glass-rim: inset 0 1px 0 rgb(255 255 255 / .64), inset 0 -1px 0 rgb(56 48 12 / .18);
  --control-glow: 0 3px 8px rgb(22 45 28 / .13);
  --emerald-sheen: linear-gradient(165deg, rgb(255 255 255 / .13), transparent 52%);
  --gold-sheen: linear-gradient(172deg, rgb(255 255 255 / .55), rgb(255 255 255 / .15) 47%, transparent 49%, rgb(180 127 24 / .12));
  --brass-rule: #c3b787;
  --action-radius: 8px;
}
.btn.btn--primary,.voice-compose summary,.site-header .lang__option[aria-pressed=true],:is(.footer__lang[aria-pressed=true],.footer__lang[aria-current=true]) {
  background: var(--gold-sheen),var(--foil);
  color: var(--foil-ink);
  border-color: #d3b254;
  box-shadow: var(--glass-rim),var(--control-glow);
}
.btn.btn--primary,.voice-compose summary { border-radius: var(--action-radius); }
.btn.btn--primary:hover,.voice-compose summary:hover {background-color:#f4d782;}
.hero__actions .btn.btn--ghost,.site-header .menu-toggle,.site-footer .to-top {
  background:var(--emerald-sheen),rgb(0 66 42 / .8);
  color:#fff9eb;border:1px solid #95a885;border-radius:var(--action-radius);
  box-shadow:inset 0 1px 0 rgb(255 255 255 / .19);
}
.hero__actions .btn.btn--ghost {padding:.8em 1.3em;min-height:46px;text-decoration:none;}
#crop-reset {color:var(--green-deep);background:linear-gradient(#fffdf3,#eee7d3);border:1px solid #a99e79;border-radius:var(--action-radius);padding:.5em 1em;min-height:44px;}
.site-header,.site-header.is-scrolled {background:linear-gradient(100deg,#005d38 0 24%,#004e32 83%,#00452d);border-bottom:1px solid var(--brass-rule);}
.site-header .lang,.footer__langs,.cv-tabs {box-shadow:inset 0 1px 3px rgb(0 28 16 / .18),0 1px 0 rgb(255 255 255 / .16);}
.site-header .lang,.footer__langs {background:var(--emerald-sheen),#003f2b;border:1px solid #718d6f;}
.site-header .lang__option,.footer__lang {min-height:38px;}
.site-header .lang__option[aria-pressed=true],:is(.footer__lang[aria-pressed=true],.footer__lang[aria-current=true]) {font-weight:700;}
.site-header .nav__link::after {height:2px;background:var(--foil);}
.cv-tabs__indicator {background:var(--emerald-sheen),var(--green);box-shadow:inset 0 1px 0 rgb(255 255 255 / .3);}
:is(.btn,.menu-toggle,.lang__option,.footer__lang,.cv-tab,.to-top,summary):focus-visible {outline-offset:3px;}
@supports (backdrop-filter:blur(6px)) {
  .hero__actions .btn.btn--ghost,.site-header .menu-toggle {background:var(--emerald-sheen),rgb(0 60 37 / .64);backdrop-filter:blur(6px);}
}
@media (max-width:1299px) {
  .js .site-header .nav {background:linear-gradient(150deg,#005735,#003d29);border-bottom:2px solid var(--brass-rule);}
  .js .site-header .nav__link {border-bottom-color:rgb(232 222 178 / .23);padding-inline:.6em;}
  .js .site-header .nav__link[aria-current] {box-shadow:inset 3px 0 var(--foil);background:rgb(255 255 255 / .06);}
  [dir=rtl].js .site-header .nav__link[aria-current] {box-shadow:inset -3px 0 var(--foil);}
}
@media(max-width:860px){.site-header .lang__option {min-height:42px;}}
/* A single fine line and gold marker link the editorial sections. */
.eyebrow::before {background:linear-gradient(to right,var(--brass-rule),currentColor);}
.form-card,.cv-doc {border-top:2px solid var(--green);}
.heidelberg__notes,.contact__steps,.about__why {border-top-color:var(--brass-rule);}
.site-footer {
  padding-block:0 clamp(22px,3vw,38px);
  background:linear-gradient(116deg,#005735,#003d29 56%,#002f21);
  color:#f4efdf;border-block-start:1px solid #bfa86e;
}
/* An abstract arcade recalls the Old Bridge in the gallery. */
.site-footer::before {
  content:"";display:block;height:18px;pointer-events:none;
  background:radial-gradient(ellipse 25px 18px at 50% 100%,transparent 91%,rgb(237 207 128 / .35) 94% 98%,transparent 100%) repeat-x;
  background-size:56px 18px;border-bottom:1px solid rgb(236 206 129 / .23);
}
.footer__grid {grid-template-columns:minmax(0,1fr) minmax(0,.92fr) minmax(0,1.12fr);gap:clamp(24px,4vw,68px);padding-block-start:clamp(34px,5vw,70px);}
.footer__brand .footer__logo {width:min(100%,224px);margin:0 0 1rem;}
.footer__statement {max-width:33ch;font-size:1rem;color:#f3efdf;}
.footer__heading {margin:0 0 .9rem;font:600 1.12rem/1.4 var(--serif);color:#f3d477;}
.footer__nav ul {grid-template-columns:repeat(2,minmax(0,1fr));gap:.35rem 1rem;}
.footer__nav a,.footer__contact>a {display:inline-block;padding-block:.25rem;}
.footer__contact {gap:.2rem;min-width:0;}
.footer__contact>a {max-width:100%;overflow-wrap:anywhere;text-underline-offset:.23em;}
.footer__langs {width:fit-content;max-width:100%;padding:4px;gap:2px;border-radius:16px;}
.footer__lang {border:0;padding-inline:.7em;color:#fbf8ef;}
.footer__lang:hover {background-color:#205f47;}
.footer__bottom {margin-top:clamp(28px,4vw,55px);border-color:rgb(239 213 143 / .34);color:#f0ecdf;}
.site-footer .to-top {padding:.5rem .9rem;min-height:42px;}
@media(max-width:980px){.footer__grid {grid-template-columns:repeat(2,minmax(0,1fr));}.footer__brand{grid-column:1/-1;}}
@media(max-width:600px){.footer__grid{grid-template-columns:1fr;gap:26px;}.footer__nav,.footer__contact{border-top:1px solid rgb(239 213 143 / .3);padding-top:20px;}.footer__bottom{align-items:flex-start;flex-direction:column;}}
@media(forced-colors:active){.lang__option[aria-pressed=true],:is(.footer__lang[aria-pressed=true],.footer__lang[aria-current=true]),.cv-tab[aria-selected=true]{outline:2px solid ButtonText;outline-offset:-3px;}}

/* Accessible touch targets and legible keyboard focus on the emerald surfaces. */
.site-header .lang__option,.footer__langs .footer__lang {min-height:44px;}
.footer__langs a.footer__lang {display:inline-flex;align-items:center;text-decoration:none;}
.footer__langs a[aria-current=true] {color:var(--foil-ink);}
@media (scripting:none) {.footer__langs a[data-language] {display:none;}}
.site-header :focus-visible,.site-footer :focus-visible {outline:3px solid #ffeb9a;outline-offset:3px;}
@media (forced-colors:active) {.footer__langs [aria-current=true] {outline:2px solid ButtonText;}}

/* Timeline entries keep their reading position as the visitor switches languages. */
.js .milestone.reveal-pending {transform:none;}
.voice-compose {margin-block-start:1.25rem;}
#voice-form {border-radius:var(--action-radius);column-gap:1.4rem;}
#voice-form :is(textarea,input:not([type=checkbox]):not([type=range])) {border-radius:4px;}
#voice-form input::file-selector-button {
  color:var(--green-deep);background:#f2eddd;border:1px solid #968d72;
  border-radius:4px;padding:.45em .7em;margin-inline-end:.8em;font:inherit;cursor:pointer;
}
#voice-form input[aria-invalid=true] {border-color:#862d21;}
#voice-form button:disabled {opacity:.68;cursor:progress;}
#voice-form .voice-consent {line-height:1.6;}
#voice-form .voice-consent input {inline-size:1.15em;block-size:1.15em;flex:none;accent-color:var(--green);}
#voice-form #portrait-editor legend {padding-inline:.45em;font-weight:600;}
.voices-grid figcaption {color:#ffdd86;font-weight:600;}
.footer__archive {margin-block-start:1rem;}
.footer__archive summary {width:fit-content;color:#eee3bd;text-decoration:underline;text-underline-offset:.22em;cursor:pointer;}
.footer__archive img {display:block;margin-block-start:.6rem;width:min(155px,100%);height:auto;}

.whatsapp-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 90;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: white;
  box-shadow: 0 2px 8px rgb(0 0 0 / .25);
}
.whatsapp-float:hover {background: #15994a; color: white;}
.whatsapp-float:focus-visible {outline: 3px solid #173d2c; outline-offset: 3px;}
.site-footer {padding-bottom: max(88px, calc(env(safe-area-inset-bottom) + 80px));}
@media print {.whatsapp-float {display: none;}}

/* Extend the upper edge of the selected original, outside the photograph. */
.hero { --panorama-sky: linear-gradient(to right, #b6d1f5, #b3d2f8, #bdd6f7, #bed5f8, #b9d5f8, #b0d2f9, #b3d6fe, #b0d5fe, #b3d9fc, #bbddfe, #cfe6fd, #c8e4fd, #e6f2ff, #eff6ff, #e0eefe, #f6fbff, #f7fcff, #e7f2ff, #f3faff, #fcfeff, #f4faff, #fdffff, #feffff, #fdffff); --panorama-edge: var(--panorama-sky); }
@media (min-width:1081px) {
  .hero:not(.hero--small-panorama) { --panorama-edge: linear-gradient(to right, #5e5b5f, #666668, #4c525a, #4d5760, #5b5f67, #616763, #72775c, #6c7060, #616368, #777a65, #747768, #626a6c, #65715c, #7f865e, #918f65, #7a8166, #6c7858, #48565e, #4e5a63, #48515e, #5a6067, #42515d, #727b5b, #38475b); }
}
@media (prefers-reduced-data:reduce) {
  .hero:not(.hero--small-panorama) { --panorama-edge: var(--panorama-sky); }
}
.hero .hero__upper::after {
  height: clamp(28px, 4vw, 64px);
  background: linear-gradient(to bottom, #005d38, transparent), var(--panorama-edge);
}
.hero .hero__panorama {margin-block:0; animation:none;}
.hero__panorama picture {background:var(--panorama-edge);}
.hero__panorama img {display:block;}

.voice-version[hidden] { display: none; }
.voices blockquote, .voice-version details p { white-space: pre-wrap; overflow-wrap: anywhere; text-align: start; }
.voice-version small { display: block; margin-block: .65rem; }
.voice-version summary { cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
#voice-translation-notice { max-width: 58ch; }

.header__bar .brand { padding-block: clamp(6px, .65vw, 10px); }
