/* DentaBiome Guide: components shared by the inner pages.
   Loaded after style.css; uses its design tokens. */

.brand__sub { font-weight: 500; color: var(--aqua); margin-left: 0.28em; font-size: 0.82em; letter-spacing: 0.02em; }

.foot__h {
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--enamel);
  margin-bottom: 1.1rem;
  font-weight: 600;
}

.announce a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Breadcrumbs */
.crumbs { margin-bottom: 1.1rem; font-size: var(--t-small); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.crumbs li + li::before { content: "/"; margin-right: 0.4rem; color: var(--mist-dim); }
.crumbs a { color: var(--mist); text-decoration: underline; text-underline-offset: 3px; }
.crumbs a:hover { color: var(--aqua); }
.crumbs [aria-current] { color: var(--enamel); }

/* Page title when long */
.h1-page { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }

/* Direct-answer box */
.answer {
  margin: 1.4rem 0;
  padding: 1.15rem 1.3rem;
  border: 1px solid var(--hairline-2);
  border-left: 3px solid var(--aqua);
  border-radius: var(--r-md);
  background: var(--glass);
  color: var(--enamel);
  line-height: 1.65;
}
.answer__label {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aqua);
}
.answer a { color: var(--aqua); }

.meta-line { margin-top: 1.1rem; font-size: var(--t-small); color: var(--mist-dim); line-height: 1.6; }
.meta-line a { color: var(--mist); text-decoration: underline; text-underline-offset: 3px; }

.hero__media img { width: 100%; height: auto; border-radius: var(--r-lg); }

/* Table of contents */
.toc { counter-reset: n; list-style: none; display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.toc li { counter-increment: n; }
.toc a {
  display: block;
  padding: 0.8rem 1rem;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  color: var(--enamel);
  background: var(--glass);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.toc a::before { content: counter(n) ". "; color: var(--aqua); }
.toc a:hover { border-color: var(--aqua); color: var(--aqua); }

/* Quick-facts list */
.facts { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; border: 1px solid var(--hairline); border-radius: var(--r-md); overflow: hidden; }
.facts dt, .facts dd { padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--hairline); }
.facts dt { font-family: var(--mono); font-size: var(--t-micro); letter-spacing: 0.1em; text-transform: uppercase; color: var(--mist); background: var(--glass); }
.facts dd { color: var(--enamel); }
.facts dt:last-of-type, .facts dd:last-of-type { border-bottom: none; }
.facts a, .prose a, .card p a, .faq__body a, .fine a, .lead a { color: var(--aqua); text-decoration: underline; text-underline-offset: 3px; }

/* Long-form text */
.prose { max-width: 70ch; }
.prose p { margin-bottom: 1.1rem; line-height: 1.75; color: var(--mist); }
.prose p strong, .prose strong { color: var(--enamel); }
.prose ul { margin: 0 0 1.1rem 1.2rem; display: grid; gap: 0.45rem; color: var(--mist); }
.prose h3 { margin: 1.6rem 0 0.6rem; }

/* Linked cards */
a.card { display: block; color: inherit; text-decoration: none; }
a.card .more { display: inline-block; margin-top: 0.8rem; color: var(--aqua); font-weight: 600; }
a.card:hover .more { text-decoration: underline; text-underline-offset: 3px; }

/* References list */
.refs { list-style: decimal; margin-left: 1.3rem; display: grid; gap: 0.7rem; color: var(--mist); }
.refs a { color: var(--aqua); text-decoration: underline; text-underline-offset: 3px; }

/* Contact form */
.form-note { margin-top: 0.8rem; padding: 0.8rem 1rem; border-radius: var(--r-sm); border: 1px solid var(--hairline-2); background: var(--glass); color: var(--enamel); font-size: var(--t-small); }
.form-note[hidden] { display: none; }
.field-row .req { color: var(--cranberry); }
.field-row input:invalid:not(:placeholder-shown), .field-row textarea:invalid:not(:placeholder-shown) { border-color: var(--cranberry); }

/* Legal pages: main is a plain content column */
main.section > .wrap { max-width: 860px; }

/* Visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, .flip:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 3px;
}

/* Tables never force page-level horizontal scroll */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr; }
  .facts dt { border-bottom: none; padding-bottom: 0.2rem; }
}

/* Grid/flex children may shrink below their content width (keeps wide tables from stretching the page) */
.split > *, .grid > *, .hero__grid > * { min-width: 0; }
.tbl-wrap { max-width: 100%; }

/* Decorative hero rings must not widen the page on small screens */
.hero { overflow-x: clip; }
