/* A connected sitemap. Dark/light tokens inherit from the proposal landing. */
.os-sitemap {
  --os-ink: var(--offer-ink, #102321);
  --os-gold: var(--offer-gold, #c9b27c);
  --os-paper: var(--offer-paper, #f1eee6);
  --os-muted: #59665e;
  --os-line: color-mix(in srgb, var(--os-ink) 17%, transparent);
  color: var(--os-ink);
  font-family: inherit;
  width: 100%;
  min-width: 0;
  position: relative;
  isolation: isolate;
  background: var(--os-paper);
  padding: clamp(20px, 2.8vw, 36px);
  border: 1px solid #f1eee615;
  border-radius: 16px;
}
.os-sitemap *, .os-sitemap *::before, .os-sitemap *::after { box-sizing: border-box; }
.os-sitemap button { font: inherit; }
.os-sitemap svg { flex: none; }
.os-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 auto 36px; }
.os-eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; }
.os-eyebrow > span { width: 6px; height: 6px; border-radius: 50%; background: #8f7849; box-shadow: 0 0 0 5px #c9b27c1c; }
.os-instruction { color: var(--os-muted); font-size: 14px; line-height: 1.6; }
.os-tree { position: relative; padding: 0 0 2px; }
.os-connectors { position: absolute; inset: 0; pointer-events: none; overflow: visible; z-index: -1; }
.os-connector-lines path { fill: none; stroke: var(--os-line); stroke-width: 1.25; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s cubic-bezier(.22,1,.36,1), stroke .5s; }
.os-connector-lines path.is-active { stroke: #a58b52; stroke-width: 1.5; }
.os-origin { width: fit-content; max-width: 100%; margin: 0 auto; display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 1px solid color-mix(in srgb, var(--os-ink) 30%, transparent); border-radius: 16px; background: var(--os-ink); color: var(--os-paper); box-shadow: 0 14px 36px #10232112; }
.os-origin-dot { display: block; width: 26px; height: 26px; border: 1px solid var(--os-gold); border-radius: 50%; position: relative; }
.os-origin-dot::before, .os-origin-dot::after { content: ''; position: absolute; border: 1px solid var(--os-gold); inset: 6px; border-radius: 50%; }
.os-origin-dot::after { inset: -5px; border-color: #c9b27c33; }
.os-origin strong { display: block; font-size: 20px; line-height: 1.2; letter-spacing: -.035em; font-weight: 500; }
.os-origin small { display: block; margin-top: 1px; color: #f1eee6a6; font-size: 14px; line-height: 1.4; }
.os-origin-tag { margin-left: 28px; padding: 6px 9px; border: 1px solid #c9b27c4d; border-radius: 50px; color: var(--os-gold); font-size: 14px; white-space: nowrap; flex-shrink: 0; }
.os-branches { display: flex; gap: 12px; align-items: stretch; margin-top: 72px; }
.os-branch { flex: 1 1 0; min-width: 0; }
.os-branch-button { position: relative; display: flex; flex-direction: column; width: 100%; min-height: 184px; padding: 19px 16px; background: var(--os-paper); color: var(--os-ink); text-align: left; border: 1px solid var(--os-line); border-radius: 13px; cursor: pointer; transition: background .4s, border-color .4s, box-shadow .4s, transform .45s cubic-bezier(.22,1,.36,1); }
.os-branch-button:hover { border-color: #a58b52; transform: translateY(-3px); }
.os-branch-button:focus-visible { outline: 2px solid #8f7849; outline-offset: 5px; }
.os-branch-icon { display: flex; width: 35px; height: 35px; align-items: center; justify-content: center; color: #8f7849; margin-bottom: 19px; }
.os-branch-icon svg { width: 27px; height: 27px; }
.os-branch-name { display: block; font-size: clamp(16px, 1.4vw, 20px); font-weight: 600; letter-spacing: -.04em; line-height: 1.3; }
.os-branch-subtitle { display: block; font-size: 14px; line-height: 1.5; color: var(--os-muted); margin-top: 8px; }
.os-branch-index { position: absolute; top: 18px; right: 15px; color: var(--os-muted); font-size: 14px; }
.os-branch-toggle { display: none; }
.os-branch.is-selected .os-branch-button { border-color: #a58b52; background: #e5dfcf; box-shadow: 0 10px 24px #10232108; }
.os-branch.is-selected .os-branch-icon { color: var(--os-ink); }
.os-detail-host { padding-top: 56px; }
.os-detail-host:has(> .os-detail[hidden]) { padding-top: 0; }
.os-detail[hidden] { display: none; }
.os-detail { position: relative; border: 1px solid #b5ac974f; border-radius: 20px; background: #f9f7f0; padding: clamp(26px, 3.4vw, 52px); }
.os-detail::before { content: ''; position: absolute; width: 7px; height: 7px; background: #a58b52; top: -4px; left: calc(50% - 3.5px); border-radius: 50%; box-shadow: 0 0 0 5px var(--os-paper); }
.os-detail-intro { text-align: center; max-width: 690px; margin: 0 auto; }
.os-detail-kind { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #7f693b; }
.os-detail-kind svg { width: 18px; height: 18px; }
.os-detail-counter { padding-left: 12px; margin-left: 4px; border-left: 1px solid #aa956659; color: var(--os-muted); }
.os-detail h3 { color: var(--os-ink); font-size: clamp(27px, 3.15vw, 43px); letter-spacing: -.055em; font-weight: 500; line-height: 1.15; margin: 18px 0 13px; }
.os-detail-intro > p { margin: 0 auto; max-width: 600px; font-size: 15px; line-height: 1.7; color: var(--os-muted); }
.os-subtree { display: flex; align-items: stretch; position: relative; margin-top: 54px; gap: 22px; }
.os-subtree::before { content: ''; position: absolute; height: 1px; background: #ad9a6b80; top: -20px; left: calc(50% / var(--os-leaves)); right: calc(50% / var(--os-leaves)); }
.os-subtree-origin { width: 1px; height: 20px; background: #ad9a6b80; position: absolute; top: -40px; left: 50%; }
.os-page-node { position: relative; flex: 1 1 0; min-width: 0; padding: 24px 0 0; border-top: 1px solid #ad9a6b80; }
.os-page-node::before { content: ''; position: absolute; width: 1px; height: 20px; background: #ad9a6b80; top: -21px; left: 50%; }
.os-page-node::after { content: ''; position: absolute; width: 5px; height: 5px; background: #a58b52; top: -3px; left: calc(50% - 2.5px); border-radius: 50%; }
.os-page-type { display: block; font-size: 14px; color: #7f693b; }
.os-page-node h4 { font-size: clamp(18px, 1.7vw, 23px); color: var(--os-ink); line-height: 1.3; font-weight: 600; letter-spacing: -.04em; margin: 11px 0 9px; }
.os-page-node > p { font-size: 14px; line-height: 1.65; color: var(--os-muted); margin: 0 0 19px; }
.os-page-leaves { position: relative; display: flex; flex-direction: column; gap: 10px; margin-left: 3px; padding: 0 0 0 17px; border-left: 1px solid #1023211c; }
.os-page-leaves > span { font-size: 14px; color: #3f514a; line-height: 1.5; position: relative; }
.os-page-leaves > span::before { content: ''; width: 9px; height: 1px; background: #10232126; position: absolute; top: .7em; left: -17px; }
.os-template-flow { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 25px 0 3px; margin-top: 30px; border-top: 1px solid #10232112; }
.os-template-source { display: flex; align-items: center; gap: 12px; }
.os-template-flow strong { font-size: 15px; font-weight: 500; color: var(--os-ink); }
.os-template-stack { display: block; position: relative; width: 29px; height: 32px; border: 1px solid #8f7849; border-radius: 4px; }
.os-template-stack::before, .os-template-stack::after { content: ''; position: absolute; width: 29px; height: 32px; border: 1px solid #8f784970; border-radius: 4px; left: 4px; top: -4px; }
.os-template-stack::after { left: 8px; top: -8px; border-color: #8f784930; }
.os-template-line { flex: 0 1 108px; height: 1px; background: #8f784970; position: relative; }
.os-template-line::after { content: ''; position: absolute; width: 6px; height: 6px; border-top: 1px solid #8f7849; border-right: 1px solid #8f7849; right: 0; top: -2.5px; transform: rotate(45deg); }
.os-template-destination { display: flex; flex-direction: column; gap: 5px; }
.os-template-destination > span { font-size: 14px; color: var(--os-muted); }
.os-detail-note { margin: 28px auto 0; padding-top: 20px; border-top: 1px solid #10232112; max-width: 800px; text-align: center; font-size: 14px; line-height: 1.7; color: var(--os-muted); }
.os-global { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-top: 30px; padding: 22px 0; border-bottom: 1px solid var(--os-line); }
.os-global > span { font-size: 14px; color: var(--os-muted); }
.os-global > div { display: flex; gap: 12px 24px; flex-wrap: wrap; font-size: 14px; color: var(--os-ink); }
.os-disclaimer { color: var(--os-muted); font-size: 14px; line-height: 1.7; margin: 18px 0 0; }

@media (prefers-reduced-motion: no-preference) {
  .os-sitemap .os-origin, .os-sitemap .os-branch-button { opacity: 0; transform: translateY(16px); filter: blur(5px); }
  .os-in-view .os-origin { animation: os-arrive .9s cubic-bezier(.22,1,.36,1) both; }
  .os-in-view .os-branch-button { animation: os-arrive 1s calc(.25s + var(--os-order) * .07s) cubic-bezier(.22,1,.36,1) both; }
  .os-in-view .os-connector-lines path { stroke-dashoffset: 0; }
  .os-in-view .os-page-node { animation: os-arrive .75s calc(.15s + var(--os-node-order) * .08s) cubic-bezier(.22,1,.36,1) both; }
  @keyframes os-arrive { from { opacity: 0; transform: translateY(16px); filter: blur(5px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }
}

@media (min-width: 761px) and (max-width: 1040px) {
  .os-branches { gap: 8px; }
  .os-branch-button { padding: 17px 11px; min-height: 198px; }
  .os-branch-subtitle { font-size: 14px; }
  .os-branch-index { right: 10px; }
  .os-subtree { gap: 18px; }
  .os-detail { padding: 30px 24px; }
}

@media (max-width: 760px) {
  .os-heading { align-items: flex-start; flex-direction: column; gap: 10px; margin-bottom: 30px; }
  .os-eyebrow { font-size: 14px; gap: 8px; }
  .os-heading .os-instruction { text-align: left; max-width: none; }
  .os-instruction { font-size: 14px; }
  .os-tree { overflow-anchor: none; }
  .os-origin { display: grid; grid-template-columns: 26px minmax(0, 1fr); width: calc(100% - 32px); margin: 0 0 0 32px; padding: 17px 18px; gap: 8px 12px; border-radius: 13px; }
  .os-origin-dot { grid-column: 1; grid-row: 1 / 3; }
  .os-origin > span:nth-child(2) { grid-column: 2; grid-row: 1; min-width: 0; }
  .os-origin strong { font-size: 20px; }
  .os-origin-tag { grid-column: 2; grid-row: 2; justify-self: start; margin-left: 0; font-size: 14px; line-height: 1.4; padding: 5px 8px; }
  .os-branches { display: flex; flex-direction: column; gap: 16px; margin: 49px 0 0 32px; }
  .os-branch { width: 100%; }
  .os-branch-button { display: block; min-height: 98px; padding: 20px 44px 20px 67px; border-radius: 12px; }
  .os-branch-icon { position: absolute; top: 21px; left: 17px; margin: 0; width: 30px; height: 30px; }
  .os-branch-icon svg { width: 25px; height: 25px; }
  .os-branch-name { font-size: 21px; }
  .os-branch-subtitle { font-size: 14px; margin-top: 7px; }
  .os-branch-index { display: none; }
  .os-branch-toggle { display: block; position: absolute; right: 18px; top: 25px; font-size: 22px; line-height: 1; font-weight: 400; color: #8f7849; transition: transform .4s; }
  .os-branch.is-selected .os-branch-toggle { transform: rotate(45deg); }
  .os-detail-host { padding: 0; }
  .os-detail { margin-top: 15px; padding: 26px 20px 24px; border-radius: 12px; }
  .os-detail::before { left: 33px; top: -4px; }
  .os-detail::after { content: ''; position: absolute; top: -16px; height: 12px; width: 1px; left: 36px; background: #a58b52; }
  .os-detail-intro { text-align: left; }
  .os-detail-kind { font-size: 14px; gap: 6px; flex-wrap: wrap; }
  .os-detail-kind svg { display: none; }
  .os-detail-counter { font-size: 14px; }
  .os-detail h3 { font-size: clamp(25px, 6.3vw, 36px); margin: 19px 0 14px; }
  .os-detail-intro > p { font-size: 14px; line-height: 1.7; }
  .os-subtree { display: flex; flex-direction: column; gap: 26px; margin: 30px 0 0 3px; padding-left: 21px; }
  .os-subtree::before { top: 0; bottom: 0; left: 0; right: auto; width: 1px; height: auto; background: #ad9a6b55; }
  .os-subtree-origin { display: none; }
  .os-page-node { border: 0; padding: 0; }
  .os-page-node::before, .os-page-node::after { content: none; }
  .os-page-type { position: relative; font-size: 14px; line-height: 1.5; }
  .os-page-type::before, .os-page-type::after { content: ''; position: absolute; top: 50%; transform: translateY(-50%); background: #ad9a6b80; }
  .os-page-type::before { left: -21px; width: 17px; height: 1px; }
  .os-page-type::after { left: -6px; width: 4px; height: 4px; border-radius: 50%; background: #a58b52; }
  .os-page-node h4 { font-size: 20px; margin: 8px 0; }
  .os-page-node > p { margin-bottom: 14px; font-size: 14px; }
  .os-page-leaves { gap: 8px; }
  .os-template-flow { flex-wrap: wrap; justify-content: flex-start; gap: 18px; padding-top: 25px; margin-top: 27px; }
  .os-template-flow strong { font-size: 14px; }
  .os-template-source { gap: 14px; }
  .os-template-line { flex: 1 1 24px; max-width: 60px; }
  .os-template-destination { flex: 1 0 100%; padding-left: 0; }
  .os-template-destination > span { font-size: 14px; }
  .os-detail-note { margin-top: 24px; text-align: left; padding-top: 20px; font-size: 14px; }
  .os-global { display: block; margin-top: 28px; padding-bottom: 22px; }
  .os-global > div { margin-top: 14px; gap: 12px 20px; }
  .os-disclaimer { margin-top: 18px; }
}

@media (max-width: 370px) {
  .os-sitemap { padding: 20px 14px; }
  .os-origin { width: calc(100% - 26px); margin-left: 26px; padding: 15px; column-gap: 11px; }
  .os-branches { margin-left: 26px; }
  .os-branch-button { padding-left: 57px; padding-right: 36px; }
  .os-branch-icon { left: 13px; }
  .os-branch-name { font-size: 19px; }
  .os-detail { padding: 24px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .os-sitemap *, .os-sitemap *::before, .os-sitemap *::after { animation: none !important; transition: none !important; }
  .os-connector-lines path { stroke-dashoffset: 0; }
}

@media print {
  .os-sitemap .os-origin, .os-sitemap .os-branch-button { opacity: 1; transform: none; filter: none; }
  .os-connectors { display: none; }
  .os-branches { margin-top: 20px; }
  .os-detail { break-inside: avoid; }
}
