/* ==========================================================================
   pages.css — typography for the long-form pages (shipping, ingredients,
   privacy). Loaded *after* styles.css, which it does not modify.

   Everything here is scoped under .doc so it can't leak into the storefront.
   Colours are re-declared rather than inherited, so these pages still look
   right if styles.css changes.
   ========================================================================== */

.doc {
  --doc-ink:   #3f342b;
  --doc-mute:  #6b5c4d;
  --doc-line:  #e4ddd1;
  --doc-sage:  #7d9273;
  --doc-paper: #ffffff;
  --doc-warm:  #faf7f1;

  max-width: 760px;
  margin: 0 auto;
  color: var(--doc-ink);
  font-size: 16.5px;
  line-height: 1.72;
}

.doc h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 600;
  margin: 52px 0 14px;
  padding-top: 6px;
  border-top: 1px solid var(--doc-line);
}
.doc h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }

.doc h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--doc-mute);
  margin: 32px 0 8px;
  font-weight: 600;
}

.doc p { margin: 0 0 16px; }
.doc ul, .doc ol { margin: 0 0 18px; padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc a { color: #5f7357; }
.doc strong { font-weight: 600; }

.doc .lede {
  font-size: 18.5px;
  line-height: 1.65;
  color: var(--doc-mute);
  margin-bottom: 28px;
}

.doc .updated {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--doc-mute);
  margin-bottom: 34px;
}

/* ---- Contents ---------------------------------------------------------- */
.doc-toc {
  background: var(--doc-warm);
  border: 1px solid var(--doc-line);
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 44px;
}
.doc-toc h3 { margin-top: 0; }
.doc-toc ol { margin: 0; padding-left: 20px; }
.doc-toc li { margin-bottom: 4px; }

/* ---- Callouts ---------------------------------------------------------- */
.doc .callout,
.doc .warn {
  border-radius: 10px;
  padding: 16px 20px;
  margin: 0 0 22px;
  font-size: 15.5px;
}
.doc .callout { background: var(--doc-warm); border: 1px solid var(--doc-line); }
.doc .warn    { background: #f8ece7; border: 1px solid #e3c4b6; }
.doc .callout p:last-child,
.doc .warn p:last-child { margin-bottom: 0; }

/* ---- Definition rows --------------------------------------------------- */
.doc-rows { border-top: 1px solid var(--doc-line); margin-bottom: 24px; }
.doc-rows > div {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--doc-line);
}
.doc-rows dt, .doc-rows .k { font-weight: 600; }
.doc-rows dd, .doc-rows .v { margin: 0; color: var(--doc-mute); }
@media (max-width: 640px) {
  .doc-rows > div { grid-template-columns: 1fr; gap: 4px; }
}

/* ---- Tables ------------------------------------------------------------ */
.doc-table-wrap { overflow-x: auto; margin: 0 0 26px; }
.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  background: var(--doc-paper);
  border: 1px solid var(--doc-line);
  border-radius: 10px;
  overflow: hidden;
}
.doc th, .doc td {
  text-align: left;
  padding: 9px 13px;
  border-bottom: 1px solid var(--doc-line);
  vertical-align: top;
}
.doc th {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--doc-mute);
  background: #fdfbf7;
  white-space: nowrap;
}
.doc tbody tr:last-child td { border-bottom: 0; }
.doc td.notes { font-size: 13px; color: var(--doc-mute); line-height: 1.5; }

.flag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 99px;
  white-space: nowrap;
}
.flag-photo { background: #f6f1e6; border: 1px solid #e3d7bf; color: #8a7442; }
.flag-hot   { background: #f8ece7; border: 1px solid #e3c4b6; color: #b4623c; }
.confirm    { color: #8a7442; }

/* ---- Draft banner -----------------------------------------------------
   Shown while these pages still contain unreviewed placeholder text.
   Delete the element from each page once you've filled everything in.     */
.draft-banner {
  background: #b4623c;
  color: #fff;
  padding: 11px 20px;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
}
.draft-banner strong { font-weight: 700; }
.draft-banner a { color: #fff; text-decoration: underline; }

.doc .placeholder {
  background: #fff3cd;
  border-bottom: 1px dashed #b4623c;
  padding: 0 3px;
}
