@font-face {
  font-family: DM Sans;
  src: url("/fonts/dm-sans-variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Newsreader;
  src: url("/fonts/newsreader-variable.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}
:root {
  font-family: "DM Sans", sans-serif;
  color: #233a31;
  font-synthesis: none;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
}
body {
  margin: 0;
  background: var(--page, #fff);
  color: var(--ink);
  --action: var(--accent);
  --button-text: #fff;
  --heading: "Newsreader", Georgia, serif;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
button,
input {
  font: inherit;
}
button,
a,
input,
summary {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
img {
  max-width: 100%;
  display: block;
}
figure {
  margin: 0;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2 {
  font-family: var(--heading);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.08;
}
h1 {
  font-size: clamp(3rem, 5.4vw, 5.4rem);
  text-wrap: balance;
}
h2 {
  font-size: clamp(2.3rem, 3.4vw, 3.4rem);
  text-wrap: balance;
}
h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -0.025em;
}
p {
  margin-bottom: 1.2rem;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 5px;
}
.wrap {
  width: min(1240px, calc(100% - 96px));
  margin-inline: auto;
}
.header {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(1344px, calc(100% - 64px));
  margin: auto;
}
.wordmark {
  font-family: var(--heading);
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  letter-spacing: -0.05em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.brand-mark {
  font-family: "DM Sans", sans-serif;
  font-size: 1.85rem;
  color: var(--action);
}
.header nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.header nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}
.header .button {
  font-size: 0.85rem;
  padding: 12px 21px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: var(--action);
  color: var(--button-text);
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 16px 26px;
  min-height: 52px;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.25;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px #0001;
}
.button:active {
  transform: none;
}
.button span {
  font-size: 1.2em;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1.02fr;
  align-items: center;
  gap: 6%;
  padding-block: 38px 76px;
}
.hero-copy {
  padding-block: 22px;
}
.hero h1 {
  margin-bottom: 26px;
}
.hero-intro {
  font-size: 1.45rem;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.025em;
  max-width: 32ch;
}
.hero-copy > p:not(.hero-intro) {
  max-width: 49ch;
  color: var(--muted, #52625a);
  font-size: 1.05rem;
}
.hero-copy .button {
  margin-block: 14px;
}
.hero-secondary {
  display: block;
  font-size: 0.92rem;
  width: fit-content;
  margin-top: 8px;
}
.hero-copy .hero-note {
  font-size: 0.75rem;
  margin-top: 25px;
  max-width: none;
}
.hero-photo {
  position: relative;
  align-self: stretch;
  min-height: 500px;
}
.hero-photo img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 4px;
}
.hero-photo figcaption {
  position: absolute;
  bottom: 10px;
  right: 10px;
  color: #fff;
  background: #0008;
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: 3px;
}
.method-band {
  background: var(--soft);
  padding-block: 65px;
}
.method {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 32px;
}
.method h2 {
  font-size: 2.25rem;
}
.method h3 {
  margin-top: 18px;
}
.method article {
  padding-left: 24px;
  border-left: 1px solid color-mix(in srgb, var(--ink) 20%, transparent);
}
.method article p {
  font-size: 0.94rem;
  margin: 0;
  color: var(--muted, #52625a);
}
.step-number {
  font-size: 2rem;
  font-family: var(--heading);
  font-weight: 500;
}
.link-arrow {
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-block;
  width: fit-content;
}
.tool-section {
  padding-block: 90px;
}
.tool-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 9%;
  align-items: start;
}
.tool-description h2 {
  margin-top: 18px;
}
.tool-description > p {
  font-size: 1.05rem;
  color: var(--muted, #52625a);
}
.section-number {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-weight: 700;
}
.small {
  font-size: 0.82rem !important;
  line-height: 1.6;
}
.formula {
  margin-block: 25px;
  border-block: 1px solid #0002;
  padding: 15px 0;
}
.formula summary {
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
}
.formula p {
  margin-top: 15px;
  font-size: 0.9rem;
}
.calculator {
  background: var(--soft);
  padding: 32px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field-grid label {
  font-size: 0.82rem;
  font-weight: 600;
  display: block;
}
.field-grid label:first-child:last-child,
.full {
  grid-column: 1/-1;
}
.field-grid small {
  display: block;
  font-weight: 400;
  padding-top: 5px;
}
.calculator input,
.search-label input {
  display: block;
  background: #fff;
  border: 1px solid #0003;
  border-radius: 4px;
  width: 100%;
  padding: 13px 12px;
  font-size: 1rem;
  min-height: 48px;
  color: #202b2a;
  margin-top: 7px;
}
.calculator input:invalid:not(:focus) {
  border-color: #976247;
}
.calculator > .button {
  width: 100%;
  margin-top: 24px;
}
.calculator-result {
  margin-top: 26px;
  border-top: 1px solid #0002;
  padding-top: 20px;
  min-height: 130px;
}
.calculator-result dl {
  margin: 0;
}
.calculator-result dl > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 15px;
  padding-block: 9px;
}
.calculator-result dt {
  font-size: 0.84rem;
}
.calculator-result dd {
  font-size: 1.35rem;
  font-weight: 700;
  white-space: nowrap;
  margin: 0;
  letter-spacing: -0.04em;
}
.calculator-result > p {
  margin: 14px 0 0;
  font-size: 0.75rem;
  color: var(--muted, #52625a);
}
.calculator-result[data-error] {
  color: #9d271b;
}
.comparable-row {
  display: grid;
  grid-template-columns: 20px 1.3fr 1fr;
  gap: 10px;
  align-items: center;
}
.comparable-row span {
  font-size: 0.8rem;
  font-weight: 700;
}
.calculator fieldset {
  border: 0;
  margin: 22px 0 0;
  padding: 0;
}
.calculator legend {
  font-size: 0.85rem;
  font-weight: 700;
}
.guides {
  padding-block: 60px 85px;
  display: grid;
  grid-template-columns: 0.85fr 2fr;
  gap: 6%;
}
.section-intro {
  max-width: 340px;
}
.section-intro h2 {
  font-size: 2.7rem;
}
.section-intro > p {
  color: var(--muted, #52625a);
}
.guide-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.guide-list article {
  min-width: 0;
}
.guide-image {
  display: block;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 4px;
}
.guide-image img {
  width: 100%;
  height: 148px;
  object-fit: cover;
  transition: transform 0.4s;
}
.guide-image:hover img {
  transform: scale(1.035);
}
.guide-list article:nth-child(3n + 2) img {
  object-position: 25% 50%;
}
.guide-list article:nth-child(3n) img {
  object-position: 75% 50%;
}
.reading {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
  color: var(--muted, #52625a);
}
.guide-list h3,
.guide-list h2 {
  font-family: var(--heading);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.guide-list h3 a,
.guide-list h2 a {
  text-decoration: none;
}
.guide-list p {
  font-size: 0.85rem;
  color: var(--muted, #52625a);
}
.guide-list .link-arrow {
  font-size: 0.8rem;
}
.faq {
  padding-block: 50px 90px;
  display: grid;
  grid-template-columns: 0.85fr 2fr;
  gap: 6%;
}
.faq h2 {
  font-size: 2.6rem;
}
.faq > div > p {
  font-size: 0.95rem;
  color: var(--muted, #52625a);
}
.faq details {
  border-top: 1px solid color-mix(in srgb, var(--ink) 20%, transparent);
  padding-block: 19px;
}
.faq details:last-child {
  border-bottom: 1px solid #0002;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  padding-right: 35px;
  position: relative;
  line-height: 1.5;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  font-size: 1.35rem;
  top: -4px;
}
.faq details[open] summary::after {
  content: "−";
}
.faq details p {
  font-size: 0.92rem;
  margin: 16px 25px 0 0;
  color: var(--muted, #52625a);
}
.closing {
  background: var(--ink);
  color: #fff;
  padding-block: 65px;
  overflow: hidden;
}
.closing > .wrap {
  display: grid;
  grid-template-columns: 3fr 1fr;
  align-items: center;
  gap: 40px;
}
.closing h2 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  max-width: 22ch;
  margin-bottom: 20px;
}
.closing p {
  opacity: 0.85;
  font-size: 1.1rem;
}
.closing .button {
  margin-top: 12px;
  --action: var(--soft);
  --button-text: var(--ink);
}
.closing-line {
  font-size: 13rem;
  line-height: 1;
  font-family: Georgia, serif;
  opacity: 0.16;
  transform: rotate(-12deg);
}
.footer {
  padding: 48px max(48px, calc((100% - 1240px) / 2)) 20px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 35px;
}
.footer-top > p {
  font-size: 0.85rem;
}
.footer-top > div a {
  display: block;
  font-size: 0.83rem;
  margin-bottom: 8px;
  width: fit-content;
}
.footer-bottom {
  border-top: 1px solid #0002;
  padding-top: 20px;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.7rem;
}
.footer-bottom > span {
  margin-right: auto;
}
.text-button {
  background: none;
  border: 0;
  color: inherit;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: inherit;
}
.consent {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 1100px;
  margin: auto;
  z-index: 2000;
  background: #fff;
  color: #24332d;
  box-shadow: 0 8px 45px #0003;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px 25px;
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 0.82rem;
}
.consent[hidden] {
  display: none;
}
.consent div {
  flex: 1;
}
.consent p {
  margin: 5px 0 0;
  max-width: 620px;
  font-size: 0.77rem;
}
.consent button {
  border: 1px solid #344d42;
  border-radius: 5px;
  color: #24332d;
  background: #fff;
  padding: 10px 15px;
  font-size: 0.8rem;
  min-height: 42px;
  white-space: nowrap;
}
.consent button:last-child {
  background: #243f33;
  color: #fff;
}
.form-error {
  position: fixed;
  bottom: 25px;
  left: 25px;
  right: 25px;
  background: #fff;
  color: #9d271b;
  border: 2px solid #9d271b;
  padding: 25px;
  z-index: 2100;
}
.breadcrumbs {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 0.78rem;
  padding-block: 25px;
  color: var(--muted, #52625a);
}
.breadcrumbs [aria-current] {
  max-width: 75ch;
}
.page-intro {
  padding-block: 45px 35px;
}
.page-intro h1 {
  max-width: 950px;
}
.page-intro > p {
  max-width: 740px;
  font-size: 1.15rem;
}
.search-label {
  display: block;
  font-size: 0.85rem;
  max-width: 620px;
  margin-top: 30px;
}
.page-intro + .guides {
  display: block;
}
.page-intro + .guides .section-intro {
  display: none;
}
.page-intro + .guides .guide-list {
  grid-template-columns: repeat(3, 1fr);
  row-gap: 55px;
}
.page-intro + .guides .guide-image img {
  height: 220px;
}
.page-intro + .guides h3 {
  font-size: 1.7rem;
}
.page-intro + .guides p {
  font-size: 1rem;
}
.article-header {
  padding-block: 40px 45px;
}
.article-header h1 {
  font-size: clamp(2.6rem, 4.5vw, 4.5rem);
  max-width: 1100px;
}
.article-category {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted, #52625a);
}
.lead {
  font-size: 1.25rem;
  line-height: 1.55;
  max-width: 850px;
}
.byline {
  font-size: 0.78rem;
  border-top: 1px solid #0002;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.article-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 740px);
  gap: 7%;
  align-items: start;
  padding-bottom: 55px;
}
.toc {
  font-size: 0.82rem;
  position: sticky;
  top: 25px;
}
.toc ol {
  padding-left: 20px;
}
.toc li {
  margin-bottom: 10px;
}
.toc > a {
  display: block;
  margin-top: 25px;
}
.article-body p,
.prose p {
  font-size: 1.05rem;
  line-height: 1.85;
}
.article-body h2,
.prose h2 {
  font-size: 2.1rem;
  line-height: 1.2;
  margin-top: 48px;
  margin-bottom: 20px;
}
.article-body li {
  margin-bottom: 10px;
  line-height: 1.75;
}
.key-points {
  padding: 15px 25px;
  background: var(--soft);
}
.key-points h2 {
  margin-top: 15px;
}
.sources {
  padding: 10px 0 25px;
  border-top: 1px solid #0002;
  margin-top: 45px;
}
.sources h2 {
  font-size: 1.6rem;
}
.sources p,
.sources li {
  font-size: 0.85rem;
}
.article-cta {
  background: var(--soft);
  padding: 28px;
  margin-top: 20px;
}
.article-cta h2 {
  margin-top: 0;
}
.article-cta p {
  font-size: 0.95rem;
}
.prose {
  max-width: 840px;
  padding-block: 40px 90px;
}
.prose h1 {
  font-size: clamp(2.8rem, 4.4vw, 4.6rem);
}
.text-section {
  max-width: 850px;
  padding-block: 0 45px;
}
.text-section h2 {
  font-size: 2.4rem;
}
.updated {
  font-size: 0.8rem !important;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 15px;
  padding: 12px;
  background: #fff;
  color: #111;
  z-index: 3000;
}
.skip-link:focus {
  top: 12px;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}
body[data-theme="editorial"] {
  --page: #fffdf9;
  --action: #b5512b;
  --muted: #62655c;
}
.editorial .hero-photo {
  border-radius: 12px;
}
body[data-theme="analytical"] {
  --heading: "DM Sans", sans-serif;
  --muted: #53657f;
}
.analytical .hero h1 {
  font-weight: 750;
  letter-spacing: -0.06em;
}
.analytical .hero-photo {
  margin-right: -48px;
  border-radius: 0;
}
.analytical .hero-photo img {
  border-radius: 0;
}
.analytical .hero {
  gap: 3%;
  grid-template-columns: 1fr 1.1fr;
}
.analytical .method {
  grid-template-columns: 1.6fr repeat(3, 1fr);
}
.analytical .method h2,
.analytical .guide-list h3,
.guide-list h2 {
  font-weight: 700;
}
.analytical .step-number {
  color: var(--action);
  font-family: "DM Sans", sans-serif;
  font-size: 1.7rem;
}
.analytical .button {
  border-radius: 4px;
}
body[data-theme="heritage"] {
  --page: #fdfaf5;
  --muted: #77636b;
}
.heritage .hero h1 {
  font-size: clamp(3.2rem, 5.3vw, 5.4rem);
}
.heritage .hero {
  grid-template-columns: 1fr 1fr;
  gap: 6%;
}
.heritage .button {
  border-radius: 50px;
}
.heritage .hero-photo img {
  border-radius: 45% 45% 0 0;
}
.heritage .method-band {
  padding-block: 80px;
}
.heritage .step-number {
  font-size: 2.8rem;
}
.heritage .calculator {
  background: #fffaf6;
}
.heritage .closing {
  background: #442234;
}
body[data-theme="digital"] {
  --heading: "DM Sans", sans-serif;
  --action: #c6ed80;
  --button-text: #122d31;
  --muted: #4e6464;
}
.digital h1,
.digital h2 {
  font-weight: 750;
  letter-spacing: -0.055em;
}
.digital .wordmark {
  font-size: 1.5rem;
  font-weight: 750;
}
.digital .hero-photo img {
  border-radius: 0;
}
.digital .button {
  border-radius: 40px;
}
.digital .hero {
  gap: 5%;
}
.digital .method article {
  border-color: #274b4d4a;
}
.digital .step-number {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--accent);
  font:
    600 0.9rem "DM Sans",
    sans-serif;
}
.digital .calculator {
  border-radius: 0;
  border-top: 4px solid var(--ink);
}
.digital .closing {
  background: #12373b;
}
.digital .closing .button {
  --action: #c6ed80;
  --button-text: #122d31;
}
body[data-theme="urban"] {
  --action: #a56b13;
  --muted: #636b57;
}
.urban .hero-photo img {
  border-radius: 0 120px 0 0;
}
.urban .button {
  border-radius: 30px;
}
.urban .hero {
  grid-template-columns: 0.95fr 1.05fr;
}
.urban .method-band {
  background: #fff;
  border-block: 1px solid #0001;
}
.urban .step-number {
  color: var(--action);
}
.urban .tool-section {
  background: var(--soft);
}
.urban .calculator {
  background: #fff;
  border: 0;
}
.urban .guide-list h3,
.guide-list h2 {
  font-size: 1.5rem;
}
.urban .closing {
  background: #38472e;
}
@media (min-width: 1500px) {
  .hero {
    padding-top: 55px;
  }
  .hero-photo {
    min-height: 560px;
  }
}
@media (max-width: 1050px) {
  .header nav {
    gap: 15px;
  }
  .header nav a {
    font-size: 0.8rem;
  }
  .wrap {
    width: calc(100% - 56px);
  }
  .header {
    width: calc(100% - 40px);
  }
  .hero {
    gap: 4%;
    padding-bottom: 55px;
  }
  .hero-photo {
    min-height: 440px;
  }
  h1 {
    font-size: 3.7rem;
  }
  .hero-intro {
    font-size: 1.2rem;
  }
  .method {
    grid-template-columns: repeat(3, 1fr);
  }
  .method > div {
    grid-column: 1/-1;
    max-width: 600px;
  }
  .guides,
  .faq {
    grid-template-columns: 1fr;
  }
  .section-intro {
    max-width: 600px;
    margin-bottom: 30px;
  }
  .guide-list {
    gap: 20px;
  }
  .tool-layout {
    gap: 5%;
  }
  .calculator {
    padding: 24px;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .footer {
    padding-inline: 28px;
  }
  .article-layout {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 35px;
  }
  .analytical .method {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .header {
    min-height: 82px;
    flex-wrap: wrap;
    gap: 15px;
    width: calc(100% - 40px);
    padding-block: 17px;
  }
  .wordmark {
    font-size: 1.35rem;
  }
  .brand-mark {
    font-size: 1.5rem;
  }
  .header .button {
    min-height: 40px;
    padding: 10px 13px;
    font-size: 0.73rem;
    gap: 10px;
  }
  .header nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    padding-top: 6px;
  }
  .header nav a {
    font-size: 0.77rem;
  }
  .hero,
  .heritage .hero,
  .analytical .hero,
  .urban .hero {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding-top: 25px;
    padding-bottom: 45px;
  }
  .hero-copy {
    padding: 0;
    width: 100%;
  }
  h1,
  .heritage .hero h1 {
    font-size: clamp(2.75rem, 11.5vw, 3.8rem);
  }
  .hero h1 {
    margin-bottom: 20px;
    max-width: 13ch;
  }
  .hero-intro {
    font-size: 1.25rem;
  }
  .hero-copy > p:not(.hero-intro) {
    font-size: 1rem;
    max-width: 100%;
  }
  .hero-photo,
  .analytical .hero-photo {
    width: 100%;
    min-height: 0;
    height: 310px;
    margin: 0;
  }
  .hero-photo img {
    height: 310px;
  }
  .hero-copy .hero-note {
    font-size: 0.68rem;
    margin-bottom: 0;
  }
  .hero-secondary {
    font-size: 0.83rem;
  }
  .heritage .hero-photo img {
    border-radius: 70px 70px 0 0;
  }
  .urban .hero-photo img {
    border-radius: 0 75px 0 0;
  }
  .method-band,
  .heritage .method-band {
    padding-block: 40px;
  }
  .method,
  .analytical .method {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .method > div {
    grid-column: auto;
  }
  .method h2 {
    font-size: 2rem;
  }
  .method article {
    display: grid;
    grid-template-columns: 40px 1fr;
    column-gap: 14px;
    padding-left: 0;
    border: 0;
  }
  .method h3 {
    margin: 5px 0 8px;
  }
  .method article p {
    grid-column: 2;
    font-size: 0.93rem;
  }
  .method .step-number {
    grid-column: 1;
    grid-row: 1/3;
    font-size: 1.7rem;
  }
  .digital .method .step-number {
    font-size: 0.85rem;
  }
  .tool-section {
    padding-block: 48px;
  }
  .tool-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .tool-description h2 {
    font-size: 2.4rem;
  }
  .tool-description > p {
    font-size: 1rem;
  }
  .calculator {
    padding: 22px 18px;
  }
  .field-grid {
    gap: 16px;
  }
  .field-grid label {
    font-size: 0.77rem;
  }
  .calculator input {
    padding: 11px 9px;
    font-size: 1rem;
  }
  .calculator-result dl > div {
    gap: 10px;
  }
  .calculator-result dd {
    font-size: 1.2rem;
  }
  .calculator-result dt {
    max-width: 65%;
  }
  .guides {
    padding-block: 45px;
    gap: 5px;
  }
  .section-intro h2 {
    font-size: 2.3rem;
  }
  .guide-list {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .guide-list article {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 18px;
  }
  .guide-image {
    margin: 0;
  }
  .guide-image img {
    height: 140px;
  }
  .guide-list h3,
  .urban .guide-list h3,
  .guide-list h2 {
    font-size: 1.28rem;
  }
  .guide-list p {
    display: none;
  }
  .reading {
    font-size: 0.62rem;
    margin-bottom: 6px;
  }
  .guide-list .link-arrow {
    font-size: 0.76rem;
  }
  .faq {
    padding-block: 35px 45px;
    gap: 20px;
  }
  .faq h2 {
    font-size: 2.2rem;
  }
  .faq details {
    padding-block: 16px;
  }
  .faq summary {
    font-size: 0.9rem;
  }
  .closing {
    padding-block: 45px;
  }
  .closing > .wrap {
    grid-template-columns: 1fr;
  }
  .closing h2 {
    font-size: 2.6rem;
  }
  .closing-line {
    display: none;
  }
  .closing p {
    font-size: 1rem;
  }
  .footer {
    padding: 35px 20px 20px;
  }
  .footer-top {
    gap: 25px 18px;
  }
  .footer-top > .wordmark {
    grid-column: 1/-1;
  }
  .footer-top > p {
    grid-column: 1/-1;
    margin: 0;
  }
  .footer-bottom {
    gap: 13px;
  }
  .footer-bottom > span {
    width: 100%;
  }
  .consent {
    bottom: 10px;
    left: 10px;
    right: 10px;
    padding: 17px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .consent > div {
    grid-column: 1/-1;
  }
  .consent button {
    white-space: normal;
    padding: 10px;
  }
  .breadcrumbs {
    font-size: 0.7rem;
    line-height: 1.4;
    padding-block: 18px;
    flex-wrap: wrap;
  }
  .page-intro {
    padding-block: 25px 15px;
  }
  .page-intro h1 {
    font-size: 2.8rem;
  }
  .page-intro > p {
    font-size: 1rem;
  }
  .page-intro + .guides .guide-list {
    grid-template-columns: 1fr;
  }
  .page-intro + .guides .guide-list article {
    grid-template-columns: 1fr;
  }
  .page-intro + .guides .guide-image img {
    height: 200px;
  }
  .page-intro + .guides h3 {
    font-size: 1.65rem;
  }
  .page-intro + .guides p {
    display: block;
    font-size: 0.95rem;
  }
  .article-header {
    padding-block: 20px 30px;
  }
  .article-header h1 {
    font-size: 2.7rem;
  }
  .lead {
    font-size: 1.1rem;
  }
  .byline {
    display: block;
    font-size: 0.72rem;
  }
  .byline span {
    display: block;
    margin-top: 8px;
  }
  .article-layout {
    display: flex;
    flex-direction: column;
    gap: 25px;
  }
  .toc {
    position: static;
    width: 100%;
    background: var(--soft);
    padding: 20px;
  }
  .toc ol {
    columns: 1;
  }
  .article-body p,
  .prose p {
    font-size: 1rem;
  }
  .article-body h2,
  .prose h2 {
    font-size: 1.9rem;
    margin-top: 35px;
  }
  .article-body {
    min-width: 0;
    width: 100%;
  }
  .prose {
    padding-top: 25px;
    padding-bottom: 50px;
  }
  .prose h1 {
    font-size: 2.7rem;
  }
  .text-section h2 {
    font-size: 2rem;
  }
  .button {
    padding: 15px 22px;
    font-size: 0.92rem;
  }
  .text-section {
    padding-bottom: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* Persistent contact support appears above every footer. */
.support-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  background: var(--ink);
  color: #fff;
  padding: 42px;
  margin: 0 0 48px;
}
.support-banner h2 {
  font-size: 2.4rem;
  margin: 0 0 10px;
}
.support-banner p {
  margin: 0;
  opacity: 0.85;
}
.support-banner > a {
  text-decoration: none;
  display: grid;
  gap: 4px;
}
.support-banner > a span {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.support-banner strong {
  font-size: clamp(1.8rem, 3.6vw, 3.2rem);
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.support-banner a:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 7px;
}
@media (max-width: 760px) {
  .support-banner {
    padding: 28px 22px;
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 32px;
  }
  .support-banner h2 {
    font-size: 2rem;
  }
}
/* Deliberate horizontal navigation on every brand. Article layouts remain shared. */
body.editorial {
  --page: #fff;
  --action: #2154ce;
  --heading: "DM Sans", sans-serif;
}
body.analytical {
  --page: #fff;
  --heading: "DM Sans", sans-serif;
}
body.heritage {
  --page: #fffdfd;
  --action: #63394e;
}
body.digital {
  --page: #fff;
  --action: #125a57;
  --button-text: #fff;
  --heading: "DM Sans", sans-serif;
}
body.urban {
  --page: #fff;
  --action: #4d6240;
  --heading: "DM Sans", sans-serif;
}
.header {
  min-height: 88px;
  border-bottom: 1px solid #e5e9ed;
}
.header nav {
  gap: 24px;
}
.header .wordmark {
  font-size: 1.4rem;
  letter-spacing: -0.04em;
}
.header .button {
  border-radius: 5px;
}
.wrap {
  width: min(1160px, calc(100% - 80px));
}
h1,
h2 {
  letter-spacing: -0.045em;
}
h1 {
  font-size: clamp(2.6rem, 4.6vw, 4.3rem);
  line-height: 1.08;
}
h2 {
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1.16;
}
p {
  font-weight: 400;
}
.button {
  gap: 12px;
  font-weight: 600;
  border-radius: 5px;
}
select,
textarea {
  font: inherit;
  color: inherit;
}
select:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}
.brand-home p {
  max-width: 65ch;
}
.brand-home section {
  scroll-margin-top: 24px;
}
.opening-copy h1 {
  margin-bottom: 24px;
  max-width: 17ch;
}
.opening-intro {
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 43ch !important;
  margin-bottom: 28px;
}
.opening-note {
  font-size: 0.85rem;
  margin-top: 16px;
  color: #526275;
}
.brand-home figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.free-opening {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 70px;
  align-items: center;
  padding-block: 60px;
}
.free-opening figure {
  height: 390px;
  border-radius: 16px;
  overflow: hidden;
}
.free-opening h1 {
  font-weight: 650;
  max-width: 13ch;
}
.free-service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding-block: 45px 75px;
}
.free-service h2 {
  font-size: 1.9rem;
  max-width: 22ch;
}
.free-service ol {
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: service;
}
.free-service li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0 14px;
  padding: 14px 0;
  border-bottom: 1px solid #e4e9ef;
  counter-increment: service;
}
.free-service li:before {
  content: counter(service);
  grid-row: span 2;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #edf3ff;
  color: #2154ce;
  display: grid;
  place-items: center;
  font-weight: 600;
}
.free-service li span {
  font-size: 0.9rem;
  color: #526275;
}
.formal-note {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px;
  background: #edf3ff;
  border-radius: 10px;
  margin-block: 48px;
}
.formal-note h2 {
  font-size: 1.5rem;
  max-width: 32ch;
}
.formal-note p {
  margin-bottom: 0;
  max-width: 65ch;
}
.formal-note > a {
  flex-shrink: 0;
  font-weight: 600;
}
.house-opening {
  position: relative;
  margin-block: 40px 65px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: center;
}
.house-opening figure {
  height: 460px;
  overflow: hidden;
  border-radius: 2px 80px 2px 2px;
}
.house-opening h1 {
  font-weight: 600;
}
.house-tool-promo {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
  padding-bottom: 65px;
}
.house-tool-promo h2 {
  max-width: 24ch;
  font-size: 2.4rem;
}
.quote-check {
  padding: 30px;
  background: #eef3fb;
  border-left: 4px solid #2357d8;
}
.quote-check ul,
.visit-notes ul {
  padding-left: 20px;
  margin-bottom: 24px;
}
.quote-check li,
.visit-notes li {
  margin-bottom: 14px;
}
.quote-check h3 {
  font-size: 1.35rem;
}
.sale-route {
  padding-block: 40px;
  background: #fff;
  border-top: 1px solid #dce5f0;
}
.topic-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.topic-links a {
  display: block;
  text-decoration: none;
  padding-block: 18px;
  border-top: 2px solid var(--accent);
}
.topic-links strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.topic-links span {
  display: block;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #526275;
}
.inheritance-opening {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: center;
  padding-block: 55px 70px;
}
.inheritance-opening figure {
  height: 470px;
  border-radius: 180px 180px 8px 8px;
  overflow: hidden;
}
.inheritance-opening h1 {
  font-size: clamp(2.6rem, 4.5vw, 4.5rem);
  max-width: 16ch;
}
.heritage .opening-intro {
  font-size: 1.15rem;
}
.ownership-promo {
  padding: 38px 42px;
  background: #f5eef1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 65px;
  border-radius: 8px;
}
.ownership-promo h2 {
  max-width: 22ch;
}
.ownership-promo aside {
  border-left: 1px solid #d8c5cf;
  padding-left: 35px;
}
.ownership-promo ul {
  padding-left: 20px;
}
.ownership-promo li {
  margin-bottom: 15px;
}
.price-opening {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 70px;
  padding-block: 80px 65px;
  align-items: start;
}
.price-opening h1 {
  font-weight: 600;
  max-width: 17ch;
}
.price-task {
  padding: 32px;
  background: #e8f3ef;
  border-radius: 12px;
  margin-top: 8px;
}
.price-task h2 {
  font-size: 1.8rem;
  font-weight: 550;
}
.price-task .button {
  width: 100%;
}
.price-task .plain-link {
  display: block;
  margin-top: 20px;
  font-size: 0.9rem;
}
.price-explanation {
  padding-block: 30px 50px;
}
.price-explanation h2 {
  margin-bottom: 35px;
}
.digital .button {
  background: var(--action);
  color: #fff;
}
.digital .closing {
  background: #e8f3ef;
  color: var(--ink);
}
.flats-opening {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  margin-bottom: 65px;
}
.flats-opening > figure {
  position: absolute;
  inset: 0 0 0 42%;
  overflow: hidden;
}
.flats-opening > .wrap {
  position: relative;
  padding-block: 50px;
  pointer-events: none;
}
.flats-opening .opening-copy {
  width: 55%;
  padding: 35px 40px;
  background: #fff;
  pointer-events: auto;
  box-shadow: 0 5px 30px #2933270d;
  border-radius: 8px;
}
.flats-opening h1 {
  font-weight: 600;
  font-size: clamp(2.5rem, 4vw, 4rem);
}
.flats-promo {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 75px;
  padding-bottom: 35px;
}
.visit-notes {
  padding: 30px 34px;
  background: #eef0e9;
  border-radius: 5px;
}
.home-reading {
  padding-block: 65px;
}
.home-reading > header {
  display: flex;
  gap: 30px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 30px;
}
.home-reading > header h2 {
  max-width: 27ch;
  margin-bottom: 0;
}
.home-reading > header > a {
  white-space: nowrap;
  font-size: 0.95rem;
}
.reading-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}
.home-valorar-pisos .reading-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.reading-photo {
  display: block;
  height: 190px;
  overflow: hidden;
  border-radius: 5px;
  margin-bottom: 20px;
}
.reading-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reading-grid h3 {
  font-size: 1.15rem;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.reading-grid h3 a {
  text-decoration: none;
}
.reading-grid h3 a:hover {
  text-decoration: underline;
}
.reading-grid p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #526275;
}
.heritage .reading-grid h3 {
  font-family: Newsreader, Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
}
/* Worksheets have one hierarchy: inputs, result, then useful actions. */
.worksheet {
  padding: 36px;
  border: 1px solid #dce3e9;
  border-radius: 12px;
  margin-block: 35px 60px;
  background: #f8fafc;
}
.worksheet-heading {
  max-width: 760px;
  margin-bottom: 28px;
}
.worksheet-heading h2 {
  font-family:
    DM Sans,
    sans-serif;
  font-weight: 600;
  font-size: 1.8rem;
  letter-spacing: -0.035em;
  margin-bottom: 12px;
}
.worksheet-heading p {
  font-size: 1rem;
  margin-bottom: 0;
  color: #526275;
}
.worksheet form {
  max-width: none;
}
.worksheet-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 26px;
}
.worksheet-single {
  grid-template-columns: minmax(0, 350px);
}
.worksheet-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.87rem;
  font-weight: 600;
  min-width: 0;
  align-self: start;
}
.worksheet-field input,
.worksheet-field select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 12px;
  border: 1px solid #b6c4cf;
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 400;
  min-height: 48px;
  margin: 0;
}
.worksheet-field input::placeholder {
  color: #6c7c88;
  font-size: 0.9rem;
}
.worksheet-field select {
  white-space: normal;
}
.worksheet-output {
  background: #fff;
  border: 1px solid #dce3e9;
  border-radius: 7px;
  padding: 24px;
  margin-top: 25px;
}
.worksheet-output > p:last-child {
  margin-bottom: 0;
}
.worksheet-output > p {
  font-size: 0.95rem;
}
.worksheet-output .result-label {
  font-size: 0.95rem;
  margin-bottom: 5px;
}
.worksheet-output .result-value {
  font-size: 2.4rem;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.04em;
  margin-bottom: 22px;
  color: var(--action);
}
.worksheet-output[data-error] {
  border-color: #b62f36;
  color: #8e1f27;
}
.worksheet-table {
  position: relative;
  max-width: 100%;
  overflow-x: auto;
  margin-block: 15px;
}
.worksheet-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.worksheet-table th,
.worksheet-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid #e0e6eb;
  vertical-align: top;
  min-width: 130px;
  overflow-wrap: anywhere;
}
.worksheet-table th:first-child,
.worksheet-table td:first-child {
  padding-left: 0;
}
.worksheet-table thead th {
  font-weight: 500;
  color: #526275;
}
.worksheet-table tbody th {
  font-weight: 600;
}
.worksheet-table td {
  font-variant-numeric: tabular-nums;
}
.worksheet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  margin-top: 22px;
}
.worksheet-actions .text-button {
  font-size: 0.85rem;
  line-height: 1.4;
  text-align: left;
  min-height: 44px;
}
.worksheet-actions button:disabled {
  opacity: 0.45;
  cursor: default;
}
.worksheet-status {
  margin: 12px 0 0;
}
.worksheet-help {
  border-top: 1px solid #dce3e9;
  margin-top: 20px;
  padding-top: 18px;
  font-size: 0.9rem;
}
.worksheet-help summary {
  cursor: pointer;
  font-weight: 500;
}
.worksheet-help p {
  max-width: 90ch;
  margin: 14px 0 0;
}
.agency-proposals,
.flat-proposals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.proposal {
  border: 1px solid #d4dee8;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  min-width: 0;
  display: grid;
  gap: 16px;
}
.proposal legend {
  font-size: 1.05rem;
  font-weight: 600;
  padding-inline: 6px;
}
.owners-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 25px;
}
.owner-row {
  min-width: 0;
  border: 1px solid #dacbd3;
  padding: 20px;
  display: grid;
  gap: 16px;
  border-radius: 7px;
}
.owner-row legend {
  padding-inline: 6px;
  font-weight: 500;
}
.worksheet-owners {
  background: #faf5f7;
}
.worksheet-market {
  background: #f4f9f6;
}
.market-list {
  display: grid;
  gap: 18px;
}
.market-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.7fr;
  gap: 20px;
  min-width: 0;
  border: 0;
  border-top: 1px solid #cdded4;
  padding: 12px 0 0;
  margin: 0;
}
.market-row legend {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0 15px 0 0;
}
.field-help {
  font-size: 0.85rem;
  color: #526275;
  margin-top: -10px;
}
.worksheet-flats {
  background: #f5f6f1;
}
.missing-costs {
  font-size: 0.85rem !important;
  color: #685638;
  padding-top: 15px;
}
.purpose-guide {
  display: grid;
  gap: 35px;
  padding-block: 20px 55px;
  max-width: 850px;
}
.purpose-guide article {
  border-bottom: 1px solid #dde5ef;
  padding-bottom: 25px;
}
.purpose-guide h2 {
  font-size: 1.8rem;
}
.page-intro {
  padding-block: 45px 25px;
}
.page-intro h1 {
  max-width: 22ch;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
}
.page-intro p {
  max-width: 75ch;
}
.footer {
  margin-top: 30px;
}
.support-banner {
  border-radius: 8px;
}
@media (min-width: 1400px) {
  .free-opening {
    gap: 90px;
    padding-block: 75px;
  }
  .free-opening figure {
    height: 430px;
  }
}
@media (max-width: 1050px) {
  .header {
    gap: 20px;
  }
  .header nav {
    gap: 16px;
  }
  .header nav a {
    font-size: 0.8rem;
  }
  .header .button {
    padding: 10px 14px;
  }
  .wrap {
    width: calc(100% - 56px);
  }
  .free-opening,
  .house-opening,
  .inheritance-opening,
  .price-opening {
    gap: 35px;
  }
  .opening-intro {
    font-size: 1.1rem;
  }
  .free-opening figure {
    height: 350px;
  }
  .house-tool-promo,
  .ownership-promo,
  .flats-promo {
    gap: 35px;
  }
  .agency-proposals,
  .flat-proposals {
    gap: 12px;
  }
  .proposal {
    padding: 14px;
  }
  .worksheet {
    padding: 25px;
  }
  .flats-opening .opening-copy {
    width: 60%;
    padding: 28px;
  }
  .reading-grid {
    gap: 22px;
  }
  .home-valorar-pisos .reading-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .header {
    min-height: 0;
    width: calc(100% - 36px);
    padding-block: 18px 12px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px 10px;
  }
  .header .wordmark {
    font-size: 1.2rem;
  }
  .header .brand-mark {
    font-size: 1.4rem;
  }
  .header > .button {
    font-size: 0.76rem;
    min-height: 42px;
    padding: 8px 12px;
  }
  .header nav {
    grid-column: 1/-1;
    grid-row: 2;
    display: flex;
    overflow: auto;
    white-space: nowrap;
    gap: 22px;
    padding-block: 3px;
  }
  .header nav a {
    font-size: 0.8rem;
  }
  h1 {
    font-size: 2.65rem;
  }
  h2 {
    font-size: 1.9rem;
  }
  .opening-intro {
    font-size: 1.05rem;
  }
  .opening-copy h1 {
    margin-bottom: 20px;
  }
  .opening-note {
    font-size: 0.78rem;
  }
  .free-opening,
  .house-opening,
  .inheritance-opening,
  .price-opening {
    grid-template-columns: 1fr;
    padding-block: 35px;
    gap: 30px;
    margin-block: 0;
  }
  .free-opening figure {
    height: 250px;
    border-radius: 10px;
  }
  .free-opening .opening-copy h1 {
    max-width: 15ch;
  }
  .free-service {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-block: 10px 35px;
  }
  .free-service h2 {
    font-size: 1.7rem;
  }
  .formal-note {
    display: block;
    padding: 22px;
    margin-block: 30px;
  }
  .formal-note p {
    margin-bottom: 18px;
  }
  .house-opening figure {
    height: 270px;
    border-radius: 2px 45px 2px 2px;
  }
  .house-tool-promo {
    grid-template-columns: 1fr;
    gap: 25px;
    padding-block: 15px 35px;
  }
  .house-tool-promo h2 {
    font-size: 1.9rem;
  }
  .quote-check {
    padding: 22px;
  }
  .sale-route {
    padding-block: 30px;
  }
  .topic-links {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .topic-links a {
    padding-block: 15px;
  }
  .topic-links strong {
    font-size: 1.1rem;
  }
  .inheritance-opening {
    display: flex;
    flex-direction: column-reverse;
  }
  .inheritance-opening h1 {
    font-size: 2.75rem;
  }
  .inheritance-opening figure {
    width: 100%;
    height: 280px;
    border-radius: 80px 80px 5px 5px;
  }
  .ownership-promo {
    grid-template-columns: 1fr;
    padding: 25px;
    gap: 30px;
  }
  .ownership-promo aside {
    border-left: 0;
    border-top: 1px solid #d8c5cf;
    padding: 25px 0 0;
  }
  .heritage .opening-intro {
    font-size: 1.05rem;
  }
  .price-opening {
    padding-block: 40px 25px;
  }
  .price-task {
    padding: 25px;
    margin-top: 0;
  }
  .price-explanation {
    padding-block: 25px;
  }
  .price-explanation h2 {
    margin-bottom: 20px;
  }
  .flats-opening {
    min-height: 0;
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    margin-bottom: 30px;
  }
  .flats-opening > figure {
    position: static;
    height: 270px;
    inset: auto;
  }
  .flats-opening > .wrap {
    padding-block: 30px 0;
  }
  .flats-opening .opening-copy {
    width: 100%;
    padding: 0 0 28px;
    box-shadow: none;
    border-radius: 0;
  }
  .flats-opening h1 {
    font-size: 2.7rem;
  }
  .flats-promo {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .visit-notes {
    padding: 25px;
  }
  .home-reading {
    padding-block: 35px;
  }
  .home-reading > header {
    display: block;
    margin-bottom: 25px;
  }
  .home-reading > header h2 {
    margin-bottom: 12px;
  }
  .reading-grid,
  .home-valorar-pisos .reading-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .reading-photo {
    height: 210px;
    margin-bottom: 15px;
  }
  .reading-grid h3 {
    font-size: 1.2rem;
  }
  .reading-grid p {
    margin-bottom: 0;
  }
  .worksheet {
    padding: 22px 18px;
    margin-block: 20px 35px;
  }
  .worksheet-heading h2 {
    font-size: 1.6rem;
  }
  .worksheet-heading p {
    font-size: 0.95rem;
  }
  .worksheet-fields {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .agency-proposals,
  .flat-proposals,
  .owners-list {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .proposal {
    padding: 20px;
  }
  .market-row {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  .market-row .worksheet-field:first-of-type {
    grid-column: 1/-1;
  }
  .worksheet-output {
    padding: 18px;
  }
  .worksheet-output .result-value {
    font-size: 2rem;
  }
  .worksheet-table th,
  .worksheet-table td {
    padding: 12px 14px;
    min-width: 115px;
  }
  .worksheet-actions {
    gap: 12px 20px;
  }
  .worksheet-actions > .button {
    width: 100%;
  }
  .worksheet-actions > .text-button {
    max-width: 46%;
  }
  .worksheet-help {
    font-size: 0.85rem;
  }
  .page-intro {
    padding-block: 28px 15px;
  }
  .page-intro h1 {
    font-size: 2.4rem;
  }
  .purpose-guide h2 {
    font-size: 1.65rem;
  }
}
@media print {
  .header,
  .footer,
  .consent,
  .worksheet-actions,
  .breadcrumbs,
  .home-reading {
    display: none !important;
  }
  .worksheet {
    border: 0;
    background: #fff;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .worksheet-output {
    break-inside: avoid;
  }
}

.digital .closing .button {
  --action: #125a57;
  --button-text: #fff;
}
.tool-directory {
  padding: 32px;
  background: var(--soft);
  border-radius: 8px;
  margin-block: 20px 45px;
}
.tool-directory h2 {
  font-size: 1.8rem;
}
.tool-directory p {
  max-width: 75ch;
}
/* House sale: a wide photograph below the introduction, distinct from the free valuation opening. */
.house-opening {
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 45px;
}
.house-opening .opening-copy {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0 65px;
  align-items: start;
}
.house-opening .opening-copy h1 {
  grid-row: span 3;
  max-width: 18ch;
}
.house-opening .opening-copy .button {
  justify-self: start;
}
.house-opening figure {
  height: 330px;
  border-radius: 4px;
}
@media (max-width: 760px) {
  .house-opening {
    margin-top: 0;
    gap: 25px;
  }
  .house-opening .opening-copy {
    display: block;
  }
  .house-opening figure {
    height: 245px;
  }
  .house-opening .opening-copy h1 {
    max-width: 17ch;
  }
}
.brand-home h1 {
  letter-spacing: -0.03em;
}
.brand-home h2 {
  letter-spacing: -0.025em;
}
.digital h1,
.digital h2 {
  letter-spacing: -0.025em;
  font-weight: 600;
}
.worksheet-output .result-value {
  letter-spacing: -0.025em;
}
@media (max-width: 760px) {
  .header nav {
    flex-wrap: wrap;
    overflow: visible;
    white-space: normal;
    gap: 12px 22px;
  }
  .brand-home h1 {
    letter-spacing: -0.025em;
  }
}
