/* Smart Choice Toolkit v4.2.8 style polish
   Safe static-site CSS update for guides, tools, tables, header and footer. */
:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-soft: #eef4ff;
  --text: #0f172a;
  --muted: #475569;
  --border: #dbe4f0;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #10b981;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}

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

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.brand:hover { text-decoration: none; }

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), #60a5fa);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--text);
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 999px;
}

.main-nav a:hover {
  background: var(--surface-soft);
  color: var(--primary-dark);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 1.1rem;
  cursor: pointer;
}

.breadcrumb {
  color: var(--muted);
  font-size: 0.95rem;
  padding: 14px 0 0;
}

.breadcrumb a { color: var(--muted); }

.hero-card,
.page-content,
.tool-card,
.article-card,
.notice-box,
.result-box,
.faq-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card,
.page-content {
  padding: clamp(24px, 4vw, 46px);
  margin: 22px auto 34px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--primary);
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, h3 {
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.35rem);
  margin: 0 0 18px;
}

h2 {
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  margin: 34px 0 14px;
}

h3 {
  font-size: 1.25rem;
  margin: 26px 0 10px;
}

p { margin: 0 0 16px; }

.lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 860px;
}

.small-note {
  color: var(--muted);
  font-size: 0.94rem;
}

.notice-box,
.result-box {
  padding: 18px 20px;
  margin: 20px 0;
  background: #f8fbff;
}

.notice-box {
  border-left: 5px solid var(--primary);
}

.result-box {
  border-left: 5px solid var(--accent);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 18px 0 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
}

th {
  background: #f1f5ff;
  font-weight: 800;
  color: var(--text);
}

tr:last-child td { border-bottom: 0; }

ul, ol { padding-left: 1.35rem; }
li { margin: 8px 0; }

.link-grid,
.form-grid,
.footer-grid {
  display: grid;
  gap: 16px;
}

.link-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin: 18px 0 8px;
}

.article-card,
.tool-card {
  padding: 18px 20px;
}

.article-card:hover,
.tool-card:hover {
  transform: translateY(-2px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
}

.article-card h2,
.article-card h3,
.tool-card h2,
.tool-card h3 {
  margin-top: 0;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  border: 0;
  cursor: pointer;
}

.primary-button:hover {
  background: var(--primary-dark);
  color: #fff;
  text-decoration: none;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
  color: var(--text);
}

label { font-weight: 700; }

.site-footer {
  margin-top: 42px;
  background: #0f172a;
  color: #e2e8f0;
  padding: 34px 0 20px;
}

.site-footer a { color: #dbeafe; }

.footer-grid {
  grid-template-columns: 1.3fr repeat(3, 1fr);
  align-items: start;
}

.footer-brand { font-weight: 800; font-size: 1.1rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 22px;
  padding-top: 16px;
  color: #cbd5e1;
  font-size: 0.92rem;
}

@media (max-width: 760px) {
  .container { width: min(100% - 24px, 1120px); }

  .header-inner {
    min-height: 66px;
    flex-wrap: wrap;
  }

  .menu-toggle { display: inline-flex; }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0 0 12px;
  }

  .main-nav.is-open { display: flex; }

  .main-nav a {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
  }

  .hero-card, .page-content { padding: 22px 18px; }

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


/* v4.3.0 homepage/header consistency additions */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--primary-dark);
  font-weight: 800;
}
.secondary-button:hover {
  background: var(--surface-soft);
  text-decoration: none;
}
.section-heading {
  margin: 44px 0 14px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 16px 0 28px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.feature-card h2,
.feature-card h3 {
  margin-top: 0;
}
.feature-card p {
  color: var(--muted);
}
.home-focus-list {
  margin-bottom: 0;
}
@media (max-width: 760px) {
  .button-row a { width: 100%; }
}

/* v4.3.1 universal header fallback
   Fixes older static pages that have header links but do not use the latest header-inner/main-nav classes. */
.site-header > .container:not(.header-inner) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
  flex-wrap: wrap;
}

.site-header > .container:not(.header-inner) > nav,
.site-header nav:not(.breadcrumb) {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.site-header > .container:not(.header-inner) > nav a,
.site-header nav:not(.breadcrumb) a {
  color: var(--text);
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 999px;
}

.site-header > .container:not(.header-inner) > nav a:hover,
.site-header nav:not(.breadcrumb) a:hover {
  background: var(--surface-soft);
  color: var(--primary-dark);
  text-decoration: none;
}

@media (max-width: 720px) {
  .site-header > .container:not(.header-inner) {
    align-items: flex-start;
  }
  .site-header > .container:not(.header-inner) > nav,
  .site-header nav:not(.breadcrumb) {
    width: 100%;
    gap: 2px;
  }
  .site-header > .container:not(.header-inner) > nav a,
  .site-header nav:not(.breadcrumb) a {
    padding: 8px 9px;
  }
}

/* v4.3.2 top-page consistency additions */
.site-footer .footer-grid a,
.site-footer .footer-grid strong,
.site-footer .footer-grid h3 {
  display: block;
  margin: 0 0 8px;
}
.site-footer .brand.footer-brand {
  display: inline-flex;
  margin-bottom: 10px;
}
.page-content .article-card {
  box-shadow: none;
  border-radius: var(--radius-sm);
}

/* v4.3.3 tools index consistency */
.highlight-card {
  border-left: 5px solid var(--primary);
}
.tool-card .primary-button,
.tool-card .secondary-button {
  margin-top: 4px;
}
