:root {
  color-scheme: dark;
  --ink: #08090c;
  --night: #10131a;
  --panel: rgba(18, 22, 30, 0.82);
  --panel-solid: #151a23;
  --panel-2: #1c2330;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f7f2ea;
  --muted: #aab1bf;
  --soft: #d8deea;
  --coral: #ff6b57;
  --cyan: #35c2ff;
  --violet: #b392ff;
  --amber: #f5bd4f;
  --lime: #a8e34b;
  --blue: #6ca8ff;
  --green: #36d28f;
  --mint: #57e0c2;
  --pink: #ff79b7;
  --slate: #c6d0df;
  --red: #ff5d6c;
  --neutral: #f2efe7;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  --header-width: 1400px;
  --content-width: 1280px;
  --footer-width: 1350px;
  --page-gutter: 40px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--ink);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
  background:
    linear-gradient(115deg, rgba(255, 107, 87, 0.12), transparent 360px),
    linear-gradient(245deg, rgba(53, 194, 255, 0.1), transparent 420px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 96px),
    var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(140deg, transparent 0 24%, rgba(255, 255, 255, 0.035) 24% 24.2%, transparent 24.2% 100%),
    linear-gradient(35deg, transparent 0 58%, rgba(255, 255, 255, 0.028) 58% 58.2%, transparent 58.2% 100%);
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  color: #0d0f14;
  background: var(--neutral);
  border-radius: 6px;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 3;
  width: min(var(--header-width), calc(100% - var(--page-gutter)));
  margin: 0 auto;
  padding: 18px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-link {
  flex: 0 0 auto;
  max-width: 100%;
  width: fit-content;
  min-height: 44px;
  direction: ltr;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.brand-link img {
  width: 240px;
  max-width: 100%;
  aspect-ratio: 10 / 3;
  object-fit: contain;
  height: auto;
  display: block;
  filter: drop-shadow(0 16px 34px rgba(0, 0, 0, 0.38));
}

.brand-name {
  padding-left: 12px;
  border-left: 1px solid var(--line);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-switcher,
.language-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  background: rgba(12, 15, 21, 0.72);
  backdrop-filter: blur(18px);
  border-radius: 8px;
}

.language-switcher {
  position: relative;
}

.language-switcher summary {
  min-width: 38px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  list-style: none;
}

.language-switcher summary::-webkit-details-marker {
  display: none;
}

.language-switcher[open] summary {
  color: #101217;
  background: var(--neutral);
  border-radius: 6px;
}

.language-options {
  position: absolute;
  z-index: 20;
  right: 0;
  top: calc(100% + 8px);
  display: grid;
  grid-template-columns: repeat(6, minmax(38px, 1fr));
  gap: 4px;
  width: 290px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 15, 21, 0.96);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.site-switcher a,
.language-switcher a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.language-switcher a {
  min-width: 38px;
  padding: 0 8px;
}

.site-switcher a:hover,
.site-switcher a.is-active,
.language-switcher a:hover,
.language-switcher a.is-active {
  color: #101217;
  background: var(--neutral);
}

main {
  position: relative;
  z-index: 1;
}

.portal-shell {
  width: min(var(--content-width), calc(100% - var(--page-gutter)));
  margin: 24px auto 0;
  padding-bottom: 46px;
}

.hero-grid {
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(420px, 0.65fr);
  gap: 14px;
}

.hero-panel,
.command-panel,
.filter-panel,
.atlas-panel,
.detail-panel,
.answer-form,
.answer-card {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  border-radius: 8px;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 107, 87, 0.28), transparent 48%),
    linear-gradient(180deg, transparent, rgba(8, 9, 12, 0.54)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 18px);
}

.hero-panel::after {
  content: "AI";
  position: absolute;
  right: 28px;
  top: 8px;
  color: rgba(255, 255, 255, 0.04);
  font-size: 210px;
  line-height: 1;
  font-weight: 950;
}

.hero-copy,
.hero-metrics {
  position: relative;
}

.eyebrow,
.panel-topline,
.search-control label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero-copy h1 {
  max-width: 920px;
  margin: 12px 0 18px;
  font-size: 72px;
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 760px;
  margin: 0;
  color: var(--soft);
  font-size: 22px;
}

.hero-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.hero-jumps a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: var(--soft);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.hero-jumps a:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 40px;
}

.hero-metrics span {
  min-height: 78px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
}

.hero-metrics strong {
  color: var(--text);
  font-size: 30px;
  line-height: 1;
}

.command-panel {
  padding: 18px;
  display: grid;
  grid-template-rows: auto minmax(170px, 1fr) auto auto auto;
  gap: 12px;
}

.panel-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.command-panel textarea,
.answer-form textarea {
  width: 100%;
  resize: vertical;
  color: var(--text);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.command-panel textarea {
  min-height: 174px;
  max-height: 38vh;
  padding: 16px;
  font-size: 17px;
}

.route-preview {
  min-height: 64px;
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.route-preview > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.route-preview p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.route-preview > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.route-preview button {
  min-width: 0;
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  padding: 0 8px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.route-preview button:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.route-preview button b {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0d0f14;
  background: var(--lime);
  border-radius: 5px;
  font-size: 10px;
}

.route-preview button > span {
  min-width: 0;
  display: grid;
  gap: 1px;
  text-align: left;
}

.route-preview button strong,
.route-preview button small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-preview button strong {
  font-size: 12px;
}

.route-preview button small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.command-panel textarea:focus,
.answer-form textarea:focus,
.search-control input:focus {
  border-color: rgba(53, 194, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(53, 194, 255, 0.14);
}

.command-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 42px 42px;
  gap: 8px;
}

.btn,
.icon-btn,
.preset-btn,
.switch-btn,
.category-btn,
.filter-reset,
.favorite-btn,
.service-body {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.065);
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.btn:hover,
.icon-btn:hover,
.preset-btn:hover,
.switch-btn:hover,
.category-btn:hover,
.filter-reset:hover,
.favorite-btn:hover,
.service-body:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.1);
}

.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  border-radius: 8px;
  font-weight: 850;
}

.btn.primary {
  color: #0d0f14;
  background: var(--coral);
  border-color: transparent;
}

.icon-btn {
  width: 42px;
  min-height: 42px;
  border-radius: 8px;
  font-size: 21px;
  line-height: 1;
}

.preset-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.preset-btn {
  min-height: 34px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.preset-btn:hover {
  color: var(--text);
}

.preset-btn.is-active {
  color: var(--text);
  border-color: var(--cyan);
  background: rgba(53, 194, 255, 0.14);
}

.portal-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1.905 / 1;
  max-height: 320px;
  margin: 14px 0 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #080a0d;
}

.portal-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.46);
}

.portal-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.portal-workspace {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr) 318px;
  gap: 14px;
  align-items: start;
  margin-top: 14px;
}

.choice-guide {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 14px;
  margin-top: 14px;
}

.choice-guide-intro,
.choice-guide-grid article {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  border-radius: 8px;
}

.choice-guide-intro {
  padding: 30px;
}

.choice-guide-intro h2 {
  margin: 10px 0 14px;
  font-size: clamp(30px, 3.5vw, 48px);
  line-height: 1.02;
}

.choice-guide-intro p,
.choice-guide-grid p {
  margin: 0;
  color: var(--muted);
}

.choice-guide-intro > a {
  display: inline-flex;
  margin-top: 22px;
  color: var(--text);
  font-weight: 850;
  text-underline-offset: 4px;
}

.choice-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.choice-guide-grid article {
  position: relative;
  min-height: 390px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.choice-guide-grid article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent, var(--neutral));
}

.choice-guide-grid figure {
  position: relative;
  aspect-ratio: 3 / 1.35;
  margin: 0;
  overflow: hidden;
  background: var(--panel-solid);
}

.choice-guide-grid figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 58%, rgba(8, 9, 12, 0.28));
}

.choice-guide-grid img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 320ms ease;
}

.choice-guide-grid article:hover img {
  transform: scale(1.035);
}

.choice-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px 24px 24px;
}

.choice-number {
  color: var(--accent, var(--neutral));
  font-size: 12px;
  font-weight: 950;
}

.choice-guide-grid h3 {
  margin: 16px 0 10px;
  font-size: 23px;
}

.choice-guide-grid button,
.card-explore {
  min-height: 40px;
  margin-top: auto;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.choice-guide-grid button {
  padding-top: 18px;
}

.choice-guide-grid button:hover,
.card-explore:hover {
  color: var(--accent, var(--cyan));
}

.card-explore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
}

.decision-checklist {
  grid-column: 1 / -1;
  padding: 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(53, 194, 255, 0.08), transparent 42%),
    var(--panel);
  box-shadow: var(--shadow);
  border-radius: 8px;
}

.decision-checklist h3 {
  margin: 0 0 18px;
  font-size: 21px;
}

.decision-checklist dl {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.decision-checklist dl > div {
  padding: 15px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.16);
  border-radius: 8px;
}

.decision-checklist dt {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.decision-checklist dd {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.filter-panel,
.detail-panel {
  position: sticky;
  top: 14px;
}

.filter-panel {
  padding: 14px;
  display: grid;
  gap: 12px;
}

.search-control {
  display: grid;
  gap: 7px;
}

.search-control input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.switch-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.switch-btn {
  min-height: 36px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 850;
}

.switch-btn.is-active {
  color: #0d0f14;
  background: var(--neutral);
  border-color: transparent;
}

.check-line {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 750;
}

.check-line input {
  width: 16px;
  height: 16px;
  accent-color: var(--amber);
}

.filter-reset {
  min-height: 38px;
  padding: 0 10px;
  color: var(--muted);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.filter-reset:hover {
  color: var(--text);
}

.category-list {
  display: grid;
  gap: 6px;
  max-height: calc(100vh - 260px);
  overflow: auto;
  padding-right: 2px;
}

.category-btn {
  min-height: 42px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  text-align: left;
  color: var(--muted);
  border-radius: 8px;
}

.category-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-btn strong {
  color: var(--text);
  font-size: 12px;
}

.category-btn.is-active {
  color: #0d0f14;
  background: var(--accent, var(--neutral));
  border-color: transparent;
}

.category-btn.is-active strong {
  color: #0d0f14;
}

.atlas-panel {
  min-height: 640px;
  padding: 16px;
}

.atlas-head {
  min-height: 74px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.atlas-head h2 {
  margin: 4px 0 0;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: 0;
}

.result-pill {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 8px;
  white-space: nowrap;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 10px;
}

.service-card {
  position: relative;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    var(--panel-solid);
  border-radius: 8px;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: auto 292px;
}

.service-card::before {
  content: "";
  height: 4px;
  background: var(--accent, var(--neutral));
}

.service-card:target {
  outline: 2px solid var(--text);
  outline-offset: 2px;
  scroll-margin-top: 100px;
}

.service-permalink {
  display: block;
  padding: 0 14px 12px;
  color: var(--muted);
  font-size: 12px;
  text-underline-offset: 3px;
}

.service-card.is-selected {
  border-color: var(--accent, var(--line-strong));
}

.tone-coral { --accent: var(--coral); }
.tone-cyan { --accent: var(--cyan); }
.tone-violet { --accent: var(--violet); }
.tone-amber { --accent: var(--amber); }
.tone-lime { --accent: var(--lime); }
.tone-blue { --accent: var(--blue); }
.tone-green { --accent: var(--green); }
.tone-mint { --accent: var(--mint); }
.tone-pink { --accent: var(--pink); }
.tone-slate { --accent: var(--slate); }
.tone-neutral { --accent: var(--neutral); }
.tone-red { --accent: var(--red); }

.status-watch {
  border-style: dashed;
}

.status-sunset {
  opacity: 0.68;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 14px 0;
}

.service-mark,
.detail-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #0d0f14;
  background: var(--accent, var(--neutral));
  border-radius: 8px;
  font-weight: 950;
}

.service-initials {
  position: relative;
  z-index: 0;
}

.service-mark img,
.detail-mark img {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 6px;
  object-fit: contain;
  background: transparent;
}

.detail-mark img {
  padding: 9px;
}

.service-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  font-size: 15px;
}

.favorite-btn {
  width: 34px;
  height: 34px;
  color: var(--muted);
  border-radius: 8px;
}

.favorite-btn.is-active {
  color: #0d0f14;
  background: var(--amber);
  border-color: transparent;
}

.service-body {
  display: grid;
  align-content: start;
  gap: 4px;
  width: 100%;
  min-height: 138px;
  padding: 12px 14px 8px;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 0;
}

.service-body:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.035);
}

.service-context,
.service-org,
.service-purpose {
  color: var(--muted);
}

.service-context {
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.service-body strong {
  color: var(--text);
  font-size: 20px;
  line-height: 1.1;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.service-org {
  font-size: 13px;
}

.service-purpose {
  margin-top: 5px;
  font-size: 14px;
  line-height: 1.45;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.service-tags,
.detail-tags,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.service-tags {
  min-height: 54px;
  align-content: end;
  align-items: end;
  padding: 0 14px 14px;
}

.service-tags span,
.detail-tags span,
.detail-meta span,
.service-link {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  color: #dce3ee;
  background: rgba(255, 255, 255, 0.064);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 12px;
}

.service-link {
  margin-left: auto;
  align-self: end;
  color: var(--text);
  text-decoration: none;
}

.service-link:hover {
  color: #0d0f14;
  background: var(--accent, var(--neutral));
  border-color: transparent;
}

.detail-panel {
  min-height: 430px;
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.detail-mark {
  width: 64px;
  height: 64px;
  font-size: 19px;
}

.detail-panel h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.05;
}

.detail-panel p {
  margin: 0;
  color: var(--soft);
  font-size: 16px;
}

.detail-trial {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.detail-trial h3,
.detail-trial h4 {
  margin: 0 0 7px;
  font-size: 14px;
}

.detail-trial h4 {
  margin-top: 12px;
}

.detail-trial p {
  font-size: 13px;
  line-height: 1.5;
}

.detail-trial a {
  display: inline-block;
  margin-top: 12px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.detail-actions .btn {
  text-decoration: none;
}

.editorial-band {
  margin-top: 14px;
  padding: 54px 0 10px;
  border-top: 1px solid var(--line);
}

.visual-guide,
.context-gallery {
  margin-top: 64px;
}

.visual-guide-grid,
.context-gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.visual-guide-grid article,
.context-gallery-grid article {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  border-radius: 8px;
}

.visual-guide-grid figure,
.context-gallery-grid figure {
  aspect-ratio: 3 / 2;
  margin: 0;
  overflow: hidden;
  background: var(--panel-solid);
}

.visual-guide-grid img,
.context-gallery-grid img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 320ms ease;
}

.visual-guide-grid article:hover img,
.context-gallery-grid article:hover img {
  transform: scale(1.035);
}

.visual-guide-grid article > div,
.context-gallery-grid article > div {
  padding: 18px;
}

.visual-guide-grid h3,
.context-gallery-grid h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.visual-guide-grid p,
.context-gallery-grid p {
  margin: 0;
  color: var(--soft);
}

.editorial-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  column-gap: 48px;
  align-items: end;
}

.editorial-intro .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 10px;
}

.editorial-intro h2 {
  max-width: 720px;
  margin: 0;
  font-size: 46px;
  line-height: 1.02;
}

.editorial-intro p {
  max-width: 760px;
  margin: 0;
  color: var(--soft);
  font-size: 20px;
}

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 42px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.editorial-grid article {
  min-height: 190px;
  padding: 28px;
  background: var(--ink);
}

.editorial-grid article:nth-child(1) {
  box-shadow: inset 0 4px 0 var(--cyan);
}

.editorial-grid article:nth-child(2) {
  box-shadow: inset 0 4px 0 var(--coral);
}

.editorial-grid article:nth-child(3) {
  box-shadow: inset 0 4px 0 var(--lime);
}

.editorial-grid h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.editorial-grid p,
.faq-grid p {
  margin: 0;
  color: var(--muted);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.faq-grid details {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 8px;
}

.faq-grid summary {
  min-height: 64px;
  display: flex;
  align-items: center;
  padding: 14px 40px 14px 16px;
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
}

.faq-grid details p {
  padding: 0 16px 18px;
}

:focus-visible {
  outline: 3px solid rgba(53, 194, 255, 0.72);
  outline-offset: 3px;
}

.empty-state {
  margin: 34px 0;
  color: var(--muted);
  text-align: center;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  max-width: min(360px, calc(100% - 36px));
  padding: 12px 14px;
  color: #0d0f14;
  background: var(--lime);
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.answer-page {
  width: min(var(--content-width), calc(100% - var(--page-gutter)));
  margin: 34px auto 0;
  display: grid;
  gap: 14px;
}

.answer-form {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.answer-form label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.answer-form textarea {
  min-height: 190px;
  padding: 16px;
}

.answer-card {
  padding: 22px;
  color: var(--soft);
}

.site-footer {
  position: relative;
  z-index: 1;
  width: min(var(--footer-width), calc(100% - var(--page-gutter)));
  margin: 0 auto 32px;
  padding-top: 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(320px, 1.35fr) auto auto;
  align-items: start;
  gap: 18px;
  font-size: 13px;
}

.site-footer div {
  display: grid;
  gap: 3px;
}

.site-footer .footer-identity {
  min-width: 0;
  gap: 12px;
}

.brand-link--footer img {
  width: 210px;
}

.site-footer strong {
  color: var(--text);
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

@media (max-width: 1380px) {
  .portal-workspace {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .detail-panel {
    position: static;
    grid-column: 1 / -1;
  }

  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .hero-grid,
  .portal-workspace {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    position: static;
  }

  .category-list {
    max-height: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-copy h1 {
    font-size: 54px;
  }

  .editorial-intro {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .editorial-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .editorial-grid article {
    min-height: 0;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 740px) {
  :root {
    --page-gutter: 24px;
  }

  .site-header,
  .site-footer {
    width: calc(100% - 24px);
  }

  .site-header,
  .header-actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .site-footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .site-switcher,
  .language-switcher {
    width: 100%;
  }

  .language-options {
    left: 0;
    right: auto;
    width: min(100%, 360px);
    grid-template-columns: repeat(5, minmax(38px, 1fr));
  }

  .site-switcher a,
  .language-switcher a {
    flex: 1;
  }

  .portal-shell {
    width: calc(100% - 24px);
    margin-top: 14px;
  }

  .hero-panel {
    padding: 24px;
  }

  .hero-copy h1 {
    font-size: 40px;
  }

  .hero-copy p {
    font-size: 17px;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .command-actions {
    grid-template-columns: 1fr 42px 42px;
  }

  .command-actions .btn:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .preset-row,
  .category-list,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .route-preview > div {
    grid-template-columns: 1fr;
  }

  .portal-visual {
    aspect-ratio: 1.25 / 1;
  }

  .portal-visual img {
    object-position: center;
  }

  .editorial-band {
    padding-top: 38px;
  }

  .editorial-intro h2 {
    font-size: 34px;
  }

  .editorial-intro p {
    font-size: 17px;
  }

  .atlas-head {
    align-items: start;
    flex-direction: column;
  }

  .service-card {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

main[id],
section[id],
article[id],
h1[id],
h2[id],
h3[id] {
  scroll-margin-top: 5rem;
}

:where(button, [role="button"], input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]), select, textarea) {
  min-height: 44px;
}

@media (forced-colors: active) {
  :where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid ButtonText !important;
  }
}

/* Editorial guides */
.portal-guide-links {
  margin-top: 72px;
}

.portal-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.portal-guide-grid article {
  --guide-accent: var(--coral);
  min-height: 300px;
  padding: 30px;
  border: 1px solid var(--line);
  border-top-color: var(--guide-accent);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.portal-guide-visual,
.guide-related-visual {
  height: 180px;
  margin: -30px -30px 26px;
  overflow: hidden;
  background: var(--night);
}

.portal-guide-visual img,
.guide-related-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portal-guide-grid .tone-cyan { --guide-accent: var(--cyan); }
.portal-guide-grid .tone-mint { --guide-accent: var(--mint); }
.portal-guide-grid .tone-amber { --guide-accent: var(--amber); }

.portal-guide-grid h3 {
  margin: 22px 0 14px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
}

.portal-guide-grid h3 a {
  text-decoration: none;
}

.portal-guide-grid p {
  color: var(--muted);
}

.portal-guide-grid article > a {
  display: inline-block;
  margin-top: 14px;
  color: var(--guide-accent);
  font-weight: 900;
}

.portal-guides-all {
  display: inline-flex;
  margin-top: 18px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--soft);
  text-underline-offset: 4px;
}

.breadcrumbs span[aria-current="page"] {
  max-width: 70ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guide-page,
.guide-hub {
  --guide-accent: var(--coral);
}

.guide-page.tone-cyan,
.guide-hub .tone-cyan { --guide-accent: var(--cyan); }
.guide-page.tone-mint,
.guide-hub .tone-mint { --guide-accent: var(--mint); }
.guide-page.tone-amber,
.guide-hub .tone-amber { --guide-accent: var(--amber); }

.guide-heading,
.guide-hub-heading {
  position: relative;
  overflow: hidden;
}

.guide-heading::after,
.guide-hub-heading::after {
  position: absolute;
  right: -80px;
  bottom: -130px;
  width: 340px;
  height: 340px;
  border: 1px solid color-mix(in srgb, var(--guide-accent) 42%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 90px color-mix(in srgb, var(--guide-accent) 17%, transparent);
  content: "";
  pointer-events: none;
}

.guide-heading .eyebrow,
.guide-index-card .eyebrow {
  color: var(--guide-accent);
}

.guide-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
}

.guide-byline span + span::before {
  margin-right: 18px;
  color: var(--guide-accent);
  content: "●";
}

.guide-visual {
  aspect-ratio: 3 / 2;
  max-height: 360px;
}

.guide-answer {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr);
  gap: 12px;
  margin-top: 14px;
}

.guide-answer > div,
.guide-answer > ul,
.guide-step-list li,
.guide-tool-card,
.guide-faq details,
.guide-related-grid article,
.guide-index-card,
.guide-stats {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.guide-answer > div,
.guide-answer > ul {
  margin: 0;
  padding: clamp(24px, 4vw, 42px);
}

.guide-answer h2 {
  margin: 8px 0 14px;
  font-size: clamp(30px, 4vw, 46px);
}

.guide-answer p,
.guide-answer li,
.guide-step-list p,
.guide-pitfalls li,
.selection-method p,
.guide-faq p {
  color: var(--muted);
}

.guide-answer ul {
  display: grid;
  align-content: center;
  gap: 18px;
  list-style: none;
}

.guide-answer li {
  position: relative;
  padding-left: 28px;
  font-weight: 700;
}

.guide-answer li::before {
  position: absolute;
  left: 0;
  color: var(--guide-accent);
  content: "✓";
}

.guide-section {
  width: 100%;
}

.guide-step-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: guide-step;
}

.guide-step-list li {
  min-height: 230px;
  padding: 30px;
  counter-increment: guide-step;
}

.guide-step-list h3 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 23px;
}

.guide-criteria article {
  border-top-color: var(--guide-accent);
}

.guide-pitfalls {
  margin-top: 72px;
  border-left: 4px solid var(--guide-accent);
}

.guide-pitfalls ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 22px;
}

.guide-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.guide-tool-card {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  padding: 24px;
}

.guide-tool-card > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.guide-tool-card h3 {
  margin: 18px 0 4px;
  font-size: 25px;
}

.guide-tool-logo {
  width: 48px;
  height: 48px;
  margin-top: 24px;
  object-fit: contain;
  border-radius: 9px;
  background: #fff;
}

.guide-tool-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1d2340;
  font-size: 25px;
  font-weight: 800;
}

.guide-tool-card p {
  margin: 0;
  color: var(--muted);
}

.guide-tool-card .guide-tool-purpose {
  margin: 0 0 7px;
  color: var(--text);
  font-weight: 700;
}

.category-trial > p {
  max-width: 85ch;
  margin: 0 0 18px;
  color: var(--muted);
}

.guide-tool-card a {
  margin-top: auto;
  padding-top: 24px;
  color: var(--guide-accent);
  font-weight: 800;
  text-decoration: none;
}

.selection-method {
  margin-top: 12px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, .16);
}

.selection-method summary,
.guide-faq summary {
  cursor: pointer;
  font-weight: 800;
}

.selection-method p {
  max-width: 90ch;
  margin: 14px 0 0;
}

.guide-directory-link {
  display: inline-flex;
  margin-top: 18px;
}

.category-info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.category-info-grid > div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.category-info-grid p,
.category-check-list p {
  margin: 0;
}

.category-more-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 20px;
}

.category-more-links > a:not(.btn),
.category-learn-link {
  color: var(--cyan);
  font-weight: 750;
  text-underline-offset: 4px;
}

.category-learn-link {
  display: inline-flex;
  margin-left: 12px;
  font-size: 13px;
}

.category-page .guide-related-grid p {
  color: var(--muted);
}

.category-family-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.category-family-links a {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
}

.category-family-links a:hover {
  border-color: var(--cyan);
}

@media (max-width: 900px) {
  .category-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .category-info-grid {
    grid-template-columns: 1fr;
  }
  .category-learn-link {
    margin-left: 0;
  }
}

.guide-faq details {
  margin-top: 10px;
  padding: 22px 24px;
}

.guide-faq p {
  max-width: 90ch;
  margin: 16px 0 0;
}

.guide-related-grid,
.guide-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.guide-related-grid article {
  min-height: 190px;
  padding: 24px;
  overflow: hidden;
}

.guide-related-visual {
  height: 150px;
  margin: -24px -24px 20px;
}

.guide-related-grid h3 {
  margin: 14px 0 28px;
  font-size: 22px;
}

.guide-related-grid h3 a,
.guide-index-card h2 a {
  text-decoration: none;
}

.guide-related-grid article > a {
  color: var(--guide-accent);
  font-weight: 800;
}

.guide-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 14px 0 10px;
  overflow: hidden;
  background: var(--line);
}

.guide-stats div {
  display: flex;
  min-height: 120px;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  background: var(--night);
}

.guide-stats dt {
  color: var(--coral);
  font-size: 38px;
  font-weight: 900;
}

.guide-stats dd {
  margin: 2px 0 0;
  color: var(--muted);
}

.guide-index {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guide-index-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: clamp(26px, 4vw, 44px);
  border-top-color: var(--guide-accent);
}

.guide-index-visual {
  position: relative;
  z-index: 1;
  height: 190px;
  margin: calc(clamp(26px, 4vw, 44px) * -1) calc(clamp(26px, 4vw, 44px) * -1) 28px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--night);
}

.guide-index-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.guide-card-number {
  position: absolute;
  right: 20px;
  top: 10px;
  color: color-mix(in srgb, var(--guide-accent) 18%, transparent);
  font-size: 100px;
  font-weight: 950;
  line-height: 1;
}

.guide-index-card h2 {
  position: relative;
  max-width: 20ch;
  margin: 28px 0 18px;
  font-size: clamp(27px, 3vw, 40px);
  line-height: 1.05;
}

.guide-index-card p {
  position: relative;
  max-width: 65ch;
  color: var(--muted);
}

.guide-card-link {
  position: relative;
  margin-top: auto;
  padding-top: 28px;
  color: var(--guide-accent);
  font-weight: 900;
}

.guide-method-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 48px;
}

.guide-method-callout > div {
  max-width: 900px;
}

@media (max-width: 900px) {
  .guide-answer,
  .guide-index,
  .guide-tool-grid {
    grid-template-columns: 1fr 1fr;
  }

  .guide-answer > div {
    grid-column: 1 / -1;
  }

  .guide-related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .guide-step-list,
  .guide-index,
  .guide-tool-grid,
  .guide-stats,
  .guide-answer {
    grid-template-columns: 1fr;
  }

  .portal-guide-grid {
    grid-template-columns: 1fr;
  }

  .guide-method-callout {
    align-items: stretch;
    flex-direction: column;
  }

  .guide-index-card {
    min-height: 0;
  }

  .guide-card-number {
    font-size: 72px;
  }
}

.home-hero,
.content-section,
.site-cta,
.prose-page,
.error-page {
  width: min(var(--content-width), calc(100% - var(--page-gutter)));
  margin-inline: auto;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(420px, 1.06fr);
  gap: 14px;
  margin-top: 24px;
}

.home-hero-copy,
.home-visual,
.home-metrics,
.content-grid article,
.steps-grid li,
.site-cta,
.page-heading,
.prose-sections section,
.method-list li,
.notice-panel,
.form-message,
.error-page {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  border-radius: 8px;
}

.home-hero-copy {
  padding: clamp(28px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-hero-copy h1,
.page-heading h1,
.error-page h1 {
  margin: 12px 0 18px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.12;
}

.home-hero-copy p,
.page-heading > p,
.error-page p {
  margin: 0;
  color: var(--soft);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-actions .btn,
.site-cta .btn,
.error-page .btn {
  text-decoration: none;
}

.home-visual {
  min-height: 430px;
  margin: 0;
  overflow: hidden;
}

.home-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.page-visual {
  aspect-ratio: 16 / 8;
  margin: 14px 0 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  border-radius: 8px;
}

.page-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.home-metrics {
  grid-column: 1 / -1;
  margin: 0;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.home-metrics div {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
  border-radius: 8px;
}

.home-metrics dt {
  color: var(--muted);
}

.home-metrics dd {
  margin: 0;
  font-size: 34px;
  font-weight: 900;
}

.content-section {
  padding-top: 72px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 28px;
}

.section-heading h2,
.site-cta h2,
.prose-sections h2,
.notice-panel h2 {
  margin: 8px 0 12px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.04;
}

.section-heading p,
.content-grid p,
.steps-grid p,
.site-cta p,
.prose-sections p,
.method-list p,
.notice-panel p {
  margin: 0;
  color: var(--muted);
}

.content-grid {
  display: grid;
  gap: 10px;
}

.four-columns {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.three-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-grid article {
  min-height: 190px;
  padding: 26px;
}

.content-grid h3,
.steps-grid h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.steps-grid,
.method-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.steps-grid li {
  min-height: 220px;
  padding: 26px;
}

.steps-grid li > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  color: #0d0f14;
  background: var(--cyan);
  border-radius: 8px;
  font-weight: 900;
}

.site-cta {
  margin-top: 72px;
  margin-bottom: 48px;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-cta h2 {
  margin-top: 0;
}

.prose-page {
  margin-top: 34px;
  margin-bottom: 56px;
}

.prose-page.narrow {
  width: min(var(--content-width), calc(100% - var(--page-gutter)));
}

.page-heading {
  padding: clamp(28px, 5vw, 56px);
}

.page-heading small {
  display: block;
  margin-top: 18px;
  color: var(--muted);
}

.prose-sections,
.method-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.prose-sections section,
.method-list li,
.notice-panel {
  padding: 28px;
}

.legal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.legal-grid section {
  min-height: 210px;
}

.legal-grid .legal-contact,
.legal-grid .legal-ai-notice {
  min-height: 0;
}

.legal-contact a {
  color: var(--text);
  font-weight: 800;
  text-underline-offset: 4px;
}

.legal-ai-notice {
  border-color: rgba(53, 194, 255, 0.42) !important;
  background: linear-gradient(135deg, rgba(53, 194, 255, 0.12), rgba(179, 146, 255, 0.08)) !important;
}

.prose-sections h2,
.method-list h2,
.notice-panel h2 {
  margin-top: 0;
  font-size: 26px;
}

.notice-panel {
  margin-top: 14px;
  border-color: rgba(255, 191, 71, 0.42);
}

.error-page {
  margin-top: 34px;
  margin-bottom: 56px;
  padding: clamp(32px, 6vw, 72px);
}

.error-page .btn {
  margin-top: 24px;
}

.form-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.form-message {
  margin: 0;
  padding: 16px 18px;
}

.form-message.error {
  color: #ffd9d5;
  border-color: rgba(255, 107, 87, 0.5);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

@media (max-width: 1120px) {
  .site-header {
    align-items: flex-start;
  }

  .header-actions {
    align-items: flex-end;
    flex-direction: column;
  }

  .site-switcher {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .home-hero {
    grid-template-columns: 1fr;
  }

  .home-visual {
    min-height: 0;
    aspect-ratio: 1.9 / 1;
  }

  .four-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 740px) {
  .home-hero,
  .content-section,
  .site-cta,
  .prose-page,
  .prose-page.narrow,
  .error-page {
    width: calc(100% - 24px);
  }

  .header-actions {
    align-items: stretch;
  }

  .site-switcher {
    justify-content: flex-start;
  }

  .site-switcher a {
    flex: 0 0 auto;
  }

  .language-switcher summary {
    white-space: nowrap;
  }

  .brand-link img {
    width: 220px;
  }

  .brand-link--footer img {
    width: 210px;
  }

  .home-metrics,
  .four-columns,
  .three-columns,
  .steps-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .home-metrics div,
  .site-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .content-section {
    padding-top: 48px;
  }

  .site-cta {
    margin-top: 48px;
  }
}

@media (max-width: 1080px) {
  .choice-guide {
    grid-template-columns: 1fr;
  }

  .decision-checklist dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .visual-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .context-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1081px) and (max-width: 1320px) {
  .visual-guide-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .context-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 580px) {
  .choice-guide-grid {
    grid-template-columns: 1fr;
  }

  .choice-guide-intro,
  .choice-card-body {
    padding: 22px;
  }

  .decision-checklist dl {
    grid-template-columns: 1fr;
  }

  .visual-guide,
  .context-gallery {
    margin-top: 46px;
  }

  .visual-guide-grid,
  .context-gallery-grid {
    grid-template-columns: 1fr;
  }
}

.glossary-visual img { width: 100%; height: auto; display: block; }
.glossary-controls { margin: 32px 0 18px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; }
.glossary-controls label { font-weight: 700; }
.glossary-controls input { min-width: min(100%, 320px); flex: 1; max-width: 540px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--panel-solid); color: var(--text); font: inherit; }
.glossary-controls input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.glossary-controls p { margin: 0; color: var(--muted); }
.glossary-nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 34px; }
.glossary-nav a { color: var(--soft); text-decoration: none; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); }
.glossary-nav a:hover, .glossary-nav a:focus-visible { border-color: var(--cyan); color: var(--text); }
.glossary-section { scroll-margin-top: 24px; }
.glossary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.glossary-card { position: relative; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.glossary-card h3 { margin: 0 36px 12px 0; color: var(--text); }
.glossary-card p { margin: 0; color: var(--soft); line-height: 1.65; }
.glossary-card > a { position: absolute; top: 20px; right: 22px; color: var(--cyan); text-decoration: none; }
.glossary-page [hidden] { display: none !important; }
@media (max-width: 700px) { .glossary-grid { grid-template-columns: 1fr; } .glossary-card { padding: 20px; } }
.comparison-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.comparison-grid > div { padding: 1.25rem; border: 1px solid #343846; border-radius: 12px; background: #11141c; }
.comparison-grid dt { font-weight: 700; margin-bottom: .6rem; }
.comparison-grid dd { margin: 0; line-height: 1.65; color: #c5cad5; }
.service-profile-link { display: block; padding: .5rem 1rem .8rem; font-size: .8rem; }
.service-update-note { margin: .6rem 1rem; font-size: .85rem; color: #c5cad5; line-height: 1.5; }
.cost-calculator label { display: grid; gap: .6rem; }
.cost-calculator input { width: 100%; padding: .8rem; border: 1px solid #555b6c; border-radius: 8px; background: #10131a; color: #f4f4f0; font: inherit; }
.cost-calculator output { display: block; padding: 1.25rem 0; font-weight: 700; line-height: 1.6; }
.cost-calculator input:focus-visible { outline: 3px solid #89c6ff; outline-offset: 3px; }
@media (max-width: 640px) { .comparison-grid { grid-template-columns: 1fr; } }

/* Shared layout: readable columns and bounded editorial media. */
.portal-shell { max-width: 1400px; }
.profile-family { margin-top: 32px; }
.profile-family > p { color: var(--muted); max-width: 76ch; }
.profile-family h2 { font-size: 28px; scroll-margin-top: 24px; }
.profile-family h3 { font-size: 23px; }
.hero-grid { align-items: start; }
.hero-panel, .page-heading { padding: clamp(22px, 3vw, 36px); }
.hero-copy h1 { font-size: clamp(34px, 4vw, 56px); line-height: 1.1; }
.hero-copy p, .page-heading > p { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; max-width: 75ch; }
.hero-metrics { margin-top: 24px; }
.command-panel { grid-template-rows: auto auto auto auto auto; }
.command-panel textarea { height: 160px; min-height: 120px; }
.portal-visual { aspect-ratio: 4 / 1; }
.guide-visual { width: 100%; height: clamp(200px, 25vw, 360px); aspect-ratio: auto; }
.gallery-credit { margin: 16px 0 24px; }
.atlas-panel { min-height: 0; }
.atlas-head { min-height: 0; }
.prose-page.narrow { max-width: 960px; }
.prose-sections p, .guide-step p, .notice-panel p { max-width: 76ch; line-height: 1.65; }
.breadcrumbs span[aria-current] { white-space: normal; }
.guide-step-list li, .guide-tool-card, .legal-grid section, .content-grid article, .steps-grid li { min-height: 0; }
.guide-tool-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.service-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); align-items: start; }
.service-card { height: auto; }
.service-body { min-height: 0; padding-bottom: 16px; }
.service-tags { min-height: 0; }
.service-tags span, .detail-meta span, .service-link { font-size: 13px; min-height: 28px; }
.detail-panel { min-height: 0; }
.category-btn { grid-template-columns: minmax(0, 1fr) auto; padding-block: 8px; min-height: 44px; }
.category-btn span { white-space: normal; text-overflow: clip; }
.service-context, .service-org, .service-tags, .service-permalink, .service-profile-link, .service-update-note { font-size: 14px; }
#category-kicker { display: block; font-size: 15px; text-transform: none; font-weight: 500; line-height: 1.5; max-width: 65ch; }
.compare-picker { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; gap: 16px; align-items: end; margin: 20px 0; }
.compare-picker label { display: grid; gap: 8px; font-weight: 700; }
.compare-picker select { width: 100%; min-width: 0; min-height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-solid); color: var(--text); font: inherit; }
.tool-comparison-scroll { overflow-x: auto; border-radius: 16px; }
.tool-comparison { width: 100%; border-collapse: collapse; table-layout: fixed; }
.tool-comparison caption { text-align: left; padding: 12px 0; }
.tool-comparison th, .tool-comparison td { padding: 16px; vertical-align: top; text-align: left; border-bottom: 1px solid var(--line); line-height: 1.65; overflow-wrap: anywhere; }
.tool-comparison th:first-child { width: 20%; }
.comparison-scroll-hint { display: none; }
.guide-visual { position: relative; }
.guide-visual figcaption { position: absolute; inset: auto 0 0; padding: 8px 14px; background: rgba(8,9,12,.85); color: var(--text); font-size: 13px; line-height: 1.5; }
.tool-comparison tbody th { font-size: 14px; }
@media (max-width: 740px) { .compare-picker { grid-template-columns: 1fr; } .tool-comparison { min-width: 640px; } .comparison-scroll-hint { display: block; color: var(--muted); font-size: 14px; } }
.btn, .icon-btn, .switch-btn, .preset-btn, .hero-jumps a, .favorite-btn { min-height: 44px; }
.favorite-btn { width: 44px; }
.panel-topline { flex-wrap: wrap; font-size: 13px; }
.route-preview button strong { font-size: 15px; }
.route-preview button small { font-size: 13px; }
.route-preview button { min-height: 44px; }
main :is(article, section, aside, header), .atlas-head > div { min-width: 0; }
main :is(h1,h2,h3,p,a,dt,dd) { overflow-wrap: anywhere; }
@media (min-width: 1081px) {
  .portal-workspace { grid-template-columns: 230px minmax(0, 1fr) 280px; }
  .detail-panel { position: sticky; grid-column: auto; max-height: calc(100vh - 28px); overflow-y: auto; }
  .filter-panel { max-height: calc(100vh - 28px); overflow-y: auto; }
}
.contextual-readings .two-columns { grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (max-width: 740px) { .contextual-readings .two-columns { grid-template-columns: 1fr; } }
@media (max-width: 1080px) {
  .portal-workspace { grid-template-columns: 1fr; }
  .detail-panel { position: static; grid-column: auto; }
}
@media (max-width: 740px) {
  .hero-copy h1 { font-size: 36px; }
  .page-heading, .hero-panel { padding: 22px; }
  .portal-visual { aspect-ratio: 16 / 9; max-height: 240px; }
  .guide-visual { height: 220px; max-height: 240px; }
  .service-grid { grid-template-columns: 1fr; }
  .guide-step-list, .guide-answer, .comparison-grid, .legal-grid { grid-template-columns: 1fr; }
  .guide-index-card h2, .guide-answer h2 { font-size: 28px; }
  .prose-sections section, .notice-panel { padding: 22px; }
}
