.site-menu {
  position: relative;
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}
.site-menu > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.site-menu > summary::-webkit-details-marker { display: none; }
.site-menu > summary:hover, .site-menu[open] > summary { background: var(--subtle); }
.site-menu nav {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(250px, calc(100vw - 32px));
  max-height: calc(100vh - 88px);
  max-height: calc(100dvh - 88px);
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.site-menu a, .site-menu-calculators > summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 12px;
  border-radius: 7px;
  color: var(--navy);
}
.site-menu a:hover, .site-menu a[aria-current], .site-menu-calculators > summary:hover { background: var(--subtle); }
.site-menu-calculators > summary { display: list-item; cursor: pointer; padding-top: 10px; }
.site-menu-calculators a { padding-left: 24px; }
.editorial-question { margin: .6rem 0; padding: .6rem .8rem; border: 1px solid var(--border); border-radius: 8px; }
.editorial-question summary { cursor: pointer; font-weight: 600; }
.site-menu :focus-visible, .editorial :focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.editorial-shell {
  --editorial-ad-gap: clamp(24px, 3.5vw, 52px);
}
.editorial-shell :is(#ad-compact, #ad-bottom) {
  max-width: 68rem;
  margin-inline: auto;
}
.editorial-shell #ad-compact { margin-bottom: var(--editorial-ad-gap); }
.editorial-shell #ad-bottom { margin-top: var(--editorial-ad-gap); }
.editorial-shell .ad-label { margin-bottom: 6px; }
@media (min-width: 1100px) {
  .app-shell.editorial-shell.ads-visible { column-gap: clamp(20px, 2.5vw, 48px); }
  .editorial-shell > .side-ad { margin-top: 20px; }
}
.editorial {
  max-width: 58rem;
  margin: 0 auto;
  padding: clamp(18px, 3.5vw, 48px);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  color: var(--fg);
  overflow-wrap: anywhere;
}
.editorial h1 { font-size: clamp(1.8rem, 4vw, 2.75rem); line-height: 1.15; margin: 1.2rem 0 .75rem; }
.editorial h2 { font-size: clamp(1.15rem, 3vw, 1.4rem); line-height: 1.3; margin: 0 0 .45rem; }
.editorial p, .editorial li { max-width: 72ch; font-size: 1rem; line-height: 1.65; }
.editorial section { margin: 1.75rem 0; }
.editorial section:last-child { margin-bottom: 0; }
.editorial .editorial-date { color: var(--muted); font-size: .85rem; }
.editorial a { color: var(--navy); text-decoration: underline; text-underline-offset: .2em; }
.editorial-calculator-link a {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  padding: .45rem .85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  font-weight: 650;
}
.editorial-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.editorial-table caption { text-align: left; font-weight: 650; margin-bottom: .4rem; }
.editorial-table th, .editorial-table td { padding: .55rem .45rem; border-bottom: 1px solid var(--border); }
.editorial-table thead { background: var(--subtle); }
.editorial-table th, .editorial-table td { text-align: right; }
.editorial-table th:first-child { text-align: left; }
.editorial-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .55rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.editorial-breadcrumb li { font-size: .85rem; }
.editorial-breadcrumb li + li::before { content: '/'; margin-right: .55rem; color: var(--muted); }
.editorial-card { padding: 1.1rem; border: 1px solid var(--border); border-radius: 12px; background: var(--subtle); }
.editorial-card p { margin: 0; }
@media (max-width: 550px) {
  .site-menu > summary { padding: 0; }
  .site-menu-label { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
}

.editorial-card + .editorial-card { margin-top: .75rem; }
.calculator-faq summary h3 { display: inline; font-size: 1em; }

.calculator-reading{display:flex;flex-wrap:wrap;gap:.5rem 1.25rem;margin:1.25rem 0;font-size:.95rem;line-height:1.6}
.editorial-contents{margin:1.5rem 0;padding:1rem 0;border-block:1px solid var(--border)}
.editorial-contents ol{margin:0;padding-left:1.25rem}.editorial-contents li+li{margin-top:.5rem}
.editorial section[id]{scroll-margin-top:5rem}.privacy-usage-controls{padding-block:1.25rem;border-bottom:1px solid var(--border)}
.privacy-usage-controls label{display:flex;align-items:center;gap:.65rem;min-height:44px;font-size:1rem}.privacy-usage-controls input{width:1.1rem;height:1.1rem}
@media(max-width:650px){.editorial-table{font-size:.9rem}.editorial-table th,.editorial-table td{padding:.5rem .25rem}}
