/* CVJobMatch – shared design for all guide pages. Same tokens as the app. */
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url(/fonts/schibsted-grotesk-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url(/fonts/schibsted-grotesk-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F,
    U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #f6f8fc;
  --sheet: #ffffff;
  --ink: #0e1a3d;
  --ink-2: #4a5574;
  --ink-3: #7a84a0;
  --rule: #e1e6f0;
  --brand: #0b3fd0;
  --brand-deep: #00228b;
  --brand-tint: #eef2ff;
  --found: #dfe7ff;
  --go: #13804f;
  --go-tint: #ecf7f1;
  --redpen: #c93a2b;
  --red-tint: #fdf1ef;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--found);
}

a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--brand) 35%, transparent);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--brand-deep);
  text-decoration-color: currentColor;
}
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 16px;
  top: 12px;
  z-index: 50;
  background: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
}

/* ---------- Site header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.site-header-inner {
  max-width: 1152px;
  margin: 0 auto;
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1;
}
.brand svg {
  width: 1.6em;
  height: 1.6em;
  flex-shrink: 0;
}
.brand .w1 {
  color: #0b3fd0;
}
.brand .w2 {
  color: #00228b;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  font-weight: 500;
}
.site-nav a {
  color: var(--ink-2);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
}
.site-nav a:hover {
  color: var(--brand);
}
.site-nav a.nav-cta {
  margin-left: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  padding: 8px 16px;
}
.site-nav a.nav-cta:hover {
  background: var(--brand-deep);
  color: #fff;
}
@media (max-width: 640px) {
  .site-header-inner {
    padding: 0 16px;
  }
  .site-nav a:not(.nav-cta) {
    display: none;
  }
  .brand {
    font-size: 1.2rem;
  }
}

/* ---------- Article ---------- */
.guide {
  padding: 48px 16px 72px;
}
.container {
  max-width: 760px;
  margin: 0 auto;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 48px 56px 56px;
  box-shadow: 0 1px 2px rgba(14, 26, 61, 0.04), 0 16px 40px -20px rgba(14, 26, 61, 0.14);
}
@media (max-width: 720px) {
  .guide {
    padding: 20px 12px 48px;
  }
  .container {
    padding: 28px 22px 32px;
    border-radius: 12px;
  }
}

/* old in-page wordmark is replaced by the site header */
.container > .logo {
  display: none;
}

.breadcrumb {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--ink-3);
}
.breadcrumb a {
  color: var(--ink-3);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--brand);
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4.5vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--ink);
  text-wrap: balance;
}
h2 {
  margin: 44px 0 12px;
  font-size: 1.5rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}
h3 {
  margin: 28px 0 8px;
  font-size: 1.15rem;
  line-height: 1.35;
  font-weight: 650;
}
p {
  margin: 0 0 16px;
  color: var(--ink-2);
}
p strong,
li strong {
  color: var(--ink);
}
h1 + p {
  font-size: 1.15rem;
  color: var(--ink);
}
ul,
ol {
  margin: 0 0 20px;
  padding-left: 0;
  list-style: none;
  color: var(--ink-2);
}
ul > li,
ol > li {
  position: relative;
  padding-left: 28px;
  margin: 8px 0;
}
ul > li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.55;
}
ol {
  counter-reset: step;
}
ol > li {
  counter-increment: step;
}
ol > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
br + br {
  display: none;
}
pre {
  white-space: pre;
  overflow-x: auto;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.6;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 16px 18px;
  color: var(--ink);
}

/* ---------- Primary actions ---------- */
.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin: 24px 0 12px;
  padding: 14px 24px;
  background: var(--brand);
  color: #fff !important;
  border-radius: 10px;
  font-weight: 600;
  font-size: 17px;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.cta:hover {
  background: var(--brand-deep);
}
.subtle,
.small,
.meta {
  font-size: 14px;
  color: var(--ink-3);
  margin-top: 0;
}
.cta + .subtle {
  text-align: center;
}
p[style*="text-align:center"] > a,
p[style*="text-align: center"] > a,
.small-link {
  font-size: 15px;
}

/* ---------- Content blocks ---------- */
.top-box,
.highlight {
  background: var(--brand-tint);
  border: 1px solid color-mix(in srgb, var(--brand) 14%, transparent);
  border-radius: 12px;
  padding: 20px 22px;
  margin: 24px 0;
}
.top-box p:last-child,
.highlight p:last-child,
.box p:last-child,
.section p:last-child,
.section-box p:last-child,
.checklist p:last-child {
  margin-bottom: 0;
}
.top-box p:first-child,
.highlight p:first-child {
  margin-top: 0;
}

.box,
.section,
.section-box,
.checklist {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 20px 22px;
  margin: 24px 0;
}
.box h2,
.section h2,
.section-box h2,
.box h3,
.section h3,
.section-box h3 {
  margin-top: 0;
}

.flow {
  margin: 20px 0;
  padding: 14px 20px;
  border-radius: 12px;
  background: var(--brand-tint);
  border: 1px solid color-mix(in srgb, var(--brand) 14%, transparent);
  color: var(--brand-deep);
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.01em;
}

.step {
  position: relative;
  margin: 20px 0 6px;
  padding: 0 0 0 16px;
  border-left: 3px solid var(--brand);
  background: none;
  font-weight: 650;
  color: var(--ink);
  font-size: 1.05rem;
}
.step + p {
  padding-left: 19px;
}

/* Keyword lists. Bullet-separated text is split into chips by the build script. */
.good,
.bad {
  margin: 10px 0 18px;
  padding: 14px 16px;
  border-radius: 10px;
  color: var(--ink);
}
.good {
  background: var(--go-tint);
  border: 1px solid color-mix(in srgb, var(--go) 18%, transparent);
}
.bad {
  background: var(--red-tint);
  border: 1px solid color-mix(in srgb, var(--redpen) 18%, transparent);
}
.good.chips,
.bad.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 10px;
  background: var(--sheet);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}
.good .chip {
  border: 1px solid color-mix(in srgb, var(--go) 22%, transparent);
}
.bad .chip {
  border: 1px solid color-mix(in srgb, var(--redpen) 22%, transparent);
}
.good .chip::before,
.bad .chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.good .chip::before {
  background: var(--go);
}
.bad .chip::before {
  background: var(--redpen);
}

/* Related-guide link lists */
.links,
.footer-links {
  margin: 16px 0 0;
  display: grid;
  gap: 2px;
}
.links a,
.footer-links a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.links a:hover,
.footer-links a:hover {
  color: var(--brand);
}

/* FAQ */
details {
  border-bottom: 1px solid var(--rule);
  padding: 4px 0;
}
details:first-of-type {
  border-top: 1px solid var(--rule);
}
summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 32px 14px 0;
  font-weight: 650;
  color: var(--ink);
  position: relative;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.15s ease;
}
details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

/* Check lines (were typed ✔ symbols) */
p.tick {
  position: relative;
  padding-left: 34px;
  margin: 10px 0;
  color: var(--ink);
}
p.tick::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}
.top-box p.tick,
.highlight p.tick {
  margin: 8px 0;
}

/* Next-step link (was 👉) */
p.next-step {
  margin: 20px 0;
  padding: 14px 18px;
  border-radius: 10px;
  background: var(--brand-tint);
  font-weight: 600;
}
p.next-step a {
  text-decoration: none;
}
p.next-step a:hover {
  text-decoration: underline;
}

/* Lead paragraph */
p.lead {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 20px;
}

/* Before / after labels */
p.label-bad,
p.label-good {
  margin: 14px 0 6px;
  font-size: 14px;
  font-weight: 650;
}
p.label-bad {
  color: var(--redpen);
}
p.label-good {
  color: var(--go);
}

/* Multi-column link lists (keyword hub) */
.links.cols {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  column-gap: 24px;
}

/* Report page extras */
.eyebrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 8px;
}
.sources {
  font-size: 14px;
  color: var(--ink-3);
}

/* ---------- Bottom CTA band + footer ---------- */
.cta-band {
  background: var(--brand-deep);
  color: #fff;
}
.cta-band-inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 48px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 {
  margin: 0;
  color: #fff;
  font-size: 1.6rem;
}
.cta-band p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.75);
}
.cta-band a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 10px;
  background: #fff;
  color: var(--brand-deep);
  font-weight: 600;
  text-decoration: none;
}
.cta-band a:hover {
  background: var(--brand-tint);
}

.site-footer {
  background: var(--sheet);
  font-size: 15px;
}
.site-footer-inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 48px 24px 32px;
}
.site-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 2fr 1fr;
  gap: 40px;
}
.site-footer p {
  color: var(--ink-3);
  font-size: 14px;
  max-width: 34ch;
}
.site-footer h2 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}
.site-footer ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 32px;
  margin: 0;
}
.site-footer ul > li {
  padding: 0;
  margin: 0;
}
.site-footer ul > li::before {
  display: none;
}
.site-footer ul a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14px;
  line-height: 2;
}
.site-footer ul a:hover {
  color: var(--brand);
}
.site-footer .copy {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  max-width: none;
}
.site-footer ul.single {
  grid-template-columns: 1fr;
}
.site-footer .copy a {
  color: inherit;
  text-decoration: none;
}
@media (max-width: 720px) {
  .site-footer-grid,
  .site-footer ul {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

/* Header button: short label on phones so it stays on one line. */
.site-nav a.nav-cta { white-space: nowrap; }
.site-nav a.nav-cta .cta-short { display: none; }
@media (max-width: 639px) {
  .site-nav a.nav-cta .cta-short { display: inline; }
  .site-nav a.nav-cta .cta-long { display: none; }
}
