/* Rohdotar.fi product styling. Loaded last by the template. */

/* Heading anchors injected by HeadingAnchorRewriter */
.rohdotar-document__body :is(h2, h3) {
    position: relative;
    scroll-margin-top: 6rem;
}

.rohdotar-heading-anchor {
    color: var(--rohdotar-primary, #0f766e);
    margin-inline-start: .35em;
    text-decoration: none;
    opacity: 0;
    transition: opacity .15s ease-in-out;
    font-weight: 400;
    font-size: .85em;
    vertical-align: baseline;
}

:is(h2, h3):hover > .rohdotar-heading-anchor,
:is(h2, h3):focus-within > .rohdotar-heading-anchor,
.rohdotar-heading-anchor:focus,
.rohdotar-heading-anchor:hover {
    opacity: 1;
    text-decoration: underline;
}

@media (max-width: 640px) {
    /* On small screens, keep the anchor permanently visible at low contrast */
    .rohdotar-heading-anchor {
        opacity: .55;
    }
}


:root {
    --rohdotar-ink: var(--brand-ink, #172126);
    --rohdotar-muted: var(--brand-muted, #56646b);
    --rohdotar-line: var(--brand-line, #d7e0dc);
    --rohdotar-surface: var(--brand-surface, #f5faf7);
    --rohdotar-surface-strong: var(--brand-surface-strong, #e6f3ee);
    --rohdotar-primary: var(--brand-primary, #0f766e);
    --rohdotar-primary-dark: var(--brand-primary-dark, #0b4f49);
    --rohdotar-accent: var(--brand-danger);
    --rohdotar-paper: var(--brand-paper, #ffffff);
    --rohdotar-shadow: 0 1px 2px rgba(23, 33, 38, .05);
    --rohdotar-shadow-strong: 0 2px 8px rgba(23, 33, 38, .08);
}

body {
    color: var(--rohdotar-ink);
    background: var(--rohdotar-paper);
}

main.container {
    padding-inline: clamp(1rem, 3vw, 1.5rem);
}

.navbar {
    background: var(--rohdotar-paper);
    border-bottom: 1px solid var(--rohdotar-line);
}

.navbar-brand {
    gap: .55rem;
}

.navbar-brand::before {
    content: "";
    display: inline-block;
    width: .9rem;
    height: .9rem;
    border-radius: .2rem;
    background: var(--rohdotar-primary);
    box-shadow: .35rem .35rem 0 var(--brand-accent);
}

.navbar-brand-text {
    color: var(--rohdotar-ink);
    font-weight: 800;
    letter-spacing: 0;
}

.navbar .nav-link {
    border-radius: .45rem;
    color: var(--rohdotar-muted);
    font-weight: 650;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: var(--rohdotar-primary-dark);
    background: var(--rohdotar-surface-strong);
}

.navbar .nav-link.active {
    color: var(--rohdotar-primary-dark);
    background: var(--rohdotar-surface-strong);
}

.language-switcher {
    display: inline-flex;
    align-items: center;
}

.language-switcher select {
    max-width: 10rem;
    border-color: var(--brand-line-strong);
    border-radius: .35rem;
    background-color: #ffffff;
    font-weight: 600;
}

.language-switcher__links {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: .5rem 0 0;
    padding: 0;
    list-style: none;
}

.rohdotar-hero {
    position: relative;
    overflow: hidden;
    margin-inline: calc(50% - 50vw);
    padding: clamp(3rem, 6vw, 5.2rem) max(1rem, calc((100vw - 1200px) / 2 + 1rem)) clamp(2.8rem, 5vw, 4.2rem);
    color: #ffffff;
    border-bottom: 3px double rgba(216, 183, 108, .55);
    background: var(--brand-primary-deep);
}

.rohdotar-hero__layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(19rem, 24rem);
    gap: clamp(1.5rem, 5vw, 4rem);
    align-items: center;
}

.rohdotar-hero__body {
    max-width: 820px;
}

.rohdotar-hero h1,
.rohdotar-document h1 {
    font-weight: 700;
    letter-spacing: -.015em;
    line-height: 1.15;
}

.rohdotar-hero h1 {
    max-width: 14ch;
    color: #ffffff;
    font-size: clamp(2.6rem, 5vw, 4.2rem);
}

.rohdotar-hero .lead {
    max-width: 60ch;
    color: rgba(255, 255, 255, .86);
    font-size: clamp(1.12rem, 2vw, 1.38rem);
    font-weight: 450;
}

.rohdotar-eyebrow {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: var(--brand-accent-dark);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .14em;
    margin-bottom: .9rem;
    text-transform: uppercase;
}

.rohdotar-eyebrow::before {
    content: "";
    width: 1.6rem;
    height: 1px;
    background: currentColor;
    opacity: .7;
}

.rohdotar-hero .rohdotar-eyebrow {
    color: var(--brand-accent);
}

.rohdotar-actions,
.rohdotar-inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.5rem;
}

.rohdotar-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rohdotar-hero .btn-primary {
    color: var(--brand-primary-deep) !important;
    background: #ffffff !important;
    border-color: #ffffff !important;
}

.rohdotar-hero .btn-primary:hover,
.rohdotar-hero .btn-primary:focus {
    color: var(--brand-primary-deep) !important;
    background: var(--rohdotar-surface-strong) !important;
    border-color: var(--rohdotar-surface-strong) !important;
}

.rohdotar-hero .btn-outline-primary {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, .72) !important;
    background: rgba(255, 255, 255, .05) !important;
}

.rohdotar-hero .btn-outline-primary:hover,
.rohdotar-hero .btn-outline-primary:focus {
    color: var(--brand-primary-deep) !important;
    border-color: #ffffff !important;
    background: #ffffff !important;
}

.rohdotar-hero__panel {
    border: 1px solid rgba(216, 183, 108, .38);
    border-radius: .5rem;
    background: rgba(0, 0, 0, .18);
    padding: 1rem;
}

.rohdotar-hero__panel-header {
    display: flex;
    gap: .55rem;
    align-items: center;
    margin: .15rem .2rem .85rem;
    color: rgba(255, 255, 255, .78);
    font-size: .86rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.rohdotar-quick-link {
    display: flex;
    gap: .85rem;
    align-items: flex-start;
    min-width: 0;
    padding: .95rem;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: .55rem;
    color: #ffffff;
    text-decoration: none;
}

main .rohdotar-hero .rohdotar-quick-link {
    color: #ffffff;
}

.rohdotar-quick-link + .rohdotar-quick-link {
    margin-top: .65rem;
}

.rohdotar-quick-link:hover,
.rohdotar-quick-link:focus {
    color: #ffffff;
    border-color: rgba(255, 255, 255, .42);
    background: rgba(255, 255, 255, .1);
}

.rohdotar-quick-link__icon {
    display: inline-grid;
    flex: 0 0 2.35rem;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    border-radius: .5rem;
    background: rgba(255, 255, 255, .14);
    color: var(--brand-accent);
}

.rohdotar-quick-link strong,
.rohdotar-quick-link small {
    display: block;
}

.rohdotar-quick-link strong {
    color: #ffffff;
}

.rohdotar-quick-link small {
    margin-top: .15rem;
    color: rgba(255, 255, 255, .76);
    line-height: 1.35;
}

.rohdotar-metrics {
    position: relative;
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 1.75rem 0 1.6rem;
}

.rohdotar-metrics div {
    min-height: 8rem;
    padding: 1.2rem 1.25rem;
    border: 1px solid var(--rohdotar-line);
    border-top: 2px solid var(--brand-accent);
    border-radius: 0 0 .375rem .375rem;
    background: #ffffff;
    box-shadow: var(--rohdotar-shadow);
}

.rohdotar-metrics strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    line-height: 1;
}

.rohdotar-metrics span {
    display: block;
    margin-top: .45rem;
    color: var(--rohdotar-muted);
}

.rohdotar-section {
    padding: clamp(2.2rem, 5vw, 4rem) 0;
}

.feature-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--brand-line-strong);
    border-radius: .375rem;
    background: #ffffff;
    color: var(--rohdotar-ink);
    padding: 1.55rem;
    transition: border-color .16s ease;
}

.feature-card:hover,
.feature-card:focus-within {
    border-color: var(--rohdotar-primary);
}

.feature-card h3 {
    color: var(--rohdotar-ink);
}

.feature-card p {
    color: var(--rohdotar-muted);
}

.feature-card a {
    font-weight: 700;
    text-underline-offset: .18em;
}

.feature-card__icon {
    display: inline-grid;
    width: 2.65rem;
    height: 2.65rem;
    place-items: center;
    border-radius: .55rem;
    font-size: 1.35rem;
}

.feature-card__icon--blue {
    color: var(--rohdotar-primary-dark);
    background: var(--rohdotar-surface-strong);
}

.feature-card__icon--green {
    color: var(--brand-accent-dark);
    background: var(--brand-accent-tint);
}

.feature-card__icon--rose {
    color: var(--brand-danger);
    background: var(--brand-danger-tint);
}

.rohdotar-band,
.rohdotar-document__header {
    border: 1px solid var(--rohdotar-line);
    border-radius: .375rem;
    background: var(--rohdotar-surface);
    padding: clamp(1.25rem, 3vw, 2rem);
}

.rohdotar-band {
    background: #ffffff;
}

.rohdotar-document {
    max-width: 840px;
    margin: clamp(1.5rem, 4vw, 2.4rem) auto 4rem;
    min-width: 0;
    overflow-wrap: break-word;
}

.rohdotar-document__header {
    position: relative;
    overflow: hidden;
    background: #ffffff;
}

.rohdotar-document__header::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: .22rem;
    background: var(--rohdotar-primary);
}

.rohdotar-document__header .lead {
    max-width: 68ch;
    color: var(--rohdotar-ink);
}

.rohdotar-document__body {
    margin-top: 2.25rem;
    min-width: 0;
    font-size: 1.05rem;
    line-height: 1.78;
}

.rohdotar-document__body h2 {
    margin-top: 2.6rem;
    margin-bottom: 1rem;
    padding-left: .85rem;
    border-left: .22rem solid var(--brand-accent);
    line-height: 1.2;
}

.rohdotar-document__body p,
.rohdotar-document__body li {
    color: var(--rohdotar-ink);
}

.rohdotar-document__body a {
    color: var(--rohdotar-primary-dark);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.rohdotar-document__body a:hover,
.rohdotar-document__body a:focus {
    color: var(--brand-primary);
}

.rohdotar-document--index {
    max-width: 1120px;
}

.rohdotar-document--index .rohdotar-document__body > p {
    max-width: 62ch;
}

.rohdotar-document--index .rohdotar-document__body > h2 {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--rohdotar-line);
}

.rohdotar-document--index .rohdotar-document__body > ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
    gap: .75rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
}

.rohdotar-document--index .rohdotar-document__body > ul > li {
    margin: 0;
    min-width: 0;
}

.rohdotar-document--index .rohdotar-document__body > ul > li > a {
    display: flex;
    min-height: 100%;
    align-items: flex-start;
    padding: 1rem 1rem 1rem .95rem;
    border: 1px solid var(--rohdotar-line);
    border-radius: .375rem;
    background: #ffffff;
    color: var(--rohdotar-primary-dark);
    font-size: .98rem;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
}

.rohdotar-document--index .rohdotar-document__body > ul > li > a::before {
    content: "";
    flex: 0 0 .26rem;
    width: .26rem;
    align-self: stretch;
    min-height: 1.35rem;
    margin-top: .08rem;
    margin-right: .65rem;
    border-radius: 999px;
    background: var(--rohdotar-primary);
}

.rohdotar-document--index .rohdotar-document__body > ul > li > a:hover,
.rohdotar-document--index .rohdotar-document__body > ul > li > a:focus {
    border-color: var(--rohdotar-primary);
    color: var(--rohdotar-primary-dark);
}

.rohdotar-document--guide-index .rohdotar-document__body > h2:has(> a:not(.rohdotar-heading-anchor)) > a:not(.rohdotar-heading-anchor) {
    color: var(--rohdotar-primary-dark);
    text-decoration: underline;
    text-decoration-thickness: .08em;
    text-underline-offset: .16em;
}

.rohdotar-document--guide-index .rohdotar-document__body > h2:has(> a:not(.rohdotar-heading-anchor)) > a:not(.rohdotar-heading-anchor):hover,
.rohdotar-document--guide-index .rohdotar-document__body > h2:has(> a:not(.rohdotar-heading-anchor)) > a:not(.rohdotar-heading-anchor):focus {
    color: var(--brand-primary);
}

.rohdotar-document--category-index {
    max-width: 1180px;
}

.rohdotar-document--category-index .rohdotar-document__body > h2:has(> a) {
    margin-top: 1rem;
    margin-bottom: 0;
    padding: 1.1rem 1.2rem .35rem;
    border: 1px solid var(--rohdotar-line);
    border-bottom: 0;
    border-radius: .375rem .375rem 0 0;
    background: #ffffff;
}

.rohdotar-document--category-index .rohdotar-document__body > h2:has(> a) > a {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: var(--rohdotar-ink);
    text-decoration: none;
}

.rohdotar-document--category-index .rohdotar-document__body > h2:has(> a) > a::before {
    content: "";
    width: .55rem;
    height: .55rem;
    border-radius: .15rem;
    background: var(--rohdotar-primary);
}

.rohdotar-document--category-index .rohdotar-document__body > h2:has(> a) + ul {
    margin: 0 0 1rem;
    padding: .75rem 1.2rem 1.2rem;
    border: 1px solid var(--rohdotar-line);
    border-top: 0;
    border-radius: 0 0 .375rem .375rem;
    background: #ffffff;
}

.rohdotar-document--category-index .rohdotar-document__body > h2:has(> a) + ul > li > a {
    padding: .78rem .82rem;
    border-radius: .375rem;
}

.page-header,
.blog-header,
.facet-header {
    color: var(--rohdotar-ink);
    background: var(--rohdotar-surface);
    border: 1px solid var(--rohdotar-line);
    border-radius: .5rem;
}

.cookie-banner {
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    width: min(920px, calc(100vw - 2rem));
    margin: 0 auto;
    padding: 1rem;
    border: 1px solid var(--rohdotar-line);
    border-radius: .5rem;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(23, 33, 38, .12);
}

.cookie-content {
    max-width: none;
}

.cookie-content h2 {
    margin: 0 0 .35rem;
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    line-height: 1.2;
}

.cookie-content p {
    margin-bottom: .75rem;
    color: var(--rohdotar-muted);
}

.cookie-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
    margin: .9rem 0;
}

.cookie-options .form-check {
    min-width: 0;
    margin: 0;
    padding: .85rem .85rem .85rem 2.35rem;
    border: 1px solid var(--rohdotar-line);
    border-radius: .45rem;
    background: var(--rohdotar-surface);
}

.cookie-options .form-check-label {
    margin: 0;
    line-height: 1.25;
}

.cookie-options .form-text {
    margin-top: .3rem;
    color: var(--rohdotar-muted) !important;
    line-height: 1.35;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    align-items: center;
    margin-top: .8rem;
}

.cookie-actions button {
    margin-right: 0;
}

.cookie-actions .btn {
    min-height: 2.55rem;
}

.footer {
    position: relative;
    background-color: var(--brand-surface-dim);
    border-top-color: var(--rohdotar-line);
    color: var(--rohdotar-ink);
}

/* Subtle teal-to-amber accent strip at the top of the footer to mirror the
   reading-progress bar gradient and bookend the page. */
.footer::before {
    content: "";
    position: absolute;
    top: -1px;
    inset-inline: 0;
    height: 3px;
    border-top: 1px solid rgba(216, 183, 108, .6);
    border-bottom: 1px solid rgba(216, 183, 108, .6);
}

.footer .h6,
.footer .text-muted,
.footer a.text-muted {
    color: var(--rohdotar-ink) !important;
}

.footer a.text-muted:hover,
.footer a.text-muted:focus {
    color: var(--rohdotar-primary-dark) !important;
}

/* Sticky navbar across all viewports so the search field, brand mark and
   language switcher stay reachable when readers scroll deep into a guide.
   The wrapping <header> needs to be sticky (not just .navbar) because
   sticky positioning works inside its containing block — and the navbar's
   parent <header> only spans its own ~97px, while <header>'s parent <body>
   spans the full document. */
body > header {
    position: sticky;
    top: 0;
    z-index: 1030;
}

@media (min-width: 992px) {
    .navbar .container {
        min-height: 4rem;
    }

    .navbar-nav {
        gap: .25rem;
    }
}

@media (max-width: 900px) {
    .rohdotar-hero__layout {
        grid-template-columns: 1fr;
    }

    .rohdotar-hero__panel {
        max-width: 38rem;
    }

    .rohdotar-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    body {
        background: #ffffff;
    }

    main.container {
        padding-inline: 1rem;
    }

    .navbar .container {
        align-items: flex-start;
    }

    .navbar-brand {
        min-height: 44px;
    }

    .navbar-collapse {
        width: 100%;
        margin-top: .75rem;
        padding-top: .75rem;
        border-top: 1px solid var(--rohdotar-line);
    }

    .navbar .nav-link {
        padding-inline: .75rem;
    }

    .rohdotar-hero {
        padding-top: 2.85rem;
        padding-bottom: 3.35rem;
    }

    .rohdotar-hero h1 {
        font-size: clamp(2.9rem, 15vw, 4rem);
    }

    .rohdotar-hero__panel {
        padding: .8rem;
    }

    .rohdotar-quick-link {
        padding: .82rem;
    }

    .rohdotar-actions .btn {
        width: 100%;
    }

    .rohdotar-metrics {
        grid-template-columns: 1fr;
        margin-top: 1.25rem;
    }

    .rohdotar-metrics div {
        min-height: auto;
    }

    .rohdotar-document {
        margin-top: 1.5rem;
    }

    .rohdotar-document__header {
        margin-inline: 0;
        padding: 1.25rem;
    }

    .rohdotar-document__body {
        font-size: 1rem;
        line-height: 1.72;
    }

    .rohdotar-document__body h2 {
        padding-left: .65rem;
    }

    .rohdotar-document--index .rohdotar-document__body > ul {
        gap: .6rem;
    }

    .rohdotar-document--index .rohdotar-document__body > ul > li > a {
        padding: .85rem .9rem;
    }

    .cookie-banner {
        right: .75rem;
        bottom: .75rem;
        left: .75rem;
        width: calc(100vw - 1.5rem);
        max-height: min(82vh, 40rem);
        overflow: auto;
        padding: .9rem;
    }

    .cookie-options {
        grid-template-columns: 1fr;
        gap: .6rem;
    }

    .cookie-actions .btn {
        width: 100%;
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    .feature-card,
    .rohdotar-document--index .rohdotar-document__body > ul > li > a {
        transition: none;
    }

    .feature-card:hover,
    .feature-card:focus-within,
    .rohdotar-document--index .rohdotar-document__body > ul > li > a:hover,
    .rohdotar-document--index .rohdotar-document__body > ul > li > a:focus {
        transform: none;
    }
}

:root {
    --font-display: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-interface: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --rohdotar-radius-lg: .5rem;
    --rohdotar-radius-xl: .625rem;
    --rohdotar-surface-tint: rgba(255, 255, 255, .7);
    --rohdotar-border-strong: var(--brand-line-strong);
}

html {
    color-scheme: light;
}

body {
    font-family: var(--font-interface);
    background: var(--rohdotar-paper);
}

h1,
h2,
h3,
h4,
.facet-title,
.navbar-brand-text,
.rohdotar-page-intro h1,
.rohdotar-auth-shell__intro h1 {
    font-family: var(--font-display);
}

main a,
.breadcrumb a,
.footer a,
.navbar a,
.rohdotar-search-result a {
    min-width: auto;
}

.rohdotar-nav-tools {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.rohdotar-header-actions {
    align-items: center;
    gap: .35rem;
}

.rohdotar-language-nav-item {
    display: flex;
    align-items: center;
}

.rohdotar-header-search {
    display: grid;
    grid-template-columns: minmax(16rem, 1fr) auto;
    gap: .6rem;
    align-items: center;
    width: min(27rem, 100%);
    margin: .35rem 0;
}

.rohdotar-header-search__field,
.rohdotar-search-panel__field,
.rohdotar-search-form__field {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-height: 3.25rem;
    padding: .65rem .9rem;
    border: 1px solid var(--rohdotar-border-strong);
    border-radius: .375rem;
    background: #ffffff;
}

.rohdotar-header-search__field i,
.rohdotar-search-panel__field i,
.rohdotar-search-form__field i {
    color: var(--rohdotar-primary-dark);
}

.rohdotar-header-search__field input,
.rohdotar-search-panel__field input,
.rohdotar-search-form__field input {
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--rohdotar-ink);
    box-shadow: none;
}

.rohdotar-header-search__field input:focus,
.rohdotar-search-panel__field input:focus,
.rohdotar-search-form__field input:focus {
    outline: none;
    box-shadow: none;
}

.rohdotar-header-search__field:focus-within,
.rohdotar-search-panel__field:focus-within,
.rohdotar-search-form__field:focus-within {
    border-color: var(--brand-primary);
    outline: 3px solid var(--brand-primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 .2rem rgba(15, 118, 110, .18);
}

.rohdotar-header-search__submit,
.rohdotar-search-form .btn,
.rohdotar-search-panel .btn {
    min-height: 3.25rem;
    padding-inline: 1.1rem;
}

@media (min-width: 992px) {
    .navbar .container {
        max-width: min(100% - 3rem, 1680px);
        flex-wrap: nowrap;
        gap: clamp(.75rem, 1.4vw, 1.4rem);
    }

    .navbar-brand {
        flex: 0 0 auto;
        margin-right: 0;
        white-space: nowrap;
    }

    .navbar-brand-text {
        white-space: nowrap;
    }

    .navbar-collapse {
        flex: 1 1 auto;
        min-width: 0;
    }

    .navbar-collapse .navbar-nav.me-auto {
        flex: 0 1 auto;
        min-width: 0;
        margin-right: clamp(.65rem, 1.2vw, 1.15rem) !important;
    }

    .navbar-collapse .navbar-nav.me-auto .nav-link {
        display: inline-flex;
        align-items: center;
        gap: .35rem;
        white-space: nowrap;
        line-height: 1.15;
        padding: .58rem clamp(.48rem, .62vw, .72rem);
    }

    .navbar-collapse .navbar-nav.me-auto .nav-link .bi {
        flex: 0 0 auto;
        margin-right: 0 !important;
    }

    .rohdotar-nav-tools {
        flex: 1 1 31rem;
        min-width: 0;
        flex-wrap: nowrap;
        justify-content: flex-end;
        gap: clamp(.5rem, .8vw, .75rem);
    }

    .rohdotar-header-search {
        flex: 1 1 24rem;
        width: auto;
        min-width: 17rem;
        max-width: 34rem;
        margin: 0;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .rohdotar-header-actions {
        flex: 0 0 auto;
        flex-wrap: nowrap;
        margin: 0;
    }

    .rohdotar-language-nav-item,
    .language-switcher {
        flex: 0 0 auto;
    }

    .language-switcher select {
        width: clamp(7.25rem, 8vw, 9rem);
    }
}

@media (min-width: 992px) and (max-width: 1280px) {
    .navbar .container {
        max-width: calc(100% - 1rem);
        padding-inline: .5rem;
        gap: .5rem;
    }

    .navbar-brand-text {
        font-size: 1.08rem;
    }

    .navbar-brand::before {
        width: .75rem;
        height: .75rem;
        box-shadow: .28rem .28rem 0 var(--brand-accent);
    }

    .navbar-collapse .navbar-nav.me-auto {
        gap: .1rem;
        margin-right: .45rem !important;
    }

    .navbar-collapse .navbar-nav.me-auto .nav-link {
        font-size: .93rem;
        padding: .5rem .4rem;
    }

    .rohdotar-nav-tools {
        flex-basis: 27rem;
        gap: .45rem;
    }

    .rohdotar-header-search {
        flex-basis: 18rem;
        min-width: 14.25rem;
    }

    .rohdotar-header-search__field {
        min-height: 2.85rem;
        padding: .55rem .7rem;
    }

    .rohdotar-header-search__submit {
        min-height: 2.85rem;
        padding-inline: .8rem;
    }

    .language-switcher select {
        width: 7.2rem;
    }
}

.rohdotar-search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .8rem;
    max-width: 44rem;
    margin-top: 1.5rem;
}

.rohdotar-section-heading {
    max-width: 52rem;
    margin-bottom: 1.5rem;
}

.rohdotar-section-heading h2 {
    margin-bottom: .5rem;
}

.rohdotar-section-heading p:last-child {
    color: var(--rohdotar-muted);
    margin-bottom: 0;
}

.rohdotar-section--soft {
    position: relative;
    padding: clamp(2rem, 5vw, 3.5rem);
    border: 1px solid var(--rohdotar-line);
    border-radius: var(--rohdotar-radius-xl);
    background: var(--rohdotar-surface);
}

.rohdotar-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.rohdotar-mini-card {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    min-height: 100%;
    padding: 1.15rem 1.1rem;
    border: 1px solid var(--rohdotar-line);
    border-radius: .375rem;
    background: #ffffff;
    color: var(--rohdotar-ink);
    text-decoration: none;
    transition: border-color .16s ease;
}

.rohdotar-mini-card:hover,
.rohdotar-mini-card:focus {
    color: var(--rohdotar-primary-dark);
    border-color: var(--rohdotar-primary);
}

.rohdotar-mini-card__tag {
    display: inline-flex;
    align-self: flex-start;
    color: var(--brand-accent-dark);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.rohdotar-mini-card strong {
    font-size: 1.05rem;
    line-height: 1.3;
}

.rohdotar-mini-card small {
    color: var(--rohdotar-muted);
    font-size: .95rem;
    line-height: 1.45;
}

.rohdotar-band--split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(18rem, .9fr);
    gap: 2rem;
    align-items: start;
}

.rohdotar-check-list {
    display: grid;
    gap: .85rem;
}

.rohdotar-check-list > div {
    padding: .95rem 1rem .95rem 1.1rem;
    border-left: 2px solid var(--brand-accent);
    background: var(--rohdotar-surface);
}

.rohdotar-check-list strong,
.rohdotar-check-list span {
    display: block;
}

.rohdotar-check-list strong {
    margin-bottom: .2rem;
}

.rohdotar-check-list span {
    color: var(--rohdotar-muted);
    line-height: 1.45;
}

.footer-lead {
    max-width: 28rem;
}

.rohdotar-document__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
    margin-top: 1.6rem;
}

.rohdotar-document__meta,
.rohdotar-document__topics {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: 1rem;
}

.rohdotar-document__topics {
    margin-bottom: 0;
    padding: 0;
    list-style: none;
}

.rohdotar-chip {
    display: inline-flex;
    align-items: center;
    gap: .42rem;
    min-height: 2.2rem;
    padding: .45rem .8rem;
    border: 1px solid var(--rohdotar-line);
    border-radius: .25rem;
    background: #ffffff;
    color: var(--rohdotar-ink);
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.2;
}

.rohdotar-chip--accent {
    border-color: var(--rohdotar-primary-dark);
    background: var(--rohdotar-primary-dark);
    color: #ffffff;
}

.rohdotar-chip--soft {
    background: var(--rohdotar-surface);
    color: var(--rohdotar-primary-dark);
}

.rohdotar-document__header--category::before {
    background: var(--brand-accent);
}

.rohdotar-document__body {
    max-width: 100%;
}

.rohdotar-document__stack {
    display: grid;
    gap: 1rem;
}

.rohdotar-document__title {
    margin-bottom: 0;
}

.rohdotar-document__figure {
    margin-top: 1.5rem;
}

.rohdotar-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(18rem, .72fr);
    gap: 1.5rem;
    align-items: start;
    margin-top: 1.5rem;
}

.rohdotar-category-trail {
    margin-bottom: 1rem;
}

.rohdotar-category-trail ol {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rohdotar-category-trail li {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: var(--rohdotar-muted);
    font-size: .95rem;
    font-weight: 600;
}

.rohdotar-category-trail li + li::before {
    content: "/";
    color: var(--rohdotar-muted);
}

.rohdotar-category-trail a,
.rohdotar-category-trail span {
    color: inherit;
    text-decoration: none;
}

.rohdotar-category-trail a:hover,
.rohdotar-category-trail a:focus {
    color: var(--rohdotar-primary-dark);
    text-decoration: underline;
}

.rohdotar-aside-stack {
    display: grid;
    gap: 1rem;
}

.rohdotar-category-section {
    margin-top: 2.4rem;
}

.rohdotar-section-heading {
    margin-bottom: 1rem;
}

.rohdotar-section-heading h2 {
    margin-bottom: 0;
}

.rohdotar-category-card-list,
.rohdotar-related-guide-list {
    display: grid;
    gap: .8rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rohdotar-category-card-list--grid,
.rohdotar-related-guide-list--grid {
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.rohdotar-category-card,
.rohdotar-related-guide {
    display: grid;
    gap: .45rem;
    min-height: 100%;
    padding: 1rem 1.05rem;
    border: 1px solid var(--rohdotar-line);
    border-radius: .375rem;
    background: #ffffff;
    color: var(--rohdotar-ink);
    text-decoration: none;
    transition: border-color .16s ease;
}

.rohdotar-category-card:hover,
.rohdotar-category-card:focus,
.rohdotar-related-guide:hover,
.rohdotar-related-guide:focus {
    color: var(--rohdotar-primary-dark);
    border-color: var(--rohdotar-primary);
}

.rohdotar-category-card__title,
.rohdotar-related-guide__title {
    font-weight: 650;
    line-height: 1.3;
}

.rohdotar-category-card__meta,
.rohdotar-related-guide__excerpt {
    color: var(--rohdotar-muted);
    font-size: .92rem;
    line-height: 1.5;
}

.rohdotar-related-guide--card {
    background: #ffffff;
}

.rohdotar-page-shell,
.rohdotar-search-shell {
    display: grid;
    gap: 1.5rem;
    max-width: 70rem;
    margin: 1.5rem auto 3.5rem;
}

.rohdotar-page-shell--narrow {
    max-width: 54rem;
}

.rohdotar-page-intro--support {
    position: relative;
    overflow: hidden;
}

.rohdotar-page-intro--support::after {
    content: none;
}

.rohdotar-page-intro,
.rohdotar-search-intro,
.rohdotar-facet-header {
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--rohdotar-line);
    border-radius: var(--rohdotar-radius-xl);
    background: #ffffff;
}

.rohdotar-page-intro .lead,
.rohdotar-search-intro .lead,
.rohdotar-facet-copy {
    max-width: 56rem;
    margin-bottom: 0;
    color: var(--rohdotar-muted);
}

.rohdotar-surface-card {
    padding: clamp(1.1rem, 2vw, 1.6rem);
    border: 1px solid var(--rohdotar-line);
    border-radius: var(--rohdotar-radius-lg);
    background: #ffffff;
}

.rohdotar-inline-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.rohdotar-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
}

.rohdotar-action-row .btn {
    min-width: 12rem;
}

.rohdotar-support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1rem;
}

.rohdotar-mini-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: .375rem;
    background: var(--rohdotar-surface-strong);
    color: var(--rohdotar-primary-dark);
    font-size: 1.2rem;
}

.rohdotar-mini-card--support h2,
.rohdotar-mini-card--support h3 {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.35;
}

.rohdotar-mini-card--support p {
    margin: 0;
    color: var(--rohdotar-muted);
    line-height: 1.55;
}

.rohdotar-link-list {
    display: grid;
    gap: .75rem;
}

.rohdotar-link-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .95rem 1rem;
    border: 1px solid var(--rohdotar-line);
    border-radius: .375rem;
    background: #ffffff;
    color: var(--rohdotar-ink);
    font-weight: 600;
    text-decoration: none;
    transition: border-color .16s ease, color .16s ease;
}

.rohdotar-link-list a:hover,
.rohdotar-link-list a:focus {
    color: var(--rohdotar-primary-dark);
    border-color: var(--rohdotar-primary);
}

.rohdotar-form-fieldset {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
    border: 0;
}

.rohdotar-form-legend {
    margin-bottom: 0;
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--rohdotar-ink);
}

.rohdotar-status-card {
    position: relative;
    overflow: hidden;
}

.rohdotar-status-card::after {
    content: none;
}

.rohdotar-status-icon i {
    font-size: clamp(3.25rem, 7vw, 5.5rem);
}

.rohdotar-status-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(18rem, .92fr);
    gap: 1.5rem;
    align-items: start;
}

.rohdotar-status-copy {
    display: grid;
    gap: 1rem;
}

.rohdotar-status-copy h1 {
    margin-bottom: 0;
}

.rohdotar-status-copy .lead {
    max-width: 42rem;
    margin-bottom: 0;
}

.rohdotar-status-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.rohdotar-status-meta span {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem .75rem;
    border-radius: 999px;
    background: var(--rohdotar-surface-strong);
    color: var(--rohdotar-primary-dark);
    font-size: .92rem;
    font-weight: 700;
}

.rohdotar-status-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .85rem;
    margin-top: 1.5rem;
}

.rohdotar-preference-form {
    display: grid;
    gap: 1rem;
}

.rohdotar-search-surface {
    padding: 1.15rem;
    border: 1px solid var(--rohdotar-line);
    border-radius: .5rem;
    background: var(--rohdotar-surface);
}

.rohdotar-search-surface .input-group {
    width: 100%;
}

.rohdotar-search-surface .form-control,
.rohdotar-search-surface .btn {
    min-height: 3.15rem;
}

.rohdotar-status-side {
    display: grid;
    gap: 1rem;
}

.rohdotar-auth-shell {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(20rem, .85fr);
    gap: 1.5rem;
    align-items: start;
    max-width: 72rem;
    margin: 1.5rem auto 3.5rem;
}

.rohdotar-auth-shell__intro {
    padding: clamp(1.35rem, 3vw, 2.2rem);
    border: 1px solid var(--rohdotar-line);
    border-radius: var(--rohdotar-radius-xl);
    background: var(--brand-primary-deep);
    color: #ffffff;
}

.rohdotar-auth-shell__intro .rohdotar-eyebrow,
.rohdotar-auth-shell__intro .lead,
.rohdotar-auth-shell__intro .rohdotar-check-list span {
    color: rgba(255, 255, 255, .84);
}

.rohdotar-auth-shell__intro .rohdotar-check-list > div {
    border-color: rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .08);
}

.rohdotar-auth-shell__card .card {
    border: 1px solid var(--rohdotar-line);
    border-radius: var(--rohdotar-radius-xl);
    background: #ffffff;
}

.rohdotar-auth-shell__card .card-body {
    padding: clamp(1.25rem, 3vw, 2rem);
}

.rohdotar-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .8rem;
    margin-top: 1.25rem;
}

.rohdotar-search-summary {
    color: var(--rohdotar-muted);
    font-weight: 600;
}

.rohdotar-search-results {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rohdotar-search-result {
    padding: 1.15rem 1.2rem;
    border: 1px solid var(--rohdotar-line);
    border-radius: .375rem;
    background: #ffffff;
}

.rohdotar-search-result__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    align-items: center;
    margin-bottom: .7rem;
    color: var(--rohdotar-muted);
    font-size: .9rem;
}

.rohdotar-search-pagination {
    margin-top: .5rem;
}

.rohdotar-facet-shell {
    display: grid;
    gap: 1.35rem;
    margin-bottom: 3.5rem;
}

.rohdotar-facet-header {
    margin-bottom: 0;
}

.rohdotar-facet-grid {
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.rohdotar-facet-card {
    border-radius: .375rem;
    background: #ffffff;
}

.rohdotar-category-tree {
    display: grid;
    gap: 1rem;
}

/* Reading progress indicator. The bar sits below the sticky navbar and tracks
   how far down the article body the reader has scrolled. The actual scroll
   percentage is set on the body element from a small inline script so the bar
   works without the main JS bundle. */
.rohdotar-reading-progress {
    position: fixed;
    top: 0;
    inset-inline: 0;
    height: .2rem;
    z-index: 1040;
    background: transparent;
    pointer-events: none;
}

.rohdotar-reading-progress__bar {
    width: var(--rohdotar-reading-progress, 0%);
    height: 100%;
    background: var(--brand-accent);
    transition: width .12s linear;
}

@media (prefers-reduced-motion: reduce) {
    .rohdotar-reading-progress__bar {
        transition: none;
    }
}

.rohdotar-cluster-more {
    margin-top: 1.25rem;
    border: 1px solid var(--rohdotar-line);
    border-radius: .375rem;
    background: #ffffff;
}

.rohdotar-cluster-more > summary {
    padding: .85rem 1.1rem;
    list-style: none;
    cursor: pointer;
    color: var(--rohdotar-primary-dark);
    font-weight: 700;
    border-radius: .375rem;
}

.rohdotar-cluster-more > summary::-webkit-details-marker { display: none; }
.rohdotar-cluster-more > summary::marker { content: ""; }

.rohdotar-cluster-more > summary::after {
    content: "+";
    float: right;
    margin-left: .5rem;
    color: var(--rohdotar-muted);
}

.rohdotar-cluster-more[open] > summary::after { content: "−"; }

.rohdotar-cluster-more > summary:hover,
.rohdotar-cluster-more > summary:focus-visible {
    background: var(--rohdotar-surface);
}

.rohdotar-cluster-more > ul {
    padding: 0 1.1rem 1rem;
}

@media (max-width: 767.98px) {
    /* Tighter aside on mobile so the 3-5 cards do not push the article body
       too far up the scroll while still keeping all navigation reachable. */
    .rohdotar-aside-stack {
        gap: .75rem;
    }
    .rohdotar-aside-stack .rohdotar-surface-card {
        padding: .9rem 1rem;
    }
    .rohdotar-aside-stack .rohdotar-surface-card h2 {
        font-size: 1rem;
        margin-bottom: .5rem;
    }
    .rohdotar-aside-stack .rohdotar-related-guide,
    .rohdotar-aside-stack .rohdotar-category-card {
        padding: .7rem .85rem;
    }
}

/* Align metric numbers vertically so 386 / 1 788 do not jiggle on the home grid. */
.rohdotar-metrics strong {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
}

/* Print: strip interactive chrome so the reader gets a clean handout with the
   guide body in full width. The sticky navbar, asides, cookie banner and
   reading-progress strip would otherwise waste paper or block content. */
@media print {
    .navbar,
    .footer,
    .cookie-banner,
    .rohdotar-reading-progress,
    .rohdotar-aside-stack,
    .rohdotar-status-actions,
    .rohdotar-quick-link,
    #back-to-top {
        display: none !important;
    }

    body {
        background: #fff !important;
        color: #000 !important;
    }

    .rohdotar-detail-grid,
    .rohdotar-document__layout {
        display: block !important;
    }

    .rohdotar-document {
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: .85em;
        color: #555;
    }

    a[href^="#"]::after,
    a[href^="javascript:"]::after {
        content: "";
    }
}

.rohdotar-empty-state {
    text-align: center;
    padding: clamp(1.75rem, 4vw, 3rem) clamp(1.25rem, 4vw, 2rem);
}

.rohdotar-empty-state__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: var(--rohdotar-surface);
    color: var(--rohdotar-primary-dark);
    font-size: 1.6rem;
}

.rohdotar-empty-state .rohdotar-action-row {
    justify-content: center;
}

/* Make sure clickable cards and icon buttons get a visible focus ring even
   when their inner anchor handles the click. The default :focus-visible
   selector only fires on the focusable element, so pull the ring up to the
   card via :focus-within. */
.feature-card:focus-within,
.rohdotar-mini-card:focus-within,
.rohdotar-category-card:focus-within,
.rohdotar-related-guide:focus-within {
    outline: 3px solid var(--brand-primary);
    outline-offset: 3px;
    border-radius: .375rem;
}

.rohdotar-category-tree__section {
    padding: 1.2rem;
    border: 1px solid var(--rohdotar-line);
    border-radius: .375rem;
    background: #ffffff;
}

.rohdotar-category-tree__header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: 1rem;
    color: var(--rohdotar-ink);
    text-decoration: none;
}

.rohdotar-category-tree__header:hover,
.rohdotar-category-tree__header:focus {
    color: var(--rohdotar-primary-dark);
}

.rohdotar-category-tree__title {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.3;
}

.rohdotar-category-tree__meta {
    color: var(--rohdotar-muted);
    font-size: .92rem;
    font-weight: 600;
}

.rohdotar-feed-links {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    margin-top: 1rem;
}

.rohdotar-feed-links a {
    display: inline-flex;
    align-items: center;
    min-width: auto;
    color: var(--rohdotar-primary-dark);
    font-weight: 700;
    text-decoration: none;
}

.rohdotar-feed-links a:hover,
.rohdotar-feed-links a:focus {
    text-decoration: underline;
}

.rohdotar-content-list {
    display: grid;
    gap: 1rem;
    margin-bottom: 0;
}

.rohdotar-content-item {
    padding: 1.25rem 1.35rem;
    border: 1px solid var(--rohdotar-line);
    border-radius: .375rem;
    background: #ffffff;
}

.rohdotar-share-buttons {
    display: grid;
    gap: .75rem;
}

.rohdotar-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1rem;
}

.rohdotar-gallery-card {
    overflow: hidden;
    border: 1px solid var(--rohdotar-line);
    border-radius: var(--rohdotar-radius-lg);
    background: #ffffff;
}

.rohdotar-gallery-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.rohdotar-gallery-card__body {
    padding: 1rem 1.1rem 1.15rem;
}

.rohdotar-table-scroll {
    overflow-x: auto;
}

.rohdotar-table-scroll table {
    min-width: 44rem;
}

.rohdotar-code-block {
    margin: 0;
    padding: 1rem 1.05rem;
    border-radius: 1rem;
    background: var(--brand-primary-deep);
    color: #e3efec;
    overflow-x: auto;
}

.rohdotar-code-block code {
    color: inherit;
}

.rohdotar-detail-list dt {
    font-weight: 700;
    color: var(--rohdotar-primary-dark);
}

.rohdotar-detail-list dd {
    margin-bottom: .85rem;
}

.rohdotar-empty-state {
    border-radius: .375rem;
}

.error-page {
    min-height: 64vh;
}

.error-content {
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border: 1px solid var(--rohdotar-line);
    border-radius: var(--rohdotar-radius-xl);
    background: #ffffff;
}

.error-details .card {
    border-radius: 1rem;
}

.search-suggestion .input-group {
    width: min(28rem, 100%);
}

.search-suggestion .form-control,
.search-suggestion .btn {
    min-height: 3.1rem;
}

.popular-pages .btn {
    min-width: 12rem;
}

@media (max-width: 991.98px) {
    .rohdotar-nav-tools,
    .rohdotar-auth-shell,
    .rohdotar-band--split,
    .rohdotar-detail-grid,
    .rohdotar-status-layout {
        grid-template-columns: 1fr;
    }

    .rohdotar-header-search,
    .rohdotar-search-panel,
    .rohdotar-search-form {
        width: 100%;
    }

    .rohdotar-header-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .rohdotar-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rohdotar-inline-actions {
        align-items: flex-start;
    }

    .rohdotar-status-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .rohdotar-header-search,
    .rohdotar-search-panel,
    .rohdotar-search-form {
        grid-template-columns: 1fr;
    }

    .rohdotar-feature-grid,
    .rohdotar-metrics,
    .rohdotar-support-grid,
    .rohdotar-status-side {
        grid-template-columns: 1fr;
    }

    .rohdotar-mini-card,
    .rohdotar-content-item,
    .rohdotar-search-result {
        padding: 1rem;
    }

    .rohdotar-page-shell,
    .rohdotar-search-shell {
        margin-top: 1rem;
    }

    .rohdotar-inline-actions,
    .rohdotar-action-row,
    .rohdotar-status-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .rohdotar-action-row .btn,
    .rohdotar-status-actions .btn {
        width: 100%;
        min-width: 0;
    }

    .rohdotar-table-scroll table {
        min-width: 36rem;
    }

    .rohdotar-link-list a {
        padding: .85rem .9rem;
    }

    .rohdotar-document--index .rohdotar-document__body > ul {
        grid-template-columns: 1fr;
        gap: .55rem;
    }

    .rohdotar-document--index .rohdotar-document__body > ul > li > a {
        padding: .85rem .9rem;
        font-size: .96rem;
    }

    .rohdotar-document--category-index .rohdotar-document__body > h2:has(> a) {
        padding: .95rem 1rem .25rem;
    }

    .rohdotar-document--category-index .rohdotar-document__body > h2:has(> a) + ul {
        padding: .65rem 1rem 1rem;
    }

    .popular-pages .btn {
        width: 100%;
        min-width: 0;
    }

    .rohdotar-category-card-list--grid,
    .rohdotar-related-guide-list--grid {
        grid-template-columns: 1fr;
    }

    .rohdotar-category-tree__header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Final production polish. Keep at the end so it wins over legacy template CSS. */
:root {
    --rohdotar-nav-height: 4.75rem;
    --rohdotar-glow: var(--rohdotar-shadow-strong);
}

.navbar {
    isolation: isolate;
}

.navbar .container {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.navbar-toggler {
    margin-left: auto;
    border-color: var(--brand-line-strong);
    border-radius: .55rem;
    background: rgba(255, 255, 255, .86);
}

.navbar-collapse {
    flex-basis: 100%;
}

.feature-card,
.rohdotar-mini-card,
.rohdotar-surface-card,
.rohdotar-category-card,
.rohdotar-related-guide {
    border-color: var(--brand-line-strong);
}

/* Metric cards keep the gold top rule; only the other three sides use the
   stronger hairline, so the shorthand above must not touch border-top. */
.rohdotar-metrics div {
    border-right-color: var(--brand-line-strong);
    border-bottom-color: var(--brand-line-strong);
    border-left-color: var(--brand-line-strong);
}

.rohdotar-document {
    max-width: 900px;
}

.rohdotar-document__header {
    border-radius: var(--rohdotar-radius-xl);
    border-color: var(--brand-line-strong);
}

.rohdotar-document__body {
    text-wrap: pretty;
}

.rohdotar-document__body > p {
    max-width: 70ch;
}

.rohdotar-detail-grid .rohdotar-document__body > p {
    max-width: none;
}

.rohdotar-document__body h2 {
    text-wrap: balance;
}

.rohdotar-search-result {
    position: relative;
    overflow: hidden;
    background: #ffffff;
}

.rohdotar-search-result::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: .22rem;
    background: var(--rohdotar-primary);
}

.rohdotar-search-result h2 {
    line-height: 1.16;
    text-wrap: balance;
}

.rohdotar-search-result h2 a {
    color: var(--rohdotar-primary-dark);
    text-decoration-thickness: .08em;
    text-underline-offset: .18em;
}

.rohdotar-search-result p {
    max-width: 64ch;
    color: var(--rohdotar-muted) !important;
}

.cookie-banner {
    border-radius: var(--rohdotar-radius-lg);
}

@media (min-width: 992px) {
    .navbar {
        min-height: var(--rohdotar-nav-height);
    }

    .navbar-collapse {
        flex-basis: auto;
    }
}

@media (max-width: 991.98px) {
    .navbar {
        padding-block: .7rem;
    }

    .navbar .container {
        gap: .65rem;
    }

    .navbar-brand {
        flex: 1 1 auto;
        min-width: 0;
    }

    .navbar-toggler {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
    }

    .navbar-collapse {
        width: 100%;
        margin-top: .35rem;
        padding-top: .7rem;
        border-top: 1px solid var(--rohdotar-line);
    }

    .rohdotar-nav-tools,
    .rohdotar-header-search,
    .rohdotar-header-actions,
    .language-switcher,
    .language-switcher select {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 575px) {
    .navbar .container {
        align-items: center;
    }

    .navbar-brand-text {
        font-size: 1.28rem;
    }

    .navbar-toggler {
        min-width: 2.75rem;
        min-height: 2.75rem;
    }

    .rohdotar-hero {
        padding-top: 2.45rem;
    }

    .rohdotar-search-panel {
        gap: .65rem;
    }

    .rohdotar-document__header {
        border-radius: 1.05rem;
    }

    .rohdotar-search-result {
        padding: 1.18rem 1.2rem 1.2rem 1.35rem;
        border-radius: 1.1rem;
    }

    .rohdotar-search-result h2 {
        font-size: 1.28rem;
    }

    .rohdotar-chip {
        font-size: .84rem;
        padding-inline: .68rem;
    }
}

/* Article table of contents.
   The TOC sits inside the .rohdotar-aside-stack column on wide viewports and
   sticks just below the sticky navbar so readers can jump between H2 sections.
   Scrollspy adds .rohdotar-toc__link--active to the link whose section is
   currently in view; see js/toc-scrollspy.js. */
.rohdotar-toc {
    padding: 1.05rem 1.1rem 1.1rem;
    border: 1px solid var(--rohdotar-line);
    border-radius: .375rem;
    background: #ffffff;
}

.rohdotar-toc__heading {
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--rohdotar-muted);
    margin: 0 0 .65rem;
}

.rohdotar-toc__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .15rem;
}

.rohdotar-toc__item {
    margin: 0;
    padding: 0;
}

.rohdotar-toc__link {
    display: block;
    padding: .42rem .65rem;
    border-left: 2px solid transparent;
    border-radius: .35rem;
    color: var(--rohdotar-ink);
    text-decoration: none;
    font-size: .94rem;
    line-height: 1.35;
    transition: color .14s ease, background-color .14s ease, border-color .14s ease;
}

.rohdotar-toc__link:hover,
.rohdotar-toc__link:focus-visible {
    background: var(--rohdotar-surface);
    color: var(--rohdotar-primary-dark);
    text-decoration: none;
}

.rohdotar-toc__link--active {
    color: var(--rohdotar-primary-dark);
    background: var(--rohdotar-surface);
    border-left-color: var(--rohdotar-primary);
    font-weight: 600;
}

@media (min-width: 992px) {
    /* On wide screens the body > header is sticky at top:0, with content
       overlapping ~4rem of vertical space. Match that offset so the TOC
       does not slide under the navbar. */
    .rohdotar-toc {
        position: sticky;
        top: 5rem;
        max-height: calc(100vh - 6rem);
        overflow-y: auto;
    }
}

@media (max-width: 991.98px) {
    /* On narrow viewports the TOC reads as a stacked card; sticky positioning
       is not useful when the aside stacks below the article body. */
    .rohdotar-toc {
        padding: .9rem 1rem 1rem;
    }
    .rohdotar-toc__heading {
        font-size: .78rem;
    }
}

@media print {
    .rohdotar-toc {
        display: none !important;
    }
}

/* Facelift-kerros: tietosivuston viimeistely.
   Murupolku hiljaiseksi tekstipoluksi, artikkelitypografian yksityiskohdat
   ja pienet editoriaaliset eleet. Pidetään tiedoston lopussa, jotta nämä
   voittavat aiemmat template-tyylit. */

/* Murupolku: ei laatikkoa, vaan hiljainen polku sisällön yllä. */
.breadcrumb {
    padding: 0;
    margin: .35rem 0 1.1rem;
    border: 0;
    background: transparent;
    font-size: .9rem;
}

.breadcrumb-item {
    font-weight: 500;
}

.breadcrumb-item a {
    color: var(--rohdotar-muted);
}

.breadcrumb-item a:hover,
.breadcrumb-item a:focus {
    color: var(--rohdotar-primary-dark);
}

.breadcrumb-item.active {
    color: var(--rohdotar-ink);
    font-weight: 600;
}

/* Tekstin valintaväri: hento kulta, sama molemmissa väritiloissa. */
::selection {
    background: rgba(216, 183, 108, .35);
}

/* Artikkelin aloituskappale hieman suurempana johdantona. */
.rohdotar-document__body > p:first-of-type {
    font-size: 1.13rem;
    line-height: 1.72;
}

/* Listamerkit brändin sävyyn. */
.rohdotar-document__body ul > li::marker {
    color: var(--rohdotar-primary);
}

.rohdotar-document__body ol > li::marker {
    color: var(--brand-accent-dark);
    font-weight: 600;
}

/* Lainaus: serif-kursiivi ja kultainen reunaviiva, samaa kieltä kuin H2. */
.rohdotar-document__body blockquote {
    margin: 1.75rem 0;
    padding: .35rem 0 .35rem 1.1rem;
    border-left: .22rem solid var(--brand-accent);
    color: var(--rohdotar-muted);
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-style: italic;
}

.rohdotar-document__body blockquote p:last-child {
    margin-bottom: 0;
}

/* Erotinviiva: lyhyt kultainen viiva keskellä. */
.rohdotar-document__body hr {
    width: 5rem;
    margin: 2.4rem auto;
    border: 0;
    border-top: 2px solid var(--brand-accent);
    opacity: .6;
}

/* Taulukot: hiusviivat, ei raidoitusta. */
.rohdotar-document__body table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    font-size: .97rem;
}

.rohdotar-document__body th {
    padding: .6rem .75rem;
    border-bottom: 2px solid var(--rohdotar-primary);
    color: var(--rohdotar-ink);
    font-weight: 650;
    text-align: left;
}

.rohdotar-document__body td {
    padding: .6rem .75rem;
    border-bottom: 1px solid var(--rohdotar-line);
    vertical-align: top;
}

/* H3 pienempi serif-porras H2:n alle. */
.rohdotar-document__body h3 {
    margin-top: 2rem;
    margin-bottom: .75rem;
    font-size: 1.22rem;
}

/* Artikkelin linkit: näkyvä mutta rauhallinen alleviivaus. */
.rohdotar-document__body a {
    text-decoration-thickness: .06em;
    text-underline-offset: .16em;
    text-decoration-color: rgba(15, 118, 110, .45);
}

.rohdotar-document__body a:hover,
.rohdotar-document__body a:focus {
    text-decoration-color: currentColor;
}
