/* =========================================================================
   Soouo · reset + base elements + typography
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--soouo-bg);
  color: var(--soouo-text-2);
  font-family: var(--soouo-font-body);
  font-size: var(--soouo-fs-base);
  line-height: var(--soouo-lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .3s var(--soouo-ease), color .3s var(--soouo-ease);
}

img, svg, canvas, video { max-width: 100%; height: auto; display: block; }
iframe, embed, object { max-width: 100%; }

/* Prevent DOI/URL/table/plugin content from forcing the whole page wider. */
.page, .main_entry, .pkp_block, .obj_article_details, .soouo-card { min-width: 0; overflow-wrap: anywhere; }
.page table, .main_entry table, .pkp_block table { display: block; max-width: 100%; overflow-x: auto; }
.page pre, .main_entry pre { max-width: 100%; overflow-x: auto; }
a { color: var(--soouo-hover); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--soouo-ring); border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--soouo-font-heading);
  color: var(--soouo-text);
  line-height: var(--soouo-lh-tight);
  font-weight: 700;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: var(--soouo-fs-3xl); }
h2 { font-size: var(--soouo-fs-2xl); }
h3 { font-size: var(--soouo-fs-xl); }
h4 { font-size: var(--soouo-fs-lg); }
p { margin: 0 0 1em; font-size: var(--soouo-fs-base); }
code, kbd, samp { font-family: var(--soouo-font-mono); font-size: .9em; }
hr { border: 0; border-top: 1px solid var(--soouo-border); margin: 2rem 0; }

::selection { background: var(--soouo-accent); color: var(--soouo-on-accent); }

/* ---- Material Symbols ---- */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'opsz' 24;
  vertical-align: middle;
  user-select: none;
}

/* ---- helpers ---- */
.soouo-sr-only,
.pkp_screen_reader {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }

.soouo-shell { width: min(var(--soouo-max), 100% - var(--soouo-gutter) * 2); margin-inline: auto; }
.soouo-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--soouo-accent);
  margin-bottom: .6rem;
}
.soouo-heading-rule { display: flex; align-items: center; gap: 14px; margin-bottom: 1.4rem; }
.soouo-heading-rule h2 { margin: 0; }
.soouo-heading-rule::after { content: ""; flex: 1; height: 1px; background: var(--soouo-border); }

/* Skip links */
.cmp_skip_to_content a { position: absolute; left: -999px; }
.cmp_skip_to_content a:focus {
  left: 16px; top: 16px; z-index: 100000;
  padding: 10px 16px; background: var(--soouo-primary); color: #fff;
  border-radius: var(--soouo-radius-sm);
}
