:root {
  color-scheme: light;
  --navy: #202a40;
  --navy-deep: #131b2b;
  --ink: #2c3443;
  --muted: #626d7e;
  --line: #e5e1dc;
  --surface: #fffdfa;
  --canvas: #f7f5f1;
  --accent: #2f6d66;
  --accent-dark: #24564f;
  --accent-soft: #e9f2ed;
  --danger: #a43f3b;
  --radius: 14px;
  --shadow: 0 14px 34px rgb(32 42 64 / 9%);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: "Yu Gothic UI", "Yu Gothic", Meiryo, "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.container { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; top: -70px; left: 12px; z-index: 30; padding: 8px 14px; color: white; background: var(--navy); }
.skip-link:focus { top: 8px; }

.site-header { position: relative; z-index: 5; color: white; background: #202a40; border-bottom: 4px solid #b84e45; box-shadow: 0 5px 18px rgb(15 32 55 / 12%); }
.header-inner { width: min(1240px, calc(100% - 48px)); min-height: 82px; margin: auto; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-size: 16px; font-weight: 750; letter-spacing: .01em; white-space: nowrap; line-height: 1.2; }
.brand small { display: block; padding-top: 5px; color: #dce6ef; font-size: 11px; font-weight: 500; letter-spacing: .12em; }
.brand-logo { display: block; width: 44px; height: 44px; flex: 0 0 auto; object-fit: contain; }
.primary-nav { display: flex; flex: 1; align-items: center; justify-content: center; gap: clamp(12px, 2vw, 27px); }
.primary-nav a { color: #f4f6f9; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.primary-nav a:hover, .primary-nav a:focus-visible { color: #efb59a; }
.header-search { display: flex; gap: 5px; }
.header-search input { width: 145px; min-width: 0; padding: 8px 10px; border: 1px solid #b9c5d1; border-radius: 7px; font-size: 13px; }
.header-search button { padding: 7px 11px; border: 0; border-radius: 7px; color: white; background: #a94c43; font-size: 13px; font-weight: 700; cursor: pointer; }
.header-search button:hover { background: #873d37; }
.primary-nav a[aria-current="page"] { color: #f2c7a1; text-decoration: underline; text-decoration-color: #b84e45; text-underline-offset: 7px; }
.menu-toggle { display: none; }

.hero { position: relative; padding: clamp(56px, 8vw, 100px) 0 72px; }
.hero::before { content: ""; position: absolute; top: 50px; right: 0; z-index: -1; width: 48%; height: 78%; border-radius: 50% 0 0 50%; background: #f1f6f7; }
.eyebrow { margin: 0 0 10px; color: var(--accent-dark); font-size: 11px; font-weight: 750; letter-spacing: .16em; line-height: 1.5; }
h1, h2, h3, p { overflow-wrap: anywhere; }
.hero h1 { margin: 0; color: var(--navy); font-size: clamp(34px, 5vw, 54px); font-weight: 750; letter-spacing: .035em; line-height: 1.5; }
.hero-copy { max-width: 650px; margin: 20px 0 27px; color: #556579; font-size: 16px; }
.hero-search { display: flex; width: min(670px, 100%); gap: 9px; }
.hero-search input { min-width: 0; flex: 1; padding: 13px 17px; border: 1px solid #cdd7df; border-radius: 8px; background: white; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 9px 19px; border: 1px solid transparent; border-radius: 7px; font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.button-primary { color: white; background: var(--accent); }
.button-primary:hover { background: var(--accent-dark); }
.button-secondary { color: var(--navy); border-color: #cdd7df; background: #fff; }
.button-secondary:hover { background: var(--canvas); }
.button-light { color: var(--navy); background: #fff; }
.button-light:hover { background: #eaf2f2; }

.section { padding: 45px 0 52px; }
.section-tinted { padding: 54px 24px; margin-inline: 0; border-radius: var(--radius); background: var(--canvas); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 23px; }
.section-heading h2, .content-section h2 { margin: 0; color: var(--navy); font-size: clamp(23px, 3vw, 29px); line-height: 1.5; }
.section-heading p:not(.eyebrow) { margin: 6px 0 0; color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.topic-card, .tool-card { display: block; min-height: 205px; padding: 22px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.topic-card:hover, .tool-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.topic-icon { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 10px; color: var(--accent-dark); background: var(--accent-soft); font-size: 14px; font-weight: 800; }
.topic-card h3, .tool-card h3 { margin: 13px 0 5px; color: var(--navy); font-size: 17px; }
.topic-card p, .tool-card p { margin: 0 0 14px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.text-link { color: var(--accent-dark); font-size: 13px; font-weight: 700; text-decoration: none; }
.card-label, .article-category { display: inline-block; color: var(--accent-dark); font-size: 11px; font-weight: 700; }
.tool-card h3 { margin-top: 9px; }
.article-list { border-top: 1px solid var(--line); }
.article-row { display: grid; grid-template-columns: 135px minmax(0, 1fr) 125px; align-items: center; gap: 20px; padding: 19px 8px; border-bottom: 1px solid var(--line); text-decoration: none; }
.article-row:hover .article-row-main strong { color: var(--accent-dark); }
.article-row-main { display: grid; gap: 3px; }
.article-row-main strong { color: var(--navy); font-size: 16px; }
.article-row-main span, .article-row time { color: var(--muted); font-size: 12px; }
.article-row time { text-align: right; }
.empty-state { padding: 38px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--canvas); }
.empty-state h2, .empty-state h3 { margin-top: 0; color: var(--navy); }
.empty-state p { color: var(--muted); }
.empty-state a { color: var(--accent-dark); font-weight: 700; }
.learning-band { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 34px; border-radius: var(--radius); color: white; background: var(--navy); }
.learning-band .eyebrow { color: #b5d6c9; }
.learning-band h2 { margin: 0; font-size: 22px; }
.learning-band p:last-child { margin-bottom: 0; color: #d2dce7; }
.learning-band .button { flex: 0 0 auto; }

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(250px, .72fr);
  align-items: center;
  gap: clamp(28px, 6vw, 76px);
  min-height: 350px;
  padding: clamp(34px, 5vw, 58px) clamp(25px, 6vw, 68px);
  margin: 27px 0 12px;
  overflow: hidden;
  border: 1px solid #e5eaf0;
  border-radius: 18px;
  background: linear-gradient(115deg, #f7f9fb 0%, #fff 58%, #edf5f3 100%);
}
.home-hero::after { content: ""; position: absolute; top: -92px; right: 230px; width: 260px; height: 260px; border: 1px solid rgb(47 109 102 / 10%); border-radius: 50%; pointer-events: none; }
.home-hero-copy { position: relative; z-index: 1; }
.home-hero .eyebrow { color: #a54c43; }
.home-hero h1 { margin: 0; color: var(--navy); font-size: clamp(35px, 5vw, 52px); font-weight: 780; letter-spacing: .025em; line-height: 1.45; }
.home-hero .hero-copy { max-width: 680px; margin: 16px 0 22px; }
.home-hero .hero-search { width: min(640px, 100%); }
.hero-quick-links { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 14px; margin-top: 15px; color: var(--muted); font-size: 12px; }
.hero-quick-links a { color: var(--accent-dark); font-weight: 700; text-underline-offset: 3px; }
.hero-note { position: relative; z-index: 1; display: grid; justify-items: start; gap: 10px; padding: 27px 26px; border: 1px solid rgb(255 255 255 / 15%); border-radius: 14px; color: #fff; background: #202a40; box-shadow: 0 16px 34px rgb(21 42 70 / 16%); }
.hero-note-mark { display: grid; width: 47px; height: 47px; place-items: center; border: 1px solid rgb(255 255 255 / 35%); border-radius: 50%; color: #fff; background: #a94c43; font-size: 20px; font-weight: 800; }
.hero-note .eyebrow { margin: 5px 0 0; color: #f4be86; }
.hero-note strong { font-size: 18px; line-height: 1.8; }
.hero-note > span:last-child { color: #d2dce7; font-size: 12px; }
.home-tools-section { padding-top: 24px; }
.home-tool-grid { gap: 15px; }
.home-tool-card { position: relative; display: flex; min-height: 242px; flex-direction: column; align-items: flex-start; padding: 20px 18px; border-top: 3px solid #b84e45; box-shadow: 0 5px 18px rgb(21 42 70 / 4%); }
.home-tool-card:hover { border-color: #a94c43; }
.home-tool-icon { display: grid; width: 43px; height: 43px; place-items: center; margin-bottom: 12px; border-radius: 12px; background: #f7eee6; font-size: 21px; }
.home-tool-card .card-label { min-height: 20px; color: #945248; font-size: 10px; letter-spacing: .02em; }
.home-tool-card h3 { margin: 5px 0 4px; font-size: 16px; line-height: 1.55; }
.home-tool-card p { flex: 1; margin-bottom: 13px; }
.home-tool-card .text-link { margin-top: auto; }
.section-kicker { flex: 0 0 auto; padding: 6px 11px; border: 1px solid #d8e8e4; border-radius: 20px; color: #285f5a; background: #f4faf8; font-size: 11px; font-weight: 700; }
.home-tool-caution { margin: 14px 0 0; color: var(--muted); font-size: 11px; }
.home-learning-section { padding-top: 30px; }
.home-topic-grid { gap: 14px; }
.home-topic-grid .topic-card { min-height: 215px; }
.home-topic-grid .card-label { margin-top: 10px; color: #945248; font-size: 10px; letter-spacing: .03em; }
.home-topic-grid .topic-icon + .card-label { margin-top: 0; }
.topic-card-accent { border-color: #ead8b8; background: #fffaf1; }
.topic-card-accent .topic-icon { color: #8d492d; background: #f4ead6; }
.home-path-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.home-path-card { padding: 19px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.path-step { color: #9b483c; font-size: 10px; font-weight: 750; letter-spacing: .07em; }
.home-path-card h3 { margin: 7px 0 10px; color: var(--navy); font-size: 16px; line-height: 1.6; }
.home-path-card ol { display: grid; gap: 6px; margin: 0; padding-left: 22px; color: var(--muted); font-size: 12px; }
.home-path-card a { color: var(--accent-dark); font-weight: 650; text-underline-offset: 3px; }
.home-reference-section { padding-top: 20px; }
.home-reference-links { display: flex; flex-wrap: wrap; gap: 10px; }
.home-reference-links a { display: inline-flex; min-height: 43px; align-items: center; gap: 7px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 22px; color: var(--navy); background: #fff; font-size: 12px; font-weight: 700; text-decoration: none; }
.home-reference-links a:hover { border-color: #b9d7d2; color: var(--accent-dark); background: #f5faf9; }
.home-practice-band { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 24px 29px; border: 1px solid #e8d8bb; border-radius: 13px; background: #fffaf1; }
.practice-icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 12px; background: #f4ead6; font-size: 22px; }
.home-practice-band .eyebrow { margin-bottom: 4px; }
.home-practice-band h2, .home-about-band h2 { margin: 0; color: var(--navy); font-size: 20px; line-height: 1.55; }
.home-practice-band p:last-child, .home-about-band p:not(.eyebrow) { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.home-practice-band .button { color: #fff; background: #a54c43; }
.home-practice-band .button:hover { background: #873d37; }
.home-about-band { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 27px 30px; border: 1px solid var(--line); border-radius: 13px; background: #f7f9fb; }
.home-about-links { display: grid; flex: 0 0 auto; gap: 9px; }
.home-about-links a { color: var(--accent-dark); font-size: 13px; font-weight: 700; text-decoration: none; }
.home-about-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.topic-card:focus-visible, .tool-card:focus-visible, .guide-card a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.site-footer { position: relative; margin-top: 70px; padding: 50px 0 25px; border-top: 4px solid #b84e45; color: #e9eef4; background: #202a40; }
.site-footer::before { content: ""; position: absolute; top: -4px; left: 0; width: 23%; height: 4px; background: #e1b35a; }
.footer-grid { display: grid; grid-template-columns: 1.2fr repeat(4, minmax(125px, 1fr)); gap: 24px 27px; }
.footer-brand { font-size: 17px; }
.footer-logo { display: block; width: 40px; height: 40px; flex: 0 0 auto; object-fit: contain; }
.footer-brand-block > p { max-width: 275px; }
.footer-grid p { margin: 10px 0; color: #c5d0dc; font-size: 12px; }
.footer-grid nav { display: grid; align-content: start; justify-items: start; gap: 7px; }
.footer-grid nav strong { margin-bottom: 3px; color: #fff; font-size: 13px; }
.footer-grid nav a { color: #d1dce7; font-size: 12px; text-decoration: none; }
.footer-grid nav a:hover { color: #efb59a; text-decoration: underline; text-underline-offset: 3px; }
.copyright { grid-column: 1 / -1; padding-top: 17px; border-top: 1px solid #354157; font-size: 11px !important; }
.policy-page { max-width: 850px; margin: 0 auto; }
.policy-section { padding: 21px 0; border-bottom: 1px solid var(--line); }
.policy-section h2 { margin: 0 0 7px; color: var(--navy); font-size: 19px; }
.policy-section p { margin: 0; color: #536477; line-height: 1.95; }
.contact-panel { max-width: 820px; }
.contact-success { border-left-color: var(--accent); background: var(--accent-soft); color: var(--navy); }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.policy-updated { margin-top: 22px; color: var(--muted); font-size: 12px; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; padding: 20px 0 26px; color: var(--muted); font-size: 12px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.page-heading { max-width: 780px; margin: 12px 0 28px; }
.page-heading h1, .auth-panel h1 { margin: 0 0 8px; color: var(--navy); font-size: clamp(28px, 4vw, 38px); line-height: 1.45; }
.page-heading p:last-child { color: var(--muted); }
.calculator-panel { padding: clamp(20px, 4vw, 34px); border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 5px 22px rgb(21 42 70 / 4%); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 22px; }
.form-grid label, .auth-panel label { display: grid; gap: 6px; color: #34465b; font-size: 13px; font-weight: 650; }
.form-grid input, .form-grid select, .form-grid textarea, .auth-panel input { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid #cbd5de; border-radius: 7px; color: var(--ink); background: #fff; }
.form-grid textarea { resize: vertical; }
.form-grid .full-width { grid-column: 1 / -1; }
.field-help { color: var(--muted); font-size: 11px; font-weight: 400; }
.result-panel { margin-top: 27px; padding: 21px; border-radius: 9px; background: var(--accent-soft); }
.result-panel h2 { margin: 0 0 10px; color: var(--navy); font-size: 19px; }
.result-primary { margin: 0 0 17px; color: var(--navy); font-size: 28px; font-weight: 750; }
.result-primary small { font-size: 14px; font-weight: 500; }
dl { display: grid; grid-template-columns: minmax(120px, .4fr) 1fr; gap: 8px 15px; margin: 0; }
dt { color: #536477; font-size: 13px; }
dd { margin: 0; font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }
code { padding: 2px 5px; border-radius: 4px; background: #fff; font-family: Consolas, "Courier New", monospace; }
.break-code { word-break: break-all; }
.copy-button { margin: 4px 0 4px 8px; padding: 3px 7px; border: 1px solid #bdcfce; border-radius: 5px; background: white; font-size: 11px; cursor: pointer; }
.content-section { max-width: 820px; margin: 38px 0; }
.content-section p, .content-section details p { color: #536477; }
.content-section details { margin-top: 12px; padding: 14px 17px; border: 1px solid var(--line); border-radius: 8px; }
.content-section summary { color: var(--navy); font-weight: 650; cursor: pointer; }
.tool-index-heading { max-width: 850px; }
.tool-directory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tool-directory-card { display: grid; grid-template-columns: 54px minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; align-items: start; column-gap: 15px; min-height: 185px; padding: 21px; border: 1px solid var(--line); border-left: 4px solid #c65347; border-radius: var(--radius); background: #fff; box-shadow: 0 5px 18px rgb(21 42 70 / 4%); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.tool-directory-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.directory-icon { grid-row: 1 / 5; display: grid; width: 50px; height: 50px; place-items: center; border-radius: 13px; background: #f8eee9; font-size: 24px; }
.directory-category { color: #8b5143; font-size: 10px; font-weight: 750; letter-spacing: .04em; }
.tool-directory-card h2 { margin: 2px 0 4px; color: var(--navy); font-size: 18px; line-height: 1.5; }
.tool-directory-card p { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.directory-action { color: var(--accent-dark); font-size: 12px; font-weight: 750; }
.tool-index-note { max-width: 850px; }
.tool-page-heading { position: relative; padding-left: 82px; }
.tool-page-icon { position: absolute; top: 0; left: 0; display: grid; width: 62px; height: 62px; place-items: center; border: 1px solid #ead8d1; border-radius: 15px; background: #f8eee9; font-size: 29px; }
.tool-parent-link { display: inline-block; margin-top: 9px; color: var(--accent-dark); font-size: 13px; font-weight: 700; text-decoration: none; }
.tool-parent-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.tool-calculator-panel { max-width: 850px; border-top: 3px solid #c65347; }
.tool-details, .tool-faq, .tool-related { max-width: 850px; }
.tool-guide-steps { display: grid; gap: 12px; margin: 16px 0 26px; padding-left: 25px; }
.tool-guide-steps li { padding: 13px 16px 13px 10px; border-left: 2px solid #c65347; background: #fbf7f4; }
.tool-guide-steps h3 { margin: 0 0 4px; color: var(--navy); font-size: 16px; }
.tool-guide-steps p { margin: 0; line-height: 1.8; }
.tool-example { margin-top: 17px; padding: 16px 18px; border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; background: #f2f8f7; }
.tool-example strong { color: var(--navy); font-size: 13px; }
.tool-example p { margin: 4px 0 0; }
.tool-candidate-list { display: grid; gap: 10px; padding-left: 24px; }
.tool-candidate-list li { padding-left: 4px; }
.tool-related ul { display: flex; flex-wrap: wrap; gap: 10px 24px; padding-left: 20px; }
.tool-related a { color: var(--accent-dark); text-underline-offset: 3px; }
.notice { margin-top: 15px; padding: 15px 18px; border-left: 3px solid #c08b32; background: #fff8e8; color: #594d37; font-size: 13px; }
.notice p { margin: 5px 0 0; }
.alert { margin: 15px 0; padding: 12px 15px; border-radius: 7px; }
.alert-error { color: #7c2929; border: 1px solid #e3baba; background: #fff1f1; }
.search-page-form { margin: 0 0 27px; }
.article-content { max-width: 800px; }
.article-header { padding: 14px 0 25px; border-bottom: 1px solid var(--line); }
.article-header h1 { margin: 10px 0; color: var(--navy); font-size: clamp(28px, 4vw, 40px); line-height: 1.5; }
.article-summary { color: #536477; font-size: 18px; }
.article-byline { color: var(--muted); font-size: 12px; }
.article-body { padding: 25px 0; line-height: 2.05; overflow-wrap: anywhere; }
.auth-panel { max-width: 480px; margin: 30px auto 65px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.auth-panel form { display: grid; gap: 16px; margin-top: 24px; }
.auth-panel form .button { justify-self: start; }
.admin-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 25px 0; }
.admin-heading h1 { margin: 0; color: var(--navy); }
.admin-table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 11px 13px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--navy); background: var(--canvas); }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 17px; }
.quiz-progress { display: flex; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 13px; }
.quiz-progress progress { width: 50%; height: 10px; accent-color: var(--accent); }
.quiz-panel h2 { margin: 23px 0; color: var(--navy); }
.quiz-options { display: grid; gap: 10px; }
.quiz-option { padding: 12px 15px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-align: left; cursor: pointer; }
.quiz-option[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.quiz-explanation { margin-top: 17px; padding: 14px; border-radius: 7px; background: var(--canvas); }
.quiz-score { color: var(--navy); font-weight: 700; }
.quiz-topic-groups { display: grid; gap: 34px; }
.quiz-topic-group { min-width: 0; }
.quiz-topic-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 13px; }
.quiz-topic-heading h2 { margin: 0; color: var(--navy); font-size: 20px; }
.quiz-topic-count, .quiz-difficulty { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 20px; color: #315c5c; background: var(--accent-soft); font-size: 11px; font-weight: 700; }
.quiz-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.quiz-topic-card { display: flex; min-height: 205px; flex-direction: column; align-items: flex-start; padding: 19px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.quiz-topic-card:hover { transform: translateY(-2px); border-color: #b8d3cf; box-shadow: var(--shadow); }
.quiz-topic-card h3 { margin: 10px 0 5px; color: var(--navy); font-size: 16px; line-height: 1.55; }
.quiz-topic-card p { flex: 1; margin: 0 0 11px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.quiz-card-meta { color: var(--muted); font-size: 11px; }
.quiz-card-action { margin-top: 10px; color: var(--accent-dark); font-size: 12px; font-weight: 750; }
.quiz-account-banner, .quiz-overview-panel, .quiz-start-panel, .quiz-exam-panel, .quiz-score-panel { margin: 20px 0; padding: 23px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 5px 22px rgb(21 42 70 / 4%); }
.quiz-account-banner, .quiz-score-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.quiz-account-banner p, .quiz-start-panel > p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.quiz-overview-panel h2, .quiz-start-panel h2 { margin: 0 0 15px; color: var(--navy); font-size: 19px; }
.quiz-detail-heading { margin-bottom: 24px; }
.quiz-detail-heading > p:last-child { max-width: 700px; }
.quiz-account-links { font-size: 12px !important; }
.quiz-account-links a, .quiz-saved-notice a { color: var(--accent-dark); font-weight: 700; text-underline-offset: 3px; }
.quiz-consent, .student-terms { display: flex; align-items: flex-start; gap: 9px; margin: 17px 0 8px; color: var(--ink); font-size: 13px; }
.quiz-consent input, .student-terms input { width: 18px; height: 18px; flex: 0 0 auto; margin: 3px 0 0; accent-color: var(--accent); }
.quiz-start-panel .field-help { display: block; margin: 10px 0 16px; }
.quiz-back-link { margin: 22px 0; }
.quiz-exam-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0 20px; }
.quiz-exam-heading h1 { margin: 0; color: var(--navy); font-size: clamp(23px, 3vw, 31px); line-height: 1.5; }
.quiz-exam-heading .eyebrow { margin-bottom: 5px; }
.quiz-timer { display: grid; min-width: 112px; justify-items: center; padding: 8px 15px; border: 1px solid var(--line); border-radius: 9px; background: var(--canvas); }
.quiz-timer span { color: var(--muted); font-size: 11px; }
.quiz-timer strong { color: var(--navy); font-variant-numeric: tabular-nums; font-size: 21px; }
.quiz-timer.is-urgent { border-color: #dfaaaa; background: #fff1f1; }
.quiz-timer.is-urgent strong { color: #8f2525; }
.quiz-exam-progress { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--muted); font-size: 12px; }
.quiz-exam-progress progress { width: min(44%, 370px); height: 9px; accent-color: var(--accent); }
.quiz-question-switcher { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 7px; margin: 20px 0 26px; }
.quiz-question-switcher button { min-width: 0; min-height: 38px; border: 1px solid var(--line); border-radius: 6px; color: var(--navy); background: #fff; font-size: 12px; cursor: pointer; }
.quiz-question-switcher button.is-answered { border-color: #92c3b8; background: #e8f4f2; }
.quiz-question-switcher button.is-current { outline: 2px solid var(--navy); outline-offset: 1px; font-weight: 800; }
.quiz-question-form fieldset { min-width: 0; padding: 0; border: 0; }
.quiz-question-form legend { width: 100%; margin-bottom: 18px; color: var(--navy); font-size: 19px; font-weight: 700; line-height: 1.8; }
.quiz-question-number { display: block; margin-bottom: 4px; color: var(--accent-dark); font-size: 12px; }
.quiz-exam-options { display: grid; gap: 9px; }
.quiz-exam-option { display: grid; grid-template-columns: 20px 30px minmax(0, 1fr); align-items: start; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.quiz-exam-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.quiz-exam-option input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--accent); }
.quiz-option-letter { color: var(--muted); font-size: 12px; font-weight: 750; }
.quiz-exam-controls { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; margin-top: 23px; }
.quiz-exam-controls > span, .quiz-exam-note { color: var(--muted); font-size: 11px; }
.quiz-exam-controls button:disabled { opacity: .5; cursor: not-allowed; }
.quiz-exam-note { margin-bottom: 36px; }
.quiz-score-panel { justify-content: flex-start; min-height: 170px; }
.quiz-score-ring { display: grid; width: 125px; height: 125px; flex: 0 0 auto; place-content: center; justify-items: center; border: 6px solid #b7d8d1; border-radius: 50%; color: var(--navy); background: #f5faf9; }
.quiz-score-ring strong { font-size: 34px; line-height: 1.2; }
.quiz-score-ring small { font-size: 14px; }
.quiz-score-ring span { color: var(--muted); font-size: 12px; }
.quiz-score-summary { flex: 1; }
.quiz-score-summary p { margin: 5px 0; color: var(--muted); font-size: 13px; }
.quiz-score-summary .quiz-score-percent { color: var(--navy); font-size: 25px; font-weight: 800; }
.quiz-saved-notice { padding: 9px 12px; border-radius: 7px; background: var(--accent-soft); }
.quiz-review-section { margin-top: 38px; }
.quiz-review-list { display: grid; gap: 12px; padding: 0; list-style: none; }
.quiz-review-item { padding: 17px 19px; border: 1px solid var(--line); border-left: 4px solid #b64d42; border-radius: 9px; background: #fff; }
.quiz-review-item.is-correct { border-left-color: var(--accent); }
.quiz-review-heading { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; }
.quiz-review-heading strong { color: #8d3a33; }
.quiz-review-item.is-correct .quiz-review-heading strong { color: var(--accent-dark); }
.quiz-review-item h3 { margin: 7px 0; color: var(--navy); font-size: 15px; line-height: 1.75; }
.quiz-review-item > p { margin: 6px 0; color: var(--muted); font-size: 12px; }
.quiz-review-item > p span { color: var(--ink); font-weight: 700; }
.quiz-review-explanation { margin-top: 11px !important; padding: 11px; border-radius: 6px; background: var(--canvas); line-height: 1.8; }
.quiz-history-table-wrap { overflow-x: auto; }
.quiz-history-table { min-width: 690px; }
.quiz-history-table a { color: var(--accent-dark); font-weight: 700; }
.student-terms { display: flex !important; align-items: flex-start; }
.student-terms a, .auth-switch a, .auth-links a { color: var(--accent-dark); }
.auth-switch, .auth-links { font-size: 13px; }
.quiz-admin-create { margin-bottom: 38px; }
.quiz-admin-create h2 { margin-top: 0; color: var(--navy); }
.quiz-admin-create > p { color: var(--muted); font-size: 13px; }
.quiz-admin-create textarea[name="questions_json"] { min-height: 330px; font-family: Consolas, "Courier New", monospace; font-size: 12px; line-height: 1.6; }
.quiz-publish-choice { display: flex !important; align-items: center; gap: 9px !important; }
.quiz-publish-choice input { width: 18px; min-height: 18px; accent-color: var(--accent); }
.quiz-json-example { padding: 13px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--canvas); }
.quiz-json-example summary { color: var(--navy); font-weight: 700; cursor: pointer; }
.quiz-json-example pre { max-width: 100%; overflow-x: auto; padding: 13px; border-radius: 6px; background: #fff; font-size: 11px; line-height: 1.7; }
.quiz-json-example code { padding: 0; white-space: pre; }
.quiz-admin-message, .quiz-admin-error { padding: 12px 15px; border-radius: 7px; font-size: 13px; }
.quiz-admin-message { border: 1px solid #b7d8d1; color: #1d5b55; background: #eff8f6; }
.quiz-admin-error { border: 1px solid #e3baba; color: #7c2929; background: #fff1f1; }
.quiz-visibility-form { display: inline-block; margin-left: 8px; }
.quiz-visibility-form .button { min-height: 36px; padding: 5px 9px; font-size: 11px; }
.error-state { margin: 70px 0; text-align: center; }
.error-code { color: var(--accent-dark); font-size: 14px; font-weight: 750; letter-spacing: .15em; }
.error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.offline-state { max-width: 720px; margin-inline: auto; }

.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.guide-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 6px 20px rgb(21 42 70 / 4%); }
.guide-card-image { display: block; overflow: hidden; background: #f2f6f7; }
.guide-card-image img { display: block; width: 100%; aspect-ratio: 18 / 10; object-fit: cover; transition: transform .2s ease; }
.guide-card-image:hover img { transform: scale(1.02); }
.guide-card-content { padding: 18px; }
.guide-card-content h2, .guide-card-content h3 { margin: 8px 0; color: var(--navy); font-size: 17px; line-height: 1.65; }
.guide-card-content h2 a, .guide-card-content h3 a { color: inherit; text-decoration: none; }
.guide-card-content h2 a:hover, .guide-card-content h3 a:hover { color: var(--accent-dark); }
.guide-card-content > p:not(.guide-reading) { color: var(--muted); font-size: 13px; line-height: 1.8; }
.guide-reading { display: inline-block; margin: 0 0 0 9px; color: var(--muted); font-size: 11px; }
.blog-heading { max-width: 850px; }
.blog-heading h1 { color: var(--navy); font-size: clamp(28px, 4vw, 40px); line-height: 1.55; }
.blog-disclaimer { margin: 28px 0 0; }
.guide-article { max-width: 820px; margin-inline: auto; }
.guide-article-header { padding: 6px 0 22px; border-bottom: 1px solid var(--line); }
.guide-article-header h1 { margin: 13px 0; color: var(--navy); font-size: clamp(29px, 4.5vw, 43px); letter-spacing: .01em; line-height: 1.55; }
.guide-lead { color: #536477; font-size: 17px; }
.guide-hero-image { margin: 24px 0 0; }
.guide-hero-image img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; background: #f2f6f7; }
.guide-hero-image figcaption { margin-top: 7px; color: var(--muted); font-size: 11px; }
.guide-intro { margin: 26px 0; color: #3e4e62; font-size: 16px; line-height: 2; }
.guide-toc { margin: 25px 0 32px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--canvas); }
.guide-toc > strong { color: var(--navy); }
.guide-toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 25px; padding-left: 20px; margin-bottom: 0; }
.guide-toc a { color: var(--accent-dark); font-size: 13px; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.guide-steps { display: grid; gap: 0; }
.guide-step { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 13px; padding: 24px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.guide-longform-section { grid-template-columns: minmax(0, 1fr); }
.step-number { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 50%; color: #fff; background: var(--accent); font-size: 13px; font-weight: 750; }
.guide-step h2, .guide-checklist h2, .guide-references h2 { margin: 0 0 8px; color: var(--navy); font-size: 20px; line-height: 1.6; }
.guide-step p, .guide-checklist li, .guide-references li { margin: 0; color: #536477; line-height: 1.95; }
.guide-longform-section p + p { margin-top: 14px; }
.guide-checklist, .guide-references { margin-top: 32px; padding: 22px; border: 1px solid var(--line); border-radius: 10px; }
.guide-checklist { background: var(--accent-soft); }
.guide-checklist ul, .guide-references ul { display: grid; gap: 8px; padding-left: 22px; margin-bottom: 0; }
.guide-references details { margin-top: 12px; padding: 14px 17px; border: 1px solid var(--line); border-radius: 8px; }
.guide-references summary { color: var(--navy); font-weight: 650; cursor: pointer; }
.guide-references details p { margin-top: 10px; color: #536477; line-height: 1.9; }
.guide-references a { color: var(--accent-dark); text-underline-offset: 3px; }
.guide-article > .notice { margin-top: 25px; }
.guide-back { margin-top: 27px; }

@media (max-width: 1040px) {
  .header-inner { flex-wrap: wrap; gap: 12px 20px; padding: 14px 0; }
  .primary-nav { order: 3; flex-basis: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .header-search { margin-left: auto; }
  .home-hero { grid-template-columns: minmax(0, 1.3fr) minmax(220px, .7fr); gap: 28px; padding-inline: 34px; }
  .home-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-tool-card { min-height: 220px; }
  .home-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .home-topic-grid .topic-card { min-height: 205px; padding: 16px 14px; }
  .home-path-grid { grid-template-columns: 1fr; gap: 10px; }
  .home-path-card { padding: 16px; }
  .home-reference-links { gap: 8px; }
  .home-reference-links a { min-height: 41px; padding-inline: 11px; }
  .section-kicker { display: none; }
}
@media (max-width: 720px) {
  .container, .header-inner { width: min(100% - 36px, 560px); }
  .header-inner { min-height: 67px; }
  .brand { font-size: 14px; }
  .brand-logo { width: 38px; height: 38px; }
  .menu-toggle { display: inline-flex; min-height: 40px; align-items: center; padding: 7px 10px; margin-left: auto; border: 1px solid #93a5b8; border-radius: 7px; color: white; background: #243e5e; }
  .header-search { order: 2; width: 100%; margin: 0; }
  .header-search input { flex: 1; }
  .primary-nav { display: none; order: 4; gap: 0; padding: 5px 0 7px; }
  .primary-nav.is-open { display: grid; grid-template-columns: 1fr 1fr; }
  .primary-nav a { padding: 10px 4px; border-bottom: 1px solid #354157; }
  .primary-nav a[aria-current="page"] { text-underline-offset: 4px; }
  .hero { padding: 49px 0 38px; }
  .home-hero { grid-template-columns: 1fr; gap: 0; min-height: 0; padding: 30px 21px 21px; margin: 16px 0 2px; border-radius: 13px; }
  .home-hero::after { top: -115px; right: -70px; }
  .home-hero h1 { font-size: clamp(31px, 8vw, 40px); }
  .home-hero .hero-copy { margin: 13px 0 18px; font-size: 14px; }
  .home-hero .hero-search { flex-direction: row; }
  .home-hero .hero-search .button { width: auto; flex: 0 0 auto; padding-inline: 13px; }
  .hero-quick-links { gap: 7px 11px; font-size: 11px; }
  .hero-note { display: none; }
  .hero-note-mark { grid-row: span 2; width: 39px; height: 39px; font-size: 17px; }
  .hero-note .eyebrow { align-self: end; margin: 0; font-size: 9px; }
  .hero-note strong { align-self: start; font-size: 14px; }
  .hero-note > span:last-child { grid-column: 2; font-size: 11px; }
  .home-tools-section { padding-top: 28px; }
  .home-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .home-tool-card { min-height: 235px; padding: 15px 13px; }
  .home-tool-icon { width: 38px; height: 38px; margin-bottom: 9px; font-size: 19px; }
  .home-tool-card h3 { font-size: 14px; }
  .home-tool-card p { font-size: 11px; }
  .home-tool-card .text-link { font-size: 11px; }
  .home-tool-caution { font-size: 10px; }
  .home-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .home-topic-grid .topic-card { min-height: 220px; padding: 14px 12px; }
  .home-topic-grid .topic-card h3 { font-size: 14px; }
  .home-topic-grid .topic-card p { font-size: 11px; }
  .home-topic-grid .topic-icon { width: 35px; height: 35px; font-size: 13px; }
  .home-reference-links a { flex: 1 1 calc(50% - 8px); justify-content: center; padding-inline: 8px; font-size: 11px; }
  .home-practice-band { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 18px 15px; }
  .practice-icon { width: 39px; height: 39px; font-size: 19px; }
  .home-practice-band h2, .home-about-band h2 { font-size: 17px; }
  .home-practice-band p:last-child, .home-about-band p:not(.eyebrow) { font-size: 12px; }
  .home-practice-band .button { grid-column: 1 / -1; width: 100%; }
  .home-about-band { align-items: flex-start; flex-direction: column; gap: 15px; padding: 20px 17px; }
  .home-about-links { gap: 6px; }
  .hero::before { top: 18px; right: 0; width: 45%; height: 70%; }
  .hero h1 { font-size: clamp(30px, 8vw, 42px); }
  .hero-copy { font-size: 14px; }
  .hero-search { flex-direction: column; }
  .hero-search .button { width: 100%; }
  .section { padding: 34px 0; }
  .section-tinted { padding: 38px 18px; margin-inline: -18px; }
  .section-heading { align-items: start; flex-direction: column; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .topic-card, .tool-card { min-height: auto; padding: 16px 13px; }
  .topic-card h3, .tool-card h3 { font-size: 15px; }
  .topic-card p, .tool-card p { font-size: 12px; }
  .article-row { grid-template-columns: 1fr auto; gap: 4px 10px; padding: 15px 3px; }
  .article-row-main { grid-column: 1 / -1; grid-row: 2; }
  .article-row time { grid-column: 2; grid-row: 1; font-size: 11px; }
  .learning-band { align-items: flex-start; flex-direction: column; padding: 23px 20px; }
  .learning-band .button { width: 100%; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
  .footer-brand-block { grid-column: 1 / -1; }
  .copyright { grid-column: 1 / -1; }
  .form-grid { grid-template-columns: 1fr; gap: 14px; }
  .form-grid .full-width { grid-column: auto; }
  .page-heading h1 { font-size: 29px; }
  .tool-directory { grid-template-columns: 1fr; gap: 11px; }
  .tool-directory-card { min-height: 160px; padding: 16px; }
  .tool-directory-card h2 { font-size: 16px; }
  .tool-page-heading { padding-left: 0; padding-top: 72px; }
  .tool-page-icon { width: 52px; height: 52px; font-size: 24px; }
  .tool-related ul { display: grid; gap: 8px; }
  .calculator-panel { padding: 19px 15px; }
  dl { grid-template-columns: minmax(100px, .48fr) 1fr; gap: 8px; }
  .auth-panel { padding: 22px 18px; }
  .admin-heading { align-items: flex-start; flex-direction: column; }
  .quiz-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quiz-topic-card { min-height: 220px; padding: 15px; }
  .quiz-overview-panel, .quiz-start-panel, .quiz-exam-panel, .quiz-score-panel, .quiz-account-banner { padding: 17px 14px; }
  .quiz-exam-heading { align-items: flex-start; }
  .quiz-exam-progress { flex-wrap: wrap; }
  .quiz-exam-progress progress { order: 3; width: 100%; }
  .quiz-question-switcher { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
  .quiz-exam-controls { grid-template-columns: 1fr 1fr; }
  .quiz-exam-controls > span { grid-column: 1 / -1; grid-row: 1; }
  .quiz-exam-controls button { width: 100%; padding-inline: 8px; font-size: 12px; }
  .quiz-score-panel, .quiz-account-banner { align-items: flex-start; flex-direction: column; }
  .quiz-score-ring { width: 105px; height: 105px; }
  .quiz-review-item { padding: 14px; }
  .quiz-topic-heading h2 { font-size: 17px; }
  .quiz-admin-create textarea[name="questions_json"] { min-height: 260px; }
  .guide-grid { grid-template-columns: 1fr; gap: 14px; }
  .guide-card-content { padding: 16px; }
  .guide-toc { padding: 17px; }
  .guide-toc ol { grid-template-columns: 1fr; gap: 7px; }
  .guide-step { grid-template-columns: 41px minmax(0, 1fr); gap: 7px; padding: 20px 0; }
  .guide-longform-section { grid-template-columns: minmax(0, 1fr); }
  .step-number { width: 32px; height: 32px; }
  .guide-step h2, .guide-checklist h2, .guide-references h2 { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

.site-header {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgb(255 255 255 / 12%);
  background:
    radial-gradient(ellipse at 91% 0%, rgb(190 77 68 / 17%), transparent 28%),
    linear-gradient(115deg, #131b2b 0%, #202a40 64%, #19243a 100%);
  box-shadow: 0 8px 24px rgb(19 27 43 / 14%);
  animation: header-arrive .65s ease-out both;
}
.site-header::before {
  position: absolute;
  top: 0;
  left: -32%;
  width: 32%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e4ab72, #c45149, transparent);
  content: "";
  animation: header-glint 8s ease-in-out 1s infinite;
}
.header-inner { position: relative; z-index: 1; min-height: 88px; }
.brand { font-size: 17px; letter-spacing: .02em; }
.brand small { color: #d7d4d0; font-size: 11px; letter-spacing: .15em; }
.brand-logo, .footer-logo {
  width: 68px;
  height: 68px;
  padding: 4px;
  border: 1px solid rgb(32 42 64 / 9%);
  border-radius: 13px;
  background: #fff;
  object-fit: contain;
  image-rendering: auto;
}
.footer-logo { width: 64px; height: 64px; }
.primary-nav { gap: clamp(11px, 1.55vw, 22px); }
.primary-nav a {
  position: relative;
  padding-block: 8px;
  color: #f2f0ed;
  font-size: 14px;
  transition: color .2s ease;
}
.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: #df866d;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.primary-nav a:hover::after, .primary-nav a:focus-visible::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav a:hover, .primary-nav a:focus-visible, .primary-nav a[aria-current="page"] { color: #f2c7a1; }
.primary-nav a[aria-current="page"] { text-decoration: none; }
.header-search input {
  min-height: 40px;
  border-color: rgb(255 255 255 / 24%);
  border-radius: 8px;
  color: var(--ink);
  background: #fffdfa;
  font-size: 14px;
}
.header-search button {
  min-height: 40px;
  padding-inline: 14px;
  border-radius: 8px;
  background: #b84e45;
  transition: background-color .2s ease, transform .2s ease;
}
.header-search button:hover { background: #d06454; transform: translateY(-1px); }
.menu-toggle { border-color: rgb(255 255 255 / 28%); border-radius: 9px; background: #29364c; }
.eyebrow { font-size: 12px; letter-spacing: .13em; }
.button { min-height: 46px; border-radius: 9px; font-size: 14px; transition: background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-1px); box-shadow: 0 7px 16px rgb(32 42 64 / 12%); }
.button-primary { background: var(--accent); }
.button-primary:hover { background: var(--accent-dark); }
.home-hero {
  border-color: #eee4d9;
  border-radius: 20px;
  background:
    radial-gradient(circle at 91% 37%, rgb(195 84 70 / 10%) 0 10%, transparent 10.2%),
    linear-gradient(118deg, #fbf7f0 0%, #fffdfa 53%, #f3eee8 100%);
  box-shadow: 0 18px 46px rgb(32 42 64 / 7%);
  animation: hero-arrive .75s ease-out both;
}
.home-hero::after { border-color: rgb(184 78 69 / 18%); }
.home-hero .eyebrow { color: #a54c43; }
.home-hero h1 { color: #202a40; letter-spacing: .04em; }
.home-hero .hero-copy { color: #596475; font-size: 17px; line-height: 1.95; }
.hero-search input { min-height: 50px; border-color: #d9d3ca; border-radius: 9px; font-size: 15px; }
.hero-note {
  border-color: rgb(255 255 255 / 18%);
  border-radius: 17px;
  background: linear-gradient(145deg, #202a40, #131b2b);
  box-shadow: 0 20px 42px rgb(19 27 43 / 21%);
  animation: note-arrive .85s .12s ease-out both;
}
.hero-note-mark {
  border-color: rgb(255 255 255 / 25%);
  background: #b84e45;
  box-shadow: 0 0 0 7px rgb(255 255 255 / 5%);
  animation: mark-float 4s ease-in-out 1s infinite;
}
.hero-note .eyebrow { color: #e6b77f; }
.home-tool-card { border-top-color: #bd6252; }
.home-tool-card:hover { border-color: #bd6252; }
.home-tool-icon { background: #f7eee6; }
.card-label, .article-category, .home-tool-card .card-label, .home-topic-grid .card-label { color: #945248; }
.topic-icon { color: var(--accent-dark); background: var(--accent-soft); }
.topic-card-accent { border-color: #ead9c7; background: #fbf6ef; }
.home-practice-band { border-color: #ead9c7; background: #fbf5ed; }
.home-practice-band .button { background: #a94c43; }
.home-practice-band .button:hover { background: #873d37; }
.site-footer {
  margin-top: 76px;
  padding: 52px 0 20px;
  border-top: 0;
  color: #e8eaf0;
  background: linear-gradient(145deg, #171f30, #111827 75%);
}
.site-footer::before {
  top: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #ba584c 0%, #d9a66f 24%, rgb(217 166 111 / 18%) 58%, transparent 100%);
}
.footer-grid { grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr)); gap: 30px 42px; }
.footer-brand { font-size: 18px; }
.footer-brand small { color: #c9ccd5; }
.footer-brand-block > p { max-width: 285px; margin-top: 16px; color: #c5cad4; font-size: 14px; line-height: 1.85; }
.footer-grid nav { gap: 9px; }
.footer-grid nav strong { margin-bottom: 7px; color: #fff; font-size: 14px; letter-spacing: .025em; }
.footer-grid nav a { color: #cbd0da; font-size: 14px; line-height: 1.65; text-underline-offset: 4px; transition: color .18s ease; }
.footer-grid nav a:hover { color: #efb59a; text-decoration-thickness: 1px; }
.footer-meta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  margin-top: 4px;
  border-top: 1px solid rgb(226 230 239 / 13%);
  border-bottom: 1px solid rgb(226 230 239 / 13%);
}
.footer-website { display: grid; gap: 5px; }
.footer-website span, .footer-shortcuts > strong { color: #c5cad4; font-size: 11px; font-weight: 750; letter-spacing: .11em; }
.footer-website strong { color: #fff; font-size: 15px; }
.footer-shortcuts { display: flex !important; align-items: center; gap: 10px !important; }
.footer-shortcuts > strong { margin: 0 4px 0 0 !important; }
.footer-shortcuts a { padding: 7px 11px; border: 1px solid rgb(226 230 239 / 16%); border-radius: 999px; text-decoration: none; }
.footer-shortcuts a:hover { border-color: rgb(239 181 154 / 55%); text-decoration: none !important; }
.copyright {
  padding-top: 2px;
  margin: 0;
  border-top: 0;
  color: #c5cad4 !important;
  font-size: 12px !important;
  line-height: 1.85;
  text-align: center;
}
@keyframes header-arrive {
  from { opacity: .75; transform: translateY(-7px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes header-glint {
  0%, 72%, 100% { left: -32%; }
  92% { left: 110%; }
}
@keyframes hero-arrive {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes note-arrive {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes mark-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@media (max-width: 1040px) {
  .footer-grid { gap: 28px 24px; }
}
@media (max-width: 720px) {
  .header-inner { min-height: 74px; }
  .brand-logo { width: 58px; height: 58px; padding: 3px; border-radius: 11px; }
  .footer-logo { width: 58px; height: 58px; }
  .primary-nav a { color: #f2f0ed; }
  .primary-nav a::after { display: none; }
  .primary-nav a[aria-current="page"] { color: #f2c7a1; }
  .home-hero { background: linear-gradient(135deg, #fbf7f0 0%, #fffdfa 60%, #f3eee8 100%); }
  .home-hero .hero-copy { font-size: 14px; line-height: 1.85; }
  .home-tool-card p, .home-topic-grid .topic-card p { font-size: 12px; line-height: 1.7; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; }
  .footer-brand-block { grid-column: 1 / -1; }
  .footer-meta { align-items: flex-start; flex-direction: column; gap: 16px; }
  .footer-shortcuts { flex-wrap: wrap; }
  .site-footer { margin-top: 48px; padding-top: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header, .site-header::before, .home-hero, .hero-note, .hero-note-mark { animation: none !important; }
  .button:hover, .header-search button:hover { transform: none; }
}
