/*
Theme Name: RouDuSu Clinic
Theme URI: http://www.roudusu.com/
Author: Codex
Description: A bespoke premium classic WordPress theme for roudusu.com.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
Text Domain: roudusu-clinic
*/

:root {
  --ink: #1d2028;
  --paper: #fbf8f9;
  --soft: #eef3f7;
  --accent: #bd486d;
  --accent-2: #277b8f;
  --dark: #111927;
  --line: rgba(29,32,40,.14);
  --header: rgba(251,248,249,.9);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
.header-inner {
  width: min(var(--max), calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-weight: 850;
  font-size: 30px;
  white-space: nowrap;
}
.site-nav ul,
.footer-nav ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  font-size: 14px;
  font-weight: 700;
  opacity: .78;
}
.site-nav a:hover,
.footer-nav a:hover { opacity: 1; color: var(--accent); }
.hero {
  position: relative;
  min-height: calc(92svh - 72px);
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.68), rgba(0,0,0,.22) 52%, rgba(0,0,0,.08));
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: min(720px, calc(100% - 32px));
  padding: clamp(72px, 10vw, 140px) 0;
  margin-left: max(16px, calc((100vw - var(--max)) / 2));
  color: #fff;
}
.kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 24px;
  font-size: clamp(38px, 4.6vw, 60px);
  line-height: 1.18;
  letter-spacing: .01em;
  max-width: 18em;
  text-wrap: balance;
}
h2 {
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.24;
  letter-spacing: .01em;
  margin-bottom: 20px;
  text-wrap: balance;
}
h3 {
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: .01em;
  margin-bottom: 12px;
}
.hero-lede {
  width: min(620px, 100%);
  font-size: 22px;
  line-height: 1.6;
  margin-bottom: 32px;
}
.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 8px;
  border: 1px solid currentColor;
  font-weight: 850;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.button.secondary {
  color: inherit;
  background: transparent;
}
.section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(56px, 7vw, 96px) 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
  margin-bottom: 32px;
}
.split-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr);
  gap: clamp(32px, 7vw, 96px);
  align-items: start;
}
.split-feature > p {
  font-size: 22px;
  margin: 0;
}
.metric-rail,
.signal-strip,
.table-strip {
  width: min(var(--max), calc(100% - 32px));
  margin: -46px auto 0;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--paper);
}
.metric-rail div,
.signal-strip div,
.table-strip div {
  padding: 24px;
  border-right: 1px solid var(--line);
}
.metric-rail div:last-child,
.signal-strip div:last-child,
.table-strip div:last-child { border-right: 0; }
.metric-rail strong,
.signal-strip strong,
.table-strip strong {
  display: block;
  font-size: 38px;
  line-height: 1;
}
.metric-rail span,
.signal-strip span,
.table-strip span {
  display: block;
  margin-top: 8px;
  opacity: .72;
}
.path-grid,
.topic-matrix,
.clinic-grid,
.link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.path-grid a,
.topic-matrix a,
.clinic-grid a,
.link-grid a,
.post-card a {
  display: block;
  height: 100%;
  background: var(--paper);
  padding: clamp(24px, 4vw, 40px);
  transition: transform .22s ease, background .22s ease, color .22s ease;
}
.path-grid a:hover,
.topic-matrix a:hover,
.clinic-grid a:hover,
.link-grid a:hover,
.post-card a:hover {
  background: var(--dark);
  color: #fff;
}
.path-grid span,
.topic-matrix span,
.clinic-grid span,
.link-grid span,
.post-card span {
  display: block;
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.post-card h2,
.post-card h3 { font-size: 20px; line-height: 1.4; }
.final-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  background: linear-gradient(180deg, var(--paper), var(--soft));
}
.final-band p { margin-left: auto; margin-right: auto; }
.final-band p {
  width: min(760px, 100%);
  font-size: 22px;
}
.site-footer {
  background: var(--dark);
  color: #fff;
  padding: 56px 0;
}
.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 32px;
}
.footer-inner p {
  max-width: 560px;
  margin: 8px 0 0;
  opacity: .72;
}
.article-shell,
.archive-shell,
.surface-shell {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(70px, 9vw, 124px) 0;
}
.archive-shell,
.surface-shell { width: min(var(--max), calc(100% - 32px)); }
.entry-header,
.archive-head {
  margin-bottom: clamp(32px, 6vw, 72px);
}
.entry-header h1,
.archive-head h1 {
  color: var(--ink);
  max-width: 22em;
  text-wrap: balance;
}
.entry-content {
  font-size: 18px;
}
.entry-content a {
  color: var(--accent-2);
  text-decoration: underline;
}
.entry-content img {
  height: auto;
}
.surface-atlas,
.surface-clinic,
.surface-industrial,
.single-grid,
.paper-columns,
.clinic-reading,
.industrial-reading,
.recipe-single-layout,
.source-single-layout,
.protocol-grid,
.recipe-layout,
.spec-layout,
.evidence-layout {
  display: grid;
  grid-template-columns: minmax(180px, .36fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.surface-aside,
.surface-nav,
.archive-side,
.terminal-rail,
.evidence-layout aside,
.protocol-grid aside,
.recipe-layout aside,
.spec-layout aside,
.paper-columns aside,
.clinic-reading aside,
.industrial-reading aside,
.recipe-single-layout aside,
.source-single-layout aside {
  border-top: 2px solid var(--accent);
  padding-top: 18px;
  color: var(--ink);
}
.surface-aside ul,
.surface-aside li {
  list-style: none;
  margin: 0;
  padding: 0;
}
.surface-aside li,
.surface-nav a,
.terminal-rail span,
.recipe-layout aside span,
.spec-layout aside span {
  display: block;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.surface-aside strong,
.surface-nav span {
  display: block;
  color: var(--accent);
}
.surface-nav {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.research-paper,
.lab-doc,
.clinic-protocol,
.recipe-sheet,
.source-record,
.spec-sheet {
  max-width: 980px;
}
.record-frame {
  border-left: 4px solid var(--accent);
  padding-left: clamp(24px, 4vw, 48px);
}
.record-frame footer {
  margin-top: 36px;
  color: var(--accent);
  font-weight: 800;
}
.tool-list article,
.lab-log-list article,
.protocol-list article,
.process-list article {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.evidence-list,
.record-list {
  margin: 0;
  padding-left: 1.2em;
}
.evidence-list li,
.record-list li {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.record-list small {
  display: block;
  margin-top: 8px;
  opacity: .72;
}
.archive-table table {
  width: 100%;
  border-collapse: collapse;
}
.archive-table th,
.archive-table td {
  text-align: left;
  vertical-align: top;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.archive-table th {
  width: 120px;
  color: var(--accent-2);
}
.log-stamp {
  overflow: auto;
  padding: 16px;
  background: var(--dark);
  color: var(--accent);
}
.post-nav {
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.pagination {
  margin-top: 36px;
}
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 860px) {
  .admin-bar .site-header { top: 0; }
  .header-inner {
    min-height: 64px;
    align-items: flex-start;
    padding: 14px 0;
    flex-direction: column;
  }
  .site-nav ul { gap: 12px; }
  .site-nav a { font-size: 13px; }
  .brand { font-size: 24px; }
  .hero {
    min-height: calc(88svh - 64px);
  }
  .hero-copy {
    padding: 54px 0 70px;
    margin-left: 16px;
    width: calc(100% - 32px);
    text-shadow: 0 2px 18px rgba(0,0,0,.36);
  }
  .hero-img { filter: brightness(.72) saturate(.95); }
  .hero-shade { background: rgba(0,0,0,.55); }
  h1 { font-size: clamp(30px, 8vw, 40px); }
  h2 { font-size: clamp(24px, 6vw, 32px); }
  h3 { font-size: 20px; }
  .hero-lede { font-size: 18px; }
  .split-feature > p { font-size: 18px; }
  .metric-rail strong,
  .signal-strip strong,
  .table-strip strong { font-size: 30px; }
  .final-band p { font-size: 18px; }
  .site-nav li:nth-child(n+6) { display: none; }
  .split-feature,
  .path-grid,
  .topic-matrix,
  .clinic-grid,
  .link-grid,
  .post-grid,
  .metric-rail,
  .signal-strip,
  .table-strip {
    grid-template-columns: 1fr;
  }
  .metric-rail,
  .signal-strip,
  .table-strip { margin-top: 0; }
  .metric-rail div,
  .signal-strip div,
  .table-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .footer-inner,
  .section-head,
  .post-nav,
  .surface-atlas,
  .surface-clinic,
  .surface-industrial,
  .single-grid,
  .paper-columns,
  .clinic-reading,
  .industrial-reading,
  .recipe-single-layout,
  .source-single-layout,
  .protocol-grid,
  .recipe-layout,
  .spec-layout,
  .evidence-layout,
  .tool-list article,
  .lab-log-list article,
  .protocol-list article,
  .process-list article,
  .surface-nav {
    grid-template-columns: 1fr;
  }
  .surface-nav {
    grid-column: auto;
  }
  .footer-inner,
  .section-head,
  .post-nav {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .brand { font-size: 22px; }
  .site-nav li:nth-child(n+5) { display: none; }
}
.layout-clinic .clinic-hero {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, .96fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
}
.layout-clinic .clinic-copy {
  color: var(--ink);
}
.layout-clinic .clinic-copy h1 { max-width: 12em; }
.layout-clinic .clinic-copy .hero-lede { color: rgba(29,32,40,.76); }
.layout-clinic .clinic-figure {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 440px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(120% 90% at 85% 8%, rgba(189, 72, 109, .08), transparent 55%),
    linear-gradient(160deg, var(--soft), #fff 70%);
  box-shadow: 0 24px 60px -36px rgba(29, 32, 40, .35);
  padding: clamp(24px, 3.5vw, 44px);
}
.verify-card {
  width: min(400px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 44px -24px rgba(29, 32, 40, .3);
  overflow: hidden;
}
.verify-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, var(--paper));
}
.verify-head strong { font-size: 16px; }
.verify-head em {
  margin-left: auto;
  font-style: normal;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .16em;
  color: var(--accent-2);
}
.verify-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(189, 72, 109, .15);
}
.verify-rows {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}
.verify-rows li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 20px;
}
.verify-rows li + li { border-top: 1px dashed var(--line); }
.verify-rows i {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  margin-top: 2px;
  border-radius: 50%;
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  background: var(--accent-2);
}
.verify-rows strong { display: block; font-size: 15px; }
.verify-rows span { display: block; margin-top: 3px; font-size: 13px; line-height: 1.55; opacity: .72; }
.verify-foot {
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .04em;
}
.clinic-list {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  color: var(--ink);
}
.clinic-list ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper);
}
.clinic-list li {
  padding: 22px 26px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, var(--paper));
}
.clinic-list li:last-child { border-right: 0; }
.clinic-list strong {
  display: block;
  font-size: 24px;
  line-height: 1;
  color: var(--accent);
}
.clinic-list span { display: block; margin-top: 10px; opacity: .78; font-size: 15px; }
.layout-clinic .clinic-grid a:nth-child(3) { background: var(--soft); }
@media (max-width: 860px) {
  .layout-clinic .clinic-hero { grid-template-columns: 1fr; min-height: 0; padding-top: 42px; }
  .layout-clinic .clinic-figure { min-height: 0; }
  .clinic-list ol { grid-template-columns: 1fr; }
  .clinic-list li { border-right: 0; border-bottom: 1px solid var(--line); }
  .clinic-list li:last-child { border-bottom: 0; }
}
