/*
  WellWaterGuide.org
  Main Stylesheet
  Publisher: WRS Web Solutions Inc.
  Design direction: clean, fresh, practical, trustworthy drinking-water guide
*/

/* =========================================================
   1. Base variables
   ========================================================= */

:root {
  --color-deep: #123745;
  --color-deep-2: #0d2b36;
  --color-water: #1f8fa3;
  --color-water-dark: #147185;
  --color-water-light: #e6f7fa;
  --color-sky: #eefaff;
  --color-mint: #dff4ec;
  --color-sand: #f7f3e8;
  --color-cream: #fbf8f1;
  --color-card: #ffffff;
  --color-border: #d5e7eb;
  --color-border-soft: #e7f1f3;
  --color-text: #20343a;
  --color-muted: #5c737a;
  --color-soft-muted: #789096;
  --color-warning: #7a5b15;
  --color-warning-bg: #fff7df;
  --color-good: #2f6f5e;
  --color-good-bg: #e8f7f1;
  --shadow-soft: 0 16px 38px rgba(18, 55, 69, 0.09);
  --shadow-light: 0 8px 22px rgba(18, 55, 69, 0.07);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --max-width: 1180px;
  --content-width: 920px;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* =========================================================
   2. Reset and base layout
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--color-text);
  background:
    radial-gradient(circle at top left, rgba(31, 143, 163, 0.13), transparent 32rem),
    linear-gradient(180deg, var(--color-sky) 0%, var(--color-cream) 38%, #ffffff 100%);
  line-height: 1.65;
  font-size: 17px;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-water-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus {
  color: var(--color-deep);
}

p {
  margin: 0 0 1.05rem;
}

ul,
ol {
  margin: 0 0 1.2rem 1.3rem;
  padding: 0;
}

li {
  margin-bottom: 0.45rem;
}

strong {
  color: var(--color-deep);
}

hr {
  border: 0;
  border-top: 1px solid var(--color-border-soft);
  margin: 2.2rem 0;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 1rem;
  z-index: 1000;
  background: var(--color-deep);
  color: #ffffff;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* =========================================================
   3. Shared containers
   ========================================================= */

.container {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.content-container {
  width: min(var(--content-width), calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 4.2rem 0;
}

.section-tight {
  padding: 2.6rem 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 2rem;
}

.section-heading.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.7rem;
  color: var(--color-water-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-water), #7fd1df);
  box-shadow: 0 0 0 5px rgba(31, 143, 163, 0.12);
}

.kicker {
  color: var(--color-muted);
  font-size: 1.08rem;
  max-width: 780px;
}

.muted {
  color: var(--color-muted);
}

.small {
  font-size: 0.92rem;
}

.center {
  text-align: center;
}

/* =========================================================
   4. Header and navigation
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(251, 248, 241, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(213, 231, 235, 0.85);
}

.header-inner {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  color: var(--color-deep);
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  max-width: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-size: 1.18rem;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.brand-tagline {
  margin-top: 0.25rem;
  color: var(--color-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.45rem 0.72rem;
  border-radius: 999px;
  color: var(--color-deep);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a[aria-current="page"] {
  background: var(--color-water-light);
  color: var(--color-water-dark);
}

/* =========================================================
   5. Hero sections
   ========================================================= */

.hero {
  padding: 4.4rem 0 3.6rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 2rem;
  align-items: center;
}

.hero-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(213, 231, 235, 0.95);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.4rem, 3vw, 2.5rem);
}

.hero h1,
.page-hero h1 {
  margin: 0 0 1rem;
  color: var(--color-deep);
  font-size: clamp(2.25rem, 5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.hero .lead,
.page-hero .lead {
  color: var(--color-muted);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  max-width: 760px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.hero-panel {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(213, 231, 235, 0.95);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(230, 247, 250, 0.95), rgba(255, 255, 255, 0.96)),
    radial-gradient(circle at 25% 15%, rgba(31, 143, 163, 0.22), transparent 12rem);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: auto -20% -35% -20%;
  height: 55%;
  background:
    radial-gradient(circle at 30% 30%, rgba(31, 143, 163, 0.22), transparent 16rem),
    linear-gradient(135deg, rgba(31, 143, 163, 0.18), rgba(223, 244, 236, 0.8));
  border-radius: 50% 50% 0 0;
}

.water-visual {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
}

.visual-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-light);
}

.visual-card h2,
.visual-card h3 {
  margin: 0 0 0.4rem;
  color: var(--color-deep);
  font-size: 1.05rem;
}

.visual-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.94rem;
}

.page-hero {
  padding: 3.8rem 0 2.7rem;
}

.page-hero-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(213, 231, 235, 0.95);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.4rem, 3vw, 2.7rem);
}

/* =========================================================
   6. Buttons and chips
   ========================================================= */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 46px;
  padding: 0.72rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--color-water);
  color: #ffffff;
  box-shadow: 0 12px 22px rgba(31, 143, 163, 0.22);
}

.button-primary:hover,
.button-primary:focus {
  background: var(--color-water-dark);
  color: #ffffff;
}

.button-secondary {
  background: #ffffff;
  color: var(--color-deep);
  border-color: var(--color-border);
}

.button-secondary:hover,
.button-secondary:focus {
  background: var(--color-water-light);
  color: var(--color-water-dark);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.2rem 0 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.72rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--color-deep);
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

.chip:hover,
.chip:focus {
  background: var(--color-water-light);
  border-color: rgba(31, 143, 163, 0.35);
  color: var(--color-water-dark);
}

/* =========================================================
   7. Cards and grids
   ========================================================= */

.grid {
  display: grid;
  gap: 1.2rem;
}

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

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

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

.card {
  background: var(--color-card);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-light);
  padding: 1.25rem;
}

.card h2,
.card h3,
.card h4 {
  margin-top: 0;
  color: var(--color-deep);
  line-height: 1.2;
}

.card p:last-child,
.card ul:last-child,
.card ol:last-child {
  margin-bottom: 0;
}

.card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.card-link:hover,
.card-link:focus {
  transform: translateY(-2px);
  border-color: rgba(31, 143, 163, 0.35);
  box-shadow: var(--shadow-soft);
}

.topic-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.topic-card .count {
  width: fit-content;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: var(--color-water-light);
  color: var(--color-water-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.topic-card h2,
.topic-card h3 {
  margin-bottom: 0.15rem;
}

.article-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.article-card .meta {
  color: var(--color-soft-muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.article-card h2,
.article-card h3 {
  margin-bottom: 0.25rem;
}

/* =========================================================
   8. Article layout and typography
   ========================================================= */

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2rem;
  align-items: start;
}

.article-main {
  min-width: 0;
}

.article-main article,
.prose-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-light);
  padding: clamp(1.3rem, 3vw, 2.4rem);
}

.prose h2,
.prose h3,
.prose h4 {
  color: var(--color-deep);
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.prose h2 {
  margin: 2.2rem 0 0.75rem;
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
}

.prose h3 {
  margin: 1.65rem 0 0.55rem;
  font-size: clamp(1.25rem, 2vw, 1.48rem);
}

.prose h4 {
  margin: 1.35rem 0 0.4rem;
  font-size: 1.1rem;
}

.prose > h2:first-child,
.prose > h3:first-child {
  margin-top: 0;
}

.prose .lead {
  color: var(--color-muted);
  font-size: 1.14rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.1rem 0 0;
  color: var(--color-muted);
  font-size: 0.92rem;
  font-weight: 650;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: var(--color-water-light);
}

/* =========================================================
   9. Sidebars
   ========================================================= */

.sidebar {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 1rem;
}

.sidebar-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-light);
  padding: 1rem;
}

.sidebar-card h2,
.sidebar-card h3 {
  margin: 0 0 0.65rem;
  color: var(--color-deep);
  font-size: 1.02rem;
}

.sidebar-card ul {
  margin: 0;
  list-style: none;
}

.sidebar-card li {
  margin: 0;
  border-top: 1px solid var(--color-border-soft);
}

.sidebar-card li:first-child {
  border-top: 0;
}

.sidebar-card a {
  display: block;
  padding: 0.55rem 0;
  color: var(--color-deep);
  font-weight: 700;
  text-decoration: none;
}

.sidebar-card a:hover,
.sidebar-card a:focus {
  color: var(--color-water-dark);
}

/* =========================================================
   10. Callouts, warnings, notes
   ========================================================= */

.callout {
  margin: 1.35rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--color-border);
  border-left: 6px solid var(--color-water);
  border-radius: var(--radius-md);
  background: var(--color-water-light);
}

.callout h2,
.callout h3,
.callout h4 {
  margin-top: 0;
}

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

.callout-warning {
  border-left-color: #d49b1f;
  background: var(--color-warning-bg);
  color: var(--color-text);
}

.callout-warning strong {
  color: var(--color-warning);
}

.callout-good {
  border-left-color: var(--color-good);
  background: var(--color-good-bg);
}

.note-box {
  margin: 1.2rem 0;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--color-sand);
  border: 1px solid #ece0bd;
}

.note-box p:last-child {
  margin-bottom: 0;
}

/* =========================================================
   11. Tables
   ========================================================= */

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 1.25rem 0;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
  background: #ffffff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

caption {
  padding: 0.85rem 1rem;
  color: var(--color-muted);
  text-align: left;
  font-weight: 700;
}

th,
td {
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--color-border-soft);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--color-water-light);
  color: var(--color-deep);
  font-size: 0.92rem;
}

tr:first-child th {
  border-top: 0;
}

/* =========================================================
   12. Simple diagrams and process flows
   ========================================================= */

.diagram {
  margin: 1.4rem 0;
  padding: 1rem;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #ffffff, var(--color-sky));
}

.diagram-title {
  margin: 0 0 0.9rem;
  color: var(--color-deep);
  font-weight: 850;
}

.flow {
  display: grid;
  gap: 0.75rem;
}

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

.flow-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.flow-step {
  position: relative;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #ffffff;
}

.flow-step .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  margin-bottom: 0.5rem;
  border-radius: 999px;
  background: var(--color-water);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 900;
}

.flow-step h3,
.flow-step h4 {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
}

.flow-step p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.component-map {
  display: grid;
  gap: 0.75rem;
}

.component-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  padding: 0.8rem;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
  background: #ffffff;
}

.component-row strong {
  color: var(--color-deep);
}

/* =========================================================
   13. FAQ and glossary
   ========================================================= */

.faq-list {
  display: grid;
  gap: 0.9rem;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-light);
  padding: 1rem 1.1rem;
}

.faq-item h2,
.faq-item h3 {
  margin: 0 0 0.45rem;
  color: var(--color-deep);
  font-size: 1.15rem;
}

.glossary-list {
  display: grid;
  gap: 0.8rem;
}

.glossary-term {
  padding: 1rem;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  background: #ffffff;
}

.glossary-term h2,
.glossary-term h3 {
  margin: 0 0 0.35rem;
  color: var(--color-deep);
  font-size: 1.1rem;
}

/* =========================================================
   14. AdSense containers
   ========================================================= */

.ad-section {
  margin: 1.8rem 0;
  min-height: 90px;
}

.ad-section-top {
  margin: 0 0 1.8rem;
}

.ad-section-bottom {
  margin: 2rem 0 0;
}

/*
  These containers are for real AdSense units only.
  Do not use visual fake-ad placeholder boxes on live pages.
*/

.adsbygoogle {
  display: block;
}

/* =========================================================
   15. Author and trust blocks
   ========================================================= */

.author-box {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  margin: 1.6rem 0;
  padding: 1rem;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  background: #ffffff;
}

.author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-water-light), var(--color-mint));
  color: var(--color-deep);
  font-weight: 900;
  font-size: 1.4rem;
  border: 1px solid var(--color-border);
}

.author-box h2,
.author-box h3 {
  margin: 0 0 0.25rem;
  color: var(--color-deep);
}

.author-box p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.96rem;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.trust-item {
  padding: 1rem;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
}

.trust-item strong {
  display: block;
  margin-bottom: 0.25rem;
}

/* =========================================================
   16. Browse pages
   ========================================================= */

.browse-layout {
  display: grid;
  gap: 1.3rem;
}

.browse-section {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-light);
  padding: clamp(1.2rem, 3vw, 2rem);
}

.browse-section h2 {
  margin: 0 0 0.8rem;
  color: var(--color-deep);
}

.link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1rem 0 0;
}

.link-list a {
  display: block;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--color-deep);
  font-weight: 750;
  text-decoration: none;
}

.link-list a:hover,
.link-list a:focus {
  border-color: rgba(31, 143, 163, 0.35);
  background: var(--color-water-light);
  color: var(--color-water-dark);
}

/* =========================================================
   17. Footer
   ========================================================= */

.site-footer {
  margin-top: 4rem;
  background: var(--color-deep-2);
  color: #d7eef3;
}

.footer-inner {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 3rem 0 1.7rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(150px, 0.65fr));
  gap: 2rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #ffffff;
  text-decoration: none;
}

.footer-brand .brand-mark {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
}

.footer-title {
  margin: 0 0 0.7rem;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 850;
}

.footer-text {
  color: #b9d6dc;
  max-width: 480px;
}

.footer-column h2,
.footer-column h3 {
  margin: 0 0 0.7rem;
  color: #ffffff;
  font-size: 0.98rem;
}

.footer-links {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  list-style: none;
}

.footer-links a {
  color: #d7eef3;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #b9d6dc;
  font-size: 0.92rem;
}

/* =========================================================
   18. Forms and utility elements
   ========================================================= */

.search-box,
.notice-box {
  padding: 1rem;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  background: #ffffff;
}

.input {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--color-text);
  font: inherit;
}

.input:focus {
  outline: 3px solid rgba(31, 143, 163, 0.18);
  border-color: var(--color-water);
}

.breadcrumbs {
  margin: 0 0 1rem;
  color: var(--color-muted);
  font-size: 0.92rem;
  font-weight: 650;
}

.breadcrumbs a {
  color: var(--color-muted);
  text-decoration: none;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus {
  color: var(--color-water-dark);
  text-decoration: underline;
}

/* =========================================================
   19. Responsive behavior
   ========================================================= */

@media (max-width: 980px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.7rem;
    padding: 0.85rem 0;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero-grid,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: auto;
  }

  .sidebar {
    position: static;
  }

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

  .flow-4,
  .flow-3 {
    grid-template-columns: 1fr;
  }

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

  .trust-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .container,
  .content-container,
  .header-inner,
  .footer-inner {
    width: min(100% - 24px, var(--max-width));
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .brand-tagline {
    font-size: 0.76rem;
  }

  .site-nav {
    width: 100%;
    gap: 0.2rem;
  }

  .site-nav a {
    min-height: 38px;
    padding: 0.4rem 0.56rem;
    font-size: 0.88rem;
  }

  .hero,
  .page-hero {
    padding-top: 2.4rem;
  }

  .section {
    padding: 3rem 0;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .link-list {
    grid-template-columns: 1fr;
  }

  .component-row {
    grid-template-columns: 1fr;
  }

  .author-box {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom {
    display: block;
  }

  .footer-bottom p {
    margin-bottom: 0.7rem;
  }
}

@media (max-width: 460px) {
  .hero h1,
  .page-hero h1 {
    font-size: 2.05rem;
  }

  .hero-card,
  .page-hero-card,
  .article-main article,
  .prose-card,
  .browse-section {
    border-radius: 18px;
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }
}

/* =========================================================
   20. Print behavior
   ========================================================= */

@media print {
  body {
    background: #ffffff;
    color: #000000;
    font-size: 12pt;
  }

  .site-header,
  .site-footer,
  .sidebar,
  .hero-actions,
  .ad-section {
    display: none !important;
  }

  .container,
  .content-container {
    width: 100%;
  }

  .article-layout {
    display: block;
  }

  .article-main article,
  .prose-card,
  .card {
    box-shadow: none;
    border: 1px solid #cccccc;
  }

  a {
    color: #000000;
  }
}