:root {
  --bg: #F8F9FA;
  --surface: #FFFFFF;
  --line: #E9ECEF;
  --line-strong: #DDE2E6;
  --text: #495057;
  --heading: #212529;
  --muted: #6C757D;
  --emerald: #087F5B;
  --emerald-dark: #056344;
  --emerald-soft: #EAF7F1;
  --ruby: #A61E4D;
  --ruby-soft: #FFF0F5;
  --shadow: 0 10px 30px rgba(33, 37, 41, .07), 0 2px 8px rgba(33, 37, 41, .04);
  --shadow-hover: 0 18px 42px rgba(33, 37, 41, .11), 0 6px 16px rgba(33, 37, 41, .06);
  --radius: 18px;
}

* { box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a,
button,
.review-card,
.author-card {
  transition: transform .3s ease, box-shadow .3s ease, color .3s ease, background-color .3s ease, border-color .3s ease, opacity .3s ease;
}

a { color: var(--emerald-dark); }
a:hover { color: var(--ruby); }

img { max-width: 100%; height: auto; }

.page-grid {
  display: grid;
  gap: 26px;
  padding-bottom: 54px;
}

.content-card,
.reviews-section,
.author-section {
  min-width: 0;
}

.content-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4.2vw, 48px);
}

.content-card > :first-child { margin-top: 0; }
.content-card > :last-child { margin-bottom: 0; }

.content-card h2,
.content-card h3,
.reviews-section h2,
.review-card h3,
.author-card h2,
.site-footer h2 {
  color: var(--heading);
  font-weight: 700;
  letter-spacing: -.025em;
}

.content-card h2 {
  margin: clamp(38px, 6vw, 64px) 0 18px;
  font-size: clamp(1.55rem, 5.7vw, 2.35rem);
  line-height: 1.16;
}

.content-card h3 {
  margin: 30px 0 13px;
  font-size: clamp(1.2rem, 4.5vw, 1.55rem);
  line-height: 1.24;
}

.content-card p { margin: 0 0 17px; }

.content-card ul,
.content-card ol {
  margin: 0 0 22px;
  padding-left: 1.35rem;
}

.content-card li { margin: 8px 0; }
.content-card li::marker { color: var(--emerald); font-weight: 700; }

.content-card table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 24px 0 28px;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  border-spacing: 0;
  background: var(--surface);
  box-shadow: 0 7px 20px rgba(33, 37, 41, .045);
  -webkit-overflow-scrolling: touch;
}

.content-card tbody {
  display: table;
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.content-card td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.content-card tr:last-child td { border-bottom: 0; }
.content-card tr:first-child td { background: #F3F6F5; color: var(--heading); font-weight: 700; }
.content-card td p { margin: 0; }

.section-heading { margin-bottom: 17px; }
.eyebrow {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--emerald);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.section-heading h2,
.author-card h2 {
  margin: 0;
  font-size: clamp(1.45rem, 5vw, 2.05rem);
  line-height: 1.18;
}

.review-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 20px;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.review-card h3 {
  margin: 10px 0 9px;
  font-size: 1.05rem;
  line-height: 1.28;
}

.review-card p { margin: 0; font-size: .95rem; }
.review-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--emerald-soft);
  color: var(--emerald-dark);
  font-size: .74rem;
  font-weight: 800;
}
.review-tag--ruby { background: var(--ruby-soft); color: var(--ruby); }

.author-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 18px;
  align-items: start;
  padding: clamp(20px, 4vw, 30px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.author-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.author-photo-link { display: block; border-radius: 16px; }
.author-photo {
  width: 76px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #EEF2F1;
}

.author-card h2 a { color: inherit; text-decoration: none; }
.author-role { margin: 5px 0 10px; color: var(--emerald-dark); font-weight: 700; font-size: .9rem; }
.author-copy > p:last-child { margin-bottom: 0; }

.site-footer {
  background: #111815;
  color: #C9D0CC;
  padding: 46px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.site-footer h2 {
  margin: 0 0 13px;
  color: #FFFFFF;
  font-size: 1rem;
  letter-spacing: 0;
}

.footer-links { display: grid; align-content: start; gap: 8px; }
.footer-links a { width: fit-content; color: #DCE3DF; text-decoration: none; font-size: .94rem; }
.footer-links a:hover { color: #FFFFFF; transform: translateX(2px); }

.footer-compliance { align-self: start; }
.adm-logo {
  display: block;
  width: 150px;
  height: auto;
  aspect-ratio: 500 / 228;
  object-fit: contain;
  padding: 8px;
  background: #FFFFFF;
  border-radius: 12px;
}
.adm-context { max-width: 420px; margin: 12px 0 0; font-size: .8rem; line-height: 1.55; color: #AAB5AF; }

.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.09);
}
.footer-bottom p { margin: 0 0 10px; }
.responsible-warning { color: #FFFFFF; font-weight: 700; }
.license-note { font-size: .84rem; line-height: 1.58; color: #B9C2BD; }
.copyright { font-size: .8rem; color: #919D96; }

@media (min-width: 700px) {
  .page-grid { gap: 34px; padding-bottom: 72px; }
  .review-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .author-card { grid-template-columns: 110px 1fr; gap: 24px; align-items: center; }
  .author-photo { width: 110px; border-radius: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-compliance { grid-column: 1 / -1; }
}

@media (min-width: 980px) {
  .page-grid { gap: 40px; }
  .content-card { border-radius: 22px; }
  .footer-grid { grid-template-columns: .9fr .9fr 1.2fr; }
  .footer-compliance { grid-column: auto; }
  .adm-logo { width: 180px; }
}

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