/* Selkoluotto's editorial layouts. Controls and tables live in site.css. */
.editorial-art {
  display: block;
  width: 100%;
  height: auto;
}
.section {
  padding: 80px 0;
}
.section h2 {
  font-size: clamp(28px, 2.8vw, 40px);
  max-width: 24ch;
}
.section-heading {
  margin-bottom: 28px;
}
.section-heading h2 {
  margin-bottom: 8px;
}
.section-lead {
  max-width: 64ch;
  color: var(--muted);
}

.hero-surface {
  padding: 52px 0 32px;
}
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  gap: 72px;
  align-items: start;
}
.hero-copy {
  min-width: 0;
  padding-top: 15px;
}
.hero-copy h1 {
  font-size: clamp(44px, 4.8vw, 68px);
  line-height: 1.07;
  letter-spacing: -0.055em;
  font-weight: 600;
  margin-bottom: 26px;
  text-wrap: initial;
}
.hero-copy .lead {
  font-size: 21px;
  max-width: 36ch;
  line-height: 1.5;
  hyphens: none;
}
.hero-illustration {
  margin: 36px -18px 24px;
}
.hero-illustration img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.hero-service {
  max-width: 46ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}
.hero-tool {
  min-width: 0;
}
.home-hero .calculator {
  display: block;
  border-radius: 4px 4px 12px 12px;
}
.home-hero .calculator-top {
  padding: 4px 24px;
  background: var(--mist);
}
.home-hero .calc-form {
  padding: 22px 24px 16px;
}
.home-hero .calc-form fieldset {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 22px;
}
.home-hero .calc-form .field {
  display: block;
  margin: 0 0 6px;
}
.home-hero .calc-form .recalculate {
  grid-column: 1 / -1;
  margin-top: 8px;
  background: white;
  color: var(--teal);
  min-height: 44px;
}
.home-hero .calc-results {
  border: 0;
}
.home-hero .result-summary {
  padding: 22px 24px 10px;
  background: #eef5f3;
}
.home-hero .result-heading {
  display: none;
}
.home-hero .totals {
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.home-hero .totals strong {
  font-size: clamp(26px, 2.4vw, 34px);
  letter-spacing: -0.04em;
  color: var(--teal);
}
.home-hero .totals > div > span {
  font-size: 14px;
}
.home-hero .totals small {
  font-size: 13px;
}
.home-hero .ledger {
  margin: 14px 0;
}
.home-hero .ledger > div {
  border: 0;
  padding: 4px 0;
  font-size: 14px;
}
.home-hero .result-details {
  margin-top: 0;
}
.home-hero .result-details summary {
  padding: 8px 0;
}
.home-hero .schedule {
  margin: 0;
  border-top: 1px solid var(--line);
}
.home-hero .schedule > summary {
  padding: 12px 24px;
  font-size: 15px;
}
.home-hero .calc-actions {
  padding: 8px 24px 14px;
}
.home-hero .calc-actions .button-row {
  gap: 16px;
}
.home-hero .calc-actions .button-row > * {
  min-height: 44px;
  font-size: 14px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--teal);
  text-decoration: underline;
}
.home-hero .calc-actions .fine {
  font-size: 12px;
  margin: 6px 0 0;
}
.home-hero .action-status:empty {
  display: none;
}
.partner-inline {
  padding: 20px 24px 8px;
}
.partner-inline .button {
  width: 100%;
}
.partner-inline .fine {
  margin: 10px 0 6px;
}

.loan-choices {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 90px;
  align-items: start;
}
.choices-heading p {
  color: var(--muted);
  max-width: 36ch;
}
.choices-heading .editorial-art {
  margin-top: 24px;
}
.product-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  gap: 12px 20px;
  padding: 24px 0;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.product-row:first-child {
  padding-top: 4px;
}
.product-row h2,
.product-row h3 {
  margin: 0 0 8px;
  font-size: 25px;
  color: var(--teal);
}
.product-row p {
  color: var(--muted);
  margin: 0;
  font-size: 17px;
  max-width: 51ch;
}
.product-row > svg {
  grid-column: 2;
  grid-row: 1 / 3;
}
.product-row:hover h2,
.product-row:hover h3 {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.product-range {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: baseline;
}
.product-range strong {
  font-size: 18px;
  font-weight: 600;
}
.product-range span {
  color: var(--muted);
  font-size: 15px;
}
.model-note {
  margin: 20px 0 0;
  font-size: 14px;
  color: var(--muted);
  max-width: 56ch;
}

.term-story {
  border-top: 1px solid var(--line);
}
.term-intro {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 80px;
  align-items: center;
  margin-bottom: 28px;
}
.term-intro p {
  max-width: 50ch;
  margin-bottom: 0;
  color: var(--muted);
}
.term-table-wrap {
  max-width: 100%;
}
.term-table {
  table-layout: fixed;
  white-space: normal;
  font-size: 24px;
}
.term-table caption {
  font-size: 15px;
  padding: 0 0 18px;
}
.term-table thead {
  background: #eef5f3;
}
.term-table th,
.term-table td {
  padding: 20px 24px;
}
.term-table thead th {
  font-size: 15px;
  font-weight: 400;
}
.term-table th:first-child {
  width: 19%;
}
.term-table td:last-child {
  color: var(--teal);
}
.term-conclusion {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 32px;
  padding-top: 24px;
}
.term-conclusion p {
  margin: 0;
  font-size: 17px;
  max-width: 54ch;
}
.term-conclusion > a {
  flex-shrink: 0;
}

.cost-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 100px;
  background: #eef5f3;
  padding: 56px;
  border-radius: 12px;
}
.cost-copy p {
  color: var(--muted);
  max-width: 43ch;
}
.cost-receipt {
  background: #fbfdfb;
  padding: 30px;
  border: 1px solid #c2d0d4;
  border-radius: 3px;
}
.receipt-title {
  font-weight: 600;
  margin: 0 0 24px;
  font-size: 17px;
}
.cost-receipt dl {
  margin: 0;
}
.cost-receipt dl > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 0;
  font-size: 16px;
}
.cost-receipt dd {
  margin: 0;
  white-space: nowrap;
}
.cost-receipt dl .receipt-total {
  border-top: 1px dashed #92a9a4;
  margin-top: 12px;
  padding-top: 20px;
  flex-direction: column;
  gap: 2px;
}
.receipt-total dd {
  color: var(--teal);
  font: 600 38px/1.3 var(--display);
  letter-spacing: -0.035em;
}
.cost-receipt .fine {
  font-size: 13px;
  margin: 18px 0 0;
}

.reading-shelf > h2 {
  margin-bottom: 36px;
}
.reading-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 20px;
}
.reading-feature {
  color: var(--ink);
  text-decoration: none;
}
.reading-feature .editorial-art {
  aspect-ratio: 2 / 1;
  object-fit: cover;
  margin-bottom: 24px;
}
.reading-feature h3 {
  font-size: 26px;
  max-width: 28ch;
}
.reading-feature p {
  max-width: 45ch;
  color: var(--muted);
  margin-bottom: 10px;
}
.reading-feature:hover h3 {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.reading-feature .text-link {
  color: var(--teal);
  font-size: 16px;
}

.home-help {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 90px;
  border-top: 1px solid var(--line);
}
.help-heading .editorial-art {
  width: 260px;
  margin: -16px 0 20px;
}
.help-heading p {
  color: var(--muted);
  max-width: 39ch;
  margin-bottom: 0;
}
.home-help .help-links {
  grid-template-columns: 1fr;
  margin-top: 0;
}
.home-help .help-links a {
  min-height: 62px;
}
.home-help .text-link {
  margin-top: 24px;
}
.faq-section {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  border-top: 1px solid var(--line);
}
.faq-section .faq {
  border-top: 0;
}
.faq-section .faq summary {
  font-size: 18px;
}
.faq-section .faq details:first-child summary {
  padding-top: 0;
}
.faq-section .faq details:first-child summary::after {
  top: -7px;
}

.page-intro {
  padding-top: 40px;
  padding-bottom: 36px;
}
.page-intro h1 {
  font-weight: 600;
  max-width: 25ch;
  font-size: clamp(32px, 3.6vw, 48px);
}
.page-intro .lead {
  font-size: 20px;
  max-width: 60ch;
}
.illustrated-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 72px;
  align-items: center;
}
.intro-art {
  width: 300px;
  height: 200px;
  object-fit: cover;
}
.guide-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px 48px;
}
.guide-list > a {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  color: var(--ink);
  text-decoration: none;
  align-items: start;
}
.guide-list h2 {
  font-size: 24px;
  margin-bottom: 12px;
}
.guide-list p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 8px;
}
.guide-list .text-link {
  color: var(--teal);
  font-size: 16px;
}
.guide-list > a:hover h2 {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.guide-list .editorial-art {
  aspect-ratio: 1;
  object-fit: cover;
}
.state-art {
  width: 220px;
  height: auto;
  margin: 0 0 12px;
}

@media (min-width: 900px) {
  .calculator > .partner-inline {
    grid-column: 1;
    grid-row: 3;
    padding: 0 24px 8px;
  }
  .calculator > .calc-actions {
    grid-row: 4;
  }
  .calculator > .action-status {
    grid-row: 5;
  }
  .calculator > .calc-results {
    grid-row: 2 / 6;
  }
  .home-hero .partner-inline {
    padding: 20px 24px 8px;
  }
}
@media (max-width: 1150px) {
  .home-hero {
    gap: 40px;
    grid-template-columns: 0.9fr 1.1fr;
  }
  .hero-copy h1 {
    font-size: 54px;
  }
  .loan-choices,
  .home-help,
  .faq-section {
    gap: 48px;
  }
  .cost-story {
    gap: 48px;
    padding: 36px;
  }
  .guide-list > a {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 20px;
  }
}
@media (max-width: 900px) {
  .home-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-copy {
    padding-top: 0;
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 0 24px;
  }
  .hero-copy h1 {
    grid-column: 1;
    font-size: 48px;
  }
  .hero-copy .lead {
    grid-column: 1;
  }
  .hero-illustration {
    grid-column: 2;
    grid-row: 1 / 4;
    margin: 0;
    align-self: center;
  }
  .hero-service {
    grid-column: 1;
    font-size: 14px;
  }
  .hero-surface {
    padding: 32px 0 16px;
  }
  .section {
    padding: 56px 0;
  }
  .loan-choices {
    grid-template-columns: 1fr 1.4fr;
    gap: 36px;
  }
  .term-intro {
    grid-template-columns: 1fr 250px;
    gap: 40px;
  }
  .term-conclusion {
    display: block;
  }
  .term-conclusion > a {
    margin-top: 12px;
  }
  .cost-story {
    padding: 32px;
    gap: 32px;
  }
  .cost-receipt {
    padding: 24px;
  }
  .home-help,
  .faq-section {
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
  }
  .illustrated-intro {
    grid-template-columns: 1fr 210px;
    gap: 32px;
  }
  .intro-art {
    width: 210px;
    height: 140px;
  }
  .guide-list > a {
    display: block;
  }
  .guide-list .editorial-art {
    aspect-ratio: 2 / 1;
    margin-bottom: 24px;
  }
}
@media (max-width: 767px) {
  .hero-copy {
    display: block;
  }
  .hero-copy h1 {
    font-size: 44px;
    margin-bottom: 18px;
  }
  .hero-copy .lead {
    font-size: 18px;
    max-width: 36ch;
    margin: 0;
  }
  .hero-illustration,
  .hero-service {
    display: none;
  }
  .home-hero {
    gap: 24px;
  }
  .home-hero .calculator-top {
    padding: 4px 18px;
  }
  .home-hero .calc-form {
    padding: 18px;
  }
  .home-hero .calc-form fieldset {
    gap: 0 16px;
  }
  .home-hero .input-wrap input {
    padding-left: 12px;
  }
  .home-hero .result-summary {
    padding: 20px 18px 8px;
  }
  .home-hero .totals {
    gap: 12px;
  }
  .home-hero .totals strong {
    font-size: 27px;
  }
  .home-hero .cost-legend {
    display: block;
  }
  .home-hero .cost-legend span {
    display: block;
  }
  .home-hero .schedule > summary {
    padding: 12px 18px;
  }
  .home-hero .partner-inline {
    padding: 18px 18px 8px;
  }
  .home-hero .calc-actions {
    padding: 4px 18px 14px;
  }
  .home-hero .calc-actions .button-row {
    gap: 8px 20px;
  }
  .home-hero .calc-actions .button-row > * {
    flex: none;
  }
  .section {
    padding: 44px 0;
  }
  .section h2 {
    font-size: 30px;
  }
  .loan-choices {
    display: block;
  }
  .choices-heading {
    position: relative;
    padding-bottom: 8px;
  }
  .choices-heading .editorial-art {
    width: 210px;
    margin: 18px 0;
  }
  .choices-heading p {
    max-width: 40ch;
  }
  .product-row {
    padding: 24px 0;
  }
  .product-row h2,
  .product-row h3 {
    font-size: 23px;
  }
  .product-row p {
    font-size: 16px;
  }
  .term-intro {
    display: block;
    margin-bottom: 24px;
  }
  .term-intro .editorial-art {
    width: 260px;
    margin: 24px 0 0 auto;
  }
  .term-table {
    font-size: 16px;
  }
  .term-table th,
  .term-table td {
    padding: 14px 6px;
  }
  .term-table thead th {
    font-size: 12px;
    overflow-wrap: anywhere;
  }
  .term-table th:first-child {
    width: 15%;
  }
  .term-table caption {
    font-size: 14px;
  }
  .cost-story {
    grid-template-columns: 1fr;
    padding: 28px 20px;
    gap: 24px;
  }
  .cost-receipt {
    padding: 24px 20px;
  }
  .cost-copy p {
    margin-bottom: 12px;
  }
  .cost-receipt dl > div {
    font-size: 15px;
  }
  .reading-features {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .reading-feature .editorial-art {
    margin-bottom: 20px;
  }
  .reading-feature h3 {
    font-size: 26px;
  }
  .home-help {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .help-heading .editorial-art {
    width: 240px;
    margin-top: 0;
  }
  .faq-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .faq-section .section-heading {
    margin: 0;
  }
  .page-intro {
    padding-top: 24px;
    padding-bottom: 24px;
  }
  .illustrated-intro {
    display: block;
  }
  .intro-art {
    width: 210px;
    height: 140px;
    margin: 20px 0 0 auto;
  }
  body:is(
      [data-page="instalment"],
      [data-page="small"],
      [data-page="revolving"],
      [data-page="calculator"],
      [data-page="compare"],
      [data-page="consolidate"]
    )
    .intro-art {
    display: none;
  }
  .page-intro h1 {
    font-size: 36px;
  }
  .page-intro .lead {
    font-size: 18px;
    margin-bottom: 0;
  }
  .page-intro .byline {
    margin-top: 20px;
  }
  .guide-list {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .guide-list > a {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 20px;
  }
  .guide-list .editorial-art {
    aspect-ratio: 1;
    margin: 0;
  }
  .guide-list h2 {
    font-size: 22px;
  }
  .guide-list p {
    font-size: 16px;
  }
}
@media (max-width: 359px) {
  .hero-copy h1 {
    font-size: 39px;
  }
  .home-hero .totals strong {
    font-size: 23px;
  }
  .home-hero .calculator-top {
    gap: 4px;
  }
  .home-hero .calc-actions .button-row {
    display: flex;
  }
  .home-hero .calc-actions .button-row > * {
    width: auto;
    margin: 0;
  }
  .term-table th,
  .term-table td {
    padding: 12px 3px;
    font-size: 14px;
  }
  .guide-list > a {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 16px;
  }
}
@media print {
  .hero-surface {
    padding: 0;
  }
  .home-hero,
  .hero-tool {
    display: block;
  }
  .editorial-art,
  .intro-art,
  .hero-copy,
  .partner-inline,
  .state-art {
    display: none !important;
  }
  .home-hero .result-summary {
    padding: 0;
    background: white;
  }
  .home-hero .totals strong {
    color: black;
  }
  .home-hero .calculator {
    border: 0;
  }
  .page-intro {
    padding: 12px 0;
  }
  .section {
    padding: 24px 0;
  }
}
