@charset "UTF-8";
/* ============================================================
   FIX MY TEETH — COMPONENTS
   Loaded after theme.css, which owns the tokens these read.

   01  The engraved index
   02  Forms
   03  Tables
   04  Pagination
   05  Entry content
   ============================================================ */

/* ============================================================
   01  THE ENGRAVED INDEX

   A certificate lists its schedule. On the services hub and the 404
   the treatments set as a ruled list rather than a card grid — a
   reader who has already chosen to browse treatments wants the whole
   list in one scan, not eleven scroll-heights of imagery.

   The card-grid objection stands on its own terms: the service names
   run from 17 to 31 characters, and identical tiles would either
   clip them or leave dead space.

   The numbers stay because the sequence carries information — it is
   the practice's own priority order. That is the one place in this
   system where numbering is honest. The bento is not numbered,
   because a bento has no order to report.
   ============================================================ */

.index {
  border-top: 1px solid var(--rule);
  list-style: none;
}

.index li {
  display: grid;
  grid-template-columns: 3ch 1fr;
  gap: 0 var(--sp-5);
  align-items: baseline;
  padding-block: var(--sp-4);
  border-bottom: 1px solid var(--rule-soft);
}

/* Without numbers the name takes the full width rather than leaving a
   3ch gutter of nothing. The concern menu uses this: a list of
   symptoms has no order, so numbering it would be decoration. */
.index-plainlist li {
  grid-template-columns: 1fr;
}

.index-no {
  font-family: var(--caps);
  font-size: 0.8125rem;
  color: var(--text-gold);
  font-variant-numeric: tabular-nums;
  transition: color 0.2s var(--ease);
}

.index-name {
  grid-column: 2;
  font-family: var(--display);
  font-optical-sizing: none;
  font-variation-settings: "opsz" var(--display-opsz), "wght" 600;
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  line-height: 1.25;
}

.index-plain {
  grid-column: 2;
  margin-top: 0.2rem;
  max-width: 58ch;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-soft);
}

.index-plainlist .index-name,
.index-plainlist .index-plain {
  grid-column: 1;
}

.index-name a {
  display: inline-block;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.index-name a:hover {
  color: var(--text-gold);
}

.index li:hover .index-no {
  color: var(--gold);
}

.band-ink .index {
  border-top-color: var(--on-ink-rule);
}

.band-ink .index li {
  border-bottom-color: var(--on-ink-rule);
}

.band-ink .index-no {
  color: var(--on-ink-gold);
}

.band-ink .index-plain {
  color: var(--on-ink-soft);
}

/* ============================================================
   02  FORMS

   Sand fields on parchment. A form field has to read as a slot cut
   into the page, and a white box on an off-white ground does not.
   ============================================================ */

.field {
  display: grid;
  gap: 0.4rem;
}

.field label,
.field .label {
  font-family: var(--body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  /* Espresso, not Gold Deep. This label sits above a Sand field and
     gold-toned text measures 3.88:1 there — large text only. */
  color: var(--text);
}

.field .hint {
  font-size: 0.875rem;
  color: var(--text-soft);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="url"],
textarea,
select {
  width: 100%;
  min-height: 48px;
  padding: 0.85rem 1rem;
  background: var(--panel-deep);
  border: 1px solid var(--tan);
  border-radius: var(--r-input);
  font-family: var(--body);
  font-size: 1rem;
  color: var(--text);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

textarea {
  min-height: 132px;
  line-height: 1.6;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  /* Umber on Sand is 5.61:1. A placeholder still has to be read. */
  color: var(--text-soft);
  opacity: 1;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  background: var(--parchment);
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(200, 145, 22, 0.18);
}

.field[data-invalid="true"] input,
.field[data-invalid="true"] textarea {
  border-color: var(--fail);
  background: #fdf3f1;
}

.field[data-invalid="true"] .hint {
  color: var(--fail);
}

/* The honeypot. Positioned off-screen rather than display:none —
   some bots skip hidden fields, and none of them read the label.
   Chosen over a CAPTCHA, which asks someone in pain, one-handed, to
   identify traffic lights. */
.honeypot {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Form result. Shares the clinical note's gold-top-rule so a
   confirmation reads as part of the system, not a plugin's alert. */
.form-status {
  margin-bottom: var(--sp-5);
  padding: var(--sp-5);
  border-top: 2px solid var(--gold);
  border-radius: var(--r-card);
  background: var(--panel);
}

.form-status[data-tone="fail"] {
  border-top-color: var(--fail);
}

.form-status h3 {
  margin-bottom: 0.3rem;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
}

.form-status p {
  font-size: 0.9375rem;
  color: var(--text-soft);
}

.search-form {
  display: flex;
  gap: var(--sp-2);
  max-width: 420px;
}

.search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--tan);
  border-radius: var(--r-input);
  background: var(--panel-deep);
  color: var(--text);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.search-submit:hover {
  background: var(--espresso);
  border-color: var(--espresso);
  color: var(--parchment);
}

.search-submit svg {
  width: 19px;
  height: 19px;
}

/* ============================================================
   03  TABLES

   The Technology page is a table of equipment against brand names.
   It scrolls inside its own container rather than widening the page.
   ============================================================ */

.tablewrap {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

th,
td {
  padding: 0.75rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--rule-soft);
}

th {
  font-family: var(--body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.117em;
  text-transform: uppercase;
  color: var(--text-gold);
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: 0;
}

/* ============================================================
   04  PAGINATION
   ============================================================ */

.pagination {
  display: flex;
  justify-content: center;
  margin-top: var(--sp-7);
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding-inline: 0.7rem;
  border: 1px solid var(--rule);
  border-radius: var(--r-btn);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.pagination .page-numbers:hover {
  border-color: var(--gold);
}

.pagination .page-numbers.current {
  background: var(--espresso);
  border-color: var(--espresso);
  color: var(--parchment);
}

/* ============================================================
   05  ENTRY CONTENT

   Where the client's own edits land. Styled so that typing a heading
   and a list in the editor produces the system, without anyone
   having to know the system.
   ============================================================ */

.entry-content > * + * {
  margin-top: 1.1em;
}

.entry-content h2 {
  margin-top: 1.8em;
}

.entry-content h3 {
  margin-top: 1.6em;
}

.entry-content li + li {
  margin-top: 0.45rem;
}

/* A hairline tick rather than a bullet. The bullet is the one mark
   in a body of text that no design system ever owns. */
.entry-content ul {
  list-style: none;
  padding-left: 0;
}

.entry-content ul > li {
  position: relative;
  padding-left: 1.45rem;
}

.entry-content ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.7rem;
  height: 1px;
  background: var(--gold);
}

.entry-content ol {
  list-style: none;
  padding-left: 0;
  counter-reset: fmt-ol;
}

.entry-content ol > li {
  position: relative;
  padding-left: 2rem;
  counter-increment: fmt-ol;
}

.entry-content ol > li::before {
  content: counter(fmt-ol, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.1em;
  font-family: var(--caps);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-gold);
}

.entry-content a {
  text-decoration-color: var(--gold);
}

.entry-content img {
  border-radius: var(--r-card);
}

.entry-content figcaption {
  margin-top: var(--sp-3);
  font-size: 0.875rem;
  color: var(--text-soft);
}

.page-links {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-6);
  font-size: 0.875rem;
}
