/* NerdWallet UK static shutdown page — no JavaScript */

@font-face {
  font-family: Gotham;
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("https://www.nerdwallet.com/cdn/fonts/Gotham-Book--critical.fdbad282be.woff2")
    format("woff2");
}

@font-face {
  font-family: Gotham;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("https://www.nerdwallet.com/cdn/fonts/Gotham-Medium--critical.ee5c613487.woff2")
    format("woff2");
}

@font-face {
  font-family: Gotham;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("https://www.nerdwallet.com/cdn/fonts/Gotham-Bold--critical.dcf83fb890.woff2")
    format("woff2");
}

@font-face {
  font-family: "Chronicle Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://www.nerdwallet.com/cdn/fonts/ChronicleDisplay-Roman--critical.835fdb1566.woff2")
    format("woff2");
}

:root {
  --nw-black: #000;
  --nw-green: #008254;
  --nw-blue: #005fb9;
  --nw-neutral: #8b8c8f;
  --nw-neutral-dark: #64666a;
  --nw-neutral-lighter: #d8d9da;
  --nw-white: #fff;
  /* UK theme presets (see live wp global styles) */
  --nw-hero-bg: #eef7ff; /* --wp--preset--color--lightest-blue */
  --nw-footer-bg: #fffbf4; /* --wp--custom--color--ui--yellow--background */
  --nw-footer-rule: rgba(100, 102, 106, 0.2);
  --header-h: 72px;
  /* Live UK theme: content column (breadcrumbs, titles, article, footer menus) */
  --content-max: 992px;
  --nw-yellow-accent: #ffc764;
  /* WP preset font-size clamps (html 62.5% → rem) */
  --fs-xxx-large: clamp(2.6rem, 0.4865rem + 4.3243vw, 3.6rem);
  --fs-xx-large: clamp(2rem, 1.1546rem + 1.7297vw, 2.4rem);
}

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

html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--nw-black);
  font-family: Gotham, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1.5;
  padding-top: var(--header-h);
}

a {
  color: var(--nw-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* —— Header —— */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--nw-white);
  border-bottom: 1px solid var(--nw-neutral-lighter);
}

.site-header .container {
  /* Match live: same .container width as breadcrumbs + article (not full nav rail) */
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  min-height: var(--header-h);
  gap: 24px;
}

.site-header__logo {
  flex-shrink: 0;
  padding-right: 32px;
  border-right: 1px solid var(--nw-neutral-lighter);
  line-height: 0;
}

.site-header__logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.site-header__logo-bug {
  display: block;
  width: 21px;
  height: 21px;
  flex-shrink: 0;
}

.site-header__logo-wordmark {
  display: block;
  width: 127px;
  height: 21px;
  flex-shrink: 0;
}

.site-header__nav {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header__nav li {
  margin: 0;
}

/* Disabled nav: grey, no pointer, not keyboard-focusable */
.nav-label--disabled {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: capitalize;
  color: var(--nw-neutral);
  cursor: default;
  user-select: none;
  padding-block: 8px;
}

@media (max-width: 767px) {
  .site-header__logo {
    border-right: none;
    padding-right: 0;
  }

  .site-header__nav {
    gap: 12px 20px;
  }

  .nav-label--disabled {
    font-size: 1.2rem;
  }
}

/* —— Main —— */

main {
  display: block;
}

/* Shared layout width — matches live .container (992px content well) */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}

/* Breadcrumbs (matches live nw-breadcrumbs pattern; no rule under trail — live has none) */
.breadcrumbs {
  background: var(--nw-white);
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 12px 0;
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--nw-black);
}

.breadcrumbs__item a {
  color: var(--nw-neutral-dark);
  text-decoration: none;
}

.breadcrumbs__item a:hover {
  color: var(--nw-blue);
  text-decoration: underline;
}

/* Home = icon only (live nw-breadcrumbs first item) */
.breadcrumbs__home {
  display: inline-block;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='%23292929' viewBox='0 0 256 256'%3E%3Cpath d='M240 208h-16v-72l2.34 2.34A8 8 0 0 0 237.66 127L139.31 28.68a16 16 0 0 0-22.62 0L18.34 127a8 8 0 0 0 11.32 11.31L32 136v72H16a8 8 0 0 0 0 16h224a8 8 0 0 0 0-16Zm-88 0h-48v-44a4 4 0 0 1 4-4h40a4 4 0 0 1 4 4Z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  vertical-align: middle;
}

.breadcrumbs__home-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.breadcrumbs__item:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 11px;
  height: 11px;
  margin: 0 8px;
  vertical-align: middle;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' fill='%2364666a' viewBox='0 0 256 256'%3E%3Cpath d='M181.66 133.66l-80 80a8 8 0 01-11.32-11.32L164.69 128 90.34 53.66a8 8 0 0111.32-11.32l80 80a8 8 0 010 11.32z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.breadcrumbs__item--current {
  color: var(--nw-black);
}

/* Inner page hero (live: c-block-hero + brand light green + bug SVG) */
.page-hero {
  --page-hero-bug: url("https://www.nerdwallet.com/uk/wp-content/uploads/sites/4/2023/03/NerdWallet-bug.svg");
  background-color: #8ccb32;
  background-image: var(--page-hero-bug);
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--nw-black);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.page-hero__inner {
  max-width: 842px;
  margin: 0 auto;
  padding: 36px 16px 40px;
}

.page-hero__title {
  font-family: "Chronicle Display", Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 5.4rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 16px;
  max-width: 620px;
}

.page-hero__intro {
  margin: 0;
  max-width: 620px;
  font-size: clamp(1.6rem, 2.2vw, 2.4rem);
  line-height: 1.33;
  font-weight: 300;
}

@media (max-width: 767px) {
  .page-hero__inner {
    padding: 20px 16px 24px;
  }

  .page-hero__title {
    margin-bottom: 16px;
  }

  .page-hero__intro {
    line-height: 1.5;
    padding-bottom: 4px;
  }
}

.hero {
  background: var(--nw-hero-bg);
  padding: clamp(32px, 5vw, 64px) 16px;
  text-align: center;
  border-bottom: 1px solid var(--nw-neutral-lighter);
}

.hero h1 {
  font-family: "Chronicle Display", Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 5vw, 5.4rem);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--nw-black);
}

.hero__tagline {
  margin: 0;
  font-size: 1.8rem;
  color: var(--nw-neutral-dark);
  font-weight: 300;
}

.shutdown-notice {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) 16px 80px;
}

.shutdown-notice h2 {
  font-family: Gotham, sans-serif;
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 24px;
  color: var(--nw-black);
}

.shutdown-notice p {
  margin: 0 0 20px;
  line-height: 1.7;
  font-size: 1.6rem;
}

.shutdown-notice p:last-child {
  margin-bottom: 0;
}

.shutdown-notice .placeholder {
  background: #fff7ea;
  padding: 2px 6px;
  border-radius: 2px;
  font-weight: 500;
}

.shutdown-notice a {
  color: var(--nw-green);
  font-weight: 500;
}

.shutdown-notice a:hover {
  color: var(--nw-black);
}

/* —— Footer —— */

.site-footer {
  background: var(--nw-footer-bg);
  border-top: 1px solid var(--nw-footer-rule);
  padding: clamp(40px, 5vw, 56px) 16px 36px;
}

.site-footer .container {
  max-width: var(--content-max);
  margin: 0 auto;
}

/* Logo + tagline column (matches original column-logo + in__caption layout) */
.footer-shell {
  display: grid;
  grid-template-columns: minmax(160px, 260px) 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.footer-aside {
  margin: 0;
  padding: 0;
  border: 0;
}

.footer-aside__bug {
  display: block;
  width: clamp(80px, 14vw, 112px);
  height: auto;
  aspect-ratio: 1;
  margin: 0 0 20px;
}

.footer-aside__caption {
  font-family: Gotham, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--nw-green);
  margin: 0;
}

.footer-body {
  min-width: 0;
}

@media (max-width: 639px) {
  .footer-shell {
    grid-template-columns: 1fr;
  }
}

/* About / Legal column menus (live: .footer .extra-menus) */
.site-footer.footer .footer-extra-menus.extra-menus {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
  margin-bottom: 40px;
}

.site-footer.footer .extra-menus .in__menu-wrapper {
  border: none;
  flex: 1 1 auto;
  min-width: min(100%, 200px);
}

@media screen and (min-width: 576px) {
  .site-footer.footer .extra-menus .in__menu-wrapper {
    min-width: unset;
    flex: 1 1 0;
  }
}

.site-footer.footer .extra-menus .in__title-wrapper {
  margin: 0;
}

.site-footer.footer .extra-menus .in__title {
  position: relative;
  display: block;
  margin: 0;
  padding: 0 0 13px;
  color: var(--nw-black);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 2rem;
  text-transform: uppercase;
}

.site-footer.footer .extra-menus .in__title::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  display: block;
  width: 30px;
  height: 2px;
  border-radius: 999px;
  background-color: var(--nw-yellow-accent);
}

.site-footer.footer .extra-menus .footer-menu {
  list-style: none;
  margin: 7px 0 0;
  padding: 0;
}

.site-footer.footer .extra-menus .footer-menu li {
  margin: 0;
}

.site-footer.footer .extra-menus .footer-menu li:last-child {
  margin-block-end: 16px;
}

.site-footer.footer .extra-menus .footer-menu a {
  display: block;
  padding: 4px 0;
  color: var(--nw-black);
  font-size: 1.3rem;
  line-height: 1.5;
  text-decoration: none;
}

.site-footer.footer .extra-menus .footer-menu a:hover {
  color: var(--nw-blue);
  text-decoration: underline;
}

.footer-legal {
  padding-top: 24px;
  border-top: 1px solid var(--nw-footer-rule);
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .footer-legal {
    grid-template-columns: 1fr minmax(200px, auto);
    align-items: start;
  }
}

.footer-legal__disclaimer p {
  margin: 0 0 16px;
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--nw-neutral-dark);
}

.footer-legal__disclaimer p:last-child {
  margin-bottom: 0;
}

.footer-legal__disclaimer strong {
  font-weight: 700;
  color: var(--nw-black);
}

.copyright {
  font-size: 1.4rem;
  color: var(--nw-neutral-dark);
  margin: 0;
}

/* Inner static pages (About / Legal) */
.static-page {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 56px) 16px 80px;
}

.static-page h1 {
  font-family: "Chronicle Display", Georgia, serif;
  font-size: clamp(2.8rem, 4vw, 4.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 24px;
}

.static-page h2 {
  font-family: Gotham, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  font-size: var(--fs-xxx-large);
  font-weight: 700;
  line-height: 1.3;
  margin: 32px 0 16px;
}

.static-page > h2:first-child {
  margin-top: 0;
}

.static-page p,
.static-page li {
  font-size: 1.6rem;
  line-height: 1.7;
}

.static-page p {
  margin: 0 0 16px;
}

.static-page strong {
  font-weight: 700;
}

.static-page ul,
.static-page ol {
  margin: 0 0 16px;
  padding-left: 1.5em;
}

.static-page .placeholder {
  background: #fff7ea;
  padding: 2px 6px;
  border-radius: 2px;
  font-weight: 500;
}

/* Legal / policy bodies — match live the-content + WP theme scale */
.static-page.static-page--legal {
  padding-top: clamp(24px, 4vw, 40px);
}

.static-page.static-page--legal h1 {
  font-size: clamp(2.8rem, 4vw, 4.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: clamp(16px, 3vw, 24px);
}

.static-page.static-page--legal h2,
.static-page.static-page--legal h2.wp-block-heading {
  font-family: Gotham, system-ui, sans-serif;
  font-size: var(--fs-xxx-large);
  font-weight: 700;
  line-height: 1.3;
  margin: clamp(24px, 4vw, 32px) 0 16px;
}

.static-page.static-page--legal h3,
.static-page.static-page--legal h3.wp-block-heading {
  font-family: Gotham, system-ui, sans-serif;
  font-size: var(--fs-xx-large);
  font-weight: 700;
  line-height: 1.35;
  margin: 28px 0 12px;
}

.static-page.static-page--legal p,
.static-page.static-page--legal li {
  font-size: 1.6rem;
  line-height: 1.7;
}

.static-page.static-page--legal ul.wp-block-list,
.static-page.static-page--legal ol.wp-block-list {
  margin: 0 0 16px;
  padding-left: 1.5em;
}

.static-page.static-page--legal .wp-block-file {
  margin: 8px 0 12px;
}

.static-page.static-page--legal .wp-block-file a {
  font-weight: 500;
}

/* Table of contents (how our site works) — <details> + live-style caret + blue links */
.static-page.static-page--legal details.nwb-table-of-contents {
  margin: 0 0 24px;
  padding: 16px 20px;
  border: 1px solid var(--nw-neutral-lighter);
  border-radius: 4px;
  background: var(--nw-white);
}

.static-page.static-page--legal details.nwb-table-of-contents summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 1.6rem;
  font-weight: 700;
  list-style: none;
}

.static-page.static-page--legal details.nwb-table-of-contents summary::-webkit-details-marker {
  display: none;
}

/* Collapsed: chevron up; open: chevron down (live NW block pattern) */
.static-page.static-page--legal details.nwb-table-of-contents summary::after {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 2px;
  border-right: 2px solid var(--nw-black);
  border-bottom: 2px solid var(--nw-black);
  transform: rotate(-135deg);
}

.static-page.static-page--legal details.nwb-table-of-contents[open] summary::after {
  margin-top: -2px;
  transform: rotate(45deg);
}

.static-page.static-page--legal details.nwb-table-of-contents .in__list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.static-page.static-page--legal details.nwb-table-of-contents .in__list li {
  margin: 0 0 8px;
}

.static-page.static-page--legal details.nwb-table-of-contents .in__list li:last-child {
  margin-bottom: 0;
}

.static-page.static-page--legal details.nwb-table-of-contents .toc_link {
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--nw-blue);
  text-decoration: none;
}

.static-page.static-page--legal details.nwb-table-of-contents .toc_link:hover {
  color: var(--nw-blue);
  text-decoration: underline;
}
