:root {
  font-family: system-ui, sans-serif;
  color: #222;
  background: #fff;
  line-height: 1.55;
}
* { box-sizing: border-box; }
body { margin: 0; overflow-wrap: anywhere; }
a { color: #244f81; text-underline-offset: .18em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #325e96;
  outline-offset: 3px;
}
.shell { width: min(74rem, calc(100% - 2rem)); margin: 0 auto; }
header, footer { background: #f6f6f6; }
header { border-bottom: 1px solid #ddd; }
footer { border-top: 1px solid #ddd; margin-top: 3rem; padding: 1.4rem 0; }
.preview { padding: .5rem 0; font-size: .85rem; color: #4e4e4e; }
.header-row { display: flex; align-items: baseline; gap: .6rem 2rem; flex-wrap: wrap; padding: .3rem 0 .95rem; }
.brand { font-weight: 700; color: inherit; }
.site-nav { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .25rem 1rem; }
.site-nav details { padding: 0; }
.site-nav > details { position: relative; }
.site-nav summary { padding: .4rem .25rem; }
.site-nav summary:focus-visible { outline: 2px solid #325e96; outline-offset: 2px; }
.site-nav ul { list-style: none; margin: .35rem 0; padding: 0; }
.site-nav li { margin: .45rem .25rem; }
.site-nav .accordion-panel details { border-top: 1px solid #ddd; }
.site-nav .accordion-panel details .accordion-panel { padding-left: .7rem; }
.header-nav > details > .accordion-panel {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 2;
  width: min(24rem, calc(100vw - 2.25rem));
  max-height: min(65vh, 36rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border: 1px solid #aaa;
  box-shadow: 0 .25rem .75rem #0002;
  padding: .65rem 1rem;
}
.header-nav > details:nth-child(n+4) > .accordion-panel { left: auto; right: 0; }
.footer-nav { align-items: start; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr)); }
.footer-nav > details { border-top: 1px solid #d2d2d2; }
.footer-nav > details > .accordion-panel { padding: .15rem .5rem .55rem; }
.breadcrumbs { margin: 1.1rem 0 0; font-size: .9rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .55rem; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "›"; color: #666; margin-right: .55rem; }
.breadcrumbs li[aria-current] { color: #444; }
.skip { position: absolute; top: -4rem; background: #fff; padding: .5rem; }
.skip:focus { top: 0; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.14; margin: 1.75rem 0 .8rem; max-width: 22ch; }
h2 { margin: 0 0 .65rem; font-size: clamp(1.25rem, 2.4vw, 1.7rem); line-height: 1.3; }
p { max-width: 77ch; }
section { padding: 1.6rem 0 .75rem; margin: 1.35rem 0 0; border-top: 1px solid #e0e0e0; }
.catalogue { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(15.5rem, 100%), 1fr)); gap: .7rem; list-style: none; padding: 0; }
.catalogue li { border: 1px solid #dedede; padding: .85rem 1rem; }
.catalogue a { font-weight: 650; }
.catalogue p { margin: .4rem 0 0; font-size: .93rem; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.1rem; }
.secondary-action { align-self: center; padding: .35rem; }
.service-case { border: 1px solid #c8c8c8; padding: clamp(1rem, 3vw, 2rem); max-width: 79ch; scroll-margin-top: 1rem; }
.service-case h3 { margin: 1.3rem 0 .45rem; line-height: 1.35; }
.service-case .case-title { margin: .9rem 0; font-size: 1.35rem; font-weight: 650; }
.table-wrap { overflow: auto; }
.page-help { margin-top: 2rem; border-top: 1px solid #ddd; }
.guide-contents { border: 1px solid #d5ded2; border-radius: .35rem; background: #f7faf6; max-width: 52rem; margin: 1.2rem 0; padding: .15rem 1rem; }
.guide-contents li { margin: .35rem 0; }
main section[id] { scroll-margin-top: 1.3rem; }
.page-help > details { max-width: 100%; }
.page-help > details > summary { padding: .75rem 0; }
.button, button { display: inline-block; padding: .58rem .85rem; font: inherit; color: #fff; background: #303030; border: 1px solid #303030; cursor: pointer; text-decoration: none; }
.button:hover, button:hover { background: #454545; }
.draft-note { margin: 1rem 0; padding: .8rem 1rem; border-left: 3px solid #666; background: #f2f2f2; max-width: 77ch; }
details { padding: .55rem 0; max-width: 77ch; }
summary { cursor: pointer; font-weight: 650; }
.sample { margin: .85rem 0; padding: .9rem 1rem; border: 1px solid #ddd; max-width: 77ch; }
.sample blockquote { margin: .65rem 0; }
.sample figcaption { font-weight: 600; }
.catalogue .sample-label { margin: 0 0 .4rem; font-size: .82rem; color: #505050; }
form { max-width: 39rem; display: grid; gap: .8rem; margin: 1.2rem 0; }
label { display: block; font-weight: 600; }
input, select, textarea { display: block; width: 100%; max-width: 39rem; padding: .6rem; border: 1px solid #888; background: #fff; font: inherit; margin-top: .2rem; }
form button { justify-self: start; }
output { font-weight: 650; white-space: pre-line; }
table { width: min(100%, 58rem); border-collapse: collapse; }
td, th { padding: .5rem; border: 1px solid #bbb; text-align: left; }
li { margin: .15rem 0; }
.tree { padding-inline-start: 1.1rem; }
@media (max-width: 900px) {
  .header-nav > details { position: static; }
  .header-row { position: relative; }
  .header-nav > details > .accordion-panel, .header-nav > details:nth-child(n+4) > .accordion-panel { top: 100%; left: 0; right: auto; width: 100%; }
}
@media (max-width: 500px) {
  header nav { gap: .15rem .55rem; font-size: .94rem; }
  .brand { width: 100%; }
  td, th { font-size: .85rem; padding: .3rem; }
}
