:root {
  color-scheme: light;
  --ink: #101a36;
  --muted: #4e5c73;
  --blue: #2444d8;
  --navy: #101b3e;
  --lime: #def85f;
  --paper: #f6f7fb;
  --line: #dce2ef;
  --white: #fff;
  --wrap: min(100% - 2.5rem,1280px);
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.6 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

[hidden] {
  display: none!important;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue);
  text-underline-offset: .21em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid #3359ed;
  outline-offset: 4px;
}

.dark :focus-visible,.hero :focus-visible {
  outline-color: var(--lime);
}

h1,h2,h3,p,figure,dl {
  margin: 0;
}

h1,h2,h3 {
  line-height: 1.1;
  letter-spacing: -.04em;
}

h1 {
  font-size: clamp(2.55rem,6vw,5.2rem);
}

h2 {
  font-size: clamp(1.85rem,4vw,3rem);
}

h3 {
  font-size: 1.24rem;
}

button,input,textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.skip {
  position: absolute;
  top: .5rem;
  left: .5rem;
  z-index: 5;
  background: #fff;
  padding: .65rem;
  transform: translateY(-150%);
}

.skip:focus {
  transform: none;
}

.masthead {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 2;
}

.mast-inner {
  display: grid;
  grid-template-columns: minmax(11rem,1fr) auto minmax(11rem,1fr);
  align-items: center;
  min-height: 76px;
  gap: .7rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .62rem;
  width: max-content;
  color: inherit;
  text-decoration: none;
  line-height: 1.05;
  font-weight: 850;
  letter-spacing: -.04em;
}

.brand img {
  width: 40px;
  height: 40px;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: .68rem;
  letter-spacing: .12em;
  margin-top: .24rem;
}

.nav {
  display: flex;
  gap: clamp(.35rem,1.3vw,1.25rem);
  align-items: center;
}

.nav a {
  color: var(--ink);
  white-space: nowrap;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: .35rem .45rem;
  text-decoration: none;
  font-size: .89rem;
  font-weight: 680;
  border-bottom: 2px solid transparent;
}

.nav a:hover,.nav a[aria-current=page] {
  color: var(--blue);
  border-color: var(--blue);
}

.edition {
  justify-self: end;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .72rem;
  letter-spacing: .13em;
  font-weight: 800;
}

.edition::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lime);
  border: 1px solid #687929;
}

.mobile-nav {
  display: none;
}

.hero {
  margin-block: 1.55rem 0;
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  overflow: hidden;
  border-radius: 24px;
  background: var(--navy);
  color: #fff;
  position: relative;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1.5rem,4.25vw,4rem);
  position: relative;
  z-index: 1;
}

.hero h1 span {
  display: block;
  color: var(--lime);
  font-size: .51em;
  letter-spacing: -.035em;
  margin-top: .25em;
  line-height: 1.12;
}

.eyebrow {
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: .48rem;
  font-size: .72rem;
  font-weight: 840;
  letter-spacing: .13em;
  text-transform: uppercase;
  line-height: 1.35;
}

.eyebrow::before {
  width: 1.35rem;
  height: 2px;
  background: currentColor;
  content: "";
  flex: none;
}

.hero .eyebrow,.dark .eyebrow {
  color: var(--lime);
}

.hero p.intro {
  margin-top: 1rem;
  color: #e4eaff;
  max-width: 47ch;
  font-size: clamp(.97rem,1.5vw,1.12rem);
}

.hero h1 {
  margin-top: .72rem;
}

.hero-image {
  position: relative;
  min-width: 0;
  min-height: 220px;
}

.hero-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 53% 53%;
}

.hero-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg,var(--navy),transparent 24%),linear-gradient(0deg,#09142c58,transparent 30%);
  pointer-events: none;
}

.byline {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-top: 1.35rem;
  color: #d3dcf4;
  font-size: .76rem;
  line-height: 1.22;
}

.byline img {
  width: 39px;
  height: 39px;
  border-radius: 50%;
  border: 1px solid #7889c4;
}

.byline a {
  color: white;
  font-weight: 820;
  text-decoration: none;
  display: inline-block;
}

.byline a:hover {
  text-decoration: underline;
}

.byline small {
  display: block;
  margin-top: .2rem;
  font-size: inherit;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .62rem;
  min-height: 48px;
  text-decoration: none;
  font-weight: 780;
  font-size: .9rem;
  padding: .62rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
}

.button:hover {
  background: #162ea8;
}

.hero .button {
  margin-top: 1.35rem;
  color: #152229;
  background: var(--lime);
}

.hero .button:hover {
  background: #f0ff9e;
}

.quicknav {
  display: flex;
  align-items: center;
  gap: .2rem 1.35rem;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .4rem 1rem;
  margin-block: 1rem 2.2rem;
}

.quicknav strong {
  font-size: .72rem;
  letter-spacing: .09em;
  color: var(--muted);
  text-transform: uppercase;
}

.quicknav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: .88rem;
  font-weight: 725;
  text-decoration: none;
}

.quicknav a:hover {
  text-decoration: underline;
}

.reading-layout {
  display: grid;
  grid-template-columns: minmax(0,2.25fr) minmax(245px,1fr);
  gap: clamp(1.5rem,4vw,4rem);
  align-items: start;
}

.article-flow {
  min-width: 0;
}

.article-flow section+section {
  border-top: 1px solid var(--line);
  margin-top: 2.7rem;
  padding-top: 2.4rem;
}

.copy {
  max-width: 75ch;
}

.copy h2 {
  margin-bottom: .8rem;
}

.copy h3 {
  margin-top: 1.35rem;
  margin-bottom: .45rem;
}

.copy p+p,.copy p+ul,.copy ul+p {
  margin-top: .85rem;
}

.copy ul {
  padding-left: 1.35rem;
}

.copy li+li {
  margin-top: .32rem;
}

.opening h2 {
  margin-top: .5rem;
}

.facts {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 15px;
  padding: 1.35rem;
  box-shadow: 0 8px 22px #161f5010;
}

.facts h2 {
  margin: .42rem 0 .8rem;
  font-size: 1.7rem;
}

.facts div {
  padding: .72rem 0;
  border-top: 1px solid var(--line);
}

.facts dt {
  font-weight: 800;
  font-size: .9rem;
}

.facts dd {
  margin: .22rem 0 0;
  font-size: .87rem;
  color: var(--muted);
}

.facts a {
  font-size: .87rem;
  font-weight: 730;
}

.note {
  padding: 1.05rem 1.12rem;
  margin: 1.2rem 0;
  background: #e9eeff;
  border-left: 4px solid var(--blue);
  border-radius: 0 10px 10px 0;
}

.note strong {
  display: block;
  margin-bottom: .18rem;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 1.1rem 0;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: .9rem;
  line-height: 1.45;
}

caption {
  text-align: left;
  font-weight: 800;
  padding: .8rem;
}

thead {
  background: #e6ebfc;
}

td,th {
  padding: .65rem .8rem;
  text-align: left;
  vertical-align: top;
  overflow-wrap: break-word;
}

tbody tr+tr {
  border-top: 1px solid var(--line);
}

thead th:first-child {
  width: 30%;
}

tbody th {
  font-weight: 750;
}

.editorial-art {
  position: relative;
  margin: 1.3rem 0;
  background: #e6ecff;
  border-radius: 14px;
  overflow: hidden;
}

.editorial-art img {
  width: 100%;
  height: auto;
}

.editorial-art figcaption {
  padding: .6rem .8rem;
  font-size: .82rem;
  color: var(--muted);
}

.faq details {
  padding: .15rem .9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: .56rem;
}

.faq summary {
  min-height: 46px;
  padding: .55rem .1rem;
  cursor: pointer;
  font-weight: 760;
}

.faq details p {
  padding: 0 .1rem .65rem;
}

.band {
  margin-block: 3rem 0;
  padding: clamp(1.35rem,4.5vw,3rem);
  border-radius: 20px;
}

.band h2 {
  margin: .4rem 0 .65rem;
}

.band p {
  max-width: 72ch;
}

.dark {
  background: var(--navy);
  color: #fff;
}

.dark a {
  color: var(--lime);
}

.band .subhead {
  margin: 1.15rem 0 .6rem;
  font-size: 1.1rem;
  letter-spacing: normal;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: .6rem;
}

.tiles div {
  background: #1c2b54;
  border: 1px solid #42609a;
  border-radius: 9px;
  padding: .75rem .8rem;
  overflow-wrap: anywhere;
}

.tiles strong {
  display: block;
  line-height: 1.2;
}

.tiles small {
  color: #d4ddf3;
}

.civic {
  background: #e9edfc;
}

.civic-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: .7rem;
  margin-top: 1.05rem;
}

.civic-grid article {
  background: #fff;
  border: 1px solid var(--line);
  padding: 1.1rem;
  border-radius: 11px;
}

.civic-grid h3 {
  margin: .45rem 0;
  font-size: 1.13rem;
}

.civic-grid p,.fine {
  font-size: .87rem;
  color: var(--muted);
}

.fine {
  margin-top: 1rem;
}

.subpage {
  padding-block: 1.4rem 3rem;
  min-height: 52vh;
}

.crumbs {
  font-size: .85rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .48rem;
  margin-bottom: 1rem;
}

.sub-hero {
  background: #e9edfc;
  border-radius: 20px;
  padding: clamp(1.4rem,5vw,3.5rem);
  display: grid;
  gap: 1rem;
}

.sub-hero h1 {
  font-size: clamp(2.25rem,6vw,4.4rem);
  max-width: 17ch;
}

.sub-hero p {
  max-width: 60ch;
  color: var(--muted);
  margin-top: .8rem;
}

.sub-hero.has-portrait {
  grid-template-columns: minmax(0,1fr) minmax(150px,26%);
  align-items: center;
}

.portrait {
  border-radius: 16px;
  overflow: hidden;
  background: #d2ddff;
}

.portrait img {
  width: 100%;
}

.portrait figcaption {
  font-size: .76rem;
  padding: .4rem .64rem;
}

.sub-content {
  padding: clamp(1rem,4vw,2.5rem) 0 0;
  max-width: 760px;
  margin: auto;
}

.sub-content section+section {
  margin-top: 1.55rem;
}

.sub-content h2 {
  font-size: 1.64rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0,2fr) minmax(220px,1fr);
  gap: 1.2rem;
  padding-top: 1.2rem;
  align-items: start;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(1rem,3vw,1.65rem);
}

.contact-card h2 {
  font-size: 1.45rem;
  margin-bottom: .6rem;
}

.contact-card p+p {
  margin-top: .65rem;
}

.fields {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: .75rem;
}

.fields label {
  display: block;
  font-weight: 740;
}

.field-wide {
  grid-column: 1/-1;
}

.fields input,.fields textarea {
  width: 100%;
  border: 1px solid #a0acc4;
  border-radius: 7px;
  padding: .55rem .65rem;
  background: #fff;
  color: var(--ink);
  margin-top: .25rem;
}

.fields textarea {
  min-height: 8rem;
  resize: vertical;
}

.trap {
  display: none;
}

.form-note {
  font-size: .87rem;
  color: var(--muted);
  margin: .8rem 0;
}

.form-status {
  padding: .65rem .75rem;
  margin-top: .65rem;
  border-radius: 6px;
  background: #edf0fc;
}

.form-status:empty {
  display: none;
}

.footer {
  margin-top: 2.8rem;
  padding: 2.2rem 0 1.05rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 1.4rem;
}

.footer-grid p {
  margin-top: .65rem;
  max-width: 44ch;
  color: #d4def8;
  font-size: .87rem;
}

.footer nav {
  display: grid;
  justify-items: start;
}

.footer h2 {
  font-size: 1rem;
  letter-spacing: 0;
  margin-bottom: .25rem;
}

.footer nav a {
  color: #e6ecff;
  display: flex;
  align-items: center;
  min-height: 43px;
  font-size: .88rem;
}

.footer .brand {
  color: #fff;
}

.footer .brand small {
  color: #b9c8f3;
}

.footer-bottom {
  border-top: 1px solid #405074;
  margin-top: 1.15rem;
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem;
  font-size: .78rem;
  color: #d4def8;
}

.storage-notice {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 4;
  width: min(440px,calc(100% - 2rem));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .6rem;
  align-items: center;
  background: #fff;
  padding: .75rem .9rem;
  border: 1px solid #aebbe7;
  border-radius: 12px;
  box-shadow: 0 5px 26px #151e4b29;
}

.storage-notice p {
  font-size: .79rem;
  line-height: 1.45;
  color: #354361;
}

.storage-notice button {
  min-height: 44px;
  padding: .4rem .75rem;
  background: #e7edff;
  color: #172b9c;
  border: 1px solid #b6c5f9;
  border-radius: 7px;
  font-size: .8rem;
  font-weight: 800;
}

@media(max-width:880px) {
  .mast-inner {
    grid-template-columns: 1fr auto 1fr;
  }
  .edition {
    display: none;
  }
  .reading-layout {
    grid-template-columns: 1fr;
  }
  .facts {
    grid-row: 1;
  }
  .article-flow {
    grid-row: 2;
  }
  .hero-copy {
    padding: clamp(1.4rem,4vw,2.5rem);
  }
}

@media(max-width:680px) {
  :root {
    --wrap: calc(100% - 1.5rem);
  }
  .mast-inner {
    min-height: 61px;
    grid-template-columns: 1fr auto;
  }
  .mast-inner>.nav {
    display: none;
  }
  .mobile-nav {
    display: block;
  }
  .mobile-nav summary {
    display: flex;
    gap: .45rem;
    align-items: center;
    list-style: none;
    cursor: pointer;
    padding: .45rem .62rem;
    min-height: 44px;
    color: var(--blue);
    font-size: .9rem;
    font-weight: 800;
  }
  .mobile-nav summary::-webkit-details-marker {
    display: none;
  }
  .mobile-nav .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: .45rem .75rem;
    display: grid;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 9px 12px #121d3922;
  }
  .mobile-nav .nav a {
    width: 100%;
  }
  .hero {
    display: flex;
    flex-direction: column;
    margin-top: .75rem;
    border-radius: 17px;
  }
  .hero-image {
    min-height: 0;
    aspect-ratio: 2.1;
  }
  .hero-image::after {
    background: linear-gradient(180deg,var(--navy),transparent 24%);
  }
  .hero-copy {
    padding: 1.25rem;
  }
  .hero h1 {
    font-size: clamp(2.2rem,9vw,3.35rem);
  }
  .hero p.intro {
    margin-top: .75rem;
  }
  .hero .button,.byline {
    margin-top: .9rem;
  }
  .quicknav {
    gap: 0 .75rem;
    padding: .25rem .62rem;
    margin-bottom: 1.15rem;
  }
  .quicknav strong {
    width: 100%;
    padding-top: .3rem;
  }
  .quicknav a {
    font-size: .79rem;
  }
  .reading-layout {
    gap: 1.25rem;
  }
  .article-flow section+section {
    margin-top: 1.65rem;
    padding-top: 1.45rem;
  }
  td,th {
    padding: .52rem;
  }
  .band {
    margin-top: 1.75rem;
  }
  .tiles,.footer-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .footer-grid>div {
    grid-column: 1/-1;
  }
  .civic-grid,.contact-grid {
    grid-template-columns: 1fr;
  }
  .sub-hero.has-portrait {
    grid-template-columns: 1fr;
  }
  .portrait {
    max-width: 210px;
  }
  .footer {
    margin-top: 1.8rem;
  }
}

@media(max-width:380px) {
  .fields {
    grid-template-columns: 1fr;
  }
  .storage-notice {
    gap: .35rem;
    padding: .65rem;
  }
  .storage-notice button {
    padding: .32rem .5rem;
  }
}

/* Affiliate CTAs */
.nav-cta,.promo-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 44px;
  padding: .55rem 1.05rem;
  border-radius: 999px;
  background: linear-gradient(135deg,#ff6a3d,#ff2e63);
  color: #fff;
  font-weight: 800;
  font-size: .88rem;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 16px #ff2e6340;
  transition: transform .15s ease,box-shadow .15s ease;
}

.nav .nav-cta {
  color: #fff;
  border: 0;
  margin-left: .35rem;
  padding: .55rem 1.05rem;
}

.nav-cta:hover,.promo-cta:hover,.nav .nav-cta:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 9px 20px #ff2e6355;
}

.nav-cta:focus-visible,.promo-cta:focus-visible {
  outline-color: var(--navy);
}

.mast-cta {
  display: none;
}

.promo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .85rem 1.2rem;
  margin: 1.5rem 0;
  padding: .95rem 1.1rem;
  border-radius: 16px;
  background: linear-gradient(120deg,var(--navy),#23338a);
  color: #fff;
}

.promo-banner p {
  margin: .12rem 0 0;
  font-size: .95rem;
  line-height: 1.4;
  color: #eef1ff;
}

.promo-tag {
  display: inline-block;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--lime);
}

@media(max-width:1180px) {
  .mast-inner {
    grid-template-columns: auto 1fr;
  }
  .edition {
    display: none;
  }
  .mast-inner>.nav {
    justify-self: end;
  }
}

@media(max-width:980px) {
  .mast-inner>.nav .nav-cta {
    display: none;
  }
  .mast-cta {
    display: flex;
    grid-column: 1/-1;
    order: 5;
    margin-bottom: .6rem;
  }
}

@media(max-width:680px) {
  .mast-inner {
    grid-template-columns: 1fr auto;
    row-gap: .1rem;
  }
  .mobile-nav .nav-cta {
    display: none;
  }
  .mast-cta {
    width: 100%;
    white-space: normal;
    text-align: center;
  }
  .promo-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }
  .promo-cta {
    width: 100%;
  }
}

/* Author box at the end of the guide */
.author-box {
  margin-top: 2.2rem;
  padding: 1rem 1.15rem;
  gap: .85rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  font-size: .88rem;
}

.author-box img {
  width: 56px;
  height: 56px;
  border-color: var(--line);
}

.author-box a {
  color: var(--ink);
  font-size: 1rem;
}
