:root {
  --bg: #f7f8f6;
  --card: #ffffff;
  --text: #1f2933;
  --muted: #5f6c7b;
  --soft: #edf5f2;
  --accent: #1f7a65;
  --accent-dark: #145645;
  --border: #dfe7e3;
  --warning: #fff8e6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

a {
  color: inherit;
}

.topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-inner {
  max-width: 1220px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.sr-only {
  width: 1px;
  height: 1px;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  align-items: center;
  background: var(--soft);
  border: 1px solid #cfe3db;
  border-radius: 12px;
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  margin-left: auto;
}

.nav-toggle-line {
  width: 20px;
  height: 2px;
  background: var(--accent-dark);
  border-radius: 999px;
  display: block;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f7a65, #9fd8c7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 15px;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: block;
  flex: 0 0 34px;
}

.site-nav {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 2px;
  justify-content: center;
  font-size: clamp(11px, 0.92vw, 13px);
  min-width: 0;
}

.site-nav a,
.site-nav summary {
  border-radius: 999px;
  color: var(--accent-dark);
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  padding: 8px clamp(5px, 0.72vw, 9px);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.site-nav summary::-webkit-details-marker {
  display: none;
}

.site-nav summary::after {
  content: "▾";
  font-size: 10px;
  margin-left: 6px;
}

.site-nav a:hover,
.site-nav summary:hover {
  background: var(--soft);
  color: var(--accent);
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 16px 35px rgba(31, 41, 51, 0.12);
  display: none;
  left: 0;
  min-width: 260px;
  padding: 8px;
  position: absolute;
  top: 100%;
  z-index: 20;
}

.dropdown-menu a {
  border-radius: 10px;
  display: block;
  padding: 9px 10px;
  white-space: nowrap;
}

.nav-dropdown[open] .dropdown-menu {
  display: grid;
  gap: 2px;
}

.topbar-note {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.hero {
  background:
    linear-gradient(120deg, rgba(20, 86, 69, 0.92), rgba(31, 122, 101, 0.82)),
    url("assets/dental-hero.webp");
  background-size: cover;
  background-position: center;
  color: white;
  padding: 76px 20px 66px;
}

.hero-inner {
  max-width: 980px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  color: #eefcf8;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  margin-bottom: 18px;
}

h1 {
  max-width: 860px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
  margin: 0 0 20px;
  letter-spacing: -0.055em;
}

.hero-subtitle {
  max-width: 740px;
  font-size: clamp(18px, 2vw, 22px);
  color: #e9f6f1;
  margin: 0 0 28px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
  color: #e9f6f1;
}

.hero-meta span {
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.12);
  padding: 8px 12px;
  border-radius: 999px;
}

main {
  max-width: 1120px;
  margin: -30px auto 0;
  padding: 0 20px 60px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.page-main {
  display: block;
  max-width: 900px;
}

article, aside, .content-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 14px 40px rgba(31, 41, 51, 0.06);
}

article, .content-card {
  padding: clamp(24px, 4vw, 44px);
}

aside {
  padding: 22px;
  position: sticky;
  top: 86px;
}

.author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 14px;
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--accent-dark);
}

h2 {
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.18;
  margin: 38px 0 14px;
  letter-spacing: -0.035em;
}

h3 {
  font-size: 21px;
  margin: 28px 0 10px;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 18px;
  color: #2d3945;
}

.lead {
  font-size: 20px;
  color: #25313c;
}

.note-box, .disclaimer-box {
  border-radius: 18px;
  padding: 20px;
  margin: 26px 0;
}

.note-box {
  background: var(--soft);
  border: 1px solid #cfe3db;
}

.disclaimer-box {
  background: #fbfcfb;
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 26px;
  display: grid;
  gap: 12px;
}

.check-list li {
  background: #fbfcfb;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 15px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.check-list li::before {
  content: "✓";
  color: white;
  background: var(--accent);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  margin-top: 2px;
}

.feature-image {
  margin: 28px 0;
}

.text-image-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 250px);
  gap: 22px;
  align-items: start;
  margin: 22px 0 28px;
}

.text-wrap-section {
  margin: 22px 0 28px;
}

.text-wrap-section--tight {
  margin-bottom: 10px;
}

.text-wrap-section::after {
  clear: both;
  content: "";
  display: table;
}

.feature-image--side {
  margin: 0;
}

.feature-image--float {
  float: right;
  margin: 4px 0 14px 22px;
  max-width: 250px;
  width: 38%;
}

.feature-image img {
  display: block;
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--border);
}

.feature-image--compact {
  margin-left: auto;
  margin-right: auto;
  max-width: 560px;
}

.feature-image figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0;
}

.product-callout {
  background: #fbfcfb;
  border: 1px solid var(--border);
  border-radius: 18px;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin: 28px 0;
  padding: 18px;
}

.product-callout img {
  display: block;
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.product-callout-button {
  font-size: 13px;
  margin: 12px 0 0;
  min-height: 44px;
  padding: 10px 14px;
  width: 100%;
}

.product-callout p:last-child {
  margin-bottom: 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.blog-card {
  background: #fbfcfb;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}

.blog-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.blog-card-content {
  padding: 18px;
}

.blog-card h2 {
  font-size: 22px;
  margin: 0 0 8px;
}

.blog-card a {
  color: var(--accent-dark);
  text-decoration: none;
}

.affiliate-text-link {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

.affiliate-text-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.soft-mention {
  background: #fbfcfb;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--muted);
  font-size: 14px;
  margin: 30px 0 0;
  padding: 16px;
}

.source-section {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  margin: 28px 0 24px;
  padding-top: 16px;
}

.source-section h2 {
  color: var(--text);
  font-size: 18px;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.source-intro {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
}

.citation {
  display: inline-block;
  font-size: 0.72em;
  font-weight: 800;
  line-height: 0;
  margin-left: 3px;
  vertical-align: super;
}

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

.citation a::before {
  content: "[";
}

.citation a::after {
  content: "]";
}

.citation a:hover {
  color: var(--accent);
}

.source-list {
  margin: 0;
  padding-left: 20px;
}

.source-list li {
  margin-bottom: 7px;
  padding-left: 2px;
}

.source-list a {
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: none;
}

.source-list a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.source-list span {
  color: var(--muted);
  display: block;
  font-size: 12px;
}

.cta-panel {
  background: linear-gradient(135deg, #f1faf6, #ffffff);
  border: 1px solid #cfe3db;
  border-radius: 22px;
  padding: 26px;
  margin: 34px 0;
  text-align: center;
}

.cta-panel h3 {
  margin-top: 0;
  font-size: 25px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 360px;
  min-height: 54px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-weight: 800;
  text-decoration: none;
  padding: 14px 24px;
  margin: 10px auto 12px;
  box-shadow: 0 12px 24px rgba(31, 122, 101, 0.22);
  transition: transform 0.15s ease, background 0.15s ease;
}

.button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.small {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 0;
}

.sidebar-card + .sidebar-card {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.sidebar-card h3 {
  margin-top: 0;
  font-size: 18px;
}

.sidebar-list {
  padding-left: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.sidebar-list li {
  margin-bottom: 9px;
}

.rating {
  display: flex;
  gap: 3px;
  color: #d49b16;
  font-size: 18px;
  margin: 4px 0 8px;
}

.quote {
  font-size: 14px;
  color: #42505c;
  border-left: 3px solid var(--accent);
  padding-left: 13px;
  margin: 14px 0 0;
}

footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px 50px;
  color: var(--muted);
  font-size: 13px;
}

.footer-card {
  border-top: 1px solid var(--border);
  padding-top: 22px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
}

.footer-links a {
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 900px) {
  main {
    grid-template-columns: 1fr;
  }

  aside {
    position: static;
  }

  .topbar-inner {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .topbar-note {
    display: none;
  }

  .site-nav {
    align-items: stretch;
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    order: 3;
    width: 100%;
  }

  .topbar.nav-open .site-nav {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav a,
  .site-nav summary {
    display: block;
    padding: 11px 0;
  }

  .dropdown-menu {
    background: var(--soft);
    box-shadow: none;
    margin: 4px 0 6px;
    min-width: 0;
    padding: 8px 12px;
    position: static;
  }

  .image-grid {
    grid-template-columns: 1fr;
  }

  .text-image-row {
    grid-template-columns: 1fr;
    margin: 28px 0;
  }

  .feature-image--float {
    float: none;
    margin: 0 0 18px;
    max-width: none;
    width: 100%;
  }

  .product-callout {
    grid-template-columns: 1fr;
  }

  .product-callout img {
    max-width: 260px;
  }

  .blog-grid,
  .blog-grid--three,
  .resource-grid {
    grid-template-columns: 1fr;
  }
}


/* Editorial expansion */
.breadcrumb {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}

.breadcrumb a,
.text-link {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

.breadcrumb a:hover,
.text-link:hover {
  color: var(--accent);
}

.editor-note,
.resource-card {
  background: #fbfcfb;
  border: 1px solid var(--border);
  border-radius: 18px;
  margin: 24px 0;
  padding: 18px;
}

.editor-note p:last-child,
.resource-card p:last-child {
  margin-bottom: 0;
}

.inline-link-list,
.link-list {
  margin: 12px 0 0;
  padding-left: 20px;
}

.inline-link-list li,
.link-list li {
  margin-bottom: 8px;
}

.inline-link-list a,
.link-list a {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

.inline-link-list a:hover,
.link-list a:hover {
  color: var(--accent);
}

.resource-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
}

.resource-card h2 {
  font-size: 24px;
  margin-top: 0;
}

.glossary-list {
  margin: 14px 0 0;
}

.glossary-list dt {
  color: var(--accent-dark);
  font-weight: 800;
  margin-top: 12px;
}

.glossary-list dd {
  color: var(--muted);
  margin: 2px 0 0;
}

.wide-page {
  max-width: 1180px;
}

.blog-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.premium-card {
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.premium-card:hover {
  border-color: #cfe3db;
  box-shadow: 0 14px 30px rgba(31, 41, 51, 0.08);
  transform: translateY(-2px);
}

.card-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

.card-meta span,
.tag-row span {
  background: var(--soft);
  border: 1px solid #cfe3db;
  border-radius: 999px;
  color: var(--accent-dark);
  padding: 5px 9px;
}

.tag-row {
  margin: 22px 0 6px;
}

@media (max-width: 1100px) {
  .topbar-note {
    display: none;
  }
}

@media (max-width: 900px) {
  .blog-grid,
  .blog-grid--three,
  .resource-grid {
    grid-template-columns: 1fr;
  }
}
