/* Millwards Digital editorial service pages.
   The homepage stylesheet supplies the shared brand, header, buttons and footer. */

.service-page {
  background: var(--paper);
}

.service-page main {
  min-height: 60vh;
}

.service-page .site-nav > a[aria-current="page"]:not(.button) {
  color: var(--coral-dark);
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 3px;
  text-underline-offset: 7px;
}

.guide-breadcrumb {
  border-bottom: 1px solid var(--line);
  background: var(--paper-deep);
  color: #505b6b;
}

.guide-breadcrumb ol {
  display: flex;
  min-height: 48px;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 auto;
  padding-block: 10px;
  color: #505b6b;
  font-size: 0.78rem;
  font-weight: 700;
  list-style: none;
}

.guide-breadcrumb li:not(:last-child)::after {
  margin-left: 8px;
  color: var(--coral-dark);
  content: "/";
}

.guide-breadcrumb a {
  color: var(--ink);
  text-underline-offset: 3px;
}

.guide-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(66px, 8vw, 112px);
  border-bottom: 2px solid var(--ink);
  background:
    radial-gradient(circle at 92% 14%, rgb(203 216 63 / 30%) 0 8%, transparent 8.2%),
    linear-gradient(135deg, var(--cream) 0 62%, var(--paper-deep) 62% 100%);
}

.guide-hero::before,
.guide-hero::after {
  position: absolute;
  z-index: -1;
  border: 2px solid var(--ink);
  content: "";
  pointer-events: none;
}

.guide-hero::before {
  top: 42px;
  right: -34px;
  width: 110px;
  height: 110px;
  background: var(--coral);
  rotate: 8deg;
}

.guide-hero::after {
  bottom: -45px;
  left: 7%;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--blue);
}

.guide-hero-grid {
  display: grid;
  align-items: center;
  gap: clamp(44px, 7vw, 92px);
  grid-template-columns: minmax(0, 1.06fr) minmax(330px, 0.78fr);
}

.guide-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 730px;
}

.guide-hero-copy h1 {
  max-width: 13ch;
  margin-bottom: 24px;
  font-size: clamp(2.85rem, 5.4vw, 5.25rem);
}

.guide-hero-copy h1 em {
  color: var(--coral-dark);
  font-weight: inherit;
}

.guide-hero-copy .hero-lede {
  max-width: 64ch;
  margin-bottom: 28px;
  color: var(--ink-soft);
  font-size: clamp(1.04rem, 1.5vw, 1.2rem);
  line-height: 1.65;
}

.guide-hero-copy .hero-meta {
  width: fit-content;
  margin: -9px 0 26px;
  padding: 7px 10px;
  border: 1px solid var(--ink);
  background: var(--lime);
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 800;
}

.guide-hero-copy .eyebrow {
  margin-bottom: 20px;
}

.guide-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 24px;
}

.guide-hero-visual {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.guide-image-card,
.guide-visual-card,
.guide-hero-visual .portfolio-browser {
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.guide-image-card {
  position: relative;
  overflow: hidden;
  rotate: 1.2deg;
}

.guide-image-card picture,
.guide-image-card img {
  width: 100%;
}

.guide-image-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.guide-image-card figcaption,
.guide-visual-label {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 8px 11px;
  border: 2px solid var(--ink);
  background: var(--lime);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-hero-visual .portfolio-browser {
  overflow: hidden;
  rotate: -1deg;
}

.guide-hero-visual .portfolio-preview {
  min-height: 300px;
}

.guide-visual-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 38px);
}

.guide-visual-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ink);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.guide-status-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--success);
}

.guide-status-dot::before {
  width: 10px;
  height: 10px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
  content: "";
}

.guide-status-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-status-list li {
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--ink);
  background: var(--cream);
  grid-template-columns: 36px 1fr auto;
}

.guide-status-list li > span:first-child {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--paper-deep);
  font-weight: 900;
}

.guide-status-list strong {
  color: var(--ink);
  font-size: 0.88rem;
}

.guide-status-list small {
  color: var(--success);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.guide-receipt {
  rotate: 1deg;
}

.guide-receipt h2 {
  margin-bottom: 8px;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.guide-receipt > p {
  margin-bottom: 24px;
  color: var(--muted);
}

.guide-receipt-lines {
  display: grid;
  gap: 10px;
  margin: 0;
}

.guide-receipt-lines > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 10px;
  border-bottom: 1px dashed var(--line);
}

.guide-receipt-lines dt,
.guide-receipt-lines dd {
  margin: 0;
}

.guide-receipt-lines dt {
  color: var(--muted);
}

.guide-receipt-lines dd {
  color: var(--ink);
  font-weight: 900;
}

.guide-receipt-lines .guide-receipt-total {
  margin-top: 8px;
  padding: 16px 12px;
  border: 2px solid var(--ink);
  background: var(--lime);
  font-size: 1.05rem;
}

.guide-facts {
  border-bottom: 2px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
}

.guide-facts ul {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
}

.guide-facts li {
  padding: 22px clamp(18px, 3vw, 34px);
  border-left: 1px solid #415270;
}

.guide-facts li:first-child {
  border-left: 0;
}

.guide-facts span,
.guide-facts strong {
  display: block;
}

.guide-facts span {
  margin-bottom: 3px;
  color: var(--lime);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.guide-facts strong {
  color: var(--cream);
  font-size: 0.9rem;
}

.guide-content {
  background: var(--white);
}

.guide-content .prose-grid {
  display: grid;
  align-items: start;
  gap: clamp(48px, 7vw, 92px);
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 0.9fr);
}

.guide-summary {
  position: sticky;
  top: 105px;
  padding: 25px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--paper);
  box-shadow: var(--shadow-small);
}

.guide-summary .mini-label,
.guide-prose .mini-label,
.cost-calculator .mini-label {
  display: block;
  margin-bottom: 9px;
  color: var(--coral-dark);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.guide-summary h2 {
  margin-bottom: 17px;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  line-height: 1.12;
}

.guide-summary > ul {
  display: grid;
  gap: 9px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.guide-summary > ul li {
  position: relative;
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.guide-summary > ul li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 9px;
  height: 9px;
  border: 1px solid var(--ink);
  background: var(--lime);
  content: "";
  translate: 0 -50%;
}

.guide-toc {
  margin: 0 0 22px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
}

.guide-toc > span {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.guide-toc a {
  display: block;
  padding-block: 5px;
  color: var(--ink-soft);
  font-size: 0.79rem;
  font-weight: 700;
  line-height: 1.35;
  text-underline-offset: 3px;
}

.guide-summary .button {
  width: 100%;
}

.guide-prose {
  min-width: 0;
  max-width: 790px;
}

.guide-prose > .eyebrow:first-child {
  margin-bottom: 18px;
}

.guide-prose h2,
.guide-prose h3 {
  scroll-margin-top: 105px;
}

.guide-prose h2 {
  margin: clamp(58px, 8vw, 86px) 0 22px;
  font-size: clamp(2.05rem, 4vw, 3.45rem);
  line-height: 1.08;
}

.guide-prose > .eyebrow + h2,
.guide-prose > h2:first-child {
  margin-top: 0;
}

.guide-prose h3 {
  margin: 36px 0 13px;
  font-size: clamp(1.4rem, 2.5vw, 1.82rem);
  line-height: 1.18;
}

.guide-prose p,
.guide-prose li {
  color: #334155;
}

.guide-prose p {
  margin-bottom: 19px;
  font-size: 1.02rem;
}

.guide-prose a:not(.button) {
  color: var(--coral-dark);
  font-weight: 750;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.guide-prose a:not(.button):hover {
  color: var(--blue);
}

.guide-prose .callout {
  position: relative;
  margin-block: 44px;
  padding: clamp(24px, 4vw, 38px);
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: color-mix(in srgb, var(--lime) 45%, var(--cream));
  box-shadow: var(--shadow-small);
}

.guide-prose .callout::after {
  position: absolute;
  top: -13px;
  right: 21px;
  width: 22px;
  height: 22px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--coral);
  content: "";
}

.guide-prose .callout h3 {
  margin: 0 0 12px;
}

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

.guide-prose .check-list {
  display: grid;
  gap: 11px;
  margin: 28px 0 32px;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
}

.guide-prose .check-list li {
  position: relative;
  padding: 13px 14px 13px 43px;
  border: 1px solid var(--line);
  background: var(--cream);
  font-size: 0.9rem;
  font-weight: 700;
}

.guide-prose .check-list li::before {
  position: absolute;
  top: 13px;
  left: 13px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--lime);
  color: var(--ink);
  content: "✓";
  font-size: 0.7rem;
  font-weight: 900;
}

.guide-prose details {
  border-top: 1px solid var(--line);
}

.guide-prose details:last-of-type {
  border-bottom: 1px solid var(--line);
}

.guide-prose summary {
  position: relative;
  padding: 20px 42px 20px 0;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.25;
  list-style: none;
}

.guide-prose summary::-webkit-details-marker {
  display: none;
}

.guide-prose summary::after {
  position: absolute;
  top: 19px;
  right: 4px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--paper);
  content: "+";
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 900;
}

.guide-prose details[open] summary::after {
  background: var(--coral);
  content: "−";
}

.guide-prose details > p {
  max-width: 68ch;
  padding-right: 38px;
  padding-bottom: 20px;
}

.guide-table-wrap {
  max-width: 100%;
  margin: 30px 0 18px;
  overflow-x: auto;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--white);
  box-shadow: var(--shadow-small);
  -webkit-overflow-scrolling: touch;
}

.guide-table-wrap:focus-visible {
  outline: 4px solid var(--coral);
  outline-offset: 4px;
}

.guide-table-wrap table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.guide-table-wrap caption {
  padding: 16px 18px;
  border-bottom: 2px solid var(--ink);
  background: var(--paper-deep);
  color: var(--ink);
  font-weight: 900;
  text-align: left;
}

.guide-table-wrap th,
.guide-table-wrap td {
  padding: 15px 17px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.guide-table-wrap th:last-child,
.guide-table-wrap td:last-child {
  border-right: 0;
}

.guide-table-wrap thead th {
  background: var(--ink);
  color: var(--cream);
  font-size: 0.73rem;
  letter-spacing: 0.03em;
}

.guide-table-wrap tbody th {
  background: color-mix(in srgb, var(--lime) 34%, var(--cream));
  color: var(--ink);
}

.guide-table-wrap tr:last-child th,
.guide-table-wrap tr:last-child td {
  border-bottom: 0;
}

.table-scroll-hint {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.77rem;
}

.cost-calculator {
  margin-block: 44px;
  padding: clamp(24px, 4vw, 38px);
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.cost-calculator h3 {
  margin: 0 0 9px;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.cost-calculator > p {
  margin-bottom: 26px;
}

.cost-calculator-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cost-calculator label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 850;
}

.cost-calculator input,
.cost-calculator select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: var(--white);
}

.cost-calculator-output {
  display: grid;
  gap: 0;
  margin: 24px 0 12px;
  border: 2px solid var(--ink);
  background: var(--white);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cost-calculator-output > div {
  padding: 18px;
}

.cost-calculator-output > div + div {
  border-left: 2px solid var(--ink);
  background: var(--lime);
}

.cost-calculator-output span,
.cost-calculator-output strong {
  display: block;
}

.cost-calculator-output span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cost-calculator-output > div + div span {
  color: var(--ink-soft);
}

.cost-calculator-output strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.cost-calculator-note {
  margin: 0 !important;
  color: var(--muted) !important;
  font-size: 0.76rem !important;
}

.guide-proof {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--paper-deep);
}

.guide-proof-heading,
.guide-related-heading {
  display: grid;
  align-items: end;
  gap: 24px;
  margin-bottom: 42px;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.44fr);
}

.guide-proof-heading h2,
.guide-related-heading h2 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(2.35rem, 4.5vw, 4rem);
}

.guide-proof-heading > p:last-child,
.guide-related-heading > p:last-child {
  margin: 0;
  color: #505b6b;
}

.proof-grid,
.related-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.proof-card,
.link-card {
  position: relative;
  display: block;
  min-width: 0;
  padding: clamp(24px, 4vw, 36px);
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--white);
  box-shadow: var(--shadow-small);
  color: var(--text);
  text-decoration: none;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.proof-card:nth-child(2),
.link-card:nth-child(2) {
  background: color-mix(in srgb, var(--lime) 24%, var(--white));
}

.proof-card h3,
.link-card h3 {
  margin-bottom: 12px;
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
}

.proof-card p,
.link-card p {
  margin-bottom: 20px;
  color: var(--muted);
}

.proof-card span,
.link-card span {
  color: var(--coral-dark);
  font-size: 0.79rem;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

@media (hover: hover) and (pointer: fine) {
  .proof-card:hover,
  .link-card:hover {
    box-shadow: 8px 8px 0 var(--ink);
    color: var(--text);
    transform: translate(-2px, -2px);
  }
}

.guide-related {
  background: var(--paper);
}

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

.link-card {
  min-height: 100%;
}

.guide-cta {
  position: relative;
  overflow: hidden;
  border-top: 2px solid var(--ink);
  background: var(--blue);
  color: var(--cream);
}

.guide-cta::after {
  position: absolute;
  right: -54px;
  bottom: -54px;
  width: 155px;
  height: 155px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--coral);
  content: "";
}

.guide-cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  gap: 34px;
  padding-block: clamp(62px, 7vw, 90px);
  grid-template-columns: minmax(0, 0.85fr) auto;
}

.guide-cta h2 {
  max-width: 16ch;
  margin-bottom: 12px;
  color: var(--cream);
  font-size: clamp(2.35rem, 4.5vw, 4rem);
}

.guide-cta p {
  max-width: 62ch;
  margin: 0;
  color: #dce5f3;
}

.guide-cta-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.guide-cta .text-link {
  color: var(--cream);
}

.service-page .footer-utility {
  justify-content: flex-end;
}

@media (max-width: 1080px) {
  .guide-hero-grid {
    gap: 48px;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  }

  .guide-content .prose-grid {
    gap: 54px;
    grid-template-columns: minmax(210px, 0.32fr) minmax(0, 0.9fr);
  }

  .related-grid {
    gap: 16px;
  }
}

@media (max-width: 860px) {
  .guide-hero-grid,
  .guide-content .prose-grid,
  .guide-proof-heading,
  .guide-related-heading,
  .guide-cta-inner {
    grid-template-columns: 1fr;
  }

  .guide-hero-copy {
    max-width: 760px;
  }

  .guide-hero-copy h1 {
    max-width: 15ch;
  }

  .guide-hero-visual {
    width: min(100%, 650px);
  }

  .guide-summary {
    position: static;
    display: grid;
    align-items: start;
    gap: 16px 26px;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.7fr);
  }

  .guide-summary .mini-label,
  .guide-summary h2 {
    grid-column: 1 / -1;
  }

  .guide-summary > ul,
  .guide-summary .guide-toc {
    margin-bottom: 0;
  }

  .guide-summary .button {
    grid-column: 1 / -1;
  }

  .guide-proof-heading > p:last-child,
  .guide-related-heading > p:last-child {
    max-width: 640px;
  }

  .guide-cta-actions {
    justify-self: start;
  }

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

@media (max-width: 680px) {
  .guide-hero {
    padding-block: 58px 70px;
  }

  .guide-hero::before {
    width: 72px;
    height: 72px;
  }

  .guide-hero::after {
    display: none;
  }

  .guide-hero-copy h1 {
    font-size: clamp(2.55rem, 13vw, 4rem);
  }

  .guide-facts ul,
  .guide-prose .check-list,
  .proof-grid,
  .cost-calculator-grid,
  .cost-calculator-output,
  .guide-summary {
    grid-template-columns: 1fr;
  }

  .guide-facts li,
  .guide-facts li:first-child {
    padding-block: 16px;
    border-top: 1px solid #415270;
    border-left: 0;
  }

  .guide-facts li:first-child {
    border-top: 0;
  }

  .guide-summary .mini-label,
  .guide-summary h2,
  .guide-summary .button {
    grid-column: auto;
  }

  .guide-prose h2 {
    margin-top: 58px;
  }

  .guide-prose details > p {
    padding-right: 0;
  }

  .cost-calculator-output > div + div {
    border-top: 2px solid var(--ink);
    border-left: 0;
  }

  .guide-cta::after {
    opacity: 0.35;
  }
}

@media (max-width: 420px) {
  .guide-hero-actions,
  .guide-cta-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .guide-hero-actions .button,
  .guide-cta-actions .button {
    width: 100%;
  }

  .guide-status-list li {
    grid-template-columns: 34px 1fr;
  }

  .guide-status-list small {
    grid-column: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guide-image-card,
  .guide-receipt,
  .guide-hero-visual .portfolio-browser {
    rotate: 0deg;
  }
}

@media print {
  .service-page .site-header,
  .guide-breadcrumb,
  .guide-hero-visual,
  .guide-summary,
  .guide-related,
  .guide-cta,
  .service-page .site-footer {
    display: none !important;
  }

  .guide-hero,
  .guide-content,
  .service-page {
    background: #fff !important;
  }

  .guide-hero {
    padding-block: 20px;
    border: 0;
  }

  .guide-content .prose-grid {
    display: block;
  }
}

/* Page-template compatibility and extended editorial components. */
.guide-hero-lede {
  max-width: 64ch;
  margin-bottom: 28px;
  color: var(--ink-soft);
  font-size: clamp(1.04rem, 1.5vw, 1.2rem);
  line-height: 1.65;
}

.guide-visual-caption {
  width: fit-content;
  margin: 18px 0 0 auto;
  padding: 8px 11px;
  border: 1px solid var(--ink);
  background: var(--lime);
  color: var(--ink);
  font-size: 0.73rem;
  font-weight: 800;
  box-shadow: 3px 3px 0 var(--ink);
}

.guide-visual-caption a {
  color: var(--ink);
  text-underline-offset: 3px;
}

.guide-facts-list,
.guide-facts-grid {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.guide-facts-list > div,
.guide-facts-grid > div {
  padding: 22px clamp(16px, 2.4vw, 28px);
  border-left: 1px solid #415270;
}

.guide-facts-list > div:first-child,
.guide-facts-grid > div:first-child {
  border-left: 0;
}

.guide-facts-list dt,
.guide-facts-list dd,
.guide-facts-grid strong,
.guide-facts-grid span {
  display: block;
  margin: 0;
}

.guide-facts-list dt,
.guide-facts-grid span {
  margin-bottom: 3px;
  color: var(--lime);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.guide-facts-list dd,
.guide-facts-grid strong {
  color: var(--cream);
  font-size: 0.9rem;
  font-weight: 800;
}

.guide-content-section {
  background: var(--white);
}

.guide-layout {
  display: grid;
  align-items: start;
  gap: clamp(48px, 7vw, 92px);
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 0.9fr);
}

.guide-summary-list {
  display: grid;
  gap: 9px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.guide-summary-list li {
  position: relative;
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.guide-summary-list li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 9px;
  height: 9px;
  border: 1px solid var(--ink);
  background: var(--lime);
  content: "";
  translate: 0 -50%;
}

.guide-mini-label {
  display: block;
  margin-bottom: 9px;
  color: var(--coral-dark);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.guide-toc > p {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.guide-prose .guide-callout {
  position: relative;
  margin-block: 44px;
  padding: clamp(24px, 4vw, 38px);
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: color-mix(in srgb, var(--lime) 45%, var(--cream));
  box-shadow: var(--shadow-small);
}

.guide-prose .guide-callout::after {
  position: absolute;
  top: -13px;
  right: 21px;
  width: 22px;
  height: 22px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--coral);
  content: "";
}

.guide-prose .guide-callout h3 {
  margin: 0 0 12px;
}

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

.guide-check-list {
  display: grid;
  gap: 11px;
  margin: 28px 0 32px;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
}

.guide-check-list li {
  position: relative;
  padding: 13px 14px 13px 43px;
  border: 1px solid var(--line);
  background: var(--cream);
  color: #334155;
  font-size: 0.9rem;
  font-weight: 700;
}

.guide-check-list li::before {
  position: absolute;
  top: 13px;
  left: 13px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--lime);
  color: var(--ink);
  content: "✓";
  font-size: 0.7rem;
  font-weight: 900;
}

.guide-inline-cta {
  display: grid;
  align-items: center;
  gap: 24px;
  margin-block: 52px;
  padding: clamp(24px, 4vw, 34px);
  border: 2px solid var(--ink);
  background: var(--paper-deep);
  box-shadow: var(--shadow-small);
  grid-template-columns: minmax(0, 1fr) auto;
}

.guide-inline-cta h3 {
  margin: 0 0 8px;
}

.guide-inline-cta p:last-child {
  margin-bottom: 0;
}

.guide-faq-list:not(.faq-list) details {
  border-top: 1px solid var(--line);
}

.guide-faq-list:not(.faq-list) details:last-child {
  border-bottom: 1px solid var(--line);
}

.guide-faq-list:not(.faq-list) summary {
  position: relative;
  padding: 20px 42px 20px 0;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.25;
  list-style: none;
}

.guide-faq-list:not(.faq-list) summary::-webkit-details-marker {
  display: none;
}

.guide-faq-list:not(.faq-list) summary::after {
  position: absolute;
  top: 19px;
  right: 4px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--paper);
  content: "+";
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 900;
}

.guide-faq-list:not(.faq-list) details[open] summary::after {
  background: var(--coral);
  content: "−";
}

.guide-faq-list:not(.faq-list) details > p {
  max-width: 68ch;
  padding: 0 36px 20px 0;
}

.guide-work-section {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
}

.guide-work-heading h2 {
  color: var(--cream);
}

.guide-work-heading > p,
.guide-work-heading > div + p {
  color: #bec8d7;
}

.guide-work-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guide-work-card {
  padding: clamp(25px, 4vw, 38px);
  border: 2px solid var(--cream);
  border-radius: 4px;
  background: #10264b;
  box-shadow: 6px 6px 0 var(--coral);
}

.guide-work-card:nth-child(2) {
  box-shadow: 6px 6px 0 var(--lime);
}

.guide-work-card h3 {
  margin-bottom: 13px;
  color: var(--cream);
  font-size: clamp(1.7rem, 3vw, 2.45rem);
}

.guide-work-card > p:not(.guide-work-type) {
  color: #d5dce6;
}

.guide-work-type {
  margin-bottom: 10px;
  color: var(--lime);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.guide-work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 25px;
  padding: 0;
  list-style: none;
}

.guide-work-tags li {
  padding: 6px 9px;
  border: 1px solid #70809a;
  color: #e5eaf1;
  font-size: 0.71rem;
  font-weight: 700;
}

.guide-work-link {
  color: var(--cream);
  font-size: 0.81rem;
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.guide-related-section {
  background: var(--paper);
}

.guide-related-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-related-card,
.guide-related-grid > a {
  display: block;
  min-height: 100%;
  padding: clamp(22px, 3vw, 31px);
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--white);
  box-shadow: var(--shadow-small);
  color: var(--text);
  text-decoration: none;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.guide-related-card:nth-child(2),
.guide-related-grid > a:nth-child(2) {
  background: color-mix(in srgb, var(--lime) 25%, var(--white));
}

.guide-card-number,
.guide-related-grid > a > span:first-child {
  margin-bottom: 22px;
  color: var(--coral-dark);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.guide-related-card h3,
.guide-related-grid > a h3 {
  margin-bottom: 12px;
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
}

.guide-related-card p,
.guide-related-grid > a p {
  color: var(--muted);
}

.guide-related-card > span:last-child,
.guide-related-grid > a strong {
  color: var(--coral-dark);
  font-size: 0.77rem;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.guide-light-link {
  padding-block: 8px;
  color: var(--cream);
  font-size: 0.86rem;
  font-weight: 900;
  text-underline-offset: 5px;
}

.guide-prose > .guide-proof {
  margin-block: 58px;
  padding: clamp(25px, 4vw, 38px);
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--paper-deep);
  box-shadow: var(--shadow-small);
}

.guide-prose > .guide-proof h2 {
  margin: 0 0 14px;
  font-size: clamp(1.75rem, 3vw, 2.45rem);
}

.guide-proof-links {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.guide-proof-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid var(--ink);
  background: var(--white);
  color: var(--ink) !important;
  text-decoration: none !important;
}

.guide-proof-links span {
  color: var(--coral-dark);
  font-size: 0.74rem;
  font-weight: 900;
}

.guide-feature-grid {
  display: grid;
  gap: 16px;
  margin-block: 26px 34px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guide-feature-grid > section {
  padding: 22px;
  border: 1px solid var(--ink);
  background: var(--cream);
}

.guide-feature-grid > section h3 {
  margin: 8px 0 10px;
}

.guide-feature-grid > section p:last-child {
  margin-bottom: 0;
}

.cost-receipt-foot {
  margin: 20px 0 0 !important;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: 0.76rem;
}

.calculator-note {
  margin: 12px 0 0 !important;
  color: var(--muted) !important;
  font-size: 0.76rem !important;
}

@media (hover: hover) and (pointer: fine) {
  .guide-related-card:hover,
  .guide-related-grid > a:hover {
    box-shadow: 8px 8px 0 var(--ink);
    transform: translate(-2px, -2px);
  }
}

@media (max-width: 860px) {
  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-work-heading {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .guide-facts-list,
  .guide-facts-grid,
  .guide-work-grid,
  .guide-related-grid,
  .guide-check-list,
  .guide-feature-grid,
  .guide-inline-cta {
    grid-template-columns: 1fr;
  }

  .guide-facts-list > div,
  .guide-facts-grid > div,
  .guide-facts-list > div:first-child,
  .guide-facts-grid > div:first-child {
    padding-block: 16px;
    border-top: 1px solid #415270;
    border-left: 0;
  }

  .guide-facts-list > div:first-child,
  .guide-facts-grid > div:first-child {
    border-top: 0;
  }

  .guide-proof-links a {
    align-items: flex-start;
    flex-direction: column;
  }
}
