/* ========================================
   HAECERA — Shared Site Styles
   ======================================== */

:root {
  --primary: #315b82;
  --primary-dark: #17365d;
  --primary-hover: #24496c;
  --primary-light: #5d7ea8;

  --background: #f7f6f2;
  --tint: #eef3f8;
  --surface: #ffffff;

  --text: #1f2933;
  --muted: #52606d;
  --subtle: #7b8794;

  --border: #dedbd4;
  --border-light: #e9e6e0;

  --container: 1040px;
  --content: 760px;

  --radius-small: 8px;
  --radius-medium: 14px;
  --shadow-soft: 0 1px 2px rgba(23, 54, 93, 0.05), 0 8px 24px rgba(23, 54, 93, 0.06);
  --shadow-lift: 0 2px 4px rgba(23, 54, 93, 0.06), 0 14px 32px rgba(23, 54, 93, 0.10);
}

/* ========================================
   Reset and base
   ======================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR",
    "Apple SD Gothic Neo", "Malgun Gothic", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
  word-break: keep-all;
}

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

a {
  color: var(--primary);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--primary-hover);
}

p,
ul,
ol {
  margin-top: 0;
}

ul,
ol {
  padding-left: 1.4rem;
}

li + li {
  margin-top: 0.45rem;
}

.container {
  width: min(var(--container), 88%);
  margin: 0 auto;
}

/* ========================================
   Header and navigation
   ======================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border-light);
}

.site-nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.brand img {
  height: 60px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--primary-dark);
  border-bottom-color: var(--primary);
}

/* ========================================
   Homepage hero
   ======================================== */

.hero {
  padding: 84px 0 76px;
  background:
    radial-gradient(900px 380px at 88% -10%, rgba(93, 126, 168, 0.20), transparent 70%),
    linear-gradient(180deg, #eef3f8 0%, var(--background) 100%);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(49, 91, 130, 0.10);
  color: var(--primary-light);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 940px;
  margin: 0 0 26px;
  color: var(--primary-dark);
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.hero p {
  max-width: 660px;
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.75;
}

.button {
  display: inline-block;
  padding: 14px 26px;
  border-radius: var(--radius-small);
  background: var(--primary-dark);
  box-shadow: 0 4px 14px rgba(23, 54, 93, 0.25);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.button:hover {
  background: var(--primary);
  box-shadow: 0 8px 20px rgba(23, 54, 93, 0.28);
  color: #ffffff;
  transform: translateY(-1px);
}

/* ========================================
   Shared sections and cards
   ======================================== */

.section {
  padding: 84px 0;
  border-top: 1px solid var(--border-light);
}

.section-surface {
  background: var(--surface);
}

.section h2 {
  margin: 0 0 28px;
  color: var(--primary-dark);
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.card {
  padding: 30px 28px;
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--primary-light);
  border-radius: var(--radius-medium);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
}

.card-label {
  color: var(--primary-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.card h3 {
  margin: 12px 0 10px;
  color: var(--primary-dark);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.35;
}

.card p {
  margin: 0;
  color: #68737d;
}

.card p + p {
  margin-top: 10px;
}

.card a {
  font-weight: 600;
  text-decoration: none;
}

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

/* ========================================
   Inner pages
   ======================================== */

.page-main {
  min-height: 65vh;
  padding: 76px 0;
}

.page-heading {
  max-width: 760px;
  margin-bottom: 46px;
}

.page-heading h1 {
  margin: 0 0 16px;
  color: var(--primary-dark);
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.page-heading > p:not(.language-switch) {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

/* ========================================
   Insights list
   ======================================== */

.insight-list {
  display: grid;
  gap: 16px;
}

.insight-item {
  padding: 26px 30px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-medium);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s, box-shadow 0.2s;
}

.insight-item:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.insight-meta {
  margin-bottom: 9px;
  color: var(--primary-light);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.insight-item h2 {
  margin: 0 0 10px;
  color: var(--primary-dark);
  font-size: 1.55rem;
  line-height: 1.3;
}

.insight-item p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.insight-item p + p {
  margin-top: 14px;
}

.insight-item a {
  font-weight: 600;
  text-decoration: none;
}

.insight-item a:hover {
  text-decoration: underline;
}

/* ========================================
   Article and long-form content
   ======================================== */

.content {
  max-width: var(--content);
}

.content > p,
.content li {
  color: #3e4c59;
  font-size: 1.06rem;
  line-height: 1.85;
}

.content > p {
  margin-bottom: 1.25rem;
}

.content h2 {
  margin: 46px 0 14px;
  color: var(--primary-dark);
  font-size: 1.55rem;
  line-height: 1.3;
}

.content ul,
.content ol {
  margin: 0 0 1.6rem;
}

.content strong {
  color: var(--text);
}

/* ========================================
   Comparison tables
   ======================================== */

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.table-wrapper table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  border: 1px solid var(--border);
  background: var(--surface);
}

.table-wrapper th,
.table-wrapper td {
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.table-wrapper thead th {
  background: var(--tint);
  color: var(--primary-dark);
  font-weight: 600;
}

/* ========================================
   Language selector
   ======================================== */

.language-switch {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  color: var(--subtle);
  font-size: 0.92rem;
}

.language-switch a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.language-switch a:hover {
  text-decoration: underline;
}

.language-switch strong {
  color: var(--primary-dark);
}

/* ========================================
   Information and contact boxes
   ======================================== */

.contact-box {
  max-width: 680px;
  margin: 34px 0;
  padding: 24px 26px;
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-medium);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.contact-box h2 {
  margin-top: 0;
}

.contact-box p {
  margin: 8px 0 0;
  color: var(--muted);
}

/* ========================================
   Footer
   ======================================== */

.site-footer {
  padding: 36px 0;
  background: var(--primary-dark);
  color: #c5d3e3;
  font-size: 0.9rem;
}

/* ========================================
   Mobile
   ======================================== */

@media (max-width: 760px) {
  body {
    word-break: normal;
  }

  .container {
    width: min(92%, var(--container));
  }

  .site-nav {
    min-height: auto;
    padding: 16px 0 18px;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .brand img {
    height: 52px;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .hero {
    padding: 64px 0 56px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.7rem);
  }

  .section {
    padding: 58px 0;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .page-main {
    padding: 58px 0;
  }

  .page-heading {
    margin-bottom: 38px;
  }

  .content h2 {
    margin-top: 38px;
  }
}


/* ========================================
   Additions: language switch, buttons, chips, footer, readiness check
   ======================================== */

:root {
  --navy: #17365d;
  --navy-2: #24496c;
  --brand: #456a99;
  --sky: #e8eff7;
  --sky-2: #f3f7fb;
  --danger: #b5473a;
  --warn: #c7862c;
  --accent: #2f8f83;
  --radius-large: 22px;
  --shadow-sm: 0 1px 2px rgba(23, 54, 93, 0.06);
  --shadow-md: 0 10px 30px -12px rgba(23, 54, 93, 0.22);
}

.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-cta-mobile { display: none; }
.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--sky); font-size: .8rem; font-weight: 600; }
.lang-switch a { padding: 4px 10px; border-radius: 999px; border: 0; color: var(--muted); text-decoration: none; line-height: 1.4; }
.lang-switch a:hover { color: var(--navy); }
.lang-switch a[aria-current="true"] { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }

.nav-links a[aria-current="page"] { color: var(--primary-dark); border-bottom-color: var(--primary); }
.nav-links .nav-cta { padding: 8px 16px; border: 0; border-radius: var(--radius-small); background: var(--navy); color: #fff; font-weight: 600; }
.nav-links .nav-cta:hover, .nav-links .nav-cta[aria-current="page"] { background: var(--navy-2); color: #fff; }
.nav-toggle { display: none; width: 44px; height: 40px; padding: 0; border: 1px solid var(--border); border-radius: 10px; background: none; color: var(--navy); cursor: pointer; }
.nav-toggle svg { display: block; width: 22px; height: 22px; margin: auto; }

.button { border: 1px solid transparent; font-family: inherit; font-size: .98rem; cursor: pointer; }
.button-secondary { background: var(--surface); border-color: var(--border); box-shadow: none; color: var(--navy); }
.button-secondary:hover { background: var(--sky-2); box-shadow: none; color: var(--navy); }
.button-light { background: #fff; box-shadow: none; color: var(--navy); }
.button-light:hover { background: var(--sky); color: var(--navy); }
.button-ghost-light { background: transparent; border-color: rgba(255,255,255,.45); box-shadow: none; color: #fff; }
.button-ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

.chip { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px; background: var(--sky); color: var(--navy-2); font-size: .82rem; font-weight: 600; }
.tag { padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.tag-red { background: #f8e6e3; color: var(--danger); }
.tag-amber { background: #fbf0df; color: #93611c; }
.tag-green { background: #e3f3f0; color: #1d6b61; }
.lead { color: var(--muted); font-size: 1.1rem; }

.section-head { max-width: 720px; margin-bottom: 34px; }
.section-head h2 { margin-bottom: 12px; }
.section-head p { margin: 0; color: var(--muted); }
.insight-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.insight-toolbar h2 { margin: 0; }
.insight-item h3 { margin: 0 0 10px; color: var(--primary-dark); font-size: 1.35rem; line-height: 1.3; }
.insight-item h3 a { text-decoration: none; }
.insight-item h2 a { text-decoration: none; }
.insight-item .links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; }

.cta-band { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding: 48px; border-radius: var(--radius-large); background: linear-gradient(135deg, var(--navy), #25507e); color: #c3d1e3; }
.cta-band h2 { margin: 0 0 8px; color: #fff; font-size: 1.8rem; }
.cta-band p { margin: 0; }
.cta-band .button-row { justify-content: flex-end; }

.site-footer { padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
.footer-brand img { height: 52px; width: auto; margin-bottom: 14px; }
.footer-brand p { max-width: 320px; margin: 0; line-height: 1.6; }
.site-footer h4 { margin: 6px 0 14px; color: #fff; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: 8px; }
.site-footer a { color: #d9e3f0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); color: #8fa3bd; font-size: .83rem; }
.footer-note { margin: 10px 0 0; color: #8fa3bd; font-size: .83rem; }

@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: 36px; }
  .cta-band .button-row { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .site-nav { flex-direction: row; align-items: center; flex-wrap: wrap; min-height: 64px; padding: 10px 0; gap: 10px; }
  .nav-toggle { display: block; }
  .nav-cta-mobile { display: inline-block !important; padding: 9px 13px; border-radius: var(--radius-small); background: var(--navy); color: #fff; font-size: .82rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
  .nav-links .nav-cta { display: none; }
  .nav-right { margin-left: auto; }
  .nav-links { display: none; order: 3; width: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 8px 0 12px; }
  .site-header.nav-open .nav-links { display: flex; }
  .nav-links a { padding: 11px 6px; border-bottom: 0; font-size: 1rem; }
  .nav-links .nav-cta { margin-top: 6px; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .button-row .button { flex: 1 1 100%; text-align: center; }
  .cta-band { padding: 28px 22px; }
}

/* ========================================
   Readiness check
   ======================================== */
/* ==========================================================================
   Readiness check
   ========================================================================== */

.rc-wrap { max-width: 820px; margin: 0 auto; }
.rc-hero { margin-bottom: 26px; }
.rc-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3rem); font-weight: 800; margin: 0 0 14px; letter-spacing: -0.035em; }
.rc-hero .lead { color: var(--muted); font-size: 1.1rem; margin-bottom: 18px; }
.rc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rc-card { background: var(--surface); border: 1px solid var(--border-light); border-radius: var(--radius-large); box-shadow: var(--shadow-md); padding: 34px; }
.rc-privacy { display: flex; flex-direction: column; gap: 4px; background: var(--sky-2); border: 1px solid #dbe5f0; border-radius: var(--radius-medium); padding: 16px 18px; margin-bottom: 24px; color: var(--muted); font-size: .95rem; }
.rc-privacy strong { color: var(--navy); }
.rc-progress-row { display: flex; justify-content: space-between; font-size: .85rem; color: var(--subtle); margin-bottom: 8px; }
.rc-progress { height: 6px; border-radius: 99px; background: var(--sky); overflow: hidden; margin-bottom: 26px; }
.rc-progress span { display: block; height: 100%; background: var(--brand); border-radius: 99px; transition: width .3s; }
.rc-area { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }
.rc-q { font-size: clamp(1.25rem, 2.4vw, 1.55rem); line-height: 1.4; margin: 0 0 22px; font-weight: 700; }
.rc-options { display: grid; gap: 10px; }
.rc-option {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; font-weight: 600;
  padding: 15px 18px; border-radius: 12px; border: 1.5px solid var(--border); background: #fff; color: var(--text); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.rc-option:hover { border-color: #b8c8dc; background: var(--sky-2); }
.rc-option.selected { border-color: var(--brand); background: var(--sky); color: var(--navy); }
.rc-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #b7c2cf; flex-shrink: 0; }
.rc-option.selected .rc-radio { border: 6px solid var(--brand); }
.rc-hint { font-size: .86rem; color: var(--subtle); margin: 14px 0 0; }
.rc-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.rc-nav .button { width: auto; }

.rc-score { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; margin-bottom: 10px; }
.rc-gauge {
  width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--sky) 0);
}
.rc-gauge span { width: 100px; height: 100px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 2rem; font-weight: 800; color: var(--navy); }
.rc-gauge small { font-size: .9rem; font-weight: 700; }
.rc-sub { font-size: 1.1rem; margin: 34px 0 14px; }
.rc-areas { display: grid; gap: 10px; }
.rc-area-row { display: grid; grid-template-columns: 200px 1fr 48px; gap: 14px; align-items: center; font-size: .93rem; }
.rc-area-row b { text-align: right; color: var(--navy); }
.rc-bar { height: 10px; border-radius: 99px; background: var(--sky); overflow: hidden; }
.rc-bar span { display: block; height: 100%; border-radius: 99px; }
.rc-prio { padding: 0; list-style: none; counter-reset: prio; display: grid; gap: 12px; }
.rc-prio > li { counter-increment: prio; position: relative; border: 1px solid var(--border-light); border-radius: var(--radius-medium); padding: 18px 20px 16px 58px; margin: 0; }
.rc-prio > li::before { content: counter(prio); position: absolute; left: 18px; top: 17px; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: .85rem; display: grid; place-items: center; }
.rc-prio-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 6px; }
.rc-prio-head strong { color: var(--navy); }
.rc-prio ul { margin: 6px 0 8px; color: #2c3947; font-size: .93rem; }
.rc-meta { font-size: .8rem; color: var(--subtle); }
.rc-full { margin-top: 32px; background: linear-gradient(135deg, var(--navy), #25507e); color: #c3d1e3; border-radius: var(--radius-medium); padding: 26px 28px; }
.rc-full h3 { color: #fff; margin: 0 0 8px; font-size: 1.15rem; }
.rc-full p { margin: 0 0 16px; }
.rc-full .button { width: auto; }
.rc-disclaimer { font-size: .8rem; color: var(--subtle); margin: 22px 0 0; }

@media (max-width: 760px) {
  .rc-card { padding: 22px 18px; }
  .rc-score { grid-template-columns: 1fr; justify-items: start; }
  .rc-area-row { grid-template-columns: 1fr 44px; }
  .rc-area-row .rc-bar { grid-column: 1 / -1; grid-row: 2; }
  .rc-prio > li { padding: 16px 16px 14px 50px; }
  .rc-prio > li::before { left: 14px; }
  .rc-nav .button { flex: 1; }
}
@media print {
  .rc-card { box-shadow: none; border: 0; padding: 0; }
  .rc-full { display: none; }
  .site-header, .site-footer, .no-print { display: none !important; }
}
.rc-gauge span { display: flex; align-items: baseline; justify-content: center; gap: 1px; }


/* ========================================
   Shared inner-page layout (About, Contact, Privacy, Insights, articles)
   ======================================== */

.page-main { position: relative; overflow-x: clip; padding: 0 0 84px; }

.page-heading {
  position: relative;
  max-width: none;
  margin-bottom: 48px;
  padding: 72px 0 44px;
}
.page-heading::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background:
    radial-gradient(800px 320px at 90% -20%, rgba(93, 126, 168, 0.16), transparent 70%),
    linear-gradient(180deg, #eef3f8 0%, var(--background) 100%);
}
.page-heading > * { max-width: var(--content); }
.page-heading h1 { font-size: clamp(2rem, 4.6vw, 3rem); }

/* article label and page labels share one pill style */
.page-heading .insight-meta {
  display: inline-block;
  margin-bottom: 20px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(49, 91, 130, 0.10);
  color: var(--primary-light);
}

/* articles use the same left edge as every other page */
.container.content { width: min(var(--container), 88%); max-width: none; }
.container.content > * { max-width: var(--content); }
.container.content > .table-wrapper { max-width: none; }

.insight-item h2 a, .insight-item h3 a { color: var(--primary-dark); }
.insight-item h2 a:hover, .insight-item h3 a:hover { color: var(--primary); text-decoration: underline; }

@media (max-width: 760px) {
  .page-heading { padding: 48px 0 32px; margin-bottom: 34px; }
}

.container.content > .page-heading { max-width: none; }
.page-heading { margin-bottom: 32px; }

/* Two-column tables need no forced minimum width */
.table-wrapper table.table-compact { min-width: 0; }

/* Readiness check uses the same page layout as the other pages */
.rc-wrap { max-width: none; }
.rc-wrap > .rc-card { max-width: 820px; }
.rc-wrap > .page-heading .rc-chips { margin-top: 22px; max-width: none; }
.rc-wrap > .rc-card:first-child { margin-top: 48px; }
@media (max-width: 760px) { .rc-wrap > .rc-card:first-child { margin-top: 28px; } }

/* ========================================
   Insights: series cards
   ======================================== */
.series-cards:empty { display: none; }
.series-cards { margin: 0 0 30px; }
.series-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.series-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 26px;
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--primary-light);
  border-radius: var(--radius-medium);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.series-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.series-card:focus-visible, .series-reset:focus-visible { outline: 3px solid rgba(49, 91, 130, 0.35); outline-offset: 2px; }
.series-card.is-active { border-color: var(--primary); border-top-color: var(--primary-dark); background: var(--tint); }
.series-card-label { color: var(--primary-light); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.series-card-title { color: var(--primary-dark); font-size: 1.35rem; font-weight: 700; line-height: 1.3; }
.series-card-desc { color: var(--muted); font-size: 0.97rem; }
.series-card-count { margin-top: 6px; color: var(--primary); font-size: 0.9rem; font-weight: 600; }
.series-reset { margin-top: 14px; padding: 0; border: 0; background: none; color: var(--primary); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.series-reset[hidden] { display: none; }
@media (max-width: 760px) { .series-grid { grid-template-columns: 1fr; } .series-card { padding: 20px 20px; } }

/* ========================================
   Services page
   ======================================== */

.services-list { display: grid; gap: 22px; }
.service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 40px;
  padding: 34px 32px;
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--primary-light);
  border-radius: var(--radius-medium);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.service-num {
  display: inline-block;
  color: var(--primary-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.service-head h2 { margin: 10px 0 12px; color: var(--primary-dark); font-size: 1.6rem; line-height: 1.3; }
.service-head p { margin: 0; color: var(--muted); }
.service-body h3 {
  margin: 0 0 12px;
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.service-body ul { margin: 0; padding-left: 1.2em; color: var(--text); }
.service-body li + li { margin-top: 8px; }
.service-link { margin: 18px 0 0; font-weight: 600; }
.service-link a { text-decoration: none; }
.service-link a:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .service { grid-template-columns: 1fr; gap: 20px; padding: 28px 22px; }
}

/* Contact cards: let long links wrap instead of overflowing on small screens */
.cards .card a { overflow-wrap: anywhere; }
