/*
 * Loam plant pages — styles
 * Extends /styles.css (already loaded before this file)
 * Used on: /plants/, /plants/[category]/, /plants/[slug]/
 */

/* ── Body background override ───────────────────────────────────────────────── */
/* styles.css sets a green body background; plant pages use white so the green
   reads as a purposeful accent (header band, quick-facts strip, breadcrumb)
   rather than a full-page wash. */

body {
  background: #ffffff;
}

/* ── Skip link ──────────────────────────────────────────────────────────────── */

.skip-link {
  position: absolute;
  top: -999px;
  left: 0;
  z-index: 9999;
  padding: 12px 20px;
  background: var(--green-800);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--green-200);
  outline-offset: 2px;
}

/* ── Focus indicator (global supplement — never remove default outline) ─────── */

a:focus-visible,
button:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 3px solid var(--green-700);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Override nav { display: flex } from styles.css for non-site-nav elements ── */
/* styles.css sets nav { display: flex; justify-content: space-between } for the
   top site nav. Without overrides, .breadcrumb-nav and .toc (both <nav>) would
   have their children laid out side-by-side rather than stacked. */

.breadcrumb-nav,
.toc {
  display: block;
  height: auto;
}

/* ── Nav icon ───────────────────────────────────────────────────────────────── */

.nav-icon {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  vertical-align: middle;
  margin-right: 6px;
  flex-shrink: 0;
}

/* ── Breadcrumb nav ─────────────────────────────────────────────────────────── */

.breadcrumb-nav {
  background: var(--green-50);
  border-bottom: 1px solid var(--green-100);
  padding: 10px 0; /* horizontal padding lives on .breadcrumb so text aligns with main content */
}

.breadcrumb {
  list-style: none;
  margin: 0;
  padding: 0 24px; /* matches main's padding so "Home" aligns with the plant name at all widths */
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  max-width: 820px; /* matches main max-width */
  margin-inline: auto;
  font-size: 0.85rem;
  color: var(--neutral-600);
}

.breadcrumb li + li::before {
  content: '›';
  margin-right: 4px;
  color: var(--neutral-500);
}

.breadcrumb a {
  color: var(--green-700);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
  color: var(--neutral-700);
  font-weight: 500;
}

/* ── Main content layout ────────────────────────────────────────────────────── */

main {
  max-width: 820px;
  margin-inline: auto;
  padding: 0 24px 64px;
  background: var(--white);
}

main section {
  margin-top: 40px;
}

/* ── Plant header — full-bleed identity zone ────────────────────────────────── */
/* Extends edge-to-edge using negative margins to break out of main's 24px padding.
   Creates a continuous green-50 zone: nav → breadcrumb → plant identity → white content. */

main header.plant-header {
  margin-top: 0;
  margin-left: -24px;
  margin-right: -24px;
  padding: 32px 24px 24px;
  background: var(--green-50);
  border-bottom: 1px solid var(--green-100);
  margin-bottom: 0;
}

/* Section H2: left-border accent for visual rhythm between sections.
   Excluded: .quick-facts (visually-hidden heading), .toc (has its own heading style),
   .app-cta (aside heading), and .page-header (index/category pages). */
main section:not(.quick-facts) > h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--green-900);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  padding-left: 14px;
  border-left: 3px solid var(--green-200);
}

/* Fallback for any remaining h2 inside main that doesn't match the above */
main h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--green-900);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

main p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--neutral-700);
  margin-bottom: 12px;
}

main p:last-child {
  margin-bottom: 0;
}

/* ── Plant header ───────────────────────────────────────────────────────────── */

.plant-header {
  padding-top: 40px;
}

.plant-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--green-900);
  letter-spacing: -0.04em;
  margin: 0 0 6px;
  line-height: 1.1;
}

.scientific-name {
  font-size: 1.1rem;
  color: var(--neutral-600);
  margin: 0 0 12px;
}

.category-badge {
  display: inline-block;
  background: var(--green-100);
  color: var(--green-800);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  text-decoration: none;
}

.category-badge:hover {
  background: var(--green-200);
}

/* ── Hero image ─────────────────────────────────────────────────────────────── */

.plant-hero {
  margin: 28px 0 0;
}

.plant-hero img {
  width: 100%;
  height: auto;
  min-height: 220px;    /* ensures coloured placeholder shows when image is missing */
  border-radius: 12px;
  display: block;
  background: var(--green-100); /* placeholder colour while loading or if image 404s */
  object-fit: cover;
}

.attribution {
  font-size: 0.75rem;
  color: var(--neutral-500);
  margin-top: 6px;
  line-height: 1.4;
}

.attribution a {
  color: var(--neutral-600);
  text-decoration: none;
}

.attribution a:hover {
  text-decoration: underline;
}

/* ── Quick facts ────────────────────────────────────────────────────────────── */

.quick-facts {
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: 12px;
  padding: 20px 24px;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px 24px;
  margin: 0;
}

.fact dt {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--neutral-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.fact dd {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--green-900);
  margin: 0;
}

.fact dd.toxicity {
  display: flex;
  align-items: center;
  gap: 5px;
}

.fact dd.toxicity.toxic {
  color: #b91c1c; /* red-700 — 5.8:1 on white */
}

.fact dd.toxicity.safe {
  color: var(--green-700); /* 5.1:1 on white — verified WCAG AA */
}

.fact dd.toxicity.unknown {
  color: var(--neutral-600);
}

.fact dd.agm {
  color: var(--green-700);
}

/* ── UK fact callout ────────────────────────────────────────────────────────── */

.uk-fact {
  background: var(--green-50);
  border-left: 3px solid var(--green-600);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem !important;
  color: var(--neutral-700) !important;
}

/* ── App hint (inline nudge within content sections) ────────────────────────── */
/* Used in Common Problems to suggest using the Loam app for diagnosis.
   Appears as a subtle callout — helpful advice, not a promotional block. */

.app-hint {
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
  background: var(--green-50) !important;
  border-left: 3px solid var(--green-400);
  border-radius: 0 8px 8px 0;
  padding: 10px 14px !important;
  font-size: 0.875rem !important;
  color: var(--green-900) !important;
  line-height: 1.55 !important;
  margin-top: 10px !important;
}

/* ── App banner (slim strip on index/category pages) ─────────────────────────── */
/* Lighter than the full plant-page aside .app-cta block; plant content stays
   the primary purpose of index and category pages. */

.app-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--green-50);
  border: 1px solid var(--green-200);
  border-radius: 10px;
  padding: 14px 18px;
  margin-top: 24px;
}

.app-banner-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
}

.app-banner p {
  font-size: 0.875rem !important;
  color: var(--green-900) !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

@media (max-width: 600px) {
  .app-banner { gap: 10px; }
  .app-banner-icon { width: 30px; height: 30px; }
}

/* ── Seasonal calendar table ────────────────────────────────────────────────── */

.table-scroll {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--green-100);
}

/* Accessible scroll region: show focus ring when keyboard-focused */
.table-scroll:focus-visible {
  outline: 3px solid var(--green-700);
  outline-offset: 2px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

table caption {
  font-size: 0.8rem;
  color: var(--neutral-500);
  text-align: left;
  padding: 8px 16px;
  caption-side: top;
}

thead th {
  background: var(--green-800);
  color: var(--white);
  padding: 10px 16px;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Centre the Month column header to match the centred month-name body cells */
thead th:first-child {
  text-align: center;
}

tbody tr:nth-child(even) {
  background: var(--green-50);
}

tbody td,
tbody th {
  padding: 10px 16px;
  vertical-align: top;
  color: var(--neutral-700);
  line-height: 1.5;
  border: 1px solid var(--green-100);
}

tbody th[scope="row"] {
  font-weight: 600;
  color: var(--green-800);
  white-space: nowrap;
  background: transparent;
}

/* Current month row — highlighted by inline script using new Date().getMonth() */
tbody tr.current-month th[scope="row"],
tbody tr.current-month td {
  background: var(--green-200) !important;
}

tbody tr.current-month th[scope="row"] {
  color: var(--green-900);
  font-weight: 700;
}

/* "Now" pill badge — sits below the month name, centred in the cell */
tbody tr.current-month th[scope="row"]::after {
  content: 'Now';
  display: block;
  width: fit-content;
  margin: 4px auto 0;
  background: var(--green-700);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 10px;
}

/* ── FAQ ────────────────────────────────────────────────────────────────────── */

.faq {
  margin: 0;
}

.faq-item {
  border-bottom: 1px solid var(--green-100);
  padding: 20px 0;
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-item dt {
  font-size: 1rem;
  font-weight: 600;
  color: var(--green-900);
  margin-bottom: 8px;
  line-height: 1.4;
}

.faq-item dd {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--neutral-700);
  margin: 0;
}

/* ── Related plants ─────────────────────────────────────────────────────────── */

.related-plants {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.related-plants a {
  display: inline-block;
  background: var(--green-50);
  border: 1px solid var(--green-200);
  color: var(--green-800);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
}

.related-plants a:hover {
  background: var(--green-100);
}

/* ── App CTA ────────────────────────────────────────────────────────────────── */

.app-cta {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--green-800);
  color: var(--white);
  border-radius: 16px;
  padding: 24px;
  margin-top: 48px;
}

.app-cta img {
  flex-shrink: 0;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.app-cta-body h2 {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.app-cta-body p {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 12px;
}

.app-cta-body p:last-child {
  margin-bottom: 0;
}

.app-store-coming {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white) !important;
  font-size: 0.85rem !important;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
}

/* ── Table of contents ──────────────────────────────────────────────────────── */

.toc {
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: 10px;
  padding: 16px 20px;
  margin-top: 32px;
}

.toc-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--neutral-500);
  margin-bottom: 10px;
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 24px;
}

.toc li {
  break-inside: avoid;
  margin-bottom: 4px;
}

.toc a {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--green-700);
  text-decoration: none;
  line-height: 1.4;
}

.toc a:hover {
  text-decoration: underline;
}

.toc-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: var(--green-100);
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--green-800);
}

@media (max-width: 480px) {
  .toc ol { columns: 1; }
}

/* ── Direct-answer summary sentence ────────────────────────────────────────── */

.section-summary {
  font-weight: 600 !important;
  color: var(--green-900) !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
  margin-bottom: 8px !important;
}

/* ── Disambiguation banner (child/variety pages) ────────────────────────────── */

.disambiguation-banner {
  background: var(--green-50);
  border: 1px solid var(--green-200);
  border-radius: 8px;
  padding: 10px 16px;
  margin-top: 16px;
  font-size: 0.875rem;
}

.disambiguation-banner p {
  margin: 0;
  color: var(--neutral-600) !important;
  font-size: 0.875rem !important;
  line-height: 1.5 !important;
}

.disambiguation-banner a {
  color: var(--green-700);
  font-weight: 500;
}

/* ── HowTo propagation steps ────────────────────────────────────────────────── */

.howto-steps {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.howto-step {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: 10px;
  padding: 14px 16px;
}

.howto-step-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--green-900);
  margin: 0;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--green-700);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
}

.howto-step p {
  margin: 0 0 0 34px !important; /* align with text, not step num */
  font-size: 0.9rem !important;
  color: var(--neutral-600) !important;
  line-height: 1.6 !important;
}

/* ── Disclaimer and AI notice ───────────────────────────────────────────────── */

.disclaimer,
.ai-notice {
  font-size: 0.8rem !important;
  color: var(--neutral-500) !important;
  margin-top: 16px;
  line-height: 1.5;
}

.disclaimer {
  margin-top: 40px;
}

.ai-notice a {
  color: var(--neutral-600);
}

/* ── Visually hidden (screen-reader only) ───────────────────────────────────── */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Page header (category hubs + index) ────────────────────────────────────── */
/* Matches the plant-header full-bleed green-50 treatment so all page types share
   the same visual language: breadcrumb → green identity band → white content. */

.page-header {
  margin-top: 0;
  margin-left: -24px;
  margin-right: -24px;
  padding: 32px 24px 24px;
  background: var(--green-50);
  border-bottom: 1px solid var(--green-100);
  margin-bottom: 0;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green-900);
  letter-spacing: -0.03em;
  margin: 0 0 6px;
}

.page-header-sub {
  font-size: 1rem;
  color: var(--neutral-500);
  margin: 0;
}

.section-heading {
  font-size: 1.2rem;
  color: var(--green-800);
  border-bottom: 2px solid var(--green-100);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

/* ── Category grid (plants index) ───────────────────────────────────────────── */

.category-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.category-card-link {
  text-decoration: none;
  display: block;
}

.category-card {
  background: var(--white);
  border: 1px solid var(--green-100);
  border-radius: 10px;
  padding: 16px 20px;
  transition: border-color 0.15s, background 0.15s;
}

.category-card-link:hover .category-card {
  background: var(--green-50);
  border-color: var(--green-200);
}

.category-card h2 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green-900);
  margin-bottom: 4px;
}

.category-card p {
  font-size: 0.8rem;
  color: var(--neutral-500);
  margin: 0;
}

/* ── A–Z index ──────────────────────────────────────────────────────────────── */

.az-letter {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--green-700);
  margin-top: 28px;
  margin-bottom: 8px;
}

.az-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 4px 12px;
}

.az-list a {
  display: block;
  padding: 4px 0;
  font-size: 0.9rem;
  color: var(--green-700);
  text-decoration: none;
}

.az-list a:hover {
  text-decoration: underline;
}

/* ── Plant grid (category hub) ──────────────────────────────────────────────── */

.plant-grid {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.plant-card-link {
  text-decoration: none;
  display: block;
  height: 100%;
}

.plant-card {
  background: var(--white);
  border: 1px solid var(--green-100);
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.plant-card-link:hover .plant-card {
  border-color: var(--green-200);
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.plant-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  background: var(--green-50);
}

.plant-card-body {
  padding: 16px;
}

.plant-card-body h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-900);
  margin-bottom: 2px;
}

.plant-card-scientific {
  font-size: 0.8rem;
  color: var(--neutral-500);
  margin-bottom: 8px;
}

.plant-card-desc {
  font-size: 0.85rem;
  color: var(--neutral-600);
  line-height: 1.5;
  margin: 0 0 10px;
}

.plant-card-cta {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green-700);
}

.plant-card-link:hover .plant-card-cta {
  text-decoration: underline;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
  main {
    padding: 0 16px 48px;
  }

  /* Fix page/plant header negative margins — must match main's reduced padding */
  main header.plant-header,
  main header.page-header {
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .plant-header h1 {
    font-size: 1.9rem;
  }

  .app-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .facts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

/* ── Print-only brand footer (hidden on screen) ─────────────────────────────── */
/* Matches the app's print card footer exactly:
   lib/printPlant.ts: "Loam — Know plants. Grow gardens. | loamapp.uk"
   with border-top: 1px solid #dcfce7 */

.print-brand-footer {
  display: none;
}

/* ── Print styles ───────────────────────────────────────────────────────────── */
/* Design system alignment with lib/printPlant.ts:
   - H1 in #14532d (green-900)  — matches .name in app print card
   - H2 in #15803d (green-700)  — matches .section-title in app print card
   - Body text in #374151        — matches p/li in app print card
   - Plant header bottom border  — matches app print card header divider
   - Brand footer                — matches app print card footer exactly        */

@media print {
  .skip-link,
  nav,
  .breadcrumb-nav,
  .toc,
  .app-cta,
  .app-hint,
  .app-banner,
  .related-plants,
  .category-badge,
  .disambiguation-banner,
  .disclaimer,
  .ai-notice,
  footer {
    display: none !important;
  }

  /* Show brand footer in print */
  .print-brand-footer {
    display: block !important;
    margin-top: 20pt;
    padding-top: 8pt;
    border-top: 1px solid #dcfce7;
    font-size: 8pt;
    color: #4b5563;
    text-align: right;
    font-family: -apple-system, Helvetica, Arial, sans-serif;
  }

  .print-brand-footer strong {
    color: #14532d;
    font-weight: 700;
  }

  main {
    max-width: 100%;
    padding: 0;
    background: #fff !important;
  }

  body {
    font-size: 11pt;
    background: #fff !important;
  }

  /* Plant name — matches app print card .name color */
  h1 {
    font-size: 20pt;
    color: #14532d !important;
    font-weight: 800;
  }

  /* Plant header — add green bottom border matching app print card header */
  .plant-header {
    border-bottom: 2px solid #15803d;
    padding-bottom: 12pt;
    margin-bottom: 4pt;
  }

  /* Section headings — matches app print card .section-title color */
  h2 {
    font-size: 12pt;
    color: #15803d !important;
    font-weight: 700;
    break-after: avoid;
    /* Keep the left-border accent for visual rhythm */
    border-left-color: #bbf7d0 !important;
    padding-left: 10px;
  }

  p,
  .faq-item dd {
    color: #374151 !important;  /* matches app print card body text */
  }

  .faq-item dt {
    color: #14532d !important;
  }

  section {
    break-inside: avoid-page;
  }

  .plant-hero img {
    max-width: 100%;
    max-height: 250px;
    min-height: 0;
    object-fit: contain;
  }

  .attribution {
    font-size: 8pt;
    color: #6b7280 !important;
  }

  /* Show URLs for external links only */
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 8pt;
    color: #6b7280;
  }
  a[href^="/"]::after,
  a[href^="#"]::after,
  .attribution a::after {
    content: none !important;
  }

  @page {
    margin: 2cm;
  }

  /* Quick facts */
  .quick-facts {
    background: #f9f9f9 !important;
    border: 1px solid #ccc !important;
  }

  .facts-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .fact dt {
    color: #6b7280 !important;
  }

  .fact dd {
    color: #14532d !important;
  }

  /* Table */
  .table-scroll {
    overflow: visible;
    border: none;
  }

  table {
    border-collapse: collapse;
    width: 100%;
    break-inside: avoid;
  }

  table caption {
    color: #6b7280;
  }

  thead th {
    background: #166534 !important;
    color: #fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  tbody tr:nth-child(even) {
    background: #f0fdf4 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  tbody th[scope="row"] {
    color: #166534 !important;
  }

  th, td {
    border: 1px solid #bbf7d0;
    padding: 5pt 8pt;
  }

  /* FAQ */
  .faq-item {
    break-inside: avoid;
    border-bottom-color: #bbf7d0 !important;
  }

  .uk-fact {
    background: #f0fdf4 !important;
    border-left-color: #15803d !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* HowTo steps */
  .howto-step {
    background: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
    break-inside: avoid;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .step-num {
    background: #15803d !important;  /* matches app print card .section-title color */
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .section-summary {
    color: #14532d !important;
  }
}
