/* pwp-authored-additional-v1-20261028: technical foundation only */
@layer pwp-runtime-foundation {
  :root {
    --bg:#F8FAFC; --text:#1E40AF;
    --surface:#FFFFFF; --text-muted:#475569;
    --primary:#1E3A8A; --primary-fg:#FFFFFF;
    --border:#BFDBFE;
  }
  *, *::before, *::after { box-sizing:border-box; }
  html { scroll-behavior:smooth; }
  body { margin:0; background:var(--bg); color:var(--text); }
  img, video { max-inline-size:100%; block-size:auto; }
  button, input, select, textarea { font:inherit; }
  button, summary { cursor:pointer; }
  :where(a,button,input,select,textarea,summary):focus-visible { outline:2px solid currentColor; outline-offset:4px; }
  .skip { position:fixed; inset-block-start:-10rem; inset-inline-start:1rem; z-index:10000; padding:.75rem; background:var(--bg); color:var(--text); }
  .skip:focus { inset-block-start:1rem; }
  /* Legal prose is a separate utility; never constrain the author's main site. */
  .legal-container { max-inline-size:76ch; margin-inline:auto; padding:clamp(1rem,4vw,3rem); }
  .legal-body { line-height:1.7; overflow-wrap:anywhere; }
  .legal-body p + p, .legal-body section + section { margin-block-start:1.25em; }
  .legal-body table { display:block; overflow-x:auto; max-inline-size:100%; }
  .legal-body h1, .legal-body h2, .legal-body h3, .legal-title { line-height:1.2; }
  [data-cookie-fallback] { position:fixed; inset-inline:1rem; inset-block-end:1rem; z-index:9999; max-inline-size:34rem; padding:1rem; border:1px solid var(--border); background:var(--bg); color:var(--text); }
  [data-cookie-fallback] .cookie-text { font:14px/1.5 system-ui,sans-serif; }
  [data-cookie-fallback] .cookie-actions { display:flex; flex-wrap:wrap; gap:.75rem; margin-block-start:.75rem; }
  [data-cookie-fallback] button { min-block-size:44px; padding:.6rem 1rem; border:1px solid var(--border); background:var(--surface); color:var(--text); }
  [data-cookie-fallback] [data-action="accept-cookie"] { background:var(--primary); color:var(--primary-fg); }
}
/* Required state, not a visual layout. Expanded pages may be grid/flex/block. */
[hidden], .cookie-banner.hidden { display:none !important; }
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
}

/* === AUTHOR-OWNED SITE STYLES === */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,500;8..60,600;8..60,700&display=swap');

  :root {
    --bg: #f5efe6;
    --text: #172d35;
    --surface: #fffaf2;
    --surface-deep: #e9dfd0;
    --text-muted: #657278;
    --primary: #c7613e;
    --primary-fg: #fffaf2;
    --accent: #d5a84d;
    --border: #d8cabc;
    --ink-soft: #29444a;
    --shadow: 0 18px 50px rgba(45, 42, 35, .10);
    --serif: "Source Serif 4", Georgia, serif;
    --sans: "DM Sans", Arial, sans-serif;
  }

  * { box-sizing: border-box; }

  html {
    background: var(--bg);
    color: var(--text);
    scroll-behavior: smooth;
  }

  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    line-height: 1.65;
    overflow-x: hidden;
  }

  a {
    color: inherit;
    text-decoration-thickness: .08em;
    text-underline-offset: .18em;
  }

  a:hover { color: var(--primary); }

  button,
  a,
  summary {
    -webkit-tap-highlight-color: transparent;
  }

  :focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
  }

  [hidden] { display: none !important; }

  .site-header {
    position: sticky;
    z-index: 20;
    top: 0;
    background: rgba(245, 239, 230, .97);
    border-bottom: 1px solid var(--border);
  }

  .nav-inner {
    width: min(1240px, calc(100% - 40px));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
  }

  .brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
    flex-shrink: 0;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--text);
    border-radius: 50%;
    font-family: var(--serif);
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: -.08em;
  }

  .brand-name {
    font-size: .86rem;
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: lowercase;
  }

  .brand-name span {
    display: block;
    color: var(--primary);
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .58rem;
    margin-top: 4px;
  }

  .main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    font-size: .82rem;
    font-weight: 600;
  }

  .main-nav a {
    padding: 10px 0;
    text-decoration: none;
    white-space: nowrap;
  }

  .nav-contact {
    padding: 10px 16px !important;
    border: 1px solid var(--text);
    border-radius: 999px;
  }

  .nav-contact:hover {
    background: var(--text);
    color: var(--surface);
  }

  .site-shell {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
  }

  .page {
    min-height: 60vh;
    padding: 72px 0 104px;
  }

  .page-header {
    max-width: 820px;
    margin-bottom: 58px;
  }

  .eyebrow {
    margin: 0 0 15px;
    color: var(--primary);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
  }

  h1, h2, h3 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 600;
    letter-spacing: -.035em;
    line-height: 1.08;
  }

  h1 {
    max-width: 950px;
    font-size: clamp(2.9rem, 7vw, 6.6rem);
  }

  h2 {
    font-size: clamp(2rem, 4vw, 3.65rem);
  }

  h3 {
    font-size: clamp(1.35rem, 2vw, 1.8rem);
  }

  p { margin: 0 0 1.1rem; }

  .lede {
    max-width: 680px;
    margin-top: 25px;
    color: var(--ink-soft);
    font-size: clamp(1.08rem, 1.5vw, 1.3rem);
    line-height: 1.55;
  }

  .button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
  }

  .button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border: 1px solid var(--text);
    border-radius: 999px;
    font-size: .86rem;
    font-weight: 700;
    text-decoration: none;
  }

  .button-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--primary-fg);
  }

  .button-primary:hover {
    background: #a94e32;
    color: var(--primary-fg);
  }

  .button-quiet {
    background: transparent;
  }

  .button-quiet:hover {
    background: var(--surface);
  }

  .hero {
    padding: 78px 0 92px;
  }

  .hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    gap: clamp(36px, 7vw, 110px);
    align-items: center;
  }

  .hero h1 { font-size: clamp(3.2rem, 7.2vw, 7.1rem); }

  .hero-visual {
    position: relative;
    min-height: 520px;
  }

  .hero-photo {
    width: 82%;
    height: 500px;
    margin-left: auto;
    display: block;
    object-fit: cover;
    border-radius: 180px 180px 12px 12px;
    box-shadow: var(--shadow);
  }

  .hero-caption {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: min(260px, 55%);
    padding: 20px;
    background: var(--text);
    color: var(--surface);
    border-left: 5px solid var(--accent);
  }

  .hero-caption strong {
    display: block;
    margin-bottom: 5px;
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 600;
  }

  .hero-caption span {
    color: #d8e0dc;
    font-size: .78rem;
  }

  .section-band {
    margin: 0 calc(50% - 50vw);
    padding: 76px max(20px, calc((100vw - 1240px) / 2)) 84px;
    background: var(--text);
    color: var(--surface);
  }

  .section-band .eyebrow { color: var(--accent); }

  .section-band p { color: #dbe2dc; }

  .intro-grid {
    display: grid;
    grid-template-columns: .75fr 1.25fr;
    gap: 50px;
    align-items: start;
  }

  .intro-grid > :first-child {
    position: sticky;
    top: 110px;
  }

  .topic-list {
    border-top: 1px solid rgba(255,255,255,.24);
  }

  .topic-item {
    display: grid;
    grid-template-columns: 45px 1fr;
    gap: 16px;
    padding: 21px 0;
    border-bottom: 1px solid rgba(255,255,255,.24);
  }

  .topic-item b {
    color: var(--accent);
    font-size: .78rem;
    padding-top: 4px;
  }

  .topic-item a {
    font-family: var(--serif);
    font-size: 1.45rem;
    text-decoration: none;
  }

  .topic-item p {
    grid-column: 2;
    max-width: 560px;
    margin-top: -8px;
    font-size: .92rem;
  }

  .editorial-note {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    margin-top: 70px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
  }

  .editorial-note h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); }
  .editorial-note p { max-width: 560px; color: var(--text-muted); }

  .facts-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin: 70px 0 0;
    background: var(--border);
    border: 1px solid var(--border);
  }

  .fact {
    min-height: 150px;
    padding: 24px;
    background: var(--surface);
  }

  .fact strong {
    display: block;
    margin-bottom: 8px;
    font-family: var(--serif);
    font-size: 1.45rem;
  }

  .fact p {
    margin: 0;
    color: var(--text-muted);
    font-size: .9rem;
  }

  .article-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(250px, .8fr);
    gap: 60px;
    align-items: start;
  }

  .article-copy {
    max-width: 740px;
    font-size: 1.04rem;
  }

  .article-copy p { margin-bottom: 1.35rem; }

  .article-copy h2,
  .article-copy h3 {
    margin: 2.4rem 0 1rem;
  }

  .article-copy h2:first-child,
  .article-copy h3:first-child { margin-top: 0; }

  .side-note {
    position: sticky;
    top: 110px;
    padding: 26px;
    background: var(--surface-deep);
    border-top: 4px solid var(--primary);
  }

  .side-note h3 {
    margin-bottom: 13px;
    font-size: 1.45rem;
  }

  .side-note p,
  .side-note li {
    color: var(--ink-soft);
    font-size: .9rem;
  }

  .side-note ul {
    margin: 0;
    padding-left: 19px;
  }

  .photo-band {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 0;
    margin: 64px 0;
    background: var(--surface-deep);
  }

  .photo-band img {
    width: 100%;
    height: 320px;
    display: block;
    object-fit: cover;
  }

  .photo-band-copy {
    padding: 38px;
    align-self: center;
  }

  .photo-band-copy h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
  .photo-band-copy p { color: var(--ink-soft); }

  .guide-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0 12px;
    font-size: .92rem;
  }

  .guide-table th,
  .guide-table td {
    padding: 15px 12px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--border);
  }

  .guide-table th {
    color: var(--primary);
    font-size: .72rem;
    letter-spacing: .1em;
    text-transform: uppercase;
  }

  .callout {
    margin: 30px 0;
    padding: 22px 24px;
    background: var(--surface-deep);
    border-left: 4px solid var(--accent);
  }

  .callout strong { display: block; margin-bottom: 5px; }

  .faq-list {
    max-width: 820px;
    border-top: 1px solid var(--border);
  }

  .faq-list details {
    padding: 0;
    border-bottom: 1px solid var(--border);
  }

  .faq-list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 0;
    cursor: pointer;
    font-family: var(--serif);
    font-size: 1.35rem;
    list-style: none;
  }

  .faq-list summary::-webkit-details-marker { display: none; }

  .faq-list summary::after {
    content: "+";
    flex-shrink: 0;
    color: var(--primary);
    font-family: var(--sans);
    font-size: 1.6rem;
    font-weight: 400;
  }

  .faq-list details[open] summary::after { content: "−"; }

  .faq-answer {
    max-width: 700px;
    padding: 0 44px 22px 0;
    color: var(--text-muted);
  }

  .contact-layout {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 70px;
  }

  .contact-details {
    padding-top: 10px;
  }

  .contact-details h2 { margin-bottom: 20px; }

  .contact-details address {
    margin: 0 0 28px;
    color: var(--ink-soft);
    font-style: normal;
  }

  .contact-details a {
    color: var(--primary);
    font-weight: 600;
  }

  .contact-form-note {
    padding: 34px;
    background: var(--text);
    color: var(--surface);
  }

  .contact-form-note h2 { margin-bottom: 16px; }
  .contact-form-note p { color: #dbe2dc; }
  .contact-form-note .button { color: var(--surface); border-color: var(--surface); }
  .contact-form-note .button:hover { background: var(--surface); color: var(--text); }

  .site-footer {
    padding: 45px 0 35px;
    background: #10252b;
    color: #e8ede7;
  }

  .footer-inner {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
  }

  .footer-main {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 35px;
    border-bottom: 1px solid rgba(255,255,255,.2);
  }

  .footer-main h2 {
    margin-bottom: 14px;
    color: var(--surface);
    font-size: 1.65rem;
  }

  .footer-main p,
  .footer-main address {
    max-width: 310px;
    color: #b9c7c2;
    font-size: .85rem;
    font-style: normal;
  }

  .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    align-content: start;
  }

  .footer-links a {
    color: #e8ede7;
    font-size: .82rem;
  }

  .footer-legal {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 22px;
    color: #9eafaa;
    font-size: .76rem;
  }

  .cookie-notice {
    position: fixed;
    z-index: 30;
    right: 20px;
    bottom: 20px;
    width: min(430px, calc(100% - 40px));
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 14px 45px rgba(17, 34, 39, .2);
  }

  .cookie-notice h2 {
    margin-bottom: 8px;
    font-size: 1.35rem;
  }

  .cookie-notice p {
    margin-bottom: 15px;
    color: var(--text-muted);
    font-size: .82rem;
  }

  .cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .cookie-actions button {
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid var(--text);
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font: inherit;
    font-size: .78rem;
    font-weight: 700;
  }

  .cookie-actions [data-action="accept-cookie"] {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--primary-fg);
  }

  .cookie-open {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: .2em;
  }

  .document-body {
    max-width: 820px;
    margin: 0 auto;
    padding: 70px 20px 100px;
  }

  .document-body h1 { font-size: clamp(2.7rem, 6vw, 5rem); }
  .document-body h2 { margin: 38px 0 12px; font-size: 2rem; }
  .document-body p,
  .document-body li { color: var(--ink-soft); }
  .document-body ul { padding-left: 22px; }

  @media (max-width: 900px) {
    .nav-inner { align-items: flex-start; padding: 17px 0; }
    .main-nav {
      flex-wrap: wrap;
      justify-content: flex-end;
      gap: 6px 14px;
    }
    .main-nav a { padding: 5px 0; }
    .hero-layout,
    .article-grid,
    .contact-layout { grid-template-columns: 1fr; }
    .hero-visual { min-height: 420px; }
    .hero-photo { height: 410px; }
    .intro-grid { grid-template-columns: 1fr; }
    .intro-grid > :first-child,
    .side-note { position: static; }
    .footer-main { grid-template-columns: 1fr 1fr; }
    .footer-main > :first-child { grid-column: 1 / -1; }
  }

  @media (max-width: 600px) {
    .site-shell,
    .nav-inner,
    .footer-inner { width: min(100% - 28px, 1240px); }
    .page { padding: 52px 0 75px; }
    .hero { padding: 44px 0 65px; }
    .hero-visual { min-height: 350px; }
    .hero-photo {
      width: 88%;
      height: 340px;
      border-radius: 120px 120px 10px 10px;
    }
    .hero-caption { width: 66%; padding: 15px; }
    .facts-strip { grid-template-columns: 1fr; }
    .editorial-note,
    .photo-band { grid-template-columns: 1fr; }
    .photo-band img { height: 250px; }
    .photo-band-copy { padding: 26px; }
    .footer-main { grid-template-columns: 1fr; gap: 25px; }
    .footer-main > :first-child { grid-column: auto; }
    .footer-legal { flex-direction: column; }
    .main-nav { gap: 4px 11px; font-size: .74rem; }
    .brand-name { font-size: .78rem; }
    .brand-mark { width: 34px; height: 34px; }
  }

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

/* === OPEN NAVIGATION SURFACE SAFETY === */
/* Position, shadows, borders and scroll treatment belong to the author.
   Only an OPEN mobile menu gets a mandatory opaque readable surface. */
header.site-header[data-pwp-nav-open] {
  background-color: var(--bg, #ffffff) !important;
  isolation: isolate;
}
[data-pwp-mobile-menu][data-pwp-menu-open] {
  background-color: var(--bg, #ffffff);
  color: var(--text, #0f172a);
  max-block-size: var(--pwp-nav-available-height, calc(100dvh - 6rem));
  overflow-y: auto;
  overscroll-behavior: contain;
}
.pwp-source-note {
  margin-block-start: 1rem;
  font-size: .875em;
  line-height: 1.5;
}
.pwp-source-note a { text-decoration: underline; text-underline-offset: .2em; }
