/* Product tour, editorial content and detail views. Shared tokens: styles.css. */
.toolkit-section { padding-bottom: 48px; }
.tour-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 4px; margin-top: 36px; }
.tour-tabs button { display: flex; align-items: center; gap: 13px; text-align: left; min-height: 64px; padding: 18px 20px; font-size: 13px; border-right: 1px solid var(--line); position: relative; transition: background .2s; }
.tour-tabs button:last-child { border-right: 0; }
.tour-tabs button > span:first-child { color: var(--muted); font-size: 10px; }
.tour-tabs button[aria-selected="true"] { background: var(--sage); }
.tour-tabs button[aria-selected="true"]::after { content: ""; position: absolute; height: 3px; bottom: -1px; left: 0; right: 0; background: var(--forest); }
.tour-tabs button:hover { background: #eef0e6; }
.tab-arrow { margin-left: auto; color: var(--accent); font-size: 18px; }
.tour-panel { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: center; min-height: 500px; padding-block: 42px; }
.tour-copy { min-width: 0; }
.tour-copy .eyebrow { font-size: 10px; letter-spacing: 1px; color: var(--muted); }
.tour-copy h3 { font: 400 40px/1.15 var(--serif); letter-spacing: -1.3px; margin: 18px 0; }
.tour-copy > p:not(.eyebrow) { color: var(--muted); font-size: 14px; max-width: 390px; line-height: 1.85; }
.tour-features { padding: 0; margin: 22px 0; list-style: none; font-size: 13px; }
.tour-features li { display: flex; gap: 10px; margin-top: 8px; }
.tour-features li::before { content: "↳"; color: var(--accent); }
.tour-copy .text-link { margin-top: 2px; }
.tour-preview { border: 1px solid #ccd4c1; background: #e9eddf; border-radius: 5px; padding: 12px 12px 0; min-width: 0; }
.tour-window-bar { display: flex; align-items: center; gap: 18px; min-height: 28px; margin-bottom: 9px; font-size: 10px; letter-spacing: .8px; color: var(--muted); }
.window-dots { color: #6c7d58; letter-spacing: 2px; font-size: 9px; }
.tour-screen { height: 340px; background: #fafbf4; overflow: hidden; border: 1px solid #d8dfcf; border-radius: 2px; }
.tour-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.tour-preview figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; min-height: 54px; }
.tour-preview figcaption button { min-height: 44px; padding: 10px 0 10px 8px; font-size: 11px; text-decoration: underline; text-underline-offset: 4px; }
.tour-preview figcaption button span { margin-left: 5px; font-size: 15px; }
.studio-principles { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 24px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.studio-principles p:first-child { color: var(--forest); font-size: 12px; }
.studio-principles p:first-child span { margin-right: 6px; }

/* Explanatory drawings, clearly separate from recorded application views. */
.colour-study { padding: 28px; background: var(--sage); border: 1px solid #ccd4c1; border-radius: 4px; }
.colour-study-label { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 10px; letter-spacing: .6px; }
.colour-comparison { display: grid; grid-template-columns: minmax(0,1fr) 24px minmax(0,1fr); align-items: center; gap: 18px; margin-block: 30px; }
.colour-comparison > div > p { font-size: 11px; text-align: center; margin-top: 16px; color: var(--muted); }
.comparison-arrow { font-size: 26px; color: var(--accent); padding-bottom: 35px; }
.petal-art, .pixel-flower { width: 100%; max-width: 175px; aspect-ratio: 1; position: relative; background: #254135; margin-inline: auto; border-radius: 2px; }
.petal-art { display: flex; align-items: center; justify-content: center; overflow: hidden; }
.petal-art > span { width: 34%; height: 34%; border-radius: 70% 10% 70% 10%; background: #bfa369; position: absolute; top: 18%; left: 32%; transform: rotate(45deg); transform-origin: 50% 95%; }
.petal-art > span:nth-child(2) { transform: rotate(135deg); }
.petal-art > span:nth-child(3) { transform: rotate(225deg); }
.petal-art > span:nth-child(4) { transform: rotate(315deg); }
.petal-art i { position: absolute; width: 12%; height: 12%; background: #e4dfc9; border-radius: 50%; }
.pixel-flower { background-image: linear-gradient(#ffffff18 1px, transparent 1px), linear-gradient(90deg,#ffffff18 1px, transparent 1px); background-size: 12.5% 12.5%; }
.pixel-flower::before { content: ""; position: absolute; inset: 12.5%; background: #bfa369; clip-path: polygon(33% 0,66% 0,66% 17%,83% 17%,83% 33%,100% 33%,100% 66%,83% 66%,83% 83%,66% 83%,66% 100%,33% 100%,33% 83%,17% 83%,17% 66%,0 66%,0 33%,17% 33%,17% 17%,33% 17%); }
.pixel-flower::after { content: ""; position: absolute; inset: 37.5%; background: #e4dfc9; }
.colour-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; font-size: 11px; color: var(--muted); }
.colour-chips span { display: flex; gap: 7px; align-items: center; }
.colour-chips i { width: 12px; height: 12px; border-radius: 50%; background: var(--chip); border: 1px solid #59664a60; }
.colour-study figcaption { margin-top: 24px; padding-top: 16px; border-top: 1px solid #cbd4be; font-size: 12px; line-height: 1.8; color: var(--muted); }
.layout-story { padding: 26px; background: #e9eddf; border: 1px solid #d0d7c6; border-radius: 4px; min-width: 0; }
.layout-story-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.layout-story-top .eyebrow { font-size: 10px; letter-spacing: 1px; }
.layout-story-top > span { color: var(--muted); font-size: 10px; letter-spacing: .6px; }
.layout-story img { width: 100%; height: auto; border: 1px solid #d3dac9; border-radius: 2px; }
.layout-story figcaption { padding-top: 24px; }
.layout-story figcaption strong { font: 400 28px/1.2 var(--serif); letter-spacing: -.6px; }
.layout-story figcaption p { color: var(--muted); font-size: 14px; line-height: 1.8; margin-top: 12px; }
.layout-story button { margin-top: 18px; padding: 0; border-radius: 0; }

.journal-section { background: #edf0e6; border-block: 1px solid var(--line); }
.notes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.note-card { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; }
.note-content { height: 100%; display: flex; flex-direction: column; }
.note-visual { height: 190px; position: relative; display: grid; place-items: center; overflow: hidden; border-radius: 3px 3px 0 0; }
.note-sections { background: #dce2ca; }
.mini-saree { display: flex; width: 78%; height: 82px; border-block: 9px double #bda370; background: #354939; transform: rotate(-8deg); }
.mini-saree span:first-child { width: 19%; border-right: 2px solid #c0aa72; background: #40563f; }
.mini-saree span:nth-child(2) { width: 48%; background: radial-gradient(#c6ad71 1.4px, transparent 1.7px); background-size: 13px 13px; }
.mini-saree span:last-child { width: 33%; background: repeating-linear-gradient(90deg,#a08c55 0 3px,transparent 3px 11px); border-left: 2px solid #c0aa72; }
.note-visual-caption { position: absolute; bottom: 15px; left: 20px; right: 14px; color: #4c5d40; font-size: 9px; letter-spacing: .7px; }
.note-grid { background: #e9dfd1; }
.grid-motif { width: 105px; height: 105px; background-color: #99674c; transform: rotate(9deg); background-image: linear-gradient(#e5d6bc70 1px,transparent 1px),linear-gradient(90deg,#e5d6bc70 1px,transparent 1px); background-size: 13px 13px; position: relative; }
.grid-motif::after { content: ""; position: absolute; inset: 13px; background: #e5d6bc; clip-path: polygon(33% 0,66% 0,66% 17%,83% 17%,83% 33%,100% 33%,100% 66%,83% 66%,83% 83%,66% 83%,66% 100%,33% 100%,33% 83%,17% 83%,17% 66%,0 66%,0 33%,17% 33%,17% 17%,33% 17%); }
.note-grid .note-visual-caption { color: #77533e; }
.note-structure { background: #dce3e2; }
.twill-tile { width: 112px; height: 112px; transform: rotate(-7deg); background: repeating-linear-gradient(135deg,#2e4e55 0 11px,#c8d5cb 11px 22px); position: relative; }
.twill-tile::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(#f6f5ef80 1px,transparent 1px),linear-gradient(90deg,#f6f5ef80 1px,transparent 1px); background-size: 11px 11px; }
.note-structure .note-visual-caption { color: #47616a; }
.note-card-copy { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.note-card .eyebrow { font-size: 10px; letter-spacing: .7px; color: var(--muted); }
.note-card h3 { font: 400 30px/1.2 var(--serif); letter-spacing: -.8px; margin: 16px 0 14px; }
.note-card-copy > p:not(.eyebrow) { color: var(--muted); font-size: 13px; line-height: 1.85; margin-bottom: 22px; }
.note-read { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 14px 0 0; margin-top: auto; border-top: 1px solid var(--line); font-size: 13px; text-align: left; }
.note-read > span { font-size: 21px; color: var(--accent); transition: transform .2s; }
.note-read:hover > span { transform: translate(2px,-2px); }

.faq-section { border-top: 1px solid var(--line); display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(40px, 8vw, 110px); }
.faq-intro .eyebrow { color: var(--muted); margin-bottom: 20px; }
.faq-intro > p:not(.eyebrow) { font-size: 14px; line-height: 1.85; color: var(--muted); max-width: 290px; margin-top: 23px; }
.faq-intro .text-link { margin-top: 24px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; list-style: none; font-size: 15px; line-height: 1.6; padding-block: 24px; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary > span { color: var(--accent); font-size: 23px; line-height: 1; font-weight: 300; transition: transform .2s; flex-shrink: 0; }
.faq-list details[open] summary > span { transform: rotate(45deg); }
.faq-list details > p { font-size: 14px; line-height: 1.85; color: var(--muted); margin-bottom: 25px; padding-right: 26px; }
.faq-list details > p a { text-decoration: underline; text-underline-offset: 3px; }
.footer-directory { display: grid; grid-template-columns: 1.3fr .9fr 1fr 1fr 1.1fr; gap: 28px; padding-block: 54px 42px; }
.footer-directory > * { min-width: 0; }
.footer-directory h3 { font: 400 31px/1.2 var(--serif); letter-spacing: -.8px; }
.footer-directory > div > p { font-size: 12px; color: var(--muted); margin-top: 16px; }
.footer-directory nav { display: flex; flex-direction: column; align-items: flex-start; }
.footer-directory .eyebrow { font-size: 10px; letter-spacing: 1px; margin-bottom: 10px; color: var(--muted); }
.footer-directory nav a { display: inline-flex; align-items: center; min-height: 40px; font-size: 12px; color: var(--muted); }
.footer-directory nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-contact { margin-top: 12px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.footer-contact .legal-placeholder { display: inline; }
.footer-legal-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.footer-legal-line a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer { flex-wrap: wrap; }

/* Native dialogs keep focus inside, with a visible, sticky close control. */
dialog { width: min(1020px, calc(100% - 40px)); max-height: calc(100dvh - 40px); margin: auto; padding: 0; overflow: auto; overscroll-behavior: contain; color: var(--ink); background: var(--paper); border: 1px solid #d4dac8; border-radius: 6px; }
dialog::backdrop { background: #17271fd9; backdrop-filter: blur(4px); }
.dialog-close { display: grid; place-items: center; position: sticky; top: 12px; margin: 12px 12px -56px auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #b6c1a7; background: var(--paper); z-index: 3; }
.dialog-close:hover { background: var(--sage); }
.dialog-close:focus-visible { outline-offset: 2px; }
.dialog-layout { display: grid; grid-template-columns: .85fr 1.15fr; align-items: start; }
.dialog-art { padding: 24px; background: #e8ecdf; min-width: 0; }
.dialog-art img, .dialog-art svg { width: 100%; height: auto; object-fit: contain; max-height: none; }
.dialog-copy { padding: 70px 38px 38px; min-width: 0; }
.dialog-copy h2 { font-size: 40px; margin-block: 20px; }
.dialog-copy > p:not(.eyebrow) { color: var(--muted); font-size: 14px; line-height: 1.85; }
.dialog-facts { margin-block: 25px 0; font-size: 12px; }
.dialog-facts div { display: flex; justify-content: space-between; gap: 18px; padding-block: 11px; border-bottom: 1px solid var(--line); }
.dialog-facts dt { color: var(--muted); }
.dialog-facts dd { margin: 0; text-align: right; }
.dialog-copy .text-link { margin-top: 24px; }
.workspace-dialog { padding: 66px 28px 28px; }
.workspace-dialog h2 { font-size: 36px; margin-block: 18px; }
.workspace-dialog p { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.workspace-dialog img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 3px; }
.dialog-note { max-width: 780px; }
.note-article { padding: 64px 56px 44px; }
.note-article > h2 { font-size: 46px; margin: 22px 0 25px; }
.note-article .article-lead { font: 400 23px/1.5 var(--serif); color: #4f5f42; letter-spacing: -.4px; margin-bottom: 26px; }
.note-article > p:not(.eyebrow):not(.article-lead) { font-size: 15px; color: var(--muted); line-height: 1.9; margin-bottom: 20px; }
.note-article > h3 { font: 400 27px/1.25 var(--serif); margin: 30px 0 16px; letter-spacing: -.5px; }
.article-terms { background: var(--sage); padding: 16px 22px; margin: 25px 0; }
.article-terms div { display: grid; grid-template-columns: 90px 1fr; gap: 10px; font-size: 13px; padding-block: 9px; }
.article-terms dt { color: var(--forest); }
.article-terms dd { margin: 0; color: var(--muted); }
.note-article .text-link { margin-top: 14px; }

@media (max-width: 1100px) {
  .tour-tabs button { padding-inline: 14px; gap: 9px; font-size: 12px; }
  .tour-panel { gap: 36px; }
  .tour-copy h3 { font-size: 36px; }
  .tour-screen { height: 320px; }
  .notes-grid { gap: 20px; }
  .note-card-copy { padding: 20px; }
  .note-card h3 { font-size: 27px; }
}
@media (max-width: 900px) {
  .tour-tabs button { padding-inline: 12px; font-size: 11px; gap: 8px; }
  .tab-arrow { display: none; }
  .tour-panel { grid-template-columns: 1fr 1.05fr; gap: 28px; min-height: 510px; }
  .tour-copy h3 { font-size: 34px; }
  .tour-preview { padding: 9px 9px 0; }
  .tour-screen { height: 310px; }
  .tour-preview figcaption { flex-wrap: wrap; padding-block: 8px 0; gap: 0 10px; font-size: 10px; }
  .tour-preview figcaption button { font-size: 11px; padding-left: 0; }
  .tour-window-bar { font-size: 9px; gap: 12px; letter-spacing: .5px; }
  .studio-principles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
  .colour-study { padding: 20px; }
  .colour-comparison { gap: 9px; grid-template-columns: minmax(0,1fr) 16px minmax(0,1fr); }
  .colour-comparison > div > p { font-size: 10px; }
  .comparison-arrow { font-size: 20px; }
  .colour-chips { gap: 10px; font-size: 10px; }
  .layout-story { padding: 20px; }
  .layout-story-top > span { display: none; }
  .layout-story figcaption strong { font-size: 26px; }
  .notes-grid { gap: 14px; }
  .note-card-copy { padding: 18px; }
  .note-card h3 { font-size: 24px; }
  .note-card .eyebrow { font-size: 9px; }
  .note-visual { height: 170px; }
  .note-visual-caption { font-size: 8px; left: 14px; letter-spacing: .4px; }
  .mini-saree { height: 68px; }
  .grid-motif { width: 90px; height: 90px; }
  .twill-tile { width: 96px; height: 96px; }
  .faq-section { gap: 36px; }
  .footer-directory { grid-template-columns: 1.3fr 1fr 1.2fr; gap: 28px; }
  .footer-directory nav:last-child { grid-column: auto; }
  .footer-directory > div { grid-row: span 2; }
  .dialog-copy { padding-inline: 28px; }
}
@media (max-width: 700px) {
  .toolkit-section { padding-bottom: 36px; }
  .tour-tabs { grid-template-columns: repeat(2, minmax(0,1fr)); margin-top: 28px; }
  .tour-tabs button { min-height: 57px; padding: 15px 12px; font-size: 12px; }
  .tour-tabs button:nth-child(2) { border-right: 0; }
  .tour-tabs button:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .tour-panel { grid-template-columns: 1fr; gap: 28px; padding-block: 30px; min-height: 0; }
  .tour-copy h3 { font-size: 36px; }
  .tour-copy > p:not(.eyebrow) { max-width: none; }
  .tour-screen { height: 280px; }
  .tour-preview figcaption { flex-wrap: nowrap; padding-block: 0; gap: 12px; min-height: 52px; }
  .studio-principles { font-size: 11px; }
  .studio-principles p:first-child { grid-column: 1 / -1; }
  .colour-study { padding: 22px; }
  .colour-comparison { gap: 14px; }
  .colour-chips { gap: 18px; font-size: 11px; }
  .layout-story { padding: 22px; }
  .notes-grid { grid-template-columns: 1fr; gap: 22px; }
  .note-content { display: grid; grid-template-columns: .8fr 1.2fr; }
  .note-visual { height: 100%; min-height: 230px; border-radius: 3px 0 0 3px; }
  .note-card h3 { font-size: 27px; }
  .note-card h3 br { display: none; }
  .note-card .eyebrow { font-size: 9px; }
  .note-card-copy { padding: 22px; }
  .note-visual-caption { font-size: 8px; }
  .faq-section { grid-template-columns: 1fr; gap: 32px; }
  .faq-intro h2 { font-size: 40px; }
  .faq-intro > p:not(.eyebrow) { max-width: 400px; }
  .faq-list summary { padding-block: 22px; }
  .faq-list details > p { padding-right: 10px; }
  .footer-directory { grid-template-columns: 1fr 1fr; gap: 28px 22px; padding-block: 40px 30px; }
  .footer-directory > div { grid-column: 1 / -1; grid-row: auto; }
  .footer-directory nav:last-child { grid-column: auto; }
  .footer-directory h3 { font-size: 32px; }
  .footer-directory nav a { min-height: 44px; }
  dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  .dialog-layout { display: flex; flex-direction: column; }
  .dialog-copy { order: -1; padding: 66px 24px 28px; }
  .dialog-copy h2 { font-size: 34px; }
  .dialog-art { padding: 20px; width: 100%; }
  .dialog-art img { max-width: 440px; margin-inline: auto; }
  .workspace-dialog { padding: 66px 20px 20px; }
  .workspace-dialog h2 { font-size: 31px; }
  .note-article { padding: 64px 24px 32px; }
  .note-article > h2 { font-size: 36px; }
  .note-article .article-lead { font-size: 21px; }
  .article-terms { padding: 14px; }
  .article-terms div { grid-template-columns: 65px 1fr; gap: 12px; font-size: 12px; }
}
@media (max-width: 480px) {
  .note-content { display: flex; }
  .note-visual { height: 170px; min-height: 0; border-radius: 3px 3px 0 0; }
  .note-card h3 { font-size: 30px; }
  .note-card-copy { padding: 24px; }
  .note-visual-caption { font-size: 9px; left: 20px; }
  .mini-saree { height: 76px; width: 68%; }
  .grid-motif { width: 96px; height: 96px; }
  .twill-tile { width: 100px; height: 100px; }
  .tour-tabs button { font-size: 11px; gap: 8px; }
}
/* Local workspace access stays visible at every screen size. */
.site-header .brand {
  flex-shrink: 0;
  white-space: nowrap;
}
.header-account-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}
.account-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 43px;
  padding: 10px 19px;
  border: 1px solid #b8c0aa;
  border-radius: 30px;
  font-size: 12px;
  line-height: 1.3;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.account-login:hover {
  background: #e9eddb;
  border-color: #7b8b60;
}
.account-register {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.account-register:hover {
  background: #43553b;
  border-color: #43553b;
}
.account-register span {
  font-size: 18px;
  line-height: 1;
}
.mobile-account-actions {
  display: grid;
  gap: 5px;
  border-top: 1px solid var(--line);
  padding-top: 13px;
  margin-top: 8px;
}
.mobile-account-actions a {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (max-width: 980px) {
  .site-header {
    gap: 15px;
  }
  .desktop-nav {
    display: none;
  }
  .header-account-actions {
    margin-left: auto;
  }
  .menu-toggle {
    display: block;
    position: relative;
    width: 36px;
    height: 43px;
    padding: 7px;
    flex-shrink: 0;
  }
  .menu-toggle span {
    position: absolute;
    top: 50%;
    left: calc(50% - 11px);
    display: block;
    width: 22px;
    height: 2px;
    margin-top: -1px;
    border-radius: 1px;
    background: var(--ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .menu-toggle span:first-child { transform: translateY(-6px); }
  .menu-toggle span:last-child { transform: translateY(6px); }
  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: rotate(45deg);
  }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: rotate(-45deg);
  }
  .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 14px 32px 22px;
    background: var(--paper);
  }
  .mobile-nav a {
    padding: 10px 2px;
    font-size: 13px;
  }
}
@media (max-width: 600px) {
  .site-header {
    gap: 8px;
  }
  .header-account-actions {
    gap: 6px;
  }
  .account-link {
    min-height: 42px;
    padding: 10px 12px;
    font-size: 11px;
    gap: 7px;
  }
  .account-register span {
    font-size: 15px;
  }
  .mobile-nav {
    padding-inline: 20px;
  }
}
@media (max-width: 400px) {
  .site-header .brand {
    font-size: 25px;
    gap: 7px;
  }
  .site-header .brand img {
    width: 24px;
    height: 24px;
  }
  .account-link {
    padding-inline: 10px;
    gap: 5px;
  }
  .account-register span {
    display: none;
  }
  .menu-toggle {
    width: 31px;
    padding-inline: 5px;
  }
}

/* Preserve the local auth controls, with comfortably sized touch targets. */
.account-link { min-height: 44px; }
@media (max-width: 980px) {
  .menu-toggle { width: 44px; height: 44px; padding-inline: 11px; }
  .mobile-nav { padding-inline: var(--gutter); }
  .mobile-nav a { min-height: 44px; }
}
@media (max-width: 400px) {
  .site-header { gap: 6px; }
  .site-header .brand { font-size: 25px; gap: 7px; }
  .account-link { padding-inline: 10px; }
  .menu-toggle { width: 44px; padding-inline: 11px; }
}
@media (max-width: 420px) {
  .header-account-actions .account-login { display: none; }
}

/* Legal pages use the site shell; only the reading column limits line length. */
.legal-content { --legal-header-offset: 97px; padding-block: clamp(28px, 4vw, 48px); overflow-wrap: anywhere; font-size: 17px; line-height: 1.65; }
.legal-content [id] { scroll-margin-top: 16px; }
.legal-intro { padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.legal-intro .eyebrow { color: var(--muted); margin-bottom: 10px; }
.legal-intro h1 { font-size: clamp(34px, 4.5vw, 52px); line-height: 1.12; }
.legal-summary { margin-top: 12px; max-width: 96ch; color: var(--muted); }
.legal-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 24px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.legal-layout { display: grid; gap: 20px; align-items: start; }
.legal-reading { min-width: 0; width: 100%; max-width: 75ch; }
.legal-toc { min-width: 0; border: 1px solid var(--line); border-radius: 4px; background: var(--sage); font-size: 14px; }
.legal-toc summary { min-height: 48px; padding: 12px 16px; font-weight: 600; cursor: pointer; }
.legal-toc nav { padding: 0 8px 8px; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; }
.legal-content .legal-toc a { display: block; padding: 10px 12px; min-height: 44px; border-left: 2px solid transparent; border-radius: 2px; line-height: 1.45; text-decoration: none; }
.legal-content .legal-toc a:hover { background: #dce4b780; color: var(--forest); }
.legal-content .legal-toc a[aria-current="true"] { border-left-color: var(--forest); background: var(--sage); color: var(--forest); font-weight: 600; }
.legal-toc a:focus-visible, .legal-toc summary:focus-visible { outline-offset: -3px; }
.legal-content a { text-decoration: underline; text-underline-offset: 3px; }
.legal-content a:hover { color: var(--accent); }
.legal-key-points { padding: 20px 22px; background: var(--sage); border: 1px solid var(--line); border-radius: 4px; }
.legal-key-points h2, .legal-related h2 { font: 600 14px/1.5 var(--sans); letter-spacing: 0; }
.legal-key-points ul { margin: 10px 0 0; padding-left: 20px; }
.legal-key-points li + li { margin-top: 5px; }
.legal-section { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.legal-section h2 { font-size: clamp(22px, 2.2vw, 26px); line-height: 1.3; letter-spacing: -.025em; margin-bottom: 12px; }
.legal-section h3 { font-size: 20px; margin-block: 18px 10px; }
.legal-section p + p, .legal-section ul, .legal-section ol, .legal-section ul + p, .legal-section ol + p { margin-top: 12px; }
.legal-section ul, .legal-section ol { margin-bottom: 0; padding-left: 22px; }
.legal-section li + li { margin-top: 6px; }
.legal-help { padding: 20px 22px; margin-top: 16px; border: 1px solid var(--line); border-radius: 4px; background: #eeefe6; }
.legal-help h3 { margin-top: 0; }
.legal-related { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.legal-related h2 { flex-basis: 100%; }
.legal-related a { display: flex; align-items: center; min-width: 0; min-height: 44px; font-size: 15px; }
.legal-placeholder { background: #fff0bd; color: #5a3d0a; border: 1px solid #c7ac61; border-radius: 3px; padding: 1px 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.legal-page .footer-directory { border-top: 1px solid var(--line); }

@media (max-width: 600px) {
  .legal-content { font-size: 16px; }
  .legal-key-points, .legal-help { padding: 16px; }
}
@media (min-width: 1024px) {
  .legal-layout { grid-template-columns: clamp(240px, 20vw, 272px) minmax(0, 1fr); gap: clamp(28px, 3.2vw, 48px); }
  .legal-toc { position: sticky; top: var(--legal-header-offset); max-height: calc(100vh - var(--legal-header-offset) - 24px); max-height: calc(100dvh - var(--legal-header-offset) - 24px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; border: 0; border-right: 1px solid var(--line); border-radius: 0; padding-right: 16px; background: transparent; }
  .legal-ready .legal-toc[open] summary { list-style: none; cursor: default; padding: 0 12px 12px; min-height: 0; }
  .legal-ready .legal-toc[open] summary::-webkit-details-marker { display: none; }
  .legal-toc nav { padding: 0; }
  .legal-content .legal-toc a { padding-block: 8px; min-height: 36px; }
}
@media (forced-colors: active) {
  .legal-content .legal-toc a[aria-current="true"] { border-left-color: Highlight; text-decoration: underline; }
}
@media print {
  @page { margin: 18mm; }
  html { scroll-behavior: auto; scroll-padding-top: 0; }
  .legal-page { color: #000; background: #fff; font-size: 11pt; }
  .legal-page .header-wrap, .legal-page .skip-link, .legal-page .footer-directory,
  .legal-page .site-footer, .legal-toc { display: none; }
  .legal-content { width: 100%; max-width: none; padding: 0; font-size: 11pt; }
  .legal-layout { display: block; }
  .legal-reading { max-width: none; }
  .legal-intro { margin-bottom: 16pt; padding-bottom: 12pt; }
  .legal-intro h1 { font-size: 28pt; }
  .legal-key-points, .legal-help { padding: 12pt; background: transparent; break-inside: avoid; }
  .legal-section { margin-top: 16pt; padding-top: 12pt; }
  .legal-section h2 { font-size: 17pt; }
  .legal-section h2, .legal-section h3 { break-after: avoid; }
  .legal-content p, .legal-content li { orphans: 3; widows: 3; }
  .legal-content a, .legal-meta, .legal-summary { color: #000; }
  .legal-placeholder { color: #000; background: transparent; border-color: #777; }
}
@media (prefers-reduced-motion: reduce) {
  /* Also covers the owner's account styles declared later than the base sheet. */
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
