/*
|--------------------------------------------------------------------------
| Navigation Cascade Style Sheet
|--------------------------------------------------------------------------
|
| Main stylesheet for the Familie Kuipers website.
|
| Responsibilities
| ----------------
| • Global colour variables
| • Light and Dark theme definitions
| • Site-wide layout
| • Header and footer presentation
| • Navigation menus
| • Account controls
| • Language selector
| • Theme selector
| • Accessibility helpers
| • Responsive behaviour
| • Interactive visual effects
|
| Design Goals
| ------------
| • Consistent appearance across devices
| • Mobile-first navigation
| • High accessibility
| • Minimal JavaScript dependencies
| • Centralised theme management through CSS variables
|
| Stylesheet Structure
| --------------------
|  1. Root Variables
|  2. Light Theme
|  3. Dark Theme
|  4. Shared Effects
|  5. Initial Page Loading
|  6. Header
|     6.1 Navigation Menu
|     6.2 Account Menu
|     6.3 Header Control Buttons
|          6.31 Language Selector
|          6.32 Theme Selector
|  7. Main Layout
|  8. Footer
|          8.1 Footer Layout
|          8.2 Footer Validation Badges
|          8.3 Footer Links
|          8.4 Footer Hyperlinks
|          8.5 Footer Menu
|          8.6 Footer Menu Button
|          8.7 Footer Dropdown
|          8.8 Footer Dropdown Links
|          8.9 Mobile Footer
|  9. Privacy Tables
|          9.1 Privacy Table Layout
|          9.2 Table Cell Styling
|          9.3 Column Width Distribution
|          9.4 Border Cleanup
|          9.5 Table Header
|          9.6 Alternate Row Coloring
|          9.7 Row Hover Eff
|          9.8 Inline Code Styling  2026-11-20ect
|          9.9 Claims Debug Tables
|          9.10 Diagnostics Tables
|          9.11 Claims Notes
| 10. Error Pages
| 11. Responsive Design
| 12. Accessibility
|
| Commenting Convention
| ---------------------
| File date:
|     Last updated : YYYY-MM-DD
|
| Section date:
|     Header 2026-11-25
|
| Meaning:
|     Indicates the most recent modification date of the
|     specific section, not the entire stylesheet.
|
| Copyright    : 2022-2026 JP Kuipers
| Last updated: 2026-11-24
|
|--------------------------------------------------------------------------
*/

/* ==========================================================================
   1 Root Variables
   Last Updated: 2026-11-20
   ==========================================================================
   Global design tokens shared by both light and dark themes.

   Contains:
   • Brand colours
   • Theme-independent colours
   • Hover effects
   • Glow effects
   • Table styling variables
   ========================================================================== */

:root {
    /* ----------------------------------------------------------------------
       Language Selector Colours
       Last Updated: 2026-11-20
       ---------------------------------------------------------------------- */
    --color-dutch: #ff7f00;
    --color-english: #3b82f6;

    /* ----------------------------------------------------------------------
       Theme Indicator Colours
       Last Updated: 2026-11-20
       ---------------------------------------------------------------------- */
    --color-light-side: #4ade80;
    --color-dark-side: #ef4444;

    /* ----------------------------------------------------------------------
       Interactive Navigation Colours
       Last Updated: 2026-11-20
       ---------------------------------------------------------------------- */
    --color-navigation-hover: #60a5fa;

    /* ----------------------------------------------------------------------
       Table Styling
       Last Updated: 2026-11-20
       ---------------------------------------------------------------------- */
    --color-table-border: #d1d5db;
    --color-table-header: #f3f4f6;
    --color-table-row-alt: #f9fafb;
    --color-table-hover: #eff6ff;
    --color-table-code-bg: #f3f4f6;

    --table-radius: 12px;

    /* ----------------------------------------------------------------------
       Transition Settings
       Last Updated: 2026-11-20
       ---------------------------------------------------------------------- */
    --global-transition-time: 0.2s;

    /* ----------------------------------------------------------------------
       Animation Settings
       Last Updated: 2026-11-20
       ---------------------------------------------------------------------- */
    --hover-scale: 1.08;

    /* ----------------------------------------------------------------------
       Glow Effect Settings
       Last Updated: 2026-11-20
       ---------------------------------------------------------------------- */
    --glow-small: 4px;
    --glow-large: 10px;

    /* ----------------------------------------------------------------------
       Layout Settings
       Last Updated: 2026-11-20
       ---------------------------------------------------------------------- */
    --header-height: 120px;
    --page-padding: 20px;
    --footer-height: 80px;
}

/* ==========================================================================
   2 Light Theme
   Last Updated: 2026-11-20
   ==========================================================================
   Default visual appearance.

   Applied when:
   data-theme="light"

   Provides:
   • Light background colours
   • Dark foreground colours
   • Bright table styling
   ========================================================================== */

[data-theme="light"] {
    color-scheme: light;

    --color-bg: whitesmoke;
    --color-fg: black;

    --color-hf: #004578;
    --color-tx: whitesmoke;

    /* Table colors (Light theme) */
    --color-table-border: #d1d5db;
    --color-table-header: #f3f4f6;
    --color-table-row-alt: #f9fafb;
    --color-table-hover: #eff6ff;
    --color-table-code-bg: #f3f4f6;
}

/* ==========================================================================
   3 Dark Theme
   Last Updated: 2026-11-20
   ==========================================================================
   Alternative low-light appearance.

   Applied when:
   data-theme="dark"

   Provides:
   • Dark background colours
   • High contrast text
   • Dark table styling
   ========================================================================== */

[data-theme="dark"] {
    color-scheme: dark;

    --color-bg: #004578;
    --color-fg: #e8eef5;

    --color-hf: #002050;
    --color-tx: #f5f5f5;

    /* Table colors (Dark theme) */
    --color-table-border: #2f2f35;
    --color-table-header: #002050;
    --color-table-row-alt: #003364;
    --color-table-hover: #2a2a30;
    --color-table-code-bg: #002050;
}

/* ==========================================================================
   4 Shared Hover Glow Effect
   Last Updated: 2026-11-20
   ==========================================================================
   Reusable visual effect used by buttons, icons and navigation elements.

   Required variable:
   --glow-color

   Example:
   .language-icon {
       --glow-color: var(--color-dutch);
   }
   ========================================================================== */

.glow-hover:hover {
    transform: scale(var(--hover-scale));

    filter:
        drop-shadow(0 0 var(--glow-small) var(--glow-color))
        drop-shadow(0 0 var(--glow-large) var(--glow-color));
}

/* ==========================================================================
   5 Initial Page Loading
   Last Updated: 2026-11-20
   ==========================================================================
   Prevents partially translated or unstyled content from becoming visible
   while JavaScript initializes language, theme and rendering logic.

   Removed automatically once page initialization has completed.
   ========================================================================== */

html.loading main {
    visibility: hidden;
}

/* ==========================================================================
   6 Header
   Last Updated: 2026-11-20
   ==========================================================================
   Sticky site header containing:

   • Navigation menu
   • Site title
   • Language selector
   • Theme selector
   • Login / account controls

   The header remains visible while scrolling.
   ========================================================================== */

header {
    position: fixed;
    
    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    background-color: var(--color-hf);
    color: var(--color-tx);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 15px;
}

header h1 a {
    margin-left: 15px;
    margin-right: auto;
    
    color: var(--color-tx);

    text-decoration: none;

    transition:
        text-shadow 0.2s ease;
}

header h1 a:hover {
    text-shadow:
        0 0 4px var(--color-navigation-hover),
        0 0 10px var(--color-navigation-hover),
        0 0 18px var(--color-navigation-hover),
        0 0 30px var(--color-navigation-hover);
}

.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 15px 10px 15px;

    border-bottom: 4px solid black;
}

.header-controls {
    display: flex;
    align-items: center;

    gap: 10px;
}

button {
    transition: all var(--global-transition-time) ease-in-out;

    cursor: pointer;

    color: var(--color-bg);
    background-color: var(--color-fg);
}

/* ==========================================================================
   6.1 Navigation Menu
   Last Updated: 2026-11-20
   ==========================================================================
   Primary site navigation.

   The traditional horizontal navigation bar has been replaced by a
   compact dropdown menu that works on both desktop and mobile devices.

   Structure:

   .navigation-menu
   ├─ .navigation-button
   └─ .navigation-dropdown
      ├─ <a>
      ├─ <a>
      └─ <a>

   Visibility of the dropdown is controlled by JavaScript through the
   .show class. This avoids problems with :hover on touch devices.
   ========================================================================== */

/* ==========================================================================
   6.11 Navigation Menu Container
   Last Updated: 2026-11-20
   ==========================================================================
   Positions the dropdown relative to the menu button.
   ========================================================================== */

.navigation-menu {
    position: relative;
    float: left;

    margin-left: 15px;
    margin-right: 15px;
}

/* ==========================================================================
   6.12 Navigation Menu Button
   Last Updated: 2026-11-20
   ==========================================================================
   Opens and closes the dropdown menu.
   ========================================================================== */

.navigation-button {
    padding: 6px 10px;

    color: var(--color-fg);
    background-color: var(--color-bg);

    border: 1px solid black;
    border-radius: 4px;

    cursor: pointer;

    transition: all var(--global-transition-time) ease-in-out;
}

.navigation-button:hover {
    box-shadow:
        0 0 var(--glow-small) var(--color-navigation-hover),
        0 0 var(--glow-large) var(--color-navigation-hover);
}

/* ==========================================================================
   6.13 Navigation Dropdown
   Last Updated: 2026-11-20
   ==========================================================================
   Hidden by default.
   JavaScript adds the .show class when the menu is opened.
   ========================================================================== */

.navigation-dropdown {
    display: none;

    position: absolute;

    top: 100%;
    left: 0;

    min-width: 220px;

    background-color: var(--color-bg);

    border: 1px solid black;
    border-radius: 4px;

    z-index: 1000;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Dropdown visible */
.navigation-dropdown.show {
    display: block;
}

/* ==========================================================================
   6.14 Navigation Links
   Last Updated: 2026-11-20
   ==========================================================================
   Individual entries within the dropdown menu.
   ========================================================================== */

.navigation-dropdown a {
    display: block;

    padding: 8px 12px;

    color: var(--color-fg);

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

/* Hover / touch feedback */

.navigation-dropdown a:hover {
    background-color: var(--color-table-hover);

    color: var(--color-navigation-hover);
}

/* ==========================================================================
   6.15 Active Navigation Entry
   Last Updated: 2026-11-20
   ==========================================================================
   Highlights the currently selected page.
   ========================================================================== */

.navigation-dropdown a.active-page {
    border-left: 4px solid rgb(14, 245, 6);

    font-weight: 600;
}

/* ==========================================================================
   6.16 Navigation Accessibility
   Last Updated: 2026-11-20
   ==========================================================================
   Keyboard navigation support.
   ========================================================================== */

.navigation-button:focus-visible,
.navigation-dropdown a:focus-visible {
    outline: 2px solid var(--color-light-side);

    outline-offset: 2px;
}

/* ==========================================================================
   6.2 Account Menu
   Last Updated: 2026-11-20
   ==========================================================================

   User account controls displayed on the right side of the header.

   Provides:

   • Login button for anonymous visitors
   • Account dropdown for authenticated users
   • Access to Profile, Account and Logout actions

   Visibility of the dropdown is controlled by JavaScript through the
   .show class.

   ========================================================================== */

/* ==========================================================================
   6.21 Account Menu Container
   Last Updated: 2026-11-20
   ==========================================================================
   Positions the account dropdown relative to the account button.
   ========================================================================== */

.account-menu {
    position: relative;

    float: right;

    margin-left: 15px;
    margin-right: 15px;
}

/* ==========================================================================
   6.22 Login / Account Button
   Last Updated: 2026-11-20
   ==========================================================================
   Used for:
   • Login button
   • Authenticated account menu button
   ========================================================================== */

.login-button {
    padding: 6px 10px;

    color: var(--color-fg);
    background-color: var(--color-bg);

    border: 1px solid black;
    border-radius: 4px;

    text-decoration: none;

    cursor: pointer;

    transition: all var(--global-transition-time) ease-in-out;
}

.login-button:hover {
    box-shadow:
        0 0 var(--glow-small) var(--color-navigation-hover),
        0 0 var(--glow-large) var(--color-navigation-hover);
}

/* ==========================================================================
   6.23 Account Dropdown
   Last Updated: 2026-11-20
   ==========================================================================
   Hidden by default.
   JavaScript adds the .show class when the menu is opened.
   ========================================================================== */

.account-dropdown {
    display: none;

    position: absolute;

    top: 100%;
    right: 0;

    min-width: 180px;

    background-color: var(--color-bg);

    border: 1px solid black;
    border-radius: 4px;

    z-index: 1000;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Dropdown visible */

.account-dropdown.show {
    display: block;
}

/* ==========================================================================
   6.24 Account Menu Links
   Last Updated: 2026-11-20
   ==========================================================================
   Individual links displayed inside the account dropdown.
   ========================================================================== */

.account-dropdown a {
    display: block;

    padding: 8px 12px;

    color: var(--color-fg);

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.account-dropdown a:hover {
    background-color: var(--color-table-hover);

    color: var(--color-navigation-hover);
}

/* ==========================================================================
   6.3 Header Control Buttons
   Last Updated: 2026-11-20
   ==========================================================================
   Shared styling used by:

   • Language selector
   • Theme selector
   • Future header icon controls

   The buttons themselves remain visually transparent while the icon
   provides the interactive feedback.
   ========================================================================== */

/* ==========================================================================
   6.31 Language Selector
   Last Updated: 2026-11-20
   ==========================================================================
   Displays the currently selected language and provides visual feedback
   during language switching.
   ========================================================================== */

.language-icon {
    width: 32px;
    height: 32px;

    display: block;

    transition:
        transform 0.2s ease,
        filter 0.2s ease;
}

.dutch-flag {
    --glow-color: var(--color-dutch);
}

.english-flag {
    --glow-color: var(--color-english);
}

.language-button,
[data-theme-toggle] {
    background: transparent;

    border: none;

    padding: 0;
    margin: 0;

    cursor: pointer;

    display: flex;

    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   6.32 Theme Selector
   Last Updated: 2026-11-20
   ==========================================================================
   Visual indicator for the active light or dark theme.
   ========================================================================== */

.theme-button {
    width: 32px;
    height: 32px;

    display: flex;

    align-items: center;
    justify-content: center;
}

.theme-icon {
    width: 32px;
    height: 32px;

    display: block;

    transition:
        transform 0.2s ease,
        filter 0.2s ease;
}

.light-side {
    --glow-color: var(--color-light-side);
}

.dark-side {
    --glow-color: var(--color-dark-side);
}

/* ==========================================================================
   7. Main Layout
   Last Updated: 2026-11-20
   ==========================================================================
   The page uses a flexbox layout to ensure the footer remains at the
   bottom of the viewport when content is short.

   Structure:

   body
   ├─ header
   ├─ main
   └─ footer

   The main element grows automatically and occupies any remaining space
   between header and footer.
   ========================================================================== */

body {
    /* Full visible viewport height */
    min-height: 100dvh;

    /* Remove browser default margins */
    margin: 0;

    /* Vertical page layout */
    display: flex;
    flex-direction: column;

    /* Theme colours */
    background-color: var(--color-bg);
    color: var(--color-fg);
}

/* ==========================================================================
   7.1 Main Content Area
   Last Updated: 2026-11-20
   ==========================================================================
   Expands to fill remaining page height between the header and footer.
   ========================================================================== */

main {
    flex: 1;

    padding:
        var(--header-height)
        var(--page-padding)
        var(--footer-height)
        var(--page-padding);
}

/* ==========================================================================
   8 Footer
   Last Updated: 2026-11-20
   ==========================================================================
   Site-wide footer displayed on every page.

   Desktop:
   • Internet.nl validation badges
   • Copyright information
   • Privacy navigation links

   Mobile:
   • Validation badges are hidden
   • Privacy links are grouped under the "Meer" menu

   The footer remains fixed at the bottom of the viewport while the
   main content scrolls behind it.
   ========================================================================== */

footer {
    position: fixed;

    bottom: 0;
    left: 0;

    width: 100%;

    z-index: 1000;
    background-color: var(--color-hf);
    color: var(--color-tx);

    border-top: 5px solid black;
}

/* ==========================================================================
   8.1 Footer Layout
   Last Updated: 2026-11-20
   ==========================================================================
   Main footer container.
   Aligns footer content horizontally on desktop while keeping a
   consistent appearance across screen sizes.
   ========================================================================== */

.footer-main {
    display: flex;

    align-items: center;
    justify-content: flex-end;

    gap: 15px;

    padding: 10px 15px;
}

/* ==========================================================================
   8.2 Footer Validation Badges
   Last Updated: 2026-11-20
   ==========================================================================
   Internet.nl website and e-mail validation badges.
   Hidden on mobile devices.
   ========================================================================== */

.footer-badges {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-right: auto;
}

/* ==========================================================================
   8.3 Footer Links
   Last Updated: 2026-11-20
   ==========================================================================
   Desktop footer navigation.
   Hidden on mobile devices.
   ========================================================================== */

.footer-links {
    display: flex;

    align-items: center;

    gap: 15px;
}

/* ==========================================================================
   8.4 Footer Hyperlinks
   Last Updated: 2026-11-20
   ==========================================================================
   Shared styling used by all footer links.
   ========================================================================== */

footer a {
    color: var(--color-tx);

    text-decoration: none;

    transition:
        color 0.2s ease,
        text-shadow 0.2s ease;
}

footer a:hover {
    color: var(--color-navigation-hover);

    text-shadow:
        0 0 var(--glow-small) var(--color-navigation-hover),
        0 0 var(--glow-large) var(--color-navigation-hover);
}

/* ==========================================================================
   8.5 Footer Menu
   Last Updated: 2026-11-20
   ==========================================================================
   Mobile-only footer navigation.
   Displays the privacy pages through a dropdown menu.
   ========================================================================== */

.footer-menu {
    display: none;

    position: relative;
}

/* ==========================================================================
   8.6 Footer Menu Button
   Last Updated: 2026-11-24
   ========================================================================== */

.footer-menu-button {
    padding: 6px 10px;

    color: var(--color-fg);
    background-color: var(--color-bg);

    border: 1px solid black;
    border-radius: 4px;

    cursor: pointer;

    transition: all var(--global-transition-time) ease-in-out;
}

.footer-menu-button:hover {
    box-shadow:
        0 0 var(--glow-small) var(--color-navigation-hover),
        0 0 var(--glow-large) var(--color-navigation-hover);
}

.footer-menu-button:focus-visible,
.footer-dropdown a:focus-visible {
    outline: 2px solid var(--color-light-side);
    outline-offset: 2px;
}

/* ==========================================================================
   8.7 Footer Dropdown
   Last Updated: 2026-11-20
   ==========================================================================
   Hidden by default.
   JavaScript adds the .show class when the menu is opened.
   ========================================================================== */

.footer-dropdown {
    display: none;

    position: absolute;

    right: 0;
    bottom: 100%;

    min-width: 220px;

    background-color: var(--color-bg);

    border: 1px solid black;
    border-radius: 4px;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.3);
}

.footer-dropdown.show {
    display: block;
}

/* ==========================================================================
   8.8 Footer Dropdown Links
   Last Updated: 2026-11-20
   ========================================================================== */

.footer-dropdown a {
    display: block;

    padding: 8px 12px;

    color: var(--color-fg);

    text-decoration: none;
}

.footer-dropdown a:hover {
    background-color: var(--color-table-hover);

    color: var(--color-navigation-hover);
}

/* ==========================================================================
   8.9 Mobile Footer
   Last Updated: 2026-11-20
   ==========================================================================
   Simplifies the footer on smaller screens.
   • Badges are hidden
   • Desktop navigation is hidden
   • "Meer" menu becomes available
   ========================================================================== */

@media (max-width: 768px) {

    .footer-badges {
        display: none;
    }

    .footer-links {
        display: none;
    }

    .footer-menu {
        display: block;
    }

    .footer-main {
        justify-content: space-between;
    }
}

/* ==========================================================================
   9 Privacy Tables
   Last Updated: 2026-11-20
   ==========================================================================
   Standard table layout used for:

   • Privacy statements
   • OIDC claim overviews
   • Data retention policies
   • Security documentation
   • Configuration references

   Tables are designed to support both desktop and mobile devices while
   remaining readable across different theme configurations.
   ========================================================================== */

/* ==========================================================================
   9.1 Privacy Table Layout
   Last Updated: 2026-11-20
   ==========================================================================
   Fixed column widths ensure consistent rendering across pages.
   ========================================================================== */

.privacy-table {
    table-layout: fixed;

    width: 100%;

    margin: 1rem 0 2rem;

    border: 1px solid var(--color-table-border);
    border-radius: var(--table-radius);

    overflow: hidden;

    background: transparent;

    border-collapse: separate;
    border-spacing: 0;
}

/* ==========================================================================
   9.2 Table Cell Styling
   Last Updated: 2026-11-20
   ==========================================================================
   Shared formatting for both table headers and table data cells.
   ========================================================================== */

.privacy-table th,
.privacy-table td {
    padding: 0.875rem 1rem;

    text-align: left;
    vertical-align: top;

    border-right: 1px solid var(--color-table-border);
    border-bottom: 1px solid var(--color-table-border);
}

/* ==========================================================================
   9.3 Column Width Distribution
   Last Updated: 2026-11-20
   ==========================================================================
   Three-column layout:

   1. Identifier / Category
   2. Description
   3. Additional Information
   ========================================================================== */

.privacy-table th:nth-child(1),
.privacy-table td:nth-child(1) {
    width: 15%;
}

.privacy-table th:nth-child(2),
.privacy-table td:nth-child(2) {
    width: 50%;
}

.privacy-table th:nth-child(3),
.privacy-table td:nth-child(3) {
    width: 35%;
}

/* ==========================================================================
   9.4 Border Cleanup
   Last Updated: 2026-11-20
   ==========================================================================
   Removes duplicate borders along the table edges.
   ========================================================================== */

.privacy-table th:last-child,
.privacy-table td:last-child {
    border-right: none;
}

.privacy-table tbody tr:last-child td {
    border-bottom: none;
}

/* ==========================================================================
   9.5 Table Header
   Last Updated: 2026-11-20
   ==========================================================================
   Visual emphasis for column headings.
   ========================================================================== */

.privacy-table th {
    background: var(--color-table-header);

    font-weight: 600;
}

/* ==========================================================================
   9.6 Alternate Row Coloring
   Last Updated: 2026-11-20
   ==========================================================================
   Improves readability in larger data sets.
   ========================================================================== */

.privacy-table tbody tr:nth-child(even) {
    background: var(--color-table-row-alt);
}

/* ==========================================================================
   9.7 Row Hover Effect
   Last Updated: 2026-11-20
   ==========================================================================
   Provides visual feedback during mouse interaction.
   ========================================================================== */

.privacy-table tbody tr:hover {
    background: var(--color-table-hover);
}

/* ==========================================================================
   9.8 Inline Code Styling 
   Last Updated: 2026-11-20
   ==========================================================================
   Used for claim names, configuration values, URLs and technical
   identifiers displayed inside table cells.
   ========================================================================== */

.privacy-table code {
    font-family: Consolas, Monaco, monospace;
    font-size: 0.9em;

    padding: 0.15rem 0.45rem;

    background: var(--color-table-code-bg);

    border: 1px solid var(--color-table-border);
    border-radius: 4px;
}

/* ==========================================================================
   9.9 Claims Debug Tables
   Last Updated: 2026-11-25
   ==========================================================================
   Used by:

    • /Admin/Claims

   Claim names often contain long schema URIs and require a
   different column layout than standard privacy tables.
   ========================================================================== */

.claims-table {
    table-layout: auto;
}

.claims-table td,
.claims-table th {
    overflow-wrap: anywhere;
}

.claims-table code {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.claim-type small {
    display: block;

    margin-top: 4px;

    font-size: 0.8em;

    opacity: 0.8;

    font-family:
        Consolas,
        Monaco,
        monospace;

    overflow-wrap: anywhere;

    word-break: break-all;
}

/* ==========================================================================
   9.10 Diagnostics Tables
   Last Updated: 2026-11-25
   ==========================================================================
   Used by:

    • /Admin/Diagnostics

   Provides consistent alignment for metric/value pairs and
   diagnostics information.
   ========================================================================== */

.diagnostics-table th:nth-child(1),
.diagnostics-table td:nth-child(1) {
    width: 30%;
    font-weight: 600;
}

.diagnostics-table th:nth-child(2),
.diagnostics-table td:nth-child(2) {
    width: 70%;
}

/* ==========================================================================
   9.11 Claims Notes
   Last Updated: 2026-11-25
   ==========================================================================
   Additional diagnostics shown underneath claim values.
   ========================================================================== */

.claim-note {
    display: block;

    margin-top: 4px;

    font-size: 0.85em;

    opacity: 0.8;
}

.claim-type small {
    display: block;

    margin-top: 4px;

    font-size: 0.8em;

    opacity: 0.75;

    font-family:
        Consolas,
        Monaco,
        monospace;

    overflow-wrap: anywhere;

    word-break: break-all;
}

/* ==========================================================================
   10 Error Pages
   Last Updated: 2026-11-20
   ==========================================================================
   Shared layout for application error pages including:

   • 404 Not Found
   • 500 Internal Server Error
   • Access Denied
   • Authentication failures
   ========================================================================== */

main.error-page {
    max-width: 800px;

    margin: 0 auto;

    text-align: center;
}

main.error-page h2 {
    margin-top: 40px;

    font-size: 2em;
}

main.error-page p {
    line-height: 1.5;
}

/* ==========================================================================
   11 Mobile Table Support
   Last Updated: 2026-11-20
   ==========================================================================
   Enables horizontal scrolling when the available screen width becomes
   too small to display all columns simultaneously.

   This prevents column collapse and preserves table readability.
   ========================================================================== */

@media (max-width: 768px) {
    .privacy-table {
        display: block;

        overflow-x: auto;

        -webkit-overflow-scrolling: touch;
    }

    .privacy-table th,
    .privacy-table td {
        min-width: 150px;

        white-space: nowrap;
    }
}

/* ==========================================================================
   12 Keyboard Accessibility
   Last Updated: 2026-11-24
   ==========================================================================
   Provides visible focus indicators for keyboard users.

   ========================================================================== */

footer a:focus-visible,
.language-button:focus-visible,
[data-theme-toggle]:focus-visible,
.navigation-button:focus-visible,
.login-button:focus-visible {
    outline: 2px solid var(--color-light-side);

    outline-offset: 3px;

    border-radius: 4px;

    box-shadow:
        0 0 4px var(--color-light-side);
}

/* Skip Link
   Provides keyboard and screen-reader users with a fast way to bypass
   repetitive navigation and jump directly to the main content area.
   Hidden during normal browsing and becomes visible when focused via
   keyboard navigation (typically by pressing the Tab key). */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10000;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    padding: 0.75rem 1rem;
    background-color: var(--color-bg);
    color: var(--color-fg);
    border: 2px solid var(--color-navigation-hover);
    border-radius: 0.5rem;
}