/* New navigation and reading layouts. Load after styles.css.
   The 2026-09-12 design guide supplies 834px UI / 735px / 1069px content
   breakpoints. Navigation switches at 1069px with an 88/72px CI header; hub
   titles are 64/56/40px to retain the existing editorial MaruBuri identity. */
:root {
  color-scheme: only light;
  --structure-gap: 20px;
  --structure-space: 112px;
  --structure-title: 32px;
  --structure-title-line: 39px;
  --structure-subtitle: 24px;
  --structure-subtitle-line: 28px;
  --structure-body: 17px;
  --structure-body-line: 27px;
  --structure-caption: 14px;
  --structure-caption-line: 22px;
  --structure-soft: #eeece4;
  --structure-shadow: 0 14px 28px #193d3414;
}

/* Compact business-field dropdowns and separate destination links. Native details
   remain usable without JavaScript. Switch to one mobile header row below
   1069px so full labels and 44px controls never need a second header row. */
.site-header.hv-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 88px;
  max-width: none;
  padding-inline: max(22px, calc((100% - 1208px) / 2));
  gap: 24px;
  overflow: visible;
}
.hv-header .brand { flex: 0 0 auto; min-height: 44px; }
.hv-header .brand img { width: 161px; height: 24px; }
.hv-header #primary-navigation {
  display: block;
  position: relative;
  width: auto;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: 15px;
  line-height: 24px;
}
.gnb-list, .gnb-submenu { list-style: none; margin: 0; padding: 0; }
.gnb-list { display: flex; align-items: center; gap: 24px; }
.gnb-item { position: relative; display: flex; align-items: center; min-width: 0; }
.gnb-link { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
.gnb-item[data-active] > .gnb-link { text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 1px; }
.gnb-contact > .gnb-link { gap: 14px; border: 1px solid var(--ink); padding-inline: 16px; }
.gnb-disclosure { position: static; border: 0; padding: 0; margin: 0; }
.gnb-disclosure:not([open]) .gnb-panel { display: none; }
.gnb-submenu-toggle { display: flex; align-items: center; justify-content: flex-start; width: auto; min-height: 44px; list-style: none; cursor: pointer; white-space:nowrap; }
.gnb-submenu-toggle::-webkit-details-marker { display: none; }
.gnb-panel {
  position: absolute;
  top: calc(100% + 21px);
  left: 0;
  right: auto;
  width: 310px;
  max-width: calc(100vw - 44px);
  min-width: 0;
  max-height: calc(100dvh - 88px);
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--structure-shadow);
}
.gnb-submenu { padding: 8px; }
.gnb-submenu a { display: flex; align-items: center; min-height: 48px; padding: 12px 16px; color: var(--ink); font-size: 15px; line-height: 24px; font-weight: 500; }
.gnb-panel a:hover, .gnb-panel a:focus-visible, .gnb-panel a[aria-current] { background: var(--sage); color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.gnb-toggle { display: none; }
.hv-header a:focus-visible, .hv-header summary:focus-visible { outline-offset: 2px; }
.gnb-submenu, .footer-column, .footer-network { overflow-wrap: anywhere; word-break: keep-all; }

.structured-footer { padding-top: 64px; }
.footer-columns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-bottom: 40px; }
.footer-column > p { display: flex; align-items: center; min-height: 44px; font-size: 14px; line-height: 22px; color: var(--ink); font-weight: 600; margin: 0 0 12px; }
.footer-column ul { list-style: none; padding: 0; margin: 0; }
.footer-column a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; line-height: 22px; color: var(--muted); }
.footer-column > p a { color: var(--ink); font-weight: 600; }
.footer-column a:hover, .structured-footer .footer-bottom a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.footer-network { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; border-top: 1px solid var(--line); padding-block: 16px; }
.footer-network > span { font-size: 14px; line-height: 22px; color: var(--muted); margin-right: auto; }
.footer-network a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 14px; line-height: 22px; color: var(--ink); }
.footer-network a:hover { text-decoration: underline; text-underline-offset: 4px; }
.structured-footer .footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; margin-right: 20px; }
.structured-footer .footer-bottom { align-items: baseline; }

@media (max-width: 1068px) {
  .site-header.hv-header { height: auto; min-height: 72px; padding: 0 24px; flex-wrap: wrap; gap: 0; }
  .site-header.hv-header:not(.gnb-ready) { position: relative; }
  .hv-header .brand { min-height: 72px; }
  .hv-header .brand img { width: 148px; height: 22px; }
  .hv-header #primary-navigation { position: static; width: 100%; max-height: calc(100dvh - 72px); overflow-y: auto; overflow-x: hidden; padding: 8px 0 24px; }
  .gnb-list { display: block; }
  .gnb-item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 44px; border-top: 1px solid var(--line); }
  .gnb-link { grid-column: 1; min-height: 56px; font-size: 20px; line-height: 27px; white-space: normal; padding-block: 14px; }
  .gnb-item:not(.has-children) > .gnb-link { grid-column: 1 / -1; }
  .gnb-item[data-active] > .gnb-link { text-underline-offset: 5px; }
  /* Keep the native details-content wrapper out of the 44px toggle column. */
  .gnb-disclosure { display: block; grid-column: 1 / -1; }
  .gnb-submenu-toggle { position: static; width:100%; min-height:56px; padding-block:14px; font-size:20px; line-height:27px; white-space:normal; }
  .gnb-panel { position: static; width: 100%; max-width: none; min-width: 0; max-height: none; overflow: visible; grid-column: 1 / -1; border: 0; box-shadow: none; background: transparent; }
  .gnb-submenu { padding: 0 0 16px 14px; }
  .gnb-submenu a { min-height: 48px; padding: 10px 8px; font-size: 17px; line-height: 27px; }
  .gnb-contact { margin-top: 16px; border-top: 0; }
  .gnb-contact > .gnb-link { min-height: 52px; justify-content: space-between; padding-inline: 18px; font-size: 17px; line-height: 27px; background: var(--ink); color: var(--paper); }
  .gnb-ready .gnb-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-width: 76px; min-height: 44px; border: 0; padding: 0; background: transparent; color: var(--ink); font-size: 14px; line-height: 22px; }
  .gnb-toggle-icon { display: block; position: relative; width: 18px; height: 12px; border-block: 1px solid currentColor; }
  .gnb-toggle-icon::after { content: ''; position: absolute; top: 50%; left: 0; width: 18px; border-top: 1px solid currentColor; transform: translateY(-50%); }
  .gnb-open .gnb-toggle-icon { border: 0; }
  .gnb-open .gnb-toggle-icon::before, .gnb-open .gnb-toggle-icon::after { content: ''; position: absolute; top: 50%; left: 0; width: 18px; border-top: 1px solid currentColor; transform: rotate(45deg); }
  .gnb-open .gnb-toggle-icon::after { transform: rotate(-45deg); }
  .hv-header.gnb-ready #primary-navigation { display: none; }
  .hv-header.gnb-ready.gnb-open #primary-navigation { display: block; }
  .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
}
@media (max-width: 600px) {
  .footer-network { gap: 4px 24px; }
  .footer-network > span { flex-basis: 100%; margin: 0 0 8px; }
  .structured-footer .footer-top, .structured-footer .footer-contact { align-items: start; }
  .structured-footer .footer-bottom { flex-direction: column; gap: 4px; }
}

/* Hubs are open editorial grids. Rules and whitespace provide hierarchy. */
.hub-intro, .article-header { padding-top: 72px; padding-bottom: 48px; }
.hub-intro h1 { font-family: var(--serif); font-size: 64px; line-height: 75px; font-weight: 600; letter-spacing: 0; max-width: 15em; text-wrap: balance; }
.hub-intro .intro-desc, .hub-intro > p:not(.section-kicker):not(.eyebrow) { max-width: 36em; font-size: 21px; line-height: 32px; letter-spacing: .011em; margin-top: 24px; }
.section-kicker { color: var(--ink); font-size: 17px; line-height: 23px; letter-spacing: 0; font-weight: 600; margin-bottom: 14px; }
.topic-grid, .article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px var(--structure-gap); padding-bottom: 72px; }
.topic-card, .article-card { min-width: 0; padding: 28px 0 0; border-top: 1px solid var(--ink); }
.topic-card h2, .topic-card h3, .article-card h2, .article-card h3 { font-size: 28px; line-height: 35px; letter-spacing: .007em; font-weight: 600; margin: 0; }
.topic-card p, .article-card p { font-size: 17px; line-height: 27px; letter-spacing: 0; margin-top: 14px; }
.topic-card .section-kicker, .article-card .section-kicker { font-size: 14px; line-height: 22px; margin: 0 0 10px; }
.topic-card h2 a:hover, .topic-card h3 a:hover, .article-card h2 a:hover, .article-card h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.topic-card .text-link, .article-card .text-link { margin-top: 20px; min-height: 44px; }
.topic-card img, .article-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 24px; }
.content-band, .guide-section { padding-block: 72px; }
.content-band { border-top: 1px solid var(--line); }
.content-band > h2, .guide-section > h2 { font-family: var(--serif); font-size: 40px; line-height: 48px; letter-spacing: 0; margin-bottom: 24px; }
.content-band > p, .guide-section > p { font-size: 17px; line-height: 27px; max-width: 46em; }
.content-band .topic-grid, .content-band .article-grid, .guide-section .article-grid { margin-top: 40px; padding-bottom: 0; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px 16px; list-style: none; margin: 20px 0 0; padding: 0; font-size: 14px; line-height: 22px; color: var(--muted); }
.tag-list a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.filter-bar a, .filter-bar button { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font-size: 17px; line-height: 27px; }
.filter-bar [aria-current], .filter-bar [aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }

/* Document pages keep body, list and table text at 17px on every viewport. */
.article-header h1 { font-family: var(--serif); font-size: 48px; line-height: 52px; font-weight: 600; letter-spacing: 0; max-width: 20em; text-wrap: balance; }
.article-header .intro-desc { font-size: 21px; line-height: 32px; letter-spacing: .011em; max-width: 38em; margin-top: 24px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; font-size: 14px; line-height: 22px; color: var(--muted); }
.article-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; align-items: start; padding-bottom: var(--structure-space); }
.article-layout > * { min-width: 0; }
.article-toc { grid-column: 1; grid-row: 1; position: sticky; top: 108px; padding-top: 20px; border-top: 1px solid var(--ink); }
.article-toc h2, .article-toc > p, .article-toc > strong { display: block; font-family: var(--sans); font-size: 17px; line-height: 27px; font-weight: 600; letter-spacing: 0; color: var(--ink); margin: 0 0 10px; }
.article-toc ul, .article-toc ol { list-style: none; padding: 0; margin: 0; }
.article-toc a { display: flex; align-items: center; min-height: 44px; padding-block: 8px; font-size: 14px; line-height: 22px; color: var(--muted); }
.article-toc a:hover, .article-toc a:focus-visible { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.article-body { grid-column: 2; max-width: 780px; font-size: var(--structure-body); line-height: var(--structure-body-line); overflow-wrap: anywhere; }
.article-body :is(h2, h3, h4, p, ul, ol, figure) { margin: 0; }
.article-body :is(h2, h3, h4) { font-family: var(--sans); font-weight: 600; color: var(--ink); text-wrap: pretty; }
.article-body h2 { font-size: var(--structure-title); line-height: var(--structure-title-line); letter-spacing: .004em; }
.article-body h3 { font-size: var(--structure-subtitle); line-height: var(--structure-subtitle-line); letter-spacing: .009em; }
.article-body h4 { font-size: 21px; line-height: 32px; letter-spacing: .011em; }
.article-body :is(p, li, td, th) { font-size: var(--structure-body); line-height: var(--structure-body-line); letter-spacing: 0; }
.article-body :is(ul, ol) { padding-left: 1.3em; }
.article-body li + li { margin-top: 8px; }
.article-body :is(h2, h3, h4) + :is(h2, h3, h4) { margin-top: .4em; }
.article-body :is(h2, h3, h4, p, ul, ol) + :is(p, ul, ol, figure) { margin-top: .8em; }
.article-body :is(p, ul, ol, figure, div, details) + :is(h2, h3, h4) { margin-top: 1.6em; }
.article-body > section + section, .article-body > .guide-section + .guide-section { margin-top: 56px; }
.article-body > section { padding-block: 0; }
.article-body [id] { scroll-margin-top: 112px; }
.article-body a:not(.button):not(.text-link) { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.article-body strong { font-weight: 600; color: var(--ink); }
.article-body details { margin-top: 20px; padding-block: 24px; }
.article-body details + details { margin-top: -1px; }
.article-body summary { font-size: 17px; line-height: 27px; font-weight: 600; }
.article-body details p { margin-top: 16px; font-size: 17px; line-height: 27px; }
.answer-summary { padding: 28px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); margin-bottom: 48px; }
.answer-summary > h2, .answer-summary > strong { display: block; font-size: 21px; line-height: 27px; letter-spacing: .011em; margin: 0 0 16px; font-weight: 600; color: var(--ink); }
.answer-summary p { font-size: 17px; line-height: 27px; color: var(--ink); }
.answer-summary p + p { margin-top: 14px; }
.content-table { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; margin-block: 28px; }
.content-table table, table.content-table { width: 100%; border-collapse: collapse; text-align: left; font-variant-numeric: tabular-nums; }
table.content-table { display: block; overflow-x: auto; }
.content-table caption { text-align: left; font-size: 17px; line-height: 27px; font-weight: 600; padding-bottom: 16px; color: var(--ink); }
.content-table th, .content-table td { min-width: 140px; padding: 18px 16px; vertical-align: top; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 27px; letter-spacing: 0; }
.content-table th { font-weight: 600; color: var(--ink); }
.content-table thead { border-top: 1px solid var(--ink); background: var(--sage); }
.content-table :is(th, td):first-child { padding-left: 16px; }
.content-table:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.article-sources, .related-reading { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.article-sources h2, .related-reading > h2 { font-size: 24px; line-height: 31px; letter-spacing: .009em; margin-bottom: 20px; }
.article-sources li { overflow-wrap: anywhere; }
.article-sources :is(p, li), .article-body .source-note { font-size: 14px; line-height: 22px; color: var(--muted); }
.source-note { font-size: 14px; line-height: 22px; max-width: 58em; margin-top: 20px; color: var(--muted); }
.related-reading .article-grid, .related-reading .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; padding-bottom: 0; }
.related-reading .article-card h3, .related-reading .topic-card h3 { font-size: 21px; line-height: 32px; letter-spacing: .011em; }
.related-reading ul { padding-left: 1.3em; }
.related-reading li + li { margin-top: 12px; }
.evidence-list { list-style: none; padding: 0; margin: 32px 0 0; }
.evidence-list li { padding: 20px 0; border-top: 1px solid var(--line); font-size: 17px; line-height: 27px; }
.evidence-list li:last-child { border-bottom: 1px solid var(--line); }
.evidence-list strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 6px; }
.evidence-list span, .evidence-list p { color: var(--muted); }
.hub-intro, .article-header, .topic-card, .article-card, .content-band, .guide-section, .footer-column { overflow-wrap: anywhere; }

@media (max-width: 1068px) {
  :root { --structure-space: 96px; --structure-title: 28px; --structure-title-line: 35px; --structure-subtitle: 21px; --structure-subtitle-line: 27px; }
  .hub-intro h1 { font-size: 56px; line-height: 66px; }
  .article-header h1 { font-size: 40px; line-height: 44px; }
  .topic-grid, .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-card h2, .topic-card h3, .article-card h2, .article-card h3 { font-size: 24px; line-height: 31px; letter-spacing: .009em; }
  .article-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 36px; }
  .article-body h2 { letter-spacing: .007em; }
  .article-body h3 { letter-spacing: .011em; }
}
@media (max-width: 833px) {
  .article-toc { top: 96px; }
}
@media (max-width: 734px) {
  :root { --structure-space: 56px; --structure-title: 24px; --structure-title-line: 31px; }
  .hub-intro, .article-header { padding-top: 40px; padding-bottom: 32px; text-align: left; }
  .hub-intro h1 { font-size: 40px; line-height: 48px; text-wrap: pretty; }
  .article-header h1 { font-size: 32px; line-height: 36px; letter-spacing: .004em; text-wrap: pretty; }
  .hub-intro .intro-desc, .hub-intro > p:not(.section-kicker):not(.eyebrow), .article-header .intro-desc { font-size: 19px; line-height: 25px; letter-spacing: .012em; margin-top: 20px; }
  .hub-intro br, .article-header br { display: none; }
  .section-kicker { font-size: 14px; line-height: 22px; }
  .topic-grid, .article-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 48px; }
  .topic-card, .article-card { padding-top: 24px; text-align: left; }
  .topic-card h2, .topic-card h3, .article-card h2, .article-card h3 { font-size: 21px; line-height: 32px; letter-spacing: .011em; text-wrap: pretty; }
  .content-band, .guide-section { padding-block: 48px; }
  .content-band > h2, .guide-section > h2 { font-size: 28px; line-height: 35px; letter-spacing: .007em; }
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .article-toc { grid-column: 1; grid-row: auto; position: static; }
  .article-body { grid-column: 1; }
  .article-body h2 { letter-spacing: .009em; }
  .article-body h4 { font-size: 19px; line-height: 25px; letter-spacing: .012em; }
  .article-body > section + section { margin-top: 40px; }
  .answer-summary { padding-block: 24px; margin-bottom: 32px; }
  .article-sources, .related-reading { margin-top: 40px; }
  .related-reading .article-grid, .related-reading .topic-grid { grid-template-columns: 1fr; }
  .content-table th, .content-table td { padding: 16px 12px; }
  .structured-footer { padding-inline: 24px; padding-top: 48px; }
  .structured-footer .footer-top { flex-direction: column; gap: 28px; margin-bottom: 32px; }
  .structured-footer .footer-contact a { font-size: 17px; line-height: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  .gnb-submenu-toggle svg { transition: none; }
}
