/* 12 November 2026: light-and-dark rhythm for inner pages.
   Dark header, hero and summary; warm paper reading band for the page body;
   dark call-to-action and footer. Light bands re-point the existing colour
   tokens, so the shared templates keep their own rules. */

/* ---------- Paper reading band ---------- */
body:not(.dd-home) :is(.dd-content, .case-study-sections, .article-layout) {
  --lm-paper: #f3f0e8;
  --lm-card: #fffdf8;
  --lm-ink: #0b1113;
  --lm-teal: #0e625d;
  --lm-line: rgba(11, 17, 19, .14);

  --dd-paper-100: var(--lm-ink);
  --dd-paper-300: #46524f;
  --dd-cyan-400: var(--lm-teal);
  --dd-cyan-700: #b9d8d2;
  --dd-amber-400: #8a5a12;
  --dd-danger-400: #a3302a;
  --dd-ink-950: var(--lm-paper);
  --dd-ink-900: var(--lm-card);
  --dd-ink-800: #e4dfd2;
  --dd-border: var(--lm-line);

  color-scheme: light;
  color: var(--lm-ink);
  background: var(--lm-paper);
  box-shadow: 0 0 0 100vmax var(--lm-paper);
  clip-path: inset(0 -100vmax);
}
body:not(.dd-home) :is(.dd-content, .case-study-sections, .article-layout) > :first-child { border-top-color: transparent; }

/* Cards and panels lift off the paper. */
body:not(.dd-home) :is(.dd-content, .case-study-sections, .article-layout) .dd-content-card {
  background: var(--lm-card);
  border: 1px solid var(--lm-line);
  border-radius: 10px;
  box-shadow: 0 14px 32px -26px rgba(11, 17, 19, .5);
}
body:not(.dd-home) .article-layout .article-author { margin-top: 2.5rem; }
body:not(.dd-home) :is(.dd-content, .case-study-sections, .article-layout) :is(img, figure img) {
  border-radius: 10px;
}

/* ---------- Dark call-to-action resting on the paper ---------- */
body:not(.dd-home) :is(.dd-content-cta, .case-study-cta-block, .article-cta-block) {
  --dd-paper-100: #f3f0e8;
  --dd-paper-300: #c8c6be;
  --dd-cyan-400: #4fd1c5;
  --dd-cyan-700: #174d4c;
  --dd-amber-400: #d8a657;
  --dd-ink-950: #0b1113;
  --dd-ink-900: #11191c;
  --dd-ink-800: #1a2529;
  --dd-border: rgba(200, 198, 190, .16);

  color-scheme: dark;
  color: #f3f0e8;
  background-color: #11191c;
  border-radius: 12px;
}
body:not(.dd-home) :is(.dd-content, .case-study-sections, .article-layout) :is(.dd-content-cta, .case-study-cta-block, .article-cta-block) {
  box-shadow: 0 24px 60px -28px rgba(11, 17, 19, .55);
}

/* ---------- About and legal pages ---------- */
.trust-main { padding-bottom: 0; }
.trust-layout {
  --trust-bg: #f3f0e8;
  --trust-surface: #fffdf8;
  --trust-border: rgba(11, 17, 19, .14);
  --trust-text: #0b1113;
  --trust-muted: #46524f;
  --trust-accent: #0e625d;
  --trust-warm: #8a5a12;

  color-scheme: light;
  color: var(--trust-text);
  background: var(--trust-bg);
  padding-block: clamp(3rem, 6vw, 5rem);
  box-shadow: 0 0 0 100vmax var(--trust-bg);
  clip-path: inset(0 -100vmax);
}
.trust-layout .trust-aside { border-radius: 10px; box-shadow: 0 14px 32px -26px rgba(11, 17, 19, .5); }

/* ---------- Hero visuals (added by scripts/apply-lightmix-visuals-20261112.mjs) ---------- */
.lm-hero-visual { margin: 2rem 0 0; max-width: 26rem; }
.lm-hero-visual figcaption { margin-top: .625rem; color: var(--dd-paper-300); font-size: .875rem; line-height: 1.5; }
.lm-flow {
  padding: 1.5rem;
  border: 1px solid var(--dd-border);
  border-radius: 12px;
  background: var(--dd-ink-900);
  box-shadow: inset 0 3px var(--dd-cyan-400), 0 28px 60px -32px rgba(0, 0, 0, .7);
}
.lm-flow-kicker { margin: 0 0 .5rem; color: var(--dd-cyan-400); font-size: .75rem; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; }
.lm-flow-title { margin: 0 0 1rem; color: var(--dd-paper-100); font-size: 1.375rem; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.lm-flow ol { list-style: none; margin: 0; padding: 0; }
.lm-flow li { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: .75rem; align-items: center; padding: .75rem 0; border-top: 1px solid var(--dd-border); }
.lm-flow li:last-child { padding-bottom: 0; }
.lm-flow-number {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem;
  border: 1px solid var(--dd-cyan-700); border-radius: 50%;
  color: var(--dd-cyan-400); font-size: .75rem; font-weight: 650;
}
.lm-flow li:last-child .lm-flow-number { background: var(--dd-amber-400); border-color: var(--dd-amber-400); color: var(--dd-ink-950); }
.lm-flow-copy { display: grid; min-width: 0; }
.lm-flow-copy small { color: var(--dd-paper-300); font-size: .75rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.lm-flow-copy strong { color: var(--dd-paper-100); font-size: 1rem; font-weight: 600; line-height: 1.35; }

.lm-shots-frame { position: relative; padding: 0 0 9% 0; }
.lm-shots img { display: block; height: auto; border: 1px solid var(--dd-border); box-shadow: 0 28px 60px -32px rgba(0, 0, 0, .8); }
.lm-shot-desktop { width: 100%; border-radius: 10px; }
.lm-shot-mobile { position: absolute; right: 4%; bottom: 0; width: 24%; border-radius: 12px; }

.lm-hero-portrait { display: block; width: 10rem; height: 10rem; margin-top: 2rem; object-fit: cover; border-radius: 12px; }

@media (min-width: 1100px) {
  :is(.dd-content-hero, .article-hero):has(.lm-hero-visual) { position: relative; min-height: 38rem; }
  :is(.dd-content-hero, .article-hero):has(.lm-hero-visual) > :not(.lm-hero-visual) { max-width: min(100%, 43rem); }
  :is(.dd-content-hero, .article-hero):has(.lm-hero-visual) > h1 { font-size: clamp(2.8rem, 4.6vw, 4.5rem); }
  :is(.dd-content-hero, .article-hero) > .lm-hero-visual {
    position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    width: 25rem; max-width: none; margin: 0;
  }
  :is(.dd-content-hero, .article-hero) > .lm-shots { width: 29rem; }

  .trust-hero:has(.lm-hero-portrait) {
    max-width: none; display: grid; grid-template-columns: minmax(0, 52rem) minmax(0, 1fr); column-gap: 3rem;
  }
  .trust-hero:has(.lm-hero-portrait) > :not(.lm-hero-portrait) { grid-column: 1; }
  .trust-hero > .lm-hero-portrait {
    grid-column: 2; grid-row: 1 / span 3; align-self: center; justify-self: end;
    width: 100%; max-width: 17.5rem; height: auto; aspect-ratio: 1; margin: 0;
    box-shadow: 0 28px 60px -32px rgba(0, 0, 0, .8);
  }
}
@media (max-width: 767px) {
  .lm-hero-visual { margin-top: 1.5rem; }
  .lm-flow { padding: 1rem; }
  .lm-flow-title { font-size: 1.125rem; margin-bottom: .75rem; }
  .lm-flow li { padding: .5rem 0; }
  .lm-flow-copy strong { font-size: .9375rem; }
}

/* ---------- Index pages: icon cards on the paper band ---------- */
body:not(.dd-home) .lm-card-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 20px; }
body:not(.dd-home) .lm-card-grid .article-card {
  display: flex; flex-direction: column; gap: .5rem;
  padding: 1.5rem;
  background: var(--lm-card);
  border: 1px solid var(--lm-line);
  border-radius: 10px;
  box-shadow: 0 14px 32px -26px rgba(11, 17, 19, .5);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
body:not(.dd-home) .lm-card-grid .article-card:hover { transform: translateY(-2px); box-shadow: 0 20px 36px -24px rgba(11, 17, 19, .55); }
body:not(.dd-home) .lm-card-grid .article-card .section-kicker { margin: .5rem 0 0; }
body:not(.dd-home) .lm-card-grid .article-card h2 { font-size: 1.375rem; line-height: 1.2; }
body:not(.dd-home) .lm-card-grid .article-card > p:not(.section-kicker) { margin: 0; }
body:not(.dd-home) .lm-card-grid .article-card .case-cta { margin-top: auto; padding-top: .75rem; }
.lm-card-icon {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border-radius: 10px; background: #dcebe6; color: #0e625d;
}
@media (prefers-reduced-motion: reduce) {
  body:not(.dd-home) .lm-card-grid .article-card { transition: none; }
  body:not(.dd-home) .lm-card-grid .article-card:hover { transform: none; }
}

/* ---------- Hosting comparison table: scroll inside its frame on small screens ---------- */
.hosting-service-comparison { min-width: 0; max-width: 100%; }
.hosting-comparison-table-wrap {
  max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--dd-border); border-radius: 10px;
}
.hosting-comparison-table { width: 100%; min-width: 40rem; border-collapse: collapse; }
.hosting-comparison-table :is(th, td) { padding: .75rem .875rem; border-bottom: 1px solid var(--dd-border); text-align: left; vertical-align: top; }
.hosting-comparison-table tbody tr:last-child > * { border-bottom: 0; }

/* ---------- Bolder look carried over from the homepage ---------- */
:root { --wow-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif; }

/* Hero atmosphere: glows fade out inside the hero box, so nothing is cut off. */
body:not(.dd-home) :is(.dd-content-hero, .article-hero, .case-study-hero),
.trust-hero {
  background-image:
    radial-gradient(ellipse 42% 62% at 70% 46%, rgba(79, 209, 197, .16), transparent 66%),
    radial-gradient(ellipse 36% 46% at 26% 66%, rgba(216, 166, 87, .1), transparent 66%);
  background-repeat: no-repeat;
}

/* Amber rule before hero labels. */
body:not(.dd-home) .dd-content-hero .dd-eyebrow,
body:not(.dd-home) .case-study-hero .eyebrow,
.trust-eyebrow { display: flex; align-items: center; gap: .75rem; }
body:not(.dd-home) .dd-content-hero .dd-eyebrow::before,
body:not(.dd-home) .case-study-hero .eyebrow::before,
.trust-eyebrow::before {
  content: ''; flex: 0 0 1.75rem; height: 2px; border-radius: 2px; background: #d8a657;
}

/* Serif accent and glowing edge on hero cards and panels. */
.lm-flow-title,
body:not(.dd-home) .case-study-panel h2 { font-family: var(--wow-serif); font-style: italic; font-weight: 500; letter-spacing: -.01em; }
.lm-flow-title { font-size: 1.5rem; }
.lm-flow,
body:not(.dd-home) .case-study-hero .case-study-panel {
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(79, 209, 197, .22), 0 44px 90px -44px rgba(79, 209, 197, .4);
}
.lm-flow { box-shadow: inset 0 3px var(--dd-cyan-400), 0 0 0 1px rgba(79, 209, 197, .22), 0 44px 90px -44px rgba(79, 209, 197, .4); }
body:not(.dd-home) .dd-summary { border-radius: 12px; }
.lm-hero-portrait { box-shadow: 0 0 0 3px #0b1113, 0 0 0 5px #4fd1c5, 0 28px 60px -32px rgba(0, 0, 0, .8); }

/* Calls to action: glow and amber rule. */
body:not(.dd-home) :is(.dd-content-cta, .case-study-cta-block, .article-cta-block) {
  background-image:
    radial-gradient(28rem 18rem at 88% 20%, rgba(79, 209, 197, .2), transparent 66%),
    radial-gradient(22rem 14rem at 6% 100%, rgba(216, 166, 87, .13), transparent 66%);
  background-repeat: no-repeat;
}
body:not(.dd-home) :is(.dd-content-cta, .case-study-cta-block, .article-cta-block) :is(.dd-eyebrow, .section-kicker, .eyebrow) {
  display: flex; align-items: center; gap: .75rem;
}
body:not(.dd-home) :is(.dd-content-cta, .case-study-cta-block, .article-cta-block) :is(.dd-eyebrow, .section-kicker, .eyebrow)::before {
  content: ''; flex: 0 0 1.75rem; height: 2px; border-radius: 2px; background: #d8a657;
}

/* Cards on the paper band lift on hover. */
body:not(.dd-home) :is(.dd-content, .case-study-sections, .article-layout) .dd-content-card { transition: transform 180ms ease, box-shadow 180ms ease; }
body:not(.dd-home) :is(.dd-content, .case-study-sections, .article-layout) .dd-content-card:hover { transform: translateY(-2px); box-shadow: 0 20px 36px -24px rgba(11, 17, 19, .55); }
@media (prefers-reduced-motion: reduce) {
  body:not(.dd-home) :is(.dd-content, .case-study-sections, .article-layout) .dd-content-card { transition: none; }
  body:not(.dd-home) :is(.dd-content, .case-study-sections, .article-layout) .dd-content-card:hover { transform: none; }
}
