/*
  Dumpster Rental Guide - Main Site Styles
  File: /assets/css/site.css

  Design direction:
  - Practical, industrial, clean, trustworthy, neutral
  - U.S.-first dumpster-rental guide, international English aware
  - Wide responsive layout to avoid laptop/large-screen width problems
  - Real AdSense units only; no visual ad placeholders
*/

/* ---------------------------------------------
   1. Brand tokens and global defaults
--------------------------------------------- */

:root {
  /* Brand colours */
  --charcoal: #263238;
  --deep-slate: #37474F;
  --safety-orange: #E87722;
  --safety-orange-dark: #C95F17;
  --warm-sand: #F5F1E8;
  --light-concrete: #ECEFF1;
  --soft-concrete: #F7F8F8;
  --muted-green: #5F7F55;
  --white: #FFFFFF;
  --ink: #1E2A30;
  --muted: #5F6F76;
  --line: #D8DEE2;
  --line-dark: rgba(255, 255, 255, 0.16);

  /* Layout */
  --wrap: 1680px;
  --content-wrap: 1180px;
  --safe-pad: 48px;
  --safe-pad-mobile: 22px;

  /* Shape and shadow */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 8px 24px rgba(30, 42, 48, 0.08);
  --shadow-md: 0 18px 44px rgba(30, 42, 48, 0.12);

  /* Type */
  --font-main: Arial, Helvetica, sans-serif;
  --leading: 1.68;

  /* Header */
  --header-logo-height: 64px;
  --header-logo-height-mobile: 52px;
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(232, 119, 34, 0.10), transparent 30rem),
    linear-gradient(180deg, #ffffff 0%, var(--warm-sand) 36%, #ffffff 100%);
  color: var(--ink);
  font-family: var(--font-main);
  font-size: 17px;
  line-height: var(--leading);
}

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

img {
  display: block;
}

a {
  color: #B94F12;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus {
  color: var(--safety-orange-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(232, 119, 34, 0.55);
  outline-offset: 3px;
}

p,
li {
  overflow-wrap: anywhere;
}

p {
  margin: 0 0 1.05rem;
}

ul,
ol {
  padding-left: 1.35rem;
}

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

small {
  font-size: 0.875rem;
}

/* ---------------------------------------------
   2. Layout containers
--------------------------------------------- */

.wrap {
  width: min(var(--wrap), calc(100% - var(--safe-pad)));
  margin-inline: auto;
}

.content-wrap {
  width: min(var(--content-wrap), calc(100% - var(--safe-pad)));
  margin-inline: auto;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

.section {
  padding: clamp(2.5rem, 4vw, 5rem) 0;
}

.section-tight {
  padding: clamp(1.7rem, 3vw, 3.3rem) 0;
}

.narrow-but-not-tiny {
  width: min(1120px, calc(100% - var(--safe-pad)));
  margin-inline: auto;
}

/* Use this for legal/about text where a very wide line may be awkward,
   but avoid using it inside article cards by default. */
.reading-width {
  width: min(980px, calc(100% - var(--safe-pad)));
  margin-inline: auto;
}

/* ---------------------------------------------
   3. Header and navigation
--------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(38, 50, 56, 0.10);
}

.header-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 2vw, 2rem);
  padding: 0.85rem 0;
}

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

.site-logo {
  width: auto;
  height: var(--header-logo-height);
  max-width: min(520px, 46vw);
  object-fit: contain;
}

.site-logo-mark {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

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

.brand-name {
  font-size: clamp(1.2rem, 1.6vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--charcoal);
}

.brand-tagline {
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

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

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.48rem 0.72rem;
  border-radius: 999px;
  color: var(--charcoal);
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--safety-orange-dark);
  background: rgba(232, 119, 34, 0.10);
}

.nav-cta {
  background: var(--charcoal) !important;
  color: var(--white) !important;
}

.nav-cta:hover,
.nav-cta:focus {
  background: var(--safety-orange) !important;
  color: var(--white) !important;
}

/* ---------------------------------------------
   4. Hero sections
--------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(38, 50, 56, 0.98), rgba(55, 71, 79, 0.94)),
    radial-gradient(circle at 85% 20%, rgba(232, 119, 34, 0.36), transparent 28rem);
  color: var(--white);
  border-bottom: 8px solid var(--safety-orange);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -8rem -12rem auto;
  width: 32rem;
  height: 32rem;
  border-radius: 999px;
  background: rgba(232, 119, 34, 0.12);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(3.2rem, 6vw, 6.5rem) 0;
}

.hero-kicker,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  margin: 0 0 1rem;
  padding: 0.36rem 0.72rem;
  border-radius: 999px;
  background: rgba(232, 119, 34, 0.14);
  color: var(--safety-orange);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hero .hero-kicker {
  background: rgba(255, 255, 255, 0.10);
  color: #FFD4B5;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero h1,
.page-hero h1 {
  margin: 0;
  max-width: 1200px;
  color: inherit;
  font-size: clamp(2.25rem, 5vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-lead,
.page-lead {
  margin: 1.2rem 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 1.6vw, 1.38rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.65rem;
}

.hero-card {
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(1.3rem, 2vw, 2rem);
}

.hero-card h2,
.hero-card h3 {
  margin-top: 0;
  color: var(--charcoal);
}

.hero-card .mini-list {
  margin-bottom: 0;
}

.page-hero {
  background:
    linear-gradient(135deg, rgba(38, 50, 56, 0.98), rgba(55, 71, 79, 0.94));
  color: var(--white);
  border-bottom: 6px solid var(--safety-orange);
}

.page-hero-inner {
  padding: clamp(2.6rem, 5vw, 5rem) 0;
}

/* ---------------------------------------------
   5. Buttons and chips
--------------------------------------------- */

.button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.78rem 1.08rem;
  border: 0;
  border-radius: 999px;
  background: var(--safety-orange);
  color: var(--white);
  font: inherit;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(232, 119, 34, 0.22);
  cursor: pointer;
}

.button:hover,
.button:focus,
.btn:hover,
.btn:focus {
  background: var(--safety-orange-dark);
  color: var(--white);
}

.button.secondary,
.btn.secondary {
  background: var(--white);
  color: var(--charcoal);
  box-shadow: none;
}

.button.secondary:hover,
.button.secondary:focus,
.btn.secondary:hover,
.btn.secondary:focus {
  background: var(--light-concrete);
  color: var(--charcoal);
}

.button.dark,
.btn.dark {
  background: var(--charcoal);
  color: var(--white);
}

.button.dark:hover,
.button.dark:focus,
.btn.dark:hover,
.btn.dark:focus {
  background: var(--deep-slate);
  color: var(--white);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.38rem 0.72rem;
  border: 1px solid rgba(38, 50, 56, 0.14);
  border-radius: 999px;
  background: var(--white);
  color: var(--charcoal);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.chip:hover,
.chip:focus {
  border-color: rgba(232, 119, 34, 0.45);
  background: rgba(232, 119, 34, 0.08);
  color: var(--safety-orange-dark);
}

/* ---------------------------------------------
   6. Cards, grids, and panels
--------------------------------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

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

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

.auto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.card,
.panel,
.article-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(38, 50, 56, 0.10);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.15rem, 2vw, 1.65rem);
}

.card h2,
.card h3,
.panel h2,
.panel h3,
.article-card h2,
.article-card h3 {
  margin-top: 0;
}

.card p:last-child,
.panel p:last-child,
.article-card p:last-child {
  margin-bottom: 0;
}

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

.card-link:hover .card-title,
.card-link:focus .card-title {
  color: var(--safety-orange-dark);
}

.card-title {
  margin: 0 0 0.45rem;
  color: var(--charcoal);
  font-size: clamp(1.15rem, 1.5vw, 1.45rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

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

.feature-panel {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(236,239,241,0.82));
  border: 1px solid rgba(38, 50, 56, 0.10);
  border-left: 8px solid var(--safety-orange);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.35rem, 2.5vw, 2.2rem);
}

.note-card,
.warning-card,
.green-card {
  border-radius: var(--radius-md);
  padding: clamp(1rem, 2vw, 1.35rem);
}

.note-card {
  background: #FFF7EF;
  border: 1px solid rgba(232, 119, 34, 0.25);
}

.warning-card {
  background: #FFF4EA;
  border: 1px solid rgba(232, 119, 34, 0.36);
  border-left: 8px solid var(--safety-orange);
}

.green-card {
  background: #F3F8F1;
  border: 1px solid rgba(95, 127, 85, 0.26);
  border-left: 8px solid var(--muted-green);
}

.quick-answer {
  margin: 1.4rem 0;
  padding: clamp(1.2rem, 2vw, 1.6rem);
  border-radius: var(--radius-md);
  background: var(--charcoal);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.quick-answer h2,
.quick-answer h3,
.quick-answer strong {
  color: var(--white);
}

.quick-answer a {
  color: #FFD4B5;
}

/* ---------------------------------------------
   7. Article layout
--------------------------------------------- */

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: clamp(1.5rem, 3vw, 2.8rem);
  align-items: start;
}

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

.article-body {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(38, 50, 56, 0.10);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.25rem, 3vw, 3rem);
}

.article-body > *:first-child {
  margin-top: 0;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  color: var(--charcoal);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.article-body h2 {
  margin: clamp(2.2rem, 4vw, 3rem) 0 0.8rem;
  font-size: clamp(1.55rem, 2.4vw, 2.25rem);
}

.article-body h3 {
  margin: 1.7rem 0 0.55rem;
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
}

.article-body h4 {
  margin: 1.4rem 0 0.45rem;
  font-size: 1.12rem;
}

.article-body .lead,
.lead {
  color: var(--deep-slate);
  font-size: clamp(1.08rem, 1.4vw, 1.28rem);
  line-height: 1.62;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.8rem;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.96rem;
  font-weight: 700;
}

.article-meta a {
  color: #FFD4B5;
}

.article-meta.dark {
  color: var(--muted);
}

.article-meta.dark a {
  color: var(--safety-orange-dark);
}

.byline-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin: 1.4rem 0;
  padding: 1rem;
  border: 1px solid rgba(38, 50, 56, 0.10);
  border-radius: var(--radius-md);
  background: var(--soft-concrete);
}

.author-avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--white);
  font-size: 1.18rem;
  font-weight: 900;
}

.article-sidebar {
  position: sticky;
  top: 116px;
  min-width: 0;
}

.sidebar-card {
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(38, 50, 56, 0.10);
  box-shadow: var(--shadow-sm);
}

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

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

.sidebar-list li + li {
  border-top: 1px solid rgba(38, 50, 56, 0.10);
}

.sidebar-list a {
  display: block;
  padding: 0.65rem 0;
  color: var(--charcoal);
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
}

.sidebar-list a:hover,
.sidebar-list a:focus {
  color: var(--safety-orange-dark);
}

.toc {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
}

.toc a {
  display: grid;
  grid-template-columns: 1.65rem minmax(0, 1fr);
  gap: 0.4rem;
  padding: 0.48rem 0;
  color: var(--charcoal);
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.28;
  text-decoration: none;
}

.toc a::before {
  content: counter(toc);
  display: inline-grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: rgba(232, 119, 34, 0.12);
  color: var(--safety-orange-dark);
  font-size: 0.76rem;
  font-weight: 900;
}

.toc a:hover,
.toc a:focus {
  color: var(--safety-orange-dark);
}

/* ---------------------------------------------
   8. Tables and data blocks
--------------------------------------------- */

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin: 1.25rem 0;
  border: 1px solid rgba(38, 50, 56, 0.12);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: var(--white);
}

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

th,
td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(38, 50, 56, 0.10);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--charcoal);
  color: var(--white);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

tr:nth-child(even) td {
  background: var(--soft-concrete);
}

tr:last-child td {
  border-bottom: 0;
}

/* ---------------------------------------------
   9. Dumpster guide visual elements
--------------------------------------------- */

.size-band {
  display: grid;
  grid-template-columns: repeat(5, minmax(90px, 1fr));
  gap: 0.8rem;
  align-items: end;
  margin: 1.4rem 0;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--soft-concrete);
  border: 1px solid rgba(38, 50, 56, 0.10);
}

.size-bin {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.45rem;
  min-height: 168px;
  text-align: center;
}

.size-bin-graphic {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 54px;
  border: 3px solid var(--charcoal);
  border-top-width: 8px;
  border-radius: 8px 8px 12px 12px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.12), transparent),
    var(--deep-slate);
  color: var(--white);
  font-weight: 900;
}

.size-bin.small .size-bin-graphic { height: 58px; }
.size-bin.medium .size-bin-graphic { height: 78px; }
.size-bin.large .size-bin-graphic { height: 98px; }
.size-bin.xlarge .size-bin-graphic { height: 118px; }
.size-bin.xxlarge .size-bin-graphic { height: 138px; }

.size-bin-label {
  color: var(--charcoal);
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.2;
}

.checklist,
.step-list {
  margin: 1.25rem 0;
  padding: 0;
  list-style: none;
}

.checklist li,
.step-list li {
  position: relative;
  margin: 0.55rem 0;
  padding: 0.75rem 0.85rem 0.75rem 2.55rem;
  border: 1px solid rgba(38, 50, 56, 0.10);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0.82rem;
  top: 0.7rem;
  display: grid;
  place-items: center;
  width: 1.28rem;
  height: 1.28rem;
  border-radius: 50%;
  background: var(--safety-orange);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 900;
}

.step-list {
  counter-reset: steps;
}

.step-list li {
  counter-increment: steps;
}

.step-list li::before {
  content: counter(steps);
  position: absolute;
  left: 0.75rem;
  top: 0.72rem;
  display: grid;
  place-items: center;
  width: 1.38rem;
  height: 1.38rem;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 900;
}

.term-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.7fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(38, 50, 56, 0.12);
  border-radius: var(--radius-md);
  background: var(--white);
}

.term-grid dt,
.term-grid dd {
  margin: 0;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(38, 50, 56, 0.10);
}

.term-grid dt {
  background: var(--soft-concrete);
  color: var(--charcoal);
  font-weight: 900;
}

.term-grid dd {
  background: var(--white);
}

.term-grid dt:last-of-type,
.term-grid dd:last-of-type {
  border-bottom: 0;
}

/* ---------------------------------------------
   10. Ads - real AdSense wrappers only
--------------------------------------------- */

.ad-wrap {
  margin: clamp(1.5rem, 3vw, 2.4rem) 0;
  padding: 0.75rem 0;
  border-block: 1px solid rgba(38, 50, 56, 0.10);
  background: transparent;
}

.ad-label {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.adsbygoogle {
  max-width: 100%;
}

/* ---------------------------------------------
   11. Forms and contact-style elements
--------------------------------------------- */

.form-card {
  background: var(--white);
  border: 1px solid rgba(38, 50, 56, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.25rem, 2.5vw, 2rem);
}

label {
  display: block;
  margin: 0 0 0.35rem;
  color: var(--charcoal);
  font-weight: 900;
}

input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  padding: 0.78rem 0.85rem;
  border: 1px solid rgba(38, 50, 56, 0.20);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

/* ---------------------------------------------
   12. FAQ and details
--------------------------------------------- */

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

details {
  border: 1px solid rgba(38, 50, 56, 0.12);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

summary {
  cursor: pointer;
  padding: 1rem 1.2rem;
  color: var(--charcoal);
  font-weight: 900;
}

details[open] summary {
  border-bottom: 1px solid rgba(38, 50, 56, 0.10);
  background: var(--soft-concrete);
}

.details-body {
  padding: 1rem 1.2rem;
}

/* ---------------------------------------------
   13. Breadcrumbs and pagination
--------------------------------------------- */

.breadcrumbs {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 800;
}

.breadcrumbs a {
  color: #FFD4B5;
  text-decoration: none;
}

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

.breadcrumbs.dark a {
  color: var(--safety-orange-dark);
}

.pagination,
.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 2rem 0 0;
}

.article-nav a {
  flex: 1 1 0;
  padding: 1rem;
  border: 1px solid rgba(38, 50, 56, 0.12);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--charcoal);
  font-weight: 900;
  text-decoration: none;
}

.article-nav a:hover,
.article-nav a:focus {
  border-color: rgba(232, 119, 34, 0.45);
  color: var(--safety-orange-dark);
}

/* ---------------------------------------------
   14. Footer
--------------------------------------------- */

.site-footer {
  margin-top: clamp(2rem, 4vw, 4rem);
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.82);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) repeat(3, minmax(150px, 0.8fr));
  gap: clamp(1.4rem, 3vw, 3rem);
  padding: clamp(2rem, 4vw, 4rem) 0;
}

.footer-logo {
  width: min(380px, 100%);
  height: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-title {
  margin: 0 0 0.55rem;
  color: var(--white);
  font-size: 1.06rem;
  font-weight: 900;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li + li {
  margin-top: 0.35rem;
}

.footer-links a,
.site-footer a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus,
.site-footer a:hover,
.site-footer a:focus {
  color: #FFD4B5;
}

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding: 1rem 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
}

/* ---------------------------------------------
   15. Utility classes
--------------------------------------------- */

.text-muted { color: var(--muted); }
.text-orange { color: var(--safety-orange-dark); }
.text-green { color: var(--muted-green); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.no-margin { margin: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}

.align-center {
  align-items: center;
}

.hidden {
  display: none !important;
}

/* ---------------------------------------------
   16. Responsive behavior
--------------------------------------------- */

@media (max-width: 1180px) {
  .hero-inner,
  .split,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

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

  .site-logo {
    max-width: min(440px, 52vw);
  }
}

@media (max-width: 920px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.15rem;
  }

  .site-nav a {
    flex: 0 0 auto;
  }

  .site-logo {
    height: var(--header-logo-height-mobile);
    max-width: min(420px, 86vw);
  }

  .grid,
  .grid.two,
  .grid.four {
    grid-template-columns: 1fr;
  }

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

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

  .term-grid dt {
    border-bottom: 0;
  }

  .term-grid dd {
    border-bottom: 1px solid rgba(38, 50, 56, 0.10);
  }
}

@media (max-width: 720px) {
  :root {
    --safe-pad: var(--safe-pad-mobile);
  }

  body {
    font-size: 16px;
  }

  .hero-inner {
    padding: clamp(2.4rem, 12vw, 4rem) 0;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.05rem, 12vw, 3.25rem);
  }

  .hero-card,
  .article-body,
  .card,
  .panel,
  .article-card {
    border-radius: var(--radius-md);
  }

  .article-sidebar {
    grid-template-columns: 1fr;
  }

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

  .pagination,
  .article-nav {
    flex-direction: column;
  }

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

  .size-band {
    grid-template-columns: 1fr;
  }

  table {
    min-width: 560px;
  }
}

@media (max-width: 440px) {
  .site-logo {
    max-width: 92vw;
  }

  .brand-tagline {
    display: none;
  }

  .hero-actions,
  .chip-row {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .btn,
  .chip {
    width: 100%;
    justify-content: center;
  }
}

/* ---------------------------------------------
   17. Print
--------------------------------------------- */

@media print {
  .site-header,
  .site-footer,
  .article-sidebar,
  .ad-wrap,
  .hero-actions,
  .button,
  .btn {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }

  .wrap,
  .content-wrap,
  .reading-width,
  .narrow-but-not-tiny {
    width: 100%;
  }

  .hero,
  .page-hero {
    background: #fff;
    color: #000;
    border: 0;
  }

  .article-body,
  .card,
  .panel {
    box-shadow: none;
    border: 1px solid #ddd;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}
