/* ==========================================================================
   GetPayslip blog — article layer on top of styles.css
   Reuses the storefront tokens: navy #0F2A43 / blue #1D5FD1 / teal #19B394
   ========================================================================== */

body.blog { background: var(--paper); }

/* ---------------------------------------------------------------- topnav -- */
body.blog .topnav a[aria-current="true"] { color: var(--navy); font-weight: 600; }
body.blog .brand:hover { text-decoration: none; }

/* The crumb now comes from crumbs.py and is styled in styles.css, so the
   storefront and the blog cannot drift apart. All that is left here is the
   blog's own spacing: the band sits directly under the header. */
body.blog .crumbs__band { padding: 9px 0; }
body.blog .crumbs__here { font-weight: 500; }

/* ---------------------------------------------------------------- article -- */
.article { padding: 18px 0 72px; }

.article__head { margin-bottom: 30px; }
.article__head .eyebrow { margin-bottom: 12px; }
.article h1 {
  font-size: clamp(28px, 4.2vw, 40px);
  letter-spacing: -.035em;
  margin: 0 0 14px;
  line-height: 1.12;
}
.article__meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  font-size: 13px; color: var(--ink); margin-bottom: 22px;
}

/* the answer box: first 60 words, styled so it reads as the summary */
.answer {
  background: var(--teal-wash);
  border: 1px solid rgba(25, 179, 148, .28);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px 18px;
  margin: 0 0 6px;
}
.answer__l {
  display: block;
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #0e7d68; margin-bottom: 6px;
}
.answer p { margin: 0; font-size: 16.5px; line-height: 1.5; color: var(--navy); }

/* ------------------------------------------------------------------- body -- */
.article article > p,
.article article > ul,
.article article > ol { font-size: 16.5px; line-height: 1.62; color: #24384c; }

.article h2 {
  font-size: clamp(21px, 2.6vw, 26px);
  letter-spacing: -.025em;
  margin: 40px 0 12px;
  padding-top: 6px;
  scroll-margin-top: 92px;
}
.article h3 {
  font-size: 17.5px;
  margin: 26px 0 8px;
  letter-spacing: -.015em;
  scroll-margin-top: 92px;
}
.article p { margin: 0 0 15px; }
.article p.lead { font-size: 18px; color: #24384c; }
.article strong { color: var(--navy); font-weight: 650; }
.article ul, .article ol { margin: 0 0 16px; padding-left: 22px; }
.article li { margin-bottom: 7px; }
.article li::marker { color: var(--blue); }
.article a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.article a:hover { color: var(--blue-dark); }
.article code {
  font-family: var(--mono); font-size: .88em;
  background: var(--wash); border: 1px solid var(--line-soft);
  padding: 1px 5px; border-radius: 4px;
}
.article hr { border: 0; border-top: 1px solid var(--line); margin: 34px 0; }

/* numbered steps */
ol.steps { list-style: none; padding-left: 0; counter-reset: st; }
ol.steps li { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
ol.steps .stepn {
  flex: 0 0 30px; height: 30px; border-radius: 50%;
  background: var(--blue-wash); color: var(--blue);
  font-size: 13px; font-weight: 800;
  display: grid; place-items: center; margin-top: 2px;
}
ol.steps h3 { margin: 0 0 4px; font-size: 16.5px; }
ol.steps p { margin: 0; font-size: 15.5px; color: #3a4d61; }

/* tables */
.tablewrap { overflow-x: auto; margin: 0 0 8px; -webkit-overflow-scrolling: touch; }
.article table {
  border-collapse: collapse; width: 100%; font-size: 14.5px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; min-width: 460px;
}
.article caption {
  white-space: normal;
  caption-side: top; text-align: left;
  font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink); padding: 0 0 8px;
}
.article th, .article td { padding: 10px 13px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
.article thead th { background: var(--wash); color: var(--navy); font-weight: 650; font-size: 13px; letter-spacing: .01em; border-bottom: 1px solid var(--line); }
.article tbody th { font-weight: 600; color: var(--navy); background: #fbfdff; }
.article tbody tr:last-child th, .article tbody tr:last-child td { border-bottom: 0; }
.article td.hl, .article th.hl { background: var(--teal-wash); color: #0e7d68; font-weight: 700; }
p.tnote { font-size: 13px; color: var(--ink); margin: 8px 0 20px; line-height: 1.5; }

/* callouts */
.call {
  border-radius: var(--radius-sm); padding: 16px 20px; margin: 22px 0;
  border: 1px solid var(--line); background: var(--wash);
}
.call__h { font-size: 14px !important; font-weight: 700; margin: 0 0 6px !important; letter-spacing: -.01em; }
.call p { margin: 0; font-size: 15.5px; }
.call--warn { background: #fff8ec; border-color: #f4dcae; }
.call--warn .call__h { color: var(--warn); }
.call--tip { background: var(--teal-wash); border-color: rgba(25,179,148,.3); }
.call--tip .call__h { color: #0e7d68; }
.call--note .call__h { color: var(--navy); }

/* key facts */
dl.keyfacts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius-sm); overflow: hidden; margin: 26px 0;
}
dl.keyfacts > div { background: #fff; padding: 12px 16px; }
dl.keyfacts dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); font-weight: 600; margin-bottom: 3px; }
dl.keyfacts dd { margin: 0; font-size: 15px; font-weight: 650; color: var(--navy); line-height: 1.35; }

/* figures */
.fig { margin: 26px 0; }
.fig svg { width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--wash); }
.fig figcaption { font-size: 13px; color: var(--ink); margin-top: 9px; line-height: 1.45; }
.fig img { width: 100%; height: auto; display: block; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.fig__ph { display: none; }
/* if the image file has not landed yet, show a labelled placeholder instead of a broken icon */
.fig.is-empty img { display: none; }
.fig.is-empty .fig__ph {
  display: grid; place-items: center;
  aspect-ratio: 16 / 9; border: 1px dashed #c3d3e6; border-radius: var(--radius-sm);
  background: repeating-linear-gradient(45deg, #f7fbff, #f7fbff 10px, #fff 10px, #fff 20px);
  color: var(--ink); font-size: 13px; font-weight: 600;
}

/* quote */
.article blockquote {
  margin: 22px 0; padding: 16px 20px; background: var(--wash);
  border-left: 3px solid var(--blue); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 15px; line-height: 1.55; color: #24384c;
}
.article blockquote cite { display: block; margin-top: 8px; font-size: 13px; color: var(--ink); font-style: normal; }

/* faq */
.faq { margin: 8px 0 0; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 15px 30px 15px 0; position: relative;
  font-size: 16px; font-weight: 600; color: var(--navy);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 20px; font-weight: 400; color: var(--blue); line-height: 1;
}
.faq__item[open] summary::after { content: "\2212"; }
.faq__item summary:hover { color: var(--blue); }
.faq__a { padding: 0 30px 16px 0; }
.faq__a p { margin: 0; font-size: 15.5px; color: #3a4d61; }

/* toc */
.toc {
  background: var(--wash); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 14px 18px 16px; margin: 0 0 32px;
}
.toc__h { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--ink); margin: 0 0 8px !important; }
.toc ol { margin: 0; padding-left: 20px; font-size: 14.5px; columns: 2; column-gap: 28px; }
.toc li { margin-bottom: 5px; break-inside: avoid; }
.toc a { color: var(--navy); text-decoration: none; }
.toc a:hover { color: var(--blue); text-decoration: underline; }

/* cta */
.cta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  background: var(--navy); color: #fff; border-radius: var(--radius);
  padding: 22px 26px; margin: 32px 0;
}
.cta h3 { margin: 0 0 4px; font-size: 18px; color: #fff; }
.cta p { margin: 0; font-size: 14.5px; color: #c7d6e5; max-width: 46ch; }
.cta > div { flex: 1 1 320px; }
.cta .btn { flex: 0 0 auto; }
.cta--wide { max-width: 1180px; margin: 44px auto 0; }

/* signoff */
.signoff {
  margin-top: 40px; padding: 22px 24px; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fbfdff;
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
}
.signoff p { margin: 0; flex: 1 1 340px; font-size: 15px; color: #24384c; }

/* related */
.related { margin-top: 46px; }
.related h2 { font-size: 20px; margin: 0 0 14px; }
.related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.relcard {
  display: flex; flex-direction: column; gap: 5px;
  padding: 15px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; text-decoration: none !important; transition: border-color .15s, box-shadow .15s;
}
.relcard:hover { border-color: #b9cde6; box-shadow: var(--shadow-sm); }
.relcard__k { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink); font-weight: 700; }
.relcard__t { font-size: 15px; font-weight: 650; color: var(--navy); line-height: 1.28; letter-spacing: -.015em; }
.relcard__d { font-size: 12.5px; color: var(--ink); line-height: 1.45; }

/* -------------------------------------------------------------------- hub -- */
.hub { padding: 34px 0 80px; }
.hub__head { max-width: 760px; margin-bottom: 44px; }
.hub__head h1 { font-size: clamp(30px, 4.4vw, 44px); letter-spacing: -.035em; margin: 0 0 16px; }
.hub__head p { font-size: 16.5px; line-height: 1.62; color: #24384c; margin: 0 0 14px; }
.hub__head p.lead { font-size: 18.5px; }
.hub__stat { font-size: 13px !important; color: var(--ink) !important; margin-top: 18px !important; }

.hubsec { margin-bottom: 46px; }
.hubsec h2 { font-size: clamp(20px, 2.4vw, 25px); margin: 0 0 6px; letter-spacing: -.025em; }
.hubsec__b { font-size: 15px; color: var(--ink); margin: 0 0 18px; max-width: 62ch; }

.cardgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card {
  display: flex; flex-direction: column; gap: 7px;
  padding: 18px 19px 16px; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; text-decoration: none !important;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.card:hover { border-color: #b9cde6; box-shadow: var(--shadow); transform: translateY(-1px); }
.card__k { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--blue); font-weight: 700; }
.card__t { font-size: 16px; font-weight: 650; color: var(--navy); line-height: 1.28; letter-spacing: -.015em; margin: 0; }
.card__d { font-size: 13.5px; color: var(--ink); line-height: 1.5; margin: 0; flex: 1; }
.card__m { font-size: 11.5px; color: #8fa1b5; font-weight: 600; }

/* ------------------------------------------------------------- categories -- */
/* The strip used on the hub and on every category page. */
.catnav {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 34px;
}
.catnav a {
  display: inline-flex; align-items: baseline; gap: 7px;
  padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--navy); font-size: 13.5px; font-weight: 550;
  text-decoration: none !important; line-height: 1.3;
  transition: border-color .15s, background .15s, color .15s;
}
.catnav a:hover { border-color: #b9cde6; background: var(--wash); color: var(--blue); }
.catnav a span { font-size: 11px; font-weight: 700; color: #8fa1b5; }
.catnav a[aria-current="page"] {
  background: var(--navy); border-color: var(--navy); color: #fff;
}
.catnav a[aria-current="page"] span { color: #a9c0d9; }

/* The article eyebrow links to the category, so it needs a link style. */
.article__head .eyebrow a {
  color: inherit; text-decoration: none; border-bottom: 1px solid transparent;
}
.article__head .eyebrow a:hover { color: var(--blue); border-bottom-color: currentColor; }

/* "Start here" panel on a category page. */
.starthere {
  margin: 0 0 44px; padding: 22px 24px; border: 1px solid var(--line);
  border-left: 3px solid var(--blue); border-radius: var(--radius);
  background: linear-gradient(180deg, #fff 0%, var(--wash) 100%);
}
.starthere__k {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em;
  font-weight: 700; color: var(--blue); margin: 0 0 7px !important;
}
.starthere h2 { font-size: clamp(18px, 2.2vw, 22px); margin: 0 0 8px; letter-spacing: -.02em; }
.starthere h2 a { color: var(--navy); text-decoration: none; }
.starthere h2 a:hover { color: var(--blue); text-decoration: underline; }
.starthere p { font-size: 15.5px; color: #3a4d61; margin: 0; max-width: 70ch; }
.starthere__m { font-size: 13px !important; color: var(--ink) !important; margin-top: 12px !important; }

/* The "which guide answers which question" table on category pages. */
.whytable { max-width: 820px; }
.whytable th a { color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--line); }
.whytable th a:hover { color: var(--blue); border-bottom-color: currentColor; }
.whytable td { color: #3a4d61; }

/* Category page headings that link back to the articles. */
.hubsec h2 a { color: inherit; text-decoration: none; }
.hubsec h2 a:hover { color: var(--blue); }
.hubsec__b a { font-weight: 600; white-space: nowrap; }

/* "More in <category>" block at the foot of an article. */
.catmore { margin-top: 40px; }
.catmore__b { font-size: 13.5px; color: var(--ink); margin: 0 0 14px; }
.catmore__b a { font-weight: 600; }

/* The other-categories grid drops its keyword label, so keep the titles level. */
.othercats .card__t { font-size: 15.5px; }

@media (max-width: 720px) {
  .catnav { gap: 6px; margin: 20px 0 28px; }
  .catnav a { padding: 6px 11px; font-size: 13px; }
  .starthere { padding: 18px; margin-bottom: 34px; }
}

/* ---------------------------------------------------------------- mobile -- */
@media (max-width: 980px) {
  .related__grid, .cardgrid { grid-template-columns: repeat(2, 1fr); }
  .toc ol { columns: 1; }
}
@media (max-width: 720px) {
  body.blog .topnav { display: none; }
  .related__grid, .cardgrid { grid-template-columns: 1fr; }
  dl.keyfacts { grid-template-columns: 1fr; }
  .article table { font-size: 13.5px; min-width: 0; }
  .tablewrap { margin-inline: 0; }
  .article th, .article td { padding: 9px 10px; }
  .article { padding-bottom: 54px; }
  .answer { padding: 14px 16px; }
  .answer p { font-size: 15.5px; }
  .signoff { padding: 18px; }
  .cta { padding: 18px; }
}
