:root {
  --font-ui: system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: Consolas, "Liberation Mono", Menlo, Monaco, monospace;
  --font-italic: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;

  --site-header-top: 18px;
  --site-header-min-height: 140px;
  --sidebar-gap: 18px;
  --sidebar-top: calc(
    var(--site-header-top) +
    var(--site-header-min-height) +
    var(--sidebar-gap)
  );

  --bg: #f1f4f6;
  --bg-top: #f8fafc;
  --bg-radial: rgba(0, 0, 0, 0.04);

  --surface: #ffffff;
  --surface-2: #f7f7f8;
  --surface-header: rgba(255, 255, 255, 1.1);

  --text: #1f2937;
  --muted: #6b7280;

  --border: #c4a3a3;
  --border-soft: rgba(196, 163, 163, 0.4);
  --header-border: rgba(150, 80, 80, 0.78);
  --header-edge-highlight: rgba(255, 255, 255, 0.35);

  --accent: #b91c1c;
  --accent-strong: #9f1d1d;
  --accent-soft: #fee2e2;

  --nav-hover-bg: #fde8e8;

  --hero-grad-top: #ffffff;
  --hero-grad-bottom: #f8eaea;

  --blockquote-bg: #fef2f2;
  --blockquote-text: #4b1c1c;

  --callout-bg: var(--accent-soft);
  --callout-text: #4b1c1c;

  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

  --max: 980px;
  --content: 780px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111318;
    --bg-top: #161a22;
    --bg-radial: rgba(255, 255, 255, 0.05);

    --surface: #1a1f27;
    --surface-2: #222833;
    --surface-header: rgba(26, 31, 39, 0.68);

    --text: #e5e7eb;
    --muted: #a7b0bd;

    --border: #6b4b55;
    --border-soft: rgba(180, 120, 135, 0.35);
    --header-border: rgba(170, 110, 110, 0.62);
    --header-edge-highlight: rgba(255, 255, 255, 0.08);

    --accent: #ef4444;
    --accent-strong: #cc5555;
    --accent-soft: #3a2025;

    --nav-hover-bg: #332126;

    --hero-grad-top: #1d232c;
    --hero-grad-bottom: #24181b;

    --blockquote-bg: #24181b;
    --blockquote-text: #f3d6d6;

    --callout-bg: #2d1d21;
    --callout-text: #f3d6d6;

    --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--text);
  background: var(--bg);
  line-height: 1.58;
  letter-spacing: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px;
}

.site-header {
  position: sticky;
  top: var(--site-header-top);
  z-index: 20;
  min-height: var(--site-header-min-height);
  border: 1px solid var(--header-border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 12px 20px;
  isolation: isolate;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: -30px -1px;
  pointer-events: none;
  z-index: -1;
  border-radius: 10px;
  background:
    linear-gradient(to bottom,
      #f1f4f600 0px,
      #eceff2f1 30px,
      #ffffffd8 31px,
      #ffffffd8 calc(100% - 31px),
      #eceff2f1 calc(100% - 30px),
      #f1f4f600 100%
    );
}

/* crisp visible border and corner overlay */
.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  pointer-events: none;
  z-index: 2;
  box-shadow:
    inset 0 0 0 1px var(--header-border),
    inset 0 1px 0 0 var(--header-edge-highlight),
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
  .site-header::before {
    background:
      linear-gradient(to bottom,
        #11131800 0px,
        #111318f2 30px,
        #000000bf 31px,
        #000000bf calc(100% - 31px),
        #111318f2 calc(100% - 30px),
        #11131800 100%
      );
  }

  .site-header::after {
    box-shadow:
      inset 0 0 0 1px var(--header-border),
      inset 0 1px 0 0 var(--header-edge-highlight),
      inset 0 -1px 0 0 rgba(0, 0, 0, 0.18);
  }
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.brand {
  min-width: 260px;
  padding-left: 75px;
  background: url(https://cp.omd3.com/img/logo.gif);
  background-position: left top;
  background-repeat: no-repeat;
}

.site-title {
  margin: 0;
  font-size: 1.85rem;
  line-height: 1.08;
  letter-spacing: 0;
  color: var(--accent-strong);
  font-family: var(--font-ui);
  font-weight: 700;
}

.site-tagline {
  margin: 3px 0;
  color: var(--accent-strong);
  font-size: 1.05rem;
  font-family: var(--font-italic);
  font-style: italic;
}

.top-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.92rem;
  font-family: var(--font-ui);
  color: var(--muted);
}

.top-links a {
  color: var(--muted);
}

.main-nav {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-content: flex-start;
}

.main-nav a {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 0.84rem;
  line-height: 1.25;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.main-nav a:hover {
  text-decoration: none;
  background: var(--nav-hover-bg);
  border-color: var(--accent);
  color: var(--accent-strong);
}

.main-nav a.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 20px;
  margin: 20px 0 0 0;
  align-items: stretch;
}

.hero-panel,
.note-panel {
  background: linear-gradient(180deg, var(--hero-grad-top) 0%, var(--hero-grad-bottom) 100%);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  font-family: var(--font-ui);
}

.hero-panel {
  padding: 24px 24px 20px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-ui);
  font-weight: 600;
}

.hero h2 {
  margin: 0 0 10px;
  font-size: 2rem;
  line-height: 1.12;
  max-width: none;
  color: var(--accent-strong);
  font-family: var(--font-ui);
  font-weight: 700;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  max-width: none;
  font-family: var(--font-ui);
}

.note-panel {
  padding: 15px 16px;
}

.note-panel h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  line-height: 1.25;
  color: var(--accent-strong);
  font-family: var(--font-ui);
  font-weight: 700;
}

.note-panel p,
.note-panel li {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.45;
  font-family: var(--font-ui);
}

.note-panel p + p {
  margin-top: 12px;
}

.note-panel ul {
  margin: 0;
  padding-left: 18px;
}

.layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 20px;
  margin: 20px 0 0 0;
  align-items: start;
}

.layout--no-sidebar {
  grid-template-columns: minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: var(--sidebar-top);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 18px;
  font-family: var(--font-ui);
}

.sidebar h3 {
  margin: 0 0 12px;
  font-size: 0.93rem;
  letter-spacing: 0.02em;
  color: var(--accent-strong);
  font-family: var(--font-ui);
  font-weight: 700;
}

.sidebar nav {
  display: grid;
  gap: 8px;
}

.sidebar nav a {
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
  border: 1px solid var(--border-soft);
  font-family: var(--font-ui);
}

.sidebar nav a:hover,
.sidebar nav a.active {
  background: var(--accent-soft);
  color: var(--accent-strong);
  text-decoration: none;
  border-color: var(--accent);
}

.sidebar .small {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  font-family: var(--font-ui);
}

.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 24px 28px;
}

.article {
  max-width: var(--content);
  font-family: var(--font-ui);
}

/* Homepage: one reading column inside full-width cards. */
.home-content {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.home-article {
  max-width: 75ch;
}

.service-list section + section {
  margin-top: 20px;
}

.service-list h2 {
  margin: 0 0 5px;
  font-size: 1.14rem;
}

.service-list p {
  margin-bottom: 0;
}

.article .home-section-heading {
  margin: 0 0 16px;
  font-size: 1.55rem;
  line-height: 1.12;
}

.article h1 {
  margin: 0 0 10px;
  font-size: 1.9rem;
  line-height: 1.12;
  letter-spacing: 0;
  color: var(--accent-strong);
  font-family: var(--font-ui);
  font-weight: 700;
}

.article .meta {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  font-family: var(--font-ui);
}

.article h2 {
  margin: 30px 0 10px;
  font-size: 1.28rem;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--accent-strong);
  font-family: var(--font-ui);
  font-weight: 700;
}

.article p {
  margin: 0 0 16px;
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.68;
}

.article blockquote {
  margin: 22px 0;
  padding: 14px 18px;
  border-left: 4px solid var(--accent);
  background: var(--blockquote-bg);
  color: var(--blockquote-text);
  font-style: normal;
  font-family: var(--font-ui);
  font-size: 0.98rem;
  line-height: 1.62;
}

.article ul {
  margin: 0 0 18px;
  padding-left: 24px;
}

.article li {
  margin-bottom: 8px;
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.62;
}

.callout {
  margin: 20px 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--callout-bg);
  border: 1px solid var(--border);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--callout-text);
}

.site-footer {
  margin: 28px 0 18px;
  padding: 18px 8px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  font-family: var(--font-ui);
}

code,
pre {
  font-family: var(--font-mono);
}

@media (max-width: 920px) {
  .hero,
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 680px) {

  .site-wrap {
    padding: 14px;
  }

  .site-header,
  .hero-panel,
  .note-panel,
  .content-card,
  .sidebar {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero h2,
  .article h1 {
    font-size: 1.6rem;
  }

  .main-nav {
    gap: 8px;
  }

  .main-nav a {
    width: 100%;
    text-align: center;
  }

  .content-card {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .article p,
  .article li {
    font-size: 0.98rem;
  }
}

/* The homepage follows the same outer width as the header and hero. */
.layout--no-sidebar > .home-content {
  width: 100%;
  display: block;
}
.layout--no-sidebar .home-article {
  max-width: none;
}
.home-service-points {
  margin-top: 6px;
  margin-bottom: 22px;
}
.home-service-points li {
    padding-left: 2px;
    margin-bottom: 2px;
}
/* Additional content pages; homepage layout and hero styling remain unchanged. */
.detail-article { max-width: none; }
.detail-article h2 { margin-top: 28px; }
.detail-article h3 { margin: 22px 0 8px; color: var(--accent-strong); font-size: 1.1rem; }
.detail-article p, .detail-article li { overflow-wrap: anywhere; }
.detail-article .policy-date { color: var(--muted); font-size: .92rem; }
.site-footer div + div { margin-top: 8px; }
.site-footer a { color: var(--accent-strong); }
