/* =====================================================
   S1A Calculator — Styles
   Tax year 2026 | Schedule 1-A Deductions
   Mobile-first, system font stack, no external assets
   ===================================================== */

/* -----------------------------------------------------
   1. RESET & VARIABLES
   ----------------------------------------------------- */
:root {
  /* Palette */
  --ink:         #102B2A;      /* Deep navy */
  --ink-light:   #1B3A37;
  --accent:      #11755D;      /* Trustworthy teal */
  --accent-bright: #caec86;    /* Bright answer highlight */
  --accent-dark: #0B5C49;
  --amber:       #d97706;
  --amber-light: #f59e0b;
  --bg-page:     #F7F9F8;      /* Light gray-blue */
  --bg-card:     #ffffff;
  --bg-panel:    #EDF4F1;
  --border:      #DCE5E1;
  --text:        #102B2A;
  --text-muted:  #526562;
  --focus-ring:  rgba(17, 117, 93, 0.35);

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --size-sm:     0.8125rem;    /* 13px */
  --size-base:   1rem;
  --size-lg:     1.125rem;
  --size-xl:     1.5rem;
  --size-2xl:    2rem;

  /* Spacing */
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;

  /* Layout */
  --max-w: 1180px;
  --header-h: 64px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(16, 43, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 43, 42, 0.08);
  --shadow-lg: 0 20px 40px rgba(16, 43, 42, 0.12);
  --gradient: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background-color: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Keep the required image rule */
img {
  max-width: 100%;
  height: auto;
}

/* -----------------------------------------------------
   2. LAYOUT UTILITIES
   ----------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

@media (min-width: 640px) {
  .container {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }
}

main {
  min-height: calc(100vh - var(--header-h));
  position: relative;
  overflow-x: hidden;
}

/* -----------------------------------------------------
   3. HEADER / SITE HEAD
   ----------------------------------------------------- */
header.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
}

header.site-head .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.logo::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 28px;
  background: var(--gradient);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

header.site-head nav a {
  font-size: var(--size-base);
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  padding: var(--space-3) var(--space-3);
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background 0.15s ease;
}

header.site-head nav a:hover {
  color: var(--ink);
  background: var(--bg-panel);
}

header.site-head nav a.active {
  color: var(--accent);
  background: rgba(17, 117, 93, 0.08);
}

/* -----------------------------------------------------
   4. NON-US NOTICE & HERO
   ----------------------------------------------------- */
.non-us-notice {
  text-align: center;
  background: #fff4e5;
  border: 1px solid var(--amber-light);
  color: #9a5c0a;
  padding: var(--space-4);
  font-size: var(--size-sm);
  margin-top: var(--space-4);
}

/* Hero treatment — soft gradient band behind h1 */
main::before {
  content: "";
  position: absolute;
  top: -60px;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(180deg, var(--bg-page) 0%, rgba(240, 244, 248, 0) 100%);
  z-index: 0;
}

.hero {
  padding: var(--space-10) 0 var(--space-8);
  text-align: center;
  position: relative;
  z-index: 1;
}

h1 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

p.lede {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto var(--space-8);
  line-height: 1.6;
}

@media (min-width: 640px) {
  .hero {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* -----------------------------------------------------
   5. CARD & FORM ELEMENTS
   ----------------------------------------------------- */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-6);
  border: 1px solid rgba(213, 221, 230, 0.7);
}

form#calc {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.field label {
  display: block;
  font-size: var(--size-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  font-weight: 600;
}

input[type="number"],
input[type="text"] {
  height: 48px;
  padding: 0 var(--space-4);
  font-size: var(--size-lg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  opacity: 0.5;
}

input[type="number"]:focus,
input[type="text"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--focus-ring);
}

select {
  height: 48px;
  padding: 0 var(--space-4);
  font-size: var(--size-lg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.checkbox, .radio-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.checkbox label, .radio-group label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--size-base);
  color: var(--text);
  cursor: pointer;
  user-select: none;
}

.checkbox input, .radio-group input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
  cursor: pointer;
}

fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

legend {
  font-size: var(--size-base);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--space-4);
}

fieldset h3 {
  font-size: var(--size-lg);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--space-4);
}

details {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: background 0.15s ease, border-color 0.15s ease;
}

details[open] {
  background: #ffffff;
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

details summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  font-size: var(--size-base);
  user-select: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: "";
  width: 18px;
  height: 18px;
  border: 2px solid var(--text-muted);
  border-top-color: transparent;
  border-right-color: transparent;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.25s ease, border-color 0.15s ease;
}

details[open] summary::after {
  transform: rotate(225deg) translateY(-1px);
  border-color: var(--accent);
}

details > div {
  padding: 0 var(--space-5) var(--space-5);
  border-top: 1px solid var(--border);
}

/* -----------------------------------------------------
   6. HINTS, NOTES & WARNINGS
   ----------------------------------------------------- */
.hint {
  font-size: var(--size-sm);
  color: var(--text-muted);
  margin-top: var(--space-2);
  font-style: italic;
}

.note {
  background: var(--bg-panel);
  border-left: 3px solid var(--accent);
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--size-sm);
  color: var(--ink-light);
  margin: var(--space-4) 0;
}

.warning {
  background: #fff8e7;
  border-left: 3px solid var(--amber);
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--size-sm);
  color: #9a5c0a;
  margin: var(--space-4) 0;
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.warning::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--amber);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: var(--size-sm);
  flex-shrink: 0;
}

/* -----------------------------------------------------
   7. BUTTONS
   ----------------------------------------------------- */
button.btn {
  width: 100%;
  height: 52px;
  font-size: var(--size-lg);
  font-weight: 700;
  color: #ffffff;
  background: var(--gradient);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

button.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 156, 127, 0.4);
  filter: brightness(1.05);
}

button.btn:active {
  transform: translateY(0);
}

button.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* -----------------------------------------------------
   8. RESULTS PANEL
   ----------------------------------------------------- */
#result {
  background: var(--ink);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-top: var(--space-8);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#result .result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#result .result-row:last-child {
  border-bottom: none;
}

#result .result-row .label {
  font-size: var(--size-base);
  color: rgba(255, 255, 255, 0.8);
}

#result .result-row .value {
  font-family: var(--font-sans);
  font-weight: 600;
  color: #ffffff;
}

#result .result-row.total .label {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

#result .result-row.total .value {
  font-size: var(--size-2xl);
  font-weight: 800;
  color: var(--accent-bright);
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  #result .result-row.total .value {
    font-size: 2.5rem;
  }
}

#r-mfs {
  background: #fff7e6;
  border: 1px solid var(--amber-light);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-top: var(--space-5);
  color: var(--ink);
}

#r-mfs .result-row {
  border-bottom-color: rgba(217, 119, 6, 0.2);
}

#r-mfs .result-row .label {
  color: #9a5c0a;
}

#r-mfs .result-row .value {
  color: var(--ink);
  font-weight: 700;
}

#r-mfs .result-row.total .value {
  color: var(--accent-dark);
}

#r-saved {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-top: var(--space-5);
  font-size: var(--size-sm);
  color: var(--text-muted);
}

#r-saved .result-row {
  border-bottom-color: var(--border);
}

#r-saved .result-row .value {
  color: var(--ink);
}

/* -----------------------------------------------------
   9. TRUST ELEMENTS & FOOTER
   ----------------------------------------------------- */
.rules-stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--size-sm);
  color: var(--text-muted);
  background: var(--bg-panel);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  margin-top: var(--space-6);
}

.rules-stamp::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
}

.aff-slot {
  font-size: var(--size-xs);
  color: var(--text-muted);
  text-align: center;
  margin-top: var(--space-6);
  font-style: italic;
}

.aff-slot a {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px dashed var(--text-muted);
}

.disclaimer {
  font-size: var(--size-xs);
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

footer.site-foot {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: var(--space-10) 0 2.75rem;
  margin-top: 3.5rem;
  font-size: var(--size-sm);
  line-height: 1.6;
}

footer.site-foot .container {
  text-align: center;
}

footer.site-foot .foot-disclaimer {
  margin: 0 auto;
  max-width: 780px;
  font-size: var(--size-xs);
  color: rgba(255, 255, 255, 0.62);
}

footer.site-foot .foot-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  margin: 1.1rem 0 0.8rem;
}

footer.site-foot a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-weight: 600;
}

footer.site-foot a:hover {
  color: #ffffff;
  text-decoration: underline;
}

footer.site-foot .foot-note {
  margin: 0;
  font-size: var(--size-xs);
  color: rgba(255, 255, 255, 0.5);
}

/* -----------------------------------------------------
   10. TABLES (guides)
   ----------------------------------------------------- */
table.data {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin: var(--space-6) 0;
  font-size: var(--size-sm);
}

table.data th,
table.data td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

table.data th {
  background: var(--bg-panel);
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: var(--size-xs);
}

table.data tr:last-child td {
  border-bottom: none;
}

table.data tr:hover {
  background: rgba(15, 156, 127, 0.04);
}

table.data td:last-child,
table.data th:last-child {
  text-align: right;
}

/* -----------------------------------------------------
   11. ARTICLE / GUIDE TYPOGRAPHY
   ----------------------------------------------------- */
main article {
  color: var(--text);
}

main article p {
  font-size: var(--size-lg);
  line-height: 1.75;
  margin-bottom: var(--space-5);
}

main article h2 {
  font-size: 1.75rem;
  color: var(--ink);
  margin: var(--space-8) 0 var(--space-4);
  font-weight: 700;
  letter-spacing: -0.01em;
}

main article h3 {
  font-size: 1.375rem;
  color: var(--ink);
  margin: var(--space-6) 0 var(--space-3);
  font-weight: 600;
}

main article ul,
main article ol {
  margin-bottom: var(--space-5);
  padding-left: var(--space-5);
}

main article ul li,
main article ol li {
  font-size: var(--size-lg);
  line-height: 1.75;
  margin-bottom: var(--space-2);
}

main article ul li {
  list-style-type: disc;
}

main article ol li {
  list-style-type: decimal;
}

main article a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

main article a:hover {
  color: var(--accent-dark);
}

/* Unused but harmless */
.cta {
  display: inline-block;
  padding: var(--space-4) var(--space-6);
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
}

.price {
  font-size: var(--size-xl);
  font-weight: 700;
  color: var(--ink);
}

/* -----------------------------------------------------
   12. MEDIA QUERIES
   ----------------------------------------------------- */
@media (min-width: 1024px) {
  .hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-10);
    align-items: center;
  }

  .hero > * {
    margin-bottom: 0;
  }

  .card {
    padding: var(--space-8);
  }

  form#calc {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }

  form#calc .field:nth-child(3n) {
    grid-column: span 2;
  }
}

/* -----------------------------------------------------
   13. PRINT STYLES
   ----------------------------------------------------- */
@media print {
  header.site-head,
  nav,
  button.btn,
  .aff-slot,
  .hero::before {
    display: none !important;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  main {
    padding-top: 0;
  }

  .card {
    box-shadow: none;
    border: 1px solid #000000;
  }

  #result {
    background: #ffffff;
    color: #000000;
    border: 1px solid #000000;
  }

  #result .result-row .label {
    color: #000000;
  }

  #result .result-row .value,
  #result .result-row.total .value {
    color: #0b2545;
  }

  table.data {
    border: 1px solid #000000;
  }

  table.data th,
  table.data td {
    border: 1px solid #000000;
  }
}

/* --- v2 supplement (assembly fixes + chips) --- */
header.site-head .logo { white-space: nowrap; }
@media (max-width: 640px) {
  header.site-head nav a { margin-left: 0.6rem; font-size: 0.85rem; }
}
#result .rules-stamp { display: flex; flex-wrap: wrap; white-space: normal; max-width: 100%; }
#r-notes ul, #r-next ul { padding-left: 1.3rem; margin: 0.5rem 0; }
#r-notes li, #r-next li { margin: 0.25rem 0; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.25rem; }
.chip { background: #ffffff; border: 1px solid var(--border, #dbe4ee); border-radius: 999px; padding: 0.4rem 0.85rem; font-size: 0.88rem; font-weight: 600; color: var(--text-main, #0b2545); box-shadow: 0 1px 2px rgba(11,37,69,.05); }
.chip b { color: var(--accent, #0f766e); }
@media (max-width: 640px) {
  header.site-head .container { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
  header.site-head nav { display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem; }
  header.site-head nav a { margin-left: 0; }
}
@media (max-width: 640px) {
  header.site-head { height: auto; min-height: var(--header-h); padding: 0.5rem 0; }
  header.site-head .container { height: auto; }
}

/* --- v3: TaxStatement design language --- */
.brand-tile { background: var(--ink); color: var(--accent-bright); padding: 4px 9px; border-radius: 8px; margin-right: 8px; font-weight: 800; letter-spacing: -0.5px; }
a.logo { display: inline-flex; align-items: center; letter-spacing: -0.8px; }
.eyebrow { text-transform: uppercase; letter-spacing: 1.5px; font-size: 11px; font-weight: 750; color: var(--accent); margin: 0 0 10px; }
h1 { letter-spacing: -1.5px; line-height: 1.12; }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 1rem 0 1.25rem; }
.how-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 22px; }
.how-card h3 { font-size: 1.05rem; margin: 0 0 8px; color: var(--ink); }
.how-card p { margin: 0; font-size: 0.95rem; }

/* v3 fixes: drop legacy logo square (replaced by .brand-tile); hero breathing room */
header.site-head .logo::before, .logo::before { display: none !important; content: none !important; }
main .eyebrow:first-child { margin-top: 0.75rem; }

/* --- v4: TaxStatement layout system --- */
header.site-head { position: static; height: auto; background: var(--bg-card); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
header.site-head .container { padding-top: 22px; padding-bottom: 22px; }
.container.narrow { max-width: 880px; }
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; padding: 14px 0 6px; }
.hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.5rem); }
.preview-card { box-shadow: 0 20px 48px rgba(16, 43, 42, 0.10); }
.preview-card h3 { font-size: 1.1rem; margin: 0 0 12px; color: var(--ink); }
.tag { background: var(--bg-panel); color: var(--accent); padding: 4px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; vertical-align: middle; }
.sample-rows { list-style: none; margin: 0 0 12px; padding: 0; }
.sample-rows li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; border-bottom: 1px dashed var(--border); font-size: 0.98rem; }
.sample-rows li.total { border-bottom: none; font-weight: 800; color: var(--ink); font-size: 1.1rem; }
.sample-rows .saved { color: var(--accent-dark); font-weight: 700; }
.strip { display: flex; flex-wrap: wrap; gap: 0.5rem 2.5rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 0.9rem 0.25rem; margin: 1.75rem 0 2rem; color: var(--text-muted); font-weight: 600; font-size: 0.95rem; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 1rem 0 0.5rem; }
a.guide-card { display: block; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 22px; text-decoration: none; color: var(--ink); }
a.guide-card h3 { font-size: 1.05rem; margin: 0 0 8px; }
a.guide-card p { margin: 0; font-size: 0.95rem; color: var(--text-muted); }
a.guide-card:hover { border-color: var(--accent); }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: 28px; } }
.actions-row { margin-top: 1.1rem; }
a.btn-link { display: inline-flex; align-items: center; background: var(--accent); color: #fff; text-decoration: none; border-radius: 8px; padding: 11px 20px; min-height: 44px; font-weight: 600; font-size: 0.95rem; }
a.btn-link:hover { background: var(--accent-dark); }


/* --- v5: homepage bottom layout --- */
main.container > section { margin-top: 2.75rem; }
main.container > section > h2 { margin: 0 0 1rem; }
.how-grid { align-items: start; }
.phase-note {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}
.guide-grid { margin-bottom: 0; }
a.guide-card { height: 100%; }
@media (max-width: 640px) {
  main.container > section { margin-top: 2.25rem; }
  footer.site-foot { margin-top: 2.75rem; }
}

/* v6: guide article disclosure note */
.disclosure-note { background: var(--bg-panel); border-left: 3px solid var(--accent); border-radius: 6px; padding: 10px 14px; font-size: 0.92rem; }

/* guide figures (v7) */
.guide-figure{margin:26px 0}
.guide-figure img{border-radius:14px;border:1px solid var(--line);display:block}
.guide-figure figcaption{font-size:13.5px;color:var(--muted);margin-top:8px}
.card-img{border-radius:12px;margin-bottom:14px;display:block}
