/* Shared card language for the Dev Tools overview and legal pages.
   Scoped classes keep both existing CSS frameworks and individual tools intact. */
.page-card {
  --page-blue: #31668e;
  --page-link: #285d83;
  --page-ink: #243643;
  --page-muted: #65717a;
  --page-border: #e1e7eb;
  --page-soft: #f5f8fa;
  --page-paper: #fff;
  --page-hover: #f6f9fc;
  --page-hover-border: #9bb7ca;
  --page-hover-shadow: 0 6px 18px #18384f12;
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  border-top: 3px solid #31668e;
  border-radius: 2px;
  background: var(--page-paper);
  color: var(--page-ink);
  font: 15px/1.7 Arial, sans-serif;
  box-shadow: 0 3px 6px #102c4010, 0 20px 50px #102c4010;
  overflow-wrap: break-word;
}
.page-card *, .page-card *::before, .page-card *::after { box-sizing: border-box; }
.page-card h1, .page-card h2, .page-card h3 { color: var(--page-ink); font-family: Raleway, Arial, sans-serif; font-weight: 600; text-shadow: none; }
.page-card a { color: var(--page-link) !important; text-decoration: none; }
.page-card a:hover { text-decoration: underline; text-underline-offset: 4px; }
.page-card :is(a, summary):focus-visible { outline: 3px solid var(--page-blue); outline-offset: 4px; border-radius: 2px; }
.page-card svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.page-topline { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 40px 0; }
.page-topline-symbol { display: none; flex: 0 0 24px; width: 24px; height: 24px; color: var(--page-blue); }
.page-topline-symbol svg { width: 24px; height: 24px; }
.page-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 42px; padding: 24px 40px 36px; }
.page-card .page-eyebrow { margin: 0 0 12px; color: var(--page-link); font: 600 11px/1.5 Raleway, Arial, sans-serif; letter-spacing: 1.5px; }
.page-card h1 { margin: 0 0 18px; font-size: clamp(30px, 3.5vw, 40px); line-height: 1.2; letter-spacing: -.6px; }
.page-lead strong { font-weight: 600; }
.page-hero-symbol { width: 88px; height: 88px; display: grid; place-items: center; align-self: start; margin-top: 18px; background: var(--page-soft); border: 1px solid var(--page-border); border-radius: 2px; color: var(--page-blue); }
.page-hero-symbol svg { width: 38px; height: 38px; stroke-width: 1.2; }
.page-bottomline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 21px 40px; background: var(--page-soft); border-top: 1px solid var(--page-border); border-radius: 0 0 2px 2px; color: var(--page-muted); font-size: 12px; }
.page-bottomline p { margin: 0; }
.page-bottomline a { display: inline-flex; align-items: center; gap: 10px; min-height: 32px; }
.page-bottomline svg { width: 17px; height: 17px; }
/* Overview */
/* Use Bootstrap's container-xxl widths and gutters, exactly like the header/footer. */
.page-tools-hero { grid-template-columns: minmax(0, 1fr) 245px; padding-bottom: 38px; }
.page-tools-hero h1 { font-size: clamp(29px, 3.2vw, 37px); }
/* The privacy note spans the breadcrumb and introduction rows. The first row
   stays content-sized so a taller note cannot push the eyebrow down. */
.page-tools-heading { display: grid; grid-template-columns: minmax(0, 1fr) 245px; grid-template-rows: min-content 1fr; align-items: start; gap: 24px 42px; padding: 26px 40px 38px; }
.page-tools-heading > .page-topline { grid-column: 1; grid-row: 1; min-width: 0; padding: 0; }
.page-tools-heading > .page-tools-hero { display: contents; }
.page-tools-heading .page-tools-hero > :first-child { grid-column: 1; grid-row: 2; min-width: 0; }
.page-tools-heading .page-local-note { grid-column: 2; grid-row: 1 / span 2; }
.page-catalogue { border-top: 1px solid var(--page-border); padding: 27px 40px 40px; }
.page-section-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.page-card .page-section-label h2, .page-card .page-related h2 { font-size: 13px; line-height: 1.5; margin: 0; }
.page-section-label > span { font-size: 11px; color: var(--page-muted); }
.page-tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.page-tool-link { min-width: 0; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--page-border); border-radius: 2px; background: var(--page-paper); transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease; }
.page-card .page-tool-link:focus-visible { background: var(--page-hover); border-color: var(--page-hover-border); box-shadow: var(--page-hover-shadow); }
@media (hover: hover) and (pointer: fine) {
  .page-card .page-tool-link:hover { text-decoration: none; background: var(--page-hover); border-color: var(--page-hover-border); box-shadow: var(--page-hover-shadow); }
  .page-tool-link:hover .page-tool-action { text-decoration: underline; text-underline-offset: 4px; }
}
.page-tool-top { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.page-tool-icon { display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; background: var(--page-soft); border: 1px solid var(--page-border); border-radius: 2px; color: var(--page-blue); }
.page-tool-icon svg { width: 22px; height: 22px; }
.page-tool-tag { color: var(--page-muted); font-size: 9px; line-height: 1.6; letter-spacing: 1px; }
.page-card .page-tool-link h3 { margin: 0 0 10px; font-size: 19px; line-height: 1.4; letter-spacing: -.2px; }
.page-tool-link > p { margin: 0 0 22px; color: var(--page-muted); font-size: 13px; line-height: 1.8; }
.page-tool-action { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; font-size: 12px; font-weight: 600; }
.page-tool-action svg { width: 18px; height: 18px; }
.page-tool-link:focus-visible .page-tool-action { text-decoration: underline; text-underline-offset: 4px; }
.page-related { padding: 26px 40px 31px; background: var(--page-soft); border-top: 1px solid var(--page-border); border-radius: 0 0 2px 2px; }
.page-card .page-related h2 { margin-bottom: 20px; color: var(--page-muted); }
.page-related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.page-related-grid a { display: flex; gap: 13px; align-items: center; min-width: 0; }
.page-related-icon { color: var(--page-blue); }
.page-related-grid strong { display: block; font: 600 15px/1.5 Raleway, Arial, sans-serif; }
.page-related-grid small { display: block; margin-top: 3px; color: var(--page-muted); font-size: 11px; line-height: 1.6; }
.page-related-grid a > svg { margin-left: auto; width: 17px; height: 17px; }
/* Readable legal content, with the original wording retained. */
.page-legal-hero { border-bottom: 1px solid var(--page-border); }
.page-legal-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 36px; padding: 34px 40px 40px; align-items: start; }
.page-card .page-legal-section { margin: 0 !important; padding: 0 0 28px; scroll-margin-top: 92px; }
.page-card .page-legal-section + .page-legal-section { border-top: 1px solid var(--page-border); padding-top: 27px; }
.page-card .page-legal-section:last-child { padding-bottom: 0; }
.page-card .page-legal-section h2 { margin: 0 0 15px; font-size: 19px; line-height: 1.5; letter-spacing: -.15px; scroll-margin-top: 92px; }
.page-legal-section h2:focus { outline: none; }
.page-legal-section p { margin: 0 0 15px; line-height: 1.9; }
.page-legal-section p:last-child { margin-bottom: 0; }
.page-legal-section a { text-decoration: underline; text-decoration-color: #9cb5c7; text-underline-offset: 3px; overflow-wrap: anywhere; }
.page-legal-section a:hover { text-decoration-color: currentColor; }
.page-legal-section code { padding: 2px 4px; background: var(--page-soft); border-radius: 2px; color: inherit; font-size: .88em; overflow-wrap: anywhere; }
.page-card .page-legal-section ul { padding-left: 22px; margin: 16px 0; list-style: disc; }
.page-card .page-legal-section ul li { list-style-type: disc; padding-left: 4px; margin-bottom: 6px; }
.page-contents { position: sticky; top: 90px; }
.page-card .page-contents nav { height: auto; min-height: 0; width: auto; background: transparent; box-shadow: none; color: var(--page-ink); line-height: 1.5; }
.page-card .page-contents-label { color: var(--page-muted); margin: 0 0 15px; font-size: 10px; letter-spacing: 1.3px; }
.page-contents-desktop { max-height: calc(100vh - 120px); overflow-y: auto; padding: 4px 7px 4px 0; scrollbar-width: thin; }
.page-card .page-contents-list { list-style: none; margin: 0; padding: 0; }
.page-contents-list li { float: none; padding: 0; margin: 0 0 3px; }
.page-card .page-contents-list a { display: flex; align-items: baseline; gap: 9px; padding: 7px 8px; border-left: 2px solid transparent; font: 12px/1.55 Arial, sans-serif; color: var(--page-muted) !important; }
.page-contents-list a > span:first-child { flex-shrink: 0; color: var(--page-link); font-size: 10px; font-variant-numeric: tabular-nums; }
.page-card .page-contents-list a:hover, .page-card .page-contents-list a[aria-current="location"] { background: var(--page-soft); color: var(--page-link) !important; border-left-color: var(--page-blue); text-decoration: none; }
.page-contents-mobile { display: none; border: 1px solid var(--page-border); background: var(--page-soft); border-radius: 2px; }
.page-contents-mobile summary { display: flex; justify-content: space-between; align-items: center; gap: 15px; min-height: 48px; padding: 13px 16px; cursor: pointer; list-style: none; font-weight: 600; font-size: 13px; }
.page-contents-mobile summary::-webkit-details-marker { display: none; }
.page-contents-mobile summary .page-chevron { transform: rotate(45deg); }
.page-contents-mobile[open] summary .page-chevron { transform: rotate(225deg); }
.page-contents-mobile nav { padding: 0 8px 10px; }
.page-imprint-copy { padding: 32px 40px 40px; }
.page-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 32px; }
.page-card .page-contact-block { position: relative; padding: 24px !important; background: var(--page-soft); border: 1px solid var(--page-border); border-radius: 2px; }
.page-card .page-contact-block h2 { font-size: 16px; margin: 0 0 15px; padding-right: 30px; }
.page-contact-block p { font-size: 14px; }
.page-contact-icon { position: absolute; right: 22px; top: 22px; color: var(--page-blue); }
.page-contact-icon svg { width: 22px; height: 22px; }
/* Immediate access and stable geometry on legal pages. */
.site-content-page header nav.slideDown { visibility: visible !important; opacity: 1 !important; transform: none !important; }
@media screen {
  :root[data-site-theme="dark"] .page-card {
    --page-blue: #9abfe0;
    --page-link: #9abfe0;
    --page-ink: #e9e9eb;
    --page-muted: #a8aab1;
    --page-border: #383a40;
    --page-soft: #202226;
    --page-paper: #191b1e;
    --page-hover: #20272e;
    --page-hover-border: #567b98;
    --page-hover-shadow: 0 6px 18px #0003;
    box-shadow: 0 12px 45px #0003;
  }
}
@media (max-width: 900px) {
  .page-topline { padding: 24px 28px 0; }
  .page-hero { padding: 22px 28px 32px; gap: 24px; }
  .page-tools-hero { grid-template-columns: minmax(0, 1fr) 215px; }
  .page-tools-heading { grid-template-columns: minmax(0, 1fr) 215px; gap: 22px 24px; padding: 24px 28px 32px; }
  .page-catalogue, .page-imprint-copy { padding: 26px 28px 32px; }
  .page-related { padding: 24px 28px 28px; }
  .page-tool-link { padding: 21px; }
  .page-bottomline { padding: 19px 28px; }
  .page-legal-layout { grid-template-columns: 1fr; gap: 28px; padding: 26px 28px 34px; }
  .page-contents { position: static; }
  .page-contents-desktop { display: none; }
  .page-contents-mobile { display: block; }
  .page-card .page-contents-list a { min-height: 42px; align-items: center; }
}
@media (max-width: 680px) {
  .page-tools-hero { grid-template-columns: 1fr; gap: 24px; }
  .page-tools-heading { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; }
  .page-tools-heading .page-local-note { grid-column: 1; grid-row: 3; }
  .page-tool-grid, .page-contact-grid { grid-template-columns: 1fr; }
  .page-tool-link > p { margin-bottom: 18px; }
  .page-related-grid { grid-template-columns: 1fr; gap: 0; }
  .page-related-grid a { padding: 14px 0; }
  .page-related-grid a + a { border-top: 1px solid var(--page-border); }
  .page-related-grid a:last-child { padding-bottom: 0; }
  /* Keep the decorative icon in the breadcrumb row without reducing title width. */
  .page-legal .page-topline .page-breadcrumb { min-width: 0; }
  .page-legal .page-hero-symbol { display: none; }
  .page-legal .page-topline-symbol { display: grid; place-items: center; }
  .page-legal-hero { display: block; }
  .page-contact-grid { gap: 14px; }
}
@media (max-width: 580px) {
  .page-topline { padding: 20px 22px 0; }
  .page-hero { padding: 20px 22px 28px; }
  .page-tools-heading { gap: 20px; padding: 20px 22px 28px; }
  .page-card h1 { font-size: 30px; line-height: 1.2; }
  .page-card .page-eyebrow { font-size: 10px; }
  .page-tools-hero h1 { font-size: clamp(25px, 6.8vw, 32px); }
  .page-catalogue, .page-imprint-copy { padding: 24px 22px 28px; }
  .page-section-label > span { display: none; }
  .page-tool-grid { gap: 14px; }
  .page-tool-link { padding: 20px; }
  .page-tool-top { margin-bottom: 15px; gap: 10px; }
  .page-tool-tag { letter-spacing: .6px; }
  .page-card .page-tool-link h3 { font-size: 19px; }
  .page-related { padding: 24px 22px; }
  .page-card .page-related h2 { margin-bottom: 8px; }
  .page-legal-layout { padding: 23px 22px 30px; gap: 26px; }
  .page-card .page-legal-section h2 { font-size: 18px; }
  .page-legal-section p, .page-legal-section li { font-size: 14px; }
  .page-bottomline { padding: 19px 22px; flex-direction: column; align-items: flex-start; gap: 9px; }
  .page-card .page-contact-block { padding: 20px !important; }
}
@media (prefers-reduced-motion: reduce) { .page-tool-link { transition: none; } }
@media print {
  .site-content-page header, .site-content-page footer, .site-content-page .parallax-container,
  .site-content-page .scroll-to-top, .page-topline, .page-contents, .page-hero-symbol, .page-bottomline a { display: none !important; }
  .site-content-page, .site-content-page main { background: #fff !important; color: #000; }
  .site-content-page main > section { margin: 0 !important; }
  .site-content-page main .container { width: 100%; max-width: none; }
  .page-card { box-shadow: none; border-top-width: 2px; font-size: 11pt; }
  .page-hero, .page-imprint-copy, .page-legal-layout { padding: 20px 0; }
  .page-legal-layout { display: block; }
  .page-card .page-legal-section h2 { break-after: avoid; }
  .page-legal-section p { orphans: 3; widows: 3; }
  .page-bottomline { padding: 15px 0; background: transparent; }
}
