:root {
  --ink: #17211d;
  --muted: #606b66;
  --paper: #f5f7f2;
  --white: #ffffff;
  --green: #b8f34a;
  --green-dark: #19733e;
  --coral: #f16445;
  --cyan: #25a9c7;
  --yellow: #f3bd2d;
  --line: #d4dbd5;
  --soft: #edf1ed;
  --shadow: 0 16px 40px rgba(23, 33, 29, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Noto Sans JP", sans-serif; letter-spacing: 0; }
button, input { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p { overflow-wrap: anywhere; }

.topbar { height: 70px; padding: 0 clamp(20px, 4vw, 64px); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); background: var(--white); }
.brand { min-width: 0; display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font: 700 18px "DM Sans", "Noto Sans JP", sans-serif; }
.brand > span:last-child { white-space: nowrap; }
.brand-mark { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border-radius: 5px; background: var(--ink); color: var(--green); }
.brand-mark svg { width: 20px; }
.topbar-actions, .tree-count { display: flex; align-items: center; gap: 11px; }
.tree-count { color: var(--muted); font-size: 16px; font-weight: 800; white-space: nowrap; }
.tree-count svg { width: 18px; color: var(--coral); }
.language-switch { display: grid; grid-template-columns: repeat(2, 48px); padding: 2px; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); }
.language-switch button { min-width: 0; height: 34px; padding: 0 7px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font: 700 16px "DM Sans", "Noto Sans JP", sans-serif; white-space: nowrap; cursor: pointer; }
.language-switch button:hover { color: var(--ink); }
.language-switch button.active { background: var(--white); color: var(--ink); box-shadow: 0 1px 4px rgba(23, 33, 29, .16); }
.icon-button { width: 42px; height: 42px; padding: 0; flex: 0 0 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--ink); cursor: pointer; }
.icon-button:hover { border-color: var(--ink); background: var(--green); }
.icon-button svg { width: 19px; }

.tool-switcher { min-height: 48px; padding: 7px clamp(20px, 4vw, 64px); display: flex; align-items: center; justify-content: center; gap: 18px; position: sticky; top: 70px; z-index: 29; border-bottom: 1px solid #303b36; background: var(--ink); color: var(--white); }
.tool-switcher > span { color: #aeb9b3; font: 700 16px "DM Sans", "Noto Sans JP", sans-serif; text-transform: uppercase; white-space: nowrap; }
.tool-switcher-tabs { width: min(100%, 680px); min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(140px, 1fr)); gap: 3px; padding: 3px; border: 1px solid #4b5852; border-radius: 6px; background: #0d1512; }
.tool-switcher-tabs a { min-width: 0; min-height: 31px; padding: 5px 12px; display: flex; align-items: center; justify-content: center; gap: 7px; border-radius: 4px; color: #d7ded9; text-decoration: none; font-size: 16px; font-weight: 800; white-space: nowrap; }
.tool-switcher-tabs a:hover { color: var(--white); background: #303b36; }
.tool-switcher-tabs a.active { background: var(--green); color: var(--ink); }
.tool-switcher-tabs svg { width: 15px; flex: 0 0 15px; }

.capital-workflow { padding: 22px max(20px, calc((100% - 1240px) / 2)); display: grid; grid-template-columns: minmax(280px, .9fr) minmax(440px, 1.35fr) auto; align-items: center; gap: 28px; border-bottom: 1px solid #3c4a44; background: #10231c; color: var(--white); }
.capital-workflow-heading > span { color: var(--green); font: 800 16px "DM Sans", "Noto Sans JP", sans-serif; letter-spacing: .14em; }
.capital-workflow h2 { margin-top: 5px; font-size: 21px; line-height: 1.25; }
.capital-workflow-heading > p { margin: 7px 0 0; color: #b9c5bf; font-size: 16px; line-height: 1.65; }
.capital-workflow-heading > em { margin-top: 9px; padding-left: 9px; display: block; border-left: 3px solid var(--cyan); color: #dce8e2; font-size: 16px; font-style: normal; font-weight: 700; line-height: 1.5; }
.capital-workflow ol { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; border: 1px solid #46564f; }
.capital-workflow li { min-width: 0; min-height: 72px; padding: 11px 12px; display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: start; gap: 8px; background: #172c24; }
.capital-workflow li + li { border-left: 1px solid #46564f; }
.capital-workflow li > b { color: var(--green); font: italic 16px Georgia, serif; }
.capital-workflow li span, .capital-workflow li strong, .capital-workflow li small { min-width: 0; display: block; }
.capital-workflow li strong { font-size: 16px; }
.capital-workflow li small { margin-top: 4px; color: #9eaaa4; font-size: 16px; line-height: 1.4; }
.capital-workflow > a { min-width: 178px; min-height: 46px; padding: 10px 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: 5px; background: var(--green); color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 900; transition: background .15s ease, transform .15s ease; }
.capital-workflow > a:hover { background: #cbff6e; transform: translateY(-1px); }
.capital-workflow > a svg { width: 18px; flex: 0 0 18px; }

.workspace { min-height: 490px; position: relative; border-bottom: 1px solid var(--line); background: #fbfaf5; overflow: hidden; }
.workspace::before { width: min(780px, 61%); position: absolute; inset: 0 auto 0 0; z-index: 1; background: rgba(251, 250, 245, .91); content: ""; }
.workspace-image { position: absolute; inset: 0; z-index: 0; background: #fbfaf5 url("/assets/esg-disclosure-navigator.png") center / cover no-repeat; }
.workspace-inner { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 56px 0 46px; position: relative; z-index: 2; }
.eyebrow { margin: 0 0 12px; display: flex; align-items: center; gap: 9px; color: var(--muted); font: 700 16px "DM Sans", sans-serif; }
.eyebrow span { color: var(--coral); }
.eyebrow .eyebrow-copy { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: 0; }
h1 { max-width: 730px; font: 700 68px/1.05 "DM Sans", "Noto Sans JP", sans-serif; }
body[data-locale="en"] h1 { max-width: 760px; font-size: 60px; }
h2 { font: 700 38px/1.2 "DM Sans", "Noto Sans JP", sans-serif; }
.lead { margin: 18px 0 25px; max-width: 650px; font-size: 19px; line-height: 1.75; font-weight: 700; }
.question-search { width: min(660px, 100%); min-height: 58px; padding: 0 15px; display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: 10px; border: 2px solid var(--ink); border-radius: 8px; background: var(--white); box-shadow: var(--shadow); }
.question-search svg { width: 20px; }
.question-search input { min-width: 0; height: 54px; border: 0; outline: 0; background: transparent; color: var(--ink); }
.hero-proof { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-proof span { min-height: 31px; padding: 5px 9px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(23, 33, 29, .18); border-radius: 5px; background: rgba(255, 255, 255, .82); font-size: 16px; }
.hero-proof svg { width: 15px; color: var(--green-dark); }

.process-strip { min-height: 102px; padding: 18px 20px; display: flex; align-items: center; justify-content: center; gap: clamp(12px, 3vw, 38px); background: var(--ink); color: var(--white); }
.process-strip div { display: grid; grid-template-columns: 27px auto; column-gap: 9px; align-items: center; }
.process-strip div > span { grid-row: span 2; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: var(--ink); font: 700 16px "DM Sans"; }
.process-strip strong { font-size: 16px; }
.process-strip small { color: #bbc3bf; font-size: 16px; }
.process-strip > svg { width: 16px; color: var(--coral); }

.evidence-audit { padding: 24px max(20px, calc((100% - 1160px) / 2)); display: grid; grid-template-columns: minmax(280px, .9fr) minmax(500px, 1.1fr); align-items: center; gap: 32px; border-bottom: 1px solid var(--line); background: #eef9fb; }
.evidence-audit-heading { display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: start; gap: 13px; }
.evidence-audit-icon { width: 46px; height: 46px; display: grid; place-items: center; background: var(--cyan); color: var(--ink); }
.evidence-audit-icon svg { width: 23px; }
.evidence-audit h2 { font-size: 19px; }
.evidence-audit p { margin: 6px 0 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.evidence-audit dl { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid #a7ccd4; background: var(--white); }
.evidence-audit dl > div { min-width: 0; padding: 13px 14px; }
.evidence-audit dl > div + div { border-left: 1px solid #a7ccd4; }
.evidence-audit dt { min-height: 30px; color: var(--muted); font-size: 16px; font-weight: 800; line-height: 1.45; }
.evidence-audit dd { margin: 5px 0 0; display: flex; align-items: baseline; gap: 4px; }
.evidence-audit dd strong { font: 700 22px "DM Sans", "Noto Sans JP", sans-serif; }
.evidence-audit dd span { color: var(--muted); font: 700 16px "DM Sans"; }

.question-explorer, .research-answer, .case-explorer, .shortlist, .notice { width: min(1160px, calc(100% - 40px)); margin: 64px auto; }
.section-heading { margin-bottom: 22px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-heading .eyebrow { margin-bottom: 7px; }
.section-heading p:last-child { max-width: 780px; margin: 8px 0 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.result-count { padding: 7px 10px; flex: 0 0 auto; border: 1px solid var(--ink); border-radius: 4px; background: var(--yellow); font: 700 16px "DM Sans", "Noto Sans JP", sans-serif; }
.tree-layout { min-height: 650px; display: grid; grid-template-columns: 285px minmax(0, 1fr); border: 1px solid var(--line); border-radius: 8px; background: var(--white); overflow: hidden; box-shadow: 0 10px 28px rgba(23, 33, 29, .07); }
.category-tree { padding: 10px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--line); background: var(--soft); }
.category-group { min-height: 28px; margin: 10px 7px 0; display: flex; align-items: center; gap: 8px; color: var(--muted); font: 700 16px "DM Sans", "Noto Sans JP", sans-serif; }
.category-group:first-child { margin-top: 0; }
.category-group::after { height: 1px; flex: 1; background: var(--line); content: ""; }
.category-node { width: 100%; min-height: 58px; padding: 8px 9px; display: grid; grid-template-columns: 38px minmax(0, 1fr) 24px; align-items: center; gap: 9px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.category-node:hover { border-color: var(--line); background: var(--white); }
.category-node.active { border-color: var(--ink); background: var(--white); box-shadow: 4px 4px 0 var(--green); }
.category-node small, .category-node strong { display: block; }
.category-node small { color: var(--muted); font: 700 16px "DM Sans"; }
.category-node strong { margin-top: 2px; font-size: 16px; }
.category-node em { color: var(--muted); font: normal 700 16px "DM Sans"; text-align: center; }
.category-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 5px; background: var(--green); }
.category-icon.coral { background: #ffb7a8; }
.category-icon.cyan { background: #9cdef0; }
.category-icon.yellow { background: #f8dc87; }
.category-icon svg { width: 18px; }
.question-branch { min-width: 0; padding: 24px; }
.branch-heading { min-height: 66px; display: flex; align-items: start; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.branch-heading span { color: var(--coral); font: 700 16px "DM Sans"; }
.branch-heading h3 { margin-top: 3px; font-size: 24px; }
.branch-heading small { color: var(--muted); font-weight: 700; }
.question-list { padding-top: 10px; display: grid; gap: 7px; }
.question-cluster { min-height: 38px; margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--ink); }
.question-cluster:first-child { margin-top: 0; }
.question-cluster span { font-size: 16px; font-weight: 800; }
.question-cluster small { color: var(--muted); font: 700 16px "DM Sans"; }
.question-node { width: 100%; min-height: 84px; padding: 13px 14px; display: grid; grid-template-columns: 54px minmax(0, 1fr) 20px; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--ink); text-align: left; cursor: pointer; transition: transform .14s, border-color .14s; }
.question-node:hover { transform: translateX(3px); border-color: var(--ink); }
.question-node > svg { width: 18px; color: var(--coral); }
.question-code { color: var(--green-dark); font: 700 16px "DM Sans"; }
.question-copy { min-width: 0; }
.question-copy small, .question-copy strong, .question-copy > span { display: block; }
.question-copy small { margin-bottom: 3px; color: var(--coral); font-size: 16px; font-weight: 800; }
.question-copy strong { font-size: 16px; }
.question-copy > span { margin-top: 4px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.empty-state { min-height: 330px; display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--muted); text-align: center; }
.empty-state svg { width: 32px; }
.empty-state span { font-size: 16px; }

.research-answer { border: 2px solid var(--ink); background: var(--white); box-shadow: 10px 10px 0 var(--yellow); }
.answer-topline { padding: 28px 30px 22px; display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 24px; }
.answer-index { width: 76px; height: 76px; display: grid; place-items: center; align-content: center; gap: 6px; border-radius: 50%; background: var(--ink); color: var(--green); font: 700 16px "DM Sans"; }
.answer-index svg { width: 19px; }
.answer-heading .eyebrow { margin-bottom: 8px; }
.answer-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.answer-meta span { min-height: 25px; padding: 4px 8px; display: inline-flex; align-items: center; gap: 5px; border-radius: 3px; background: var(--soft); color: var(--muted); font-size: 16px; font-weight: 800; }
.answer-meta svg { width: 13px; }
.answer-heading h2 { max-width: 880px; margin-top: 13px; font: 700 31px/1.45 "Noto Sans JP", sans-serif; }
.answer-summary { margin: 0; padding: 25px 30px; border-top: 1px solid var(--line); background: #f1f9df; font-size: 17px; line-height: 1.9; font-weight: 700; }
.answer-judgement { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.answer-judgement > div { min-width: 0; padding: 24px 30px; }
.answer-judgement > div + div { border-left: 1px solid var(--line); }
.judgement-label { display: inline-flex; align-items: center; gap: 7px; font-size: 16px; font-weight: 800; }
.judgement-label svg { width: 18px; }
.judgement-label.good { color: var(--green-dark); }
.judgement-label.caution { color: #9a4a20; }
.answer-judgement p { margin: 11px 0 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.answer-details { display: grid; grid-template-columns: 1.1fr .9fr; }
.answer-details > div { padding: 25px 30px; }
.answer-details > div + div { border-left: 1px solid var(--line); }
.answer-details h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.answer-details h3 svg { width: 18px; color: var(--coral); }
.answer-checks ol { margin: 15px 0 0; padding-left: 24px; }
.answer-checks li { margin: 9px 0; padding-left: 5px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.answer-checks li::marker { color: var(--green-dark); font-weight: 800; }
.answer-metrics > div { margin-top: 15px; display: flex; flex-wrap: wrap; gap: 7px; }
.answer-metrics span { padding: 7px 9px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--muted); font-size: 16px; font-weight: 700; }
.source-strip { min-height: 82px; padding: 16px 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); background: var(--soft); }
.source-strip > div > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 16px; font-weight: 800; }
.source-strip > div > div { display: flex; flex-wrap: wrap; gap: 7px; }
.source-strip a { padding: 6px 8px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-size: 16px; font-weight: 800; text-decoration: none; }
.source-strip a > span { min-width: 0; display: block; }
.source-strip a b, .source-strip a small { display: block; }
.source-strip a small { margin-top: 1px; color: var(--muted); font-size: 16px; font-weight: 700; }
.source-strip a:hover { border-color: var(--ink); }
.source-strip a svg { width: 13px; }
.source-strip small { flex: 0 0 auto; color: var(--muted); }
.legal-note { min-height: 54px; padding: 12px 30px; display: flex; align-items: center; gap: 10px; border-top: 1px solid #edcc74; background: #fff8df; color: #69520d; font-size: 16px; line-height: 1.55; }
.legal-note svg { width: 17px; flex: 0 0 17px; }
.answer-actions { padding: 22px 30px 26px; display: flex; align-items: stretch; gap: 9px; border-top: 1px solid var(--line); }
.primary-action, .secondary-action, .drive-button { min-height: 50px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--ink); border-radius: 5px; color: var(--ink); font-weight: 800; cursor: pointer; text-decoration: none; }
.primary-action { background: var(--green); }
.primary-action:hover { background: #a8e53d; }
.primary-action em { min-width: 34px; padding: 3px 6px; border-radius: 3px; background: var(--ink); color: var(--white); font: normal 700 16px "DM Sans"; }
.secondary-action { background: var(--white); }
.secondary-action:hover { background: var(--soft); }
.primary-action svg, .secondary-action svg, .drive-button svg { width: 18px; }

.case-toolbar { min-height: 76px; padding: 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.case-toolbar label { min-height: 50px; padding: 0 13px; display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; gap: 8px; border: 1px solid var(--ink); border-radius: 5px; }
.case-toolbar label svg { width: 18px; }
.case-toolbar input { min-width: 0; height: 47px; border: 0; outline: 0; background: transparent; }
.format-filter { padding: 2px; display: grid; grid-template-columns: repeat(3, 62px); border: 1px solid var(--line); border-radius: 6px; background: var(--soft); }
.format-filter button { height: 42px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font: 700 16px "DM Sans", "Noto Sans JP", sans-serif; cursor: pointer; }
.format-filter button.active { background: var(--ink); color: var(--white); }
.case-list { margin-top: 14px; display: grid; gap: 10px; }
.case-card { min-height: 392px; display: grid; grid-template-columns: 194px minmax(0, 1fr) 150px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); overflow: hidden; }
.case-card.matched { border-color: var(--ink); box-shadow: inset 5px 0 0 var(--green); }
.case-company { padding: 20px 17px; display: grid; grid-template-columns: 44px minmax(0, 1fr); align-content: start; gap: 10px; border-right: 1px solid var(--line); background: var(--soft); }
.company-initial { width: 44px; height: 44px; grid-row: span 2; display: grid; place-items: center; border-radius: 5px; background: var(--ink); color: var(--green); font: 700 19px "DM Sans"; }
.case-company strong, .case-company small { display: block; }
.case-company strong { font-size: 16px; }
.case-company small { margin-top: 4px; color: var(--muted); font-size: 16px; line-height: 1.4; }
.case-company em { width: max-content; margin-top: 10px; padding: 4px 7px; grid-column: 1 / -1; border-radius: 3px; background: var(--yellow); color: var(--ink); font: normal 700 16px "DM Sans"; }
.case-copy { min-width: 0; padding: 20px 24px 23px; }
.case-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.case-match { display: inline-flex; align-items: center; gap: 5px; color: var(--green-dark); font-size: 16px; font-weight: 800; }
.case-match svg { width: 14px; }
.match-level { width: max-content; padding: 4px 7px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); font-size: 16px; font-weight: 900; }
.match-level.direct { border-color: #58a52f; background: #eaf9d4; color: #245e18; }
.match-level.method { border-color: #49a9c1; background: #e9f8fb; color: #155c6f; }
.match-level.comparison { border-color: #d7ad39; background: #fff7d6; color: #69520d; }
.match-level.exact { border-color: #58a52f; background: #eaf9d4; color: #245e18; }
.match-level.related { border-color: #d7ad39; background: #fff7d6; color: #69520d; }
.evidence-page { padding: 4px 7px; display: inline-flex; align-items: center; gap: 4px; border: 1px solid #8fc2ce; background: #eef9fb; color: #155c6f; font: 800 16px "DM Sans"; }
.evidence-page svg { width: 12px; }
.case-copy h3 { margin-top: 8px; font-size: 18px; line-height: 1.4; }
.case-copy p { margin: 7px 0 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.guidance-why, .guidance-look { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.guidance-why > strong, .guidance-look > strong { display: flex; align-items: center; gap: 7px; font-size: 16px; }
.guidance-why > strong svg, .guidance-look > strong svg { width: 16px; color: var(--green-dark); }
.guidance-look ol { margin: 10px 0 0; padding: 0; display: grid; gap: 7px; list-style: none; counter-reset: case-step; }
.guidance-look li { display: grid; grid-template-columns: 21px minmax(0, 1fr); gap: 8px; color: var(--muted); font-size: 16px; line-height: 1.55; counter-increment: case-step; }
.guidance-look li::before { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--white); content: counter(case-step); font: 700 16px "DM Sans"; }
.case-use { min-height: 52px; margin-top: 15px !important; padding: 10px 12px; display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 9px; border-left: 4px solid var(--cyan); background: #eef9fb; }
.case-use > svg { width: 17px; margin-top: 2px; color: #155c6f; }
.case-use strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: 16px; }
.search-term-list { margin-top: 13px; display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.search-term-list > strong { margin-right: 3px; font-size: 16px; }
.search-term-list span, .preview-search-terms span { padding: 4px 7px; border: 1px solid #9bbda3; border-radius: 3px; background: #f4fbef; color: #245e18; font: 700 16px "DM Sans", "Noto Sans JP", sans-serif; overflow-wrap: anywhere; }
.case-actions { padding: 16px; display: grid; align-content: start; gap: 8px; border-left: 1px solid var(--line); background: #fbfcfa; }
.case-actions button, .case-actions a { min-height: 41px; padding: 0 10px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--ink); border-radius: 5px; background: var(--white); color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 800; cursor: pointer; }
.case-actions .preview-button:hover, .case-actions .use-company-button:hover, .case-actions a:hover { background: var(--green); }
.case-actions .bookmark-icon { width: 41px; min-height: 41px; padding: 0; justify-self: end; border-color: var(--line); }
.case-actions .bookmark-icon.saved { border-color: var(--ink); background: var(--yellow); }
.case-actions svg { width: 15px; }

.shortlist { min-height: 88px; padding: 17px 18px; display: grid; grid-template-columns: minmax(0, 1fr) 42px auto; align-items: center; gap: 12px; border: 2px solid var(--ink); background: var(--white); box-shadow: 8px 8px 0 var(--cyan); }
.shortlist > div { display: flex; align-items: center; gap: 12px; }
.shortlist-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); }
.shortlist-icon svg { width: 21px; }
.shortlist strong, .shortlist div span { display: block; }
.shortlist div span { margin-top: 3px; color: var(--muted); font-size: 16px; }
.drive-button { background: var(--green); }

.notice { min-height: 52px; padding: 13px 15px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--cyan); border-radius: 6px; background: #eaf9fc; color: #155c6f; font-size: 16px; }
.notice.error { border-color: var(--coral); background: #fff0ec; color: #812f20; }
.notice svg { width: 17px; flex: 0 0 17px; }

.preview-dialog { width: min(1180px, calc(100vw - 32px)); height: min(850px, calc(100vh - 32px)); padding: 0; border: 1px solid var(--ink); border-radius: 8px; background: var(--paper); color: var(--ink); box-shadow: 0 28px 90px rgba(23, 33, 29, .28); overflow: hidden; }
.preview-dialog::backdrop { background: rgba(23, 33, 29, .72); }
.preview-topbar { min-height: 96px; padding: 18px 20px; display: flex; align-items: start; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); background: var(--white); }
.preview-topbar .eyebrow { margin-bottom: 5px; }
.preview-topbar h2 { max-width: 900px; font-size: 23px; overflow-wrap: anywhere; }
.preview-topbar p:last-child { margin: 5px 0 0; color: var(--muted); font-size: 16px; }
.preview-layout { height: calc(100% - 96px); display: grid; grid-template-columns: minmax(300px, .78fr) minmax(520px, 1.42fr); }
.document-preview { min-width: 0; min-height: 0; padding: clamp(24px, 5vw, 64px); display: grid; place-items: center; background: #dfe4df; overflow: hidden; }
.document-sheet { width: min(500px, 100%); aspect-ratio: 210 / 270; padding: clamp(26px, 4vw, 50px); display: flex; flex-direction: column; align-items: flex-start; border: 1px solid #b8c1bb; background: var(--white); box-shadow: 0 18px 44px rgba(23, 33, 29, .16); }
.document-sheet-top { width: 100%; display: flex; align-items: center; justify-content: space-between; color: var(--green-dark); font-size: 16px; font-weight: 900; }
.document-sheet-top span { padding: 5px 8px; border: 1px solid var(--green-dark); border-radius: 4px; }
.document-sheet-top svg { width: 22px; }
.document-mark { width: 70px; height: 70px; margin: auto 0 22px; display: grid; place-items: center; background: var(--ink); color: var(--green); }
.document-mark svg { width: 34px; }
.document-sheet small { color: var(--green-dark); font-size: 16px; font-weight: 900; text-transform: uppercase; }
.document-sheet > strong { margin-top: 10px; font-size: 28px; line-height: 1.15; overflow-wrap: break-word; }
.document-sheet > p { margin: 12px 0 20px; color: var(--muted); font-size: 16px; font-weight: 700; }
.document-page { margin: -10px 0 14px; padding: 5px 8px; border: 1px solid #8fc2ce; background: #eef9fb; color: #155c6f; font: 800 16px "DM Sans"; }
.document-topics { display: flex; flex-wrap: wrap; gap: 6px; }
.document-topics span { padding: 5px 7px; border: 1px solid var(--line); color: var(--muted); font-size: 16px; font-weight: 800; }
.document-domain { margin-top: auto; padding-top: 18px; color: var(--muted); font-size: 16px; overflow-wrap: anywhere; }
.preview-details { padding: 25px 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; border-left: 1px solid var(--line); background: var(--white); overflow-y: auto; }
.preview-verification { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px; }
.verified-label { display: inline-flex; align-items: center; gap: 6px; color: var(--green-dark); font-size: 16px; font-weight: 800; }
.verified-label svg { width: 16px; }
.preview-evidence { margin-top: 15px; padding: 15px; border: 1px solid #8fc2ce; background: #eef9fb; }
.preview-evidence dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.preview-evidence dl > div { min-width: 0; }
.preview-evidence dt { color: #155c6f; font-size: 16px; font-weight: 800; }
.preview-evidence dd { margin: 3px 0 0; color: var(--ink); font: 700 16px/1.5 "DM Sans", "Noto Sans JP", sans-serif; overflow-wrap: anywhere; }
.preview-evidence > p { margin-top: 12px; padding-top: 10px; border-top: 1px solid #b9d8de; font-size: 16px; }
.preview-guidance-section, .preview-source { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.preview-details h3 { margin: 0 0 8px; display: flex; align-items: center; gap: 8px; font-size: 16px; }
.preview-details h3 svg { width: 17px; color: var(--green-dark); }
.preview-details p, .preview-details li { color: var(--muted); font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.preview-details p { margin: 0; }
.preview-details ul { margin: 0; padding-left: 18px; }
.preview-details li { margin: 4px 0; }
.preview-reading-order { margin: 11px 0 0; padding: 0; display: grid; gap: 10px; list-style: none; counter-reset: preview-step; }
.preview-reading-order li { display: grid; grid-template-columns: 27px minmax(0, 1fr); align-items: start; gap: 10px; counter-increment: preview-step; }
.preview-reading-order li::before { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--green); content: counter(preview-step); font: 700 16px "DM Sans"; }
.caution-guidance { padding: 15px 16px 0; border-top-color: #e3c15f; border-left: 4px solid var(--yellow); background: #fffaf0; }
.caution-guidance h3 svg { color: #846608; }
.preview-search-terms { display: flex; flex-wrap: wrap; gap: 6px; }
.preview-guidance-section small { display: block; margin-top: 7px; color: var(--muted); font-size: 16px; }
.preview-source p { font-family: "DM Sans", sans-serif; }
.preview-actions { display: grid; gap: 9px; }
.preview-actions a, .bookmark-button { min-height: 47px; padding: 0 12px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--ink); border-radius: 5px; color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 800; cursor: pointer; }
.preview-actions a { background: var(--white); }
.bookmark-button { background: var(--green); }
.bookmark-button.saved { background: var(--yellow); }
.preview-actions svg { width: 17px; }

.site-footer { min-height: 120px; padding: 28px clamp(20px, 4vw, 64px); display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 16px; }
.footer-brand { flex: 0 0 auto; color: var(--ink); font: 700 16px "DM Sans", "Noto Sans JP", sans-serif; }
.footer-copy { max-width: 840px; display: grid; gap: 7px; text-align: right; line-height: 1.65; }
.alpha-notice { color: var(--ink); font-weight: 700; }
.footer-copy small { color: var(--muted); font-size: 16px; }

@media (max-width: 1000px) {
  .capital-workflow { grid-template-columns: 1fr minmax(440px, 1.3fr); }
  .capital-workflow > a { grid-column: 1 / -1; justify-content: center; }
  .workspace::before { width: 100%; background: rgba(251, 250, 245, .84); }
  .evidence-audit { grid-template-columns: 1fr; gap: 16px; }
  .case-card { grid-template-columns: 190px minmax(0, 1fr); }
  .case-actions { grid-column: 1 / -1; grid-template-columns: 41px repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 0; }
  .case-actions .bookmark-icon { justify-self: auto; }
}

@media (max-width: 820px) {
  .topbar { height: 62px; padding: 0 15px; }
  .tool-switcher { top: 62px; padding-inline: 12px; justify-content: flex-start; overflow-x: auto; }
  .tool-switcher > span { display: none; }
  .tool-switcher-tabs { width: 100%; grid-template-columns: repeat(3, minmax(118px, 1fr)); }
  .capital-workflow { padding: 18px 15px; grid-template-columns: 1fr; gap: 16px; }
  .capital-workflow ol { grid-template-columns: 1fr; }
  .capital-workflow li { min-height: 0; }
  .capital-workflow li + li { border-top: 1px solid #46564f; border-left: 0; }
  .capital-workflow > a { grid-column: auto; }
  .tree-count span { display: none; }
  .workspace { min-height: 455px; }
  .workspace-image { background-position: 62% center; opacity: .48; }
  .workspace-inner { width: calc(100% - 30px); padding: 40px 0 34px; }
  h1, body[data-locale="en"] h1 { max-width: 650px; font-size: 46px; }
  .lead { max-width: 590px; font-size: 16px; }
  .process-strip { justify-content: space-between; gap: 6px; padding-inline: 12px; }
  .process-strip small { display: none; }
  .process-strip div { grid-template-columns: 23px auto; }
  .process-strip div > span { width: 23px; height: 23px; }
  .process-strip strong { font-size: 16px; }
  .process-strip > svg { width: 11px; }
  .evidence-audit { padding: 20px 15px; }
  .question-explorer, .research-answer, .case-explorer, .shortlist, .notice { width: calc(100% - 30px); margin: 44px auto; }
  .tree-layout { grid-template-columns: 1fr; }
  .category-tree { padding: 8px; flex-direction: row; align-items: center; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .category-group { min-width: max-content; margin: 0 3px 0 9px; writing-mode: vertical-rl; }
  .category-group:first-child { margin-left: 3px; }
  .category-group::after { display: none; }
  .category-node { min-width: 178px; }
  .question-branch { padding: 17px; }
  .question-node { grid-template-columns: 48px minmax(0, 1fr) 17px; padding: 12px 10px; }
  .question-copy > span { font-size: 16px; }
  .answer-topline { grid-template-columns: 65px minmax(0, 1fr); padding: 22px; gap: 17px; }
  .answer-index { width: 62px; height: 62px; }
  .answer-heading h2 { font-size: 25px; }
  .answer-summary { padding: 21px 22px; font-size: 16px; }
  .answer-judgement, .answer-details { grid-template-columns: 1fr; }
  .answer-judgement > div, .answer-details > div { padding: 21px 22px; }
  .answer-judgement > div + div, .answer-details > div + div { border-top: 1px solid var(--line); border-left: 0; }
  .source-strip { align-items: start; flex-direction: column; padding: 16px 22px; }
  .legal-note { padding: 12px 22px; }
  .answer-actions { padding: 18px 22px 22px; }
  .case-card { grid-template-columns: 1fr; }
  .case-company { grid-template-columns: 44px minmax(0, 1fr); border-right: 0; border-bottom: 1px solid var(--line); }
  .case-actions { grid-column: auto; }
  .preview-dialog { width: 100vw; height: 100vh; max-width: none; max-height: none; border: 0; border-radius: 0; }
  .preview-topbar { min-height: 92px; padding: 14px 15px; }
  .preview-topbar h2 { font-size: 19px; }
  .preview-layout { height: calc(100% - 92px); grid-template-columns: 1fr; grid-template-rows: minmax(240px, 38vh) auto; overflow-y: auto; }
  .document-preview { min-height: 240px; padding: 18px; }
  .document-sheet { width: auto; height: 100%; padding: 24px; }
  .document-sheet > strong { font-size: 22px; }
  .document-mark { width: 52px; height: 52px; margin-bottom: 14px; }
  .document-mark svg { width: 27px; }
  .preview-details { border-top: 1px solid var(--line); border-left: 0; overflow: visible; }
}

@media (max-width: 600px) {
  .brand { gap: 8px; font-size: 16px; }
  body[data-locale="en"] .brand > span:last-child { display: none; }
  .brand-mark { width: 32px; height: 32px; flex-basis: 32px; }
  .topbar-actions { gap: 7px; }
  .tree-count { display: none; }
  .language-switch { grid-template-columns: repeat(2, 48px); }
  .language-switch button { padding-inline: 3px; font-size: 16px; }
  .tool-switcher { gap: 8px; }
  .tool-switcher > span { display: none; }
  .tool-switcher-tabs { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tool-switcher-tabs a { padding-inline: 7px; font-size: 16px; white-space: normal; text-align: center; }
  h1, body[data-locale="en"] h1 { font-size: 40px; }
  .hero-proof span { font-size: 16px; }
  .process-strip strong { max-width: 64px; line-height: 1.3; }
  .evidence-audit dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .evidence-audit dl > div:nth-child(3) { border-left: 0; border-top: 1px solid #a7ccd4; }
  .evidence-audit dl > div:nth-child(4) { border-top: 1px solid #a7ccd4; }
  .preview-evidence dl { grid-template-columns: 1fr; }
  .section-heading { align-items: start; }
  .section-heading h2 { font-size: 30px; }
  .answer-topline { grid-template-columns: 1fr; }
  .answer-heading h2 { font-size: 23px; }
  .answer-actions { flex-direction: column; }
  .case-toolbar { grid-template-columns: 1fr; }
  .format-filter { grid-template-columns: repeat(3, 1fr); }
  .case-actions { grid-template-columns: 41px minmax(0, 1fr); }
  .case-actions a { grid-column: 1 / -1; }
  .shortlist { grid-template-columns: minmax(0, 1fr) 42px; }
  .shortlist .drive-button { grid-column: 1 / -1; }
  .site-footer { align-items: start; flex-direction: column; gap: 14px; }
  .footer-copy { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Shared ESG Action Suite context, added without replacing the existing tools. */
.tool-switcher-tabs { width: min(100%, 860px); grid-template-columns: repeat(4, minmax(120px, 1fr)); }
.tool-switcher-tabs a { min-height: 40px; }
.suite-hub {
  padding: 18px max(20px, calc((100% - 1240px) / 2));
  display: grid;
  grid-template-columns: minmax(230px, .72fr) minmax(230px, .72fr) minmax(480px, 1.56fr);
  gap: 20px;
  align-items: stretch;
  border-bottom: 1px solid #b8c7c0;
  background: #e8f0ec;
}
.suite-hub-heading, .suite-project, .suite-journey-area { min-width: 0; }
.suite-hub-heading > span { color: var(--green-dark); font: 900 16px "DM Sans", "Noto Sans JP", sans-serif; }
.suite-hub-heading h2 { margin-top: 5px; font-size: 18px; line-height: 1.35; }
.suite-hub-heading p { margin: 7px 0 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.suite-project { padding: 12px; border: 1px solid #c4d0ca; border-radius: 6px; background: rgba(255, 255, 255, .72); }
.suite-project > label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 16px; font-weight: 800; }
.suite-project > input { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid #9fb0a8; border-radius: 5px; background: var(--white); color: var(--ink); font-size: 16px; }
.suite-context-chips { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 5px; }
.suite-context-chips > span { min-width: 0; padding: 5px 7px; display: inline-flex; align-items: baseline; gap: 5px; border: 1px solid #bed0c7; border-radius: 4px; background: #f8fbf9; }
.suite-context-chips small { color: var(--muted); font-size: 16px; }
.suite-context-chips b { max-width: 180px; overflow: hidden; color: var(--ink); font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.suite-context-chips .empty { color: var(--muted); font-size: 16px; line-height: 1.45; white-space: normal; }
.suite-journey-area { display: grid; gap: 8px; }
.suite-journey-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.suite-journey-heading strong { font-size: 16px; }
.suite-journey-heading span { color: var(--muted); font-size: 16px; }
.suite-journey-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.suite-journey-options button {
  min-width: 0;
  min-height: 50px;
  padding: 7px 8px;
  border: 1px solid #b9c8c1;
  border-radius: 5px;
  background: var(--white);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.suite-journey-options button:hover, .suite-journey-options button.active { border-color: var(--green-dark); box-shadow: inset 0 -3px 0 var(--green); }
.suite-journey-options strong, .suite-journey-options small { display: block; }
.suite-journey-options strong { font-size: 16px; }
.suite-journey-options small { margin-top: 3px; color: var(--muted); font-size: 16px; line-height: 1.35; }
.suite-route { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid #9fb0a8; border-radius: 5px; overflow: hidden; background: var(--white); }
.suite-route a { min-width: 0; min-height: 40px; padding: 6px 7px; display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; gap: 5px; color: var(--ink); text-decoration: none; }
.suite-route a + a { border-left: 1px solid #c8d3ce; }
.suite-route a:hover { background: #f1f6f3; }
.suite-route a.active { background: var(--ink); color: var(--white); }
.suite-route b { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--soft); color: var(--green-dark); font: 800 16px "DM Sans", sans-serif; }
.suite-route a.active b { background: var(--green); color: var(--ink); }
.suite-route span { min-width: 0; font-size: 16px; font-weight: 800; overflow-wrap: anywhere; }
.suite-route small { grid-column: 2; color: var(--green); font-size: 16px; }

@media (max-width: 1060px) {
  .suite-hub { grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr); }
  .suite-project { grid-row: span 2; }
  .suite-journey-area { grid-column: 2; }
}

@media (max-width: 820px) {
  .tool-switcher-tabs { grid-template-columns: repeat(4, minmax(94px, 1fr)); }
  .suite-hub { padding: 15px; grid-template-columns: 1fr; }
  .suite-project { grid-row: auto; }
  .suite-journey-area { grid-column: auto; }
}

@media (max-width: 600px) {
  .tool-switcher-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tool-switcher-tabs a { min-height: 40px; padding: 5px 4px; font-size: 16px; }
  .tool-switcher-tabs a svg { display: none; }
  .suite-journey-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .suite-route { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .suite-route a:nth-child(3) { border-top: 1px solid #c8d3ce; border-left: 0; }
  .suite-route a:nth-child(4) { border-top: 1px solid #c8d3ce; }
}

/* Leading-case benchmark workflow */
.tool-switcher-tabs {
  width: min(100%, 1080px);
  grid-template-columns: repeat(5, minmax(120px, 1fr));
}

.suite-route {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.benchmark-workflow {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: 6px;
  padding: 20px;
  background: var(--white);
}

.benchmark-workflow > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.benchmark-workflow > header span {
  color: var(--green-dark);
  font-size: 16px;
  font-weight: 800;
}

.benchmark-workflow h2 {
  margin: 4px 0 6px;
  font-size: 22px;
  letter-spacing: 0;
}

.benchmark-workflow header p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.benchmark-workflow > header > strong {
  flex: 0 0 auto;
  border-radius: 5px;
  padding: 8px 11px;
  color: var(--green-dark);
  background: var(--soft);
  font-size: 16px;
}

.benchmark-workflow ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 16px 0 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0;
  list-style: none;
}

.benchmark-workflow li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  min-width: 0;
  border-right: 1px solid var(--line);
  padding: 12px;
}

.benchmark-workflow li:last-child {
  border-right: 0;
}

.benchmark-workflow li > b {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  color: var(--white);
  background: var(--ink);
  font-size: 16px;
}

.benchmark-workflow li strong,
.benchmark-workflow li small {
  display: block;
}

.benchmark-workflow li strong {
  font-size: 16px;
}

.benchmark-workflow li small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.benchmark-tray {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 58px;
  margin-top: 12px;
  border: 1px dashed #9fb0a8;
  border-radius: 5px;
  padding: 10px;
  background: #f6f8f7;
}

.benchmark-tray button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  border: 1px solid #91b9a7;
  border-radius: 5px;
  padding: 8px 10px;
  color: var(--green-dark);
  background: #edf7f2;
  font-size: 16px;
  font-weight: 800;
}

.benchmark-tray button svg {
  width: 15px;
  height: 15px;
}

.benchmark-tray p {
  display: grid;
  gap: 3px;
  margin: auto 2px;
}

.benchmark-tray p strong,
.benchmark-tray p span {
  font-size: 16px;
}

.benchmark-tray p span {
  color: var(--muted);
}

.benchmark-workflow-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.benchmark-workflow-actions a {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 10px 13px;
  color: var(--ink);
  background: var(--white);
  text-decoration: none;
  font-size: 16px;
  font-weight: 800;
}

.benchmark-workflow-actions a.primary {
  border-color: var(--green-dark);
  color: var(--white);
  background: var(--green-dark);
}

.use-company-button.added {
  color: var(--green-dark);
  background: var(--soft);
}

@media (max-width: 900px) {
  .tool-switcher-tabs,
  .suite-route {
    grid-template-columns: repeat(5, minmax(132px, 1fr));
    overflow-x: auto;
  }

  .benchmark-workflow ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benchmark-workflow li:nth-child(2) {
    border-right: 0;
  }

  .benchmark-workflow li:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 600px) {
  .tool-switcher-tabs {
    grid-template-columns: repeat(5, minmax(126px, 1fr));
  }

  .suite-route {
    grid-template-columns: 1fr;
    overflow: hidden;
  }

  .suite-route a + a,
  .suite-route a:nth-child(3),
  .suite-route a:nth-child(4) {
    border-top: 1px solid #c8d3ce;
    border-left: 0;
  }

  .benchmark-workflow > header {
    display: grid;
  }

  .benchmark-workflow ol {
    grid-template-columns: 1fr;
  }

  .benchmark-workflow li,
  .benchmark-workflow li:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .benchmark-workflow li:last-child {
    border-bottom: 0;
  }

  .benchmark-workflow-actions a {
    width: 100%;
    text-align: center;
  }
}

/* Persona-aware package navigation: shared guidance now lives on the project home. */
.project-menu {
  min-height: 54px;
  padding: 7px max(20px, calc((100% - 1240px) / 2));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  position: sticky;
  top: 70px;
  z-index: 29;
  color: var(--white);
  background: var(--ink);
  border-bottom: 1px solid #46534d;
}

.project-menu > span {
  flex: 0 0 auto;
  color: #c6d0cb;
  font-size: 16px;
  font-weight: 800;
}

.project-menu-links {
  width: min(100%, 980px);
  min-width: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(132px, 1fr);
  gap: 3px;
  padding: 3px;
  overflow-x: auto;
  border: 1px solid #55635d;
  border-radius: 6px;
  background: #0d1512;
}

.project-menu-links a {
  min-height: 38px;
  padding: 7px 9px;
  display: grid;
  place-items: center;
  color: #d7ded9;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.project-menu-links a:hover {
  background: #303b36;
}

.project-menu-links a.active {
  color: var(--ink);
  background: var(--green);
}

.compact-project-context {
  min-height: 48px;
  padding: 7px max(20px, calc((100% - 1160px) / 2));
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: #e8f0ec;
}

.compact-project-context > a,
.compact-project-context > span {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  background: var(--white);
  border-left: 3px solid #9fb0a8;
  font-size: 16px;
  text-decoration: none;
}

.compact-project-context > a {
  color: var(--white);
  background: var(--green-dark);
  border-left-color: var(--green);
  font-weight: 900;
}

.compact-project-context b {
  color: var(--green-dark);
}

.page-role-strip {
  padding: 18px max(20px, calc((100% - 1160px) / 2));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  color: var(--white);
  background: #203129;
  border-bottom: 1px solid #46534d;
}

.page-role-strip > span {
  color: var(--green);
  font-size: 16px;
  font-weight: 900;
}

.page-role-strip h2 {
  font-size: 20px;
  line-height: 1.4;
}

.page-role-strip p {
  margin: 4px 0 0;
  color: #c4cec9;
  font-size: 16px;
  line-height: 1.6;
}

.page-role-strip a {
  min-height: 42px;
  padding: 9px 13px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--green);
  border-radius: 4px;
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

/* Restrained hero typography and a 16px minimum for screen text. */
h1,
body[data-locale="en"] h1 {
  max-width: 760px;
  font-size: 36px;
  line-height: 1.25;
}

@media (max-width: 760px) {
  .project-menu {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .project-menu > span {
    display: none;
  }

  .project-menu-links {
    flex: 0 0 auto;
    width: max-content;
  }

  .page-role-strip {
    grid-template-columns: 1fr;
  }

  .page-role-strip > span {
    display: none;
  }

  .page-role-strip a {
    justify-self: stretch;
  }

  h1,
  body[data-locale="en"] h1 {
    font-size: 30px;
  }
}
