/* Site foundation. Component styles own their layout, colors and controls. */
@layer base, components, utilities;
@layer base {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; }
  body { margin: 0; color: var(--site-color-ink); background: var(--site-color-paper); font: var(--type-weight-regular) var(--type-body-size)/var(--type-line-body) var(--type-font-text); }
  /* SITE-THEME-08: every page rasterizes text the same way. */
  body {
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    text-rendering: geometricPrecision;
  }
  body .site-menu, body .site-menu-dialog { -webkit-font-smoothing: auto; text-rendering: auto; }
  main { display: block; }
  h1, h2, h3, h4, h5, h6 { margin: 0 0 var(--site-space-20); color: inherit; font-family: inherit; font-weight: var(--type-weight-semibold); line-height: var(--type-line-title); letter-spacing: var(--type-track-heading); }
  h1 { font-size: var(--type-display-2-size); font-weight: var(--type-display-2-weight); line-height: var(--type-display-2-line); letter-spacing: var(--type-display-2-track); } h2 { font-size: var(--type-heading-1-size); font-weight: var(--type-heading-1-weight); line-height: var(--type-heading-1-line); letter-spacing: var(--type-heading-1-track); }
  h3 { font-size: var(--type-heading-4-size); font-weight: var(--type-heading-4-weight); line-height: var(--type-heading-4-line); letter-spacing: var(--type-heading-4-track); } h4 { font-size: var(--type-heading-5-size); font-weight: var(--type-heading-5-weight); line-height: var(--type-heading-5-line); letter-spacing: var(--type-heading-5-track); } h5 { font-size: var(--type-title-size); font-weight: var(--type-title-weight); line-height: var(--type-title-line); } h6 { font-size: var(--type-body-size); }
  p { margin: 0 0 var(--site-space-20); }
  a { color: inherit; text-decoration: none; }
  button, input, select, textarea { font: inherit; color: inherit; }
  button, input[type="submit"], summary { cursor: pointer; }
  button:disabled, input:disabled { cursor: not-allowed; }
  img, video { max-width: 100%; height: auto; vertical-align: middle; }
  iframe { max-width: 100%; border: 0; }
  figure { margin: 0 0 var(--site-space-24); }
  table { border-collapse: collapse; }
  th, td { padding: var(--site-space-12); text-align: left; }
  blockquote { margin: var(--site-space-24) 0; }
  strong, b { font-weight: var(--type-weight-semibold); }
  pre, code { font-family: var(--type-font-mono); }
  [hidden] { display: none; }
  .visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  .entry-content, .site-content { margin: 0; padding: 0; }
  .contact-response:empty, .contact-spinner, .vue_is_disabled, #wpstats { display: none; }
  .content-image img { display: block; }
  .content-image.content-media-center, .content-media-center { margin-inline: auto; }
  .content-image figcaption { margin-top: var(--site-space-8); color: var(--site-color-caption); font-size: var(--type-body-sm-size); line-height: var(--type-line-body); }
  .content-caption { text-align: center; }
  .content-columns { display: flex; gap: var(--site-space-32); }
  .content-column { flex: 1; min-width: 0; }
  .content-separator { margin: var(--site-space-32) 0; border: 0; border-top: 1px solid var(--site-color-line); }
  .content-align-center { text-align: center; } .content-align-right { text-align: right; }
  @media (max-width: 767px) {
.content-columns { flex-direction: column; }
  }
}

@layer components {
  html:has(.site-image-viewer[open]) { overflow: hidden; }
  .site-image-viewer {
    position: fixed; inset: 0; width: 100%; max-width: none;
    height: 100dvh; max-height: none; margin: 0; padding: 0;
    border: 0; border-radius: 0; background: transparent; color: var(--site-color-paper);
    overflow: hidden; font: var(--type-weight-regular) var(--type-body-size)/var(--type-line-body) var(--type-font-text);
  }
  .site-image-viewer::backdrop { background: var(--site-color-black-80); }
  .site-image-surface { position: relative; width: 100%; height: 100%; isolation: isolate; }
  .site-image-surface:fullscreen { background: var(--header-ink); }
  .site-image-stage { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; touch-action: none; }
  .site-image-stage img {
    display: block; width: auto; height: auto; max-width: min(1300px, calc(100vw - 48px));
    max-height: calc(100dvh - 128px); margin: 0; border: 0; border-radius: 0;
    object-fit: contain; transform-origin: center; user-select: none; -webkit-user-drag: none;
  }
  .site-image-stage img[hidden] { display: none; }
  [data-image-zoomed] .site-image-stage { cursor: grab; }
  [data-image-dragging] .site-image-stage { cursor: grabbing; }
  [data-image-zoomed] [data-image-zoom-plus] { display: none; }
  .site-image-tools {
    position: absolute; top: max(8px, env(safe-area-inset-top)); right: max(8px, env(safe-area-inset-right)); z-index: 2;
    display: flex; gap: var(--site-space-4); padding: var(--site-space-4); border-radius: var(--radius-control); background: var(--site-color-ink-80);
  }
  .site-image-tools button {
    --button-radius: var(--radius-control); display: grid; place-items: center;
    width: 44px; height: 44px; margin: 0; padding: var(--site-space-10); border: 0;
    border-radius: var(--button-radius); background: transparent; color: inherit; touch-action: manipulation;
  }
  .site-image-tools button:hover { background: var(--site-color-paper-12); }
  .site-image-tools button:disabled { opacity: .45; cursor: default; }
  .site-image-tools button[hidden] { display: none; }
  .site-image-tools svg { display: block; width: 24px; height: 24px; }
  .site-image-loading, .site-image-recovery {
    position: absolute; bottom: max(16px, env(safe-area-inset-bottom)); left: 16px; z-index: 2;
    max-width: calc(100% - 32px); margin: 0; padding: var(--site-space-12) var(--site-space-16);
    border-radius: var(--radius-control); background: var(--site-color-ink-90); color: var(--site-color-paper);
    font-size: var(--type-body-sm-size); line-height: var(--type-line-body); overflow-wrap: anywhere;
  }
  .site-image-recovery p { margin: 0; }
  .site-image-original { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; }
  .site-image-original[hidden], .site-image-recovery[hidden], .site-image-loading[hidden] { display: none; }
  @media (max-width: 639px) { .site-image-stage img { max-width: calc(100vw - 32px); } }
}
