/* ==========================================================================
   RandGrid Design System — Narrow Tech-Fashion Industrial UI
   Light mode default, explicit Dark mode toggle, zero wide-screen sprawl.
   ========================================================================== */

:root {
    --bg-page: #F4F4F0;
    --bg-surface: #FFFFFF;
    --bg-elevated: #FAFAF8;
    --bg-muted: #EAEAE4;
    --bg-dot: rgba(17, 17, 19, 0.08);

    --text-primary: #111113;
    --text-secondary: #52525B;
    --text-muted: #7C7C85;

    --border-subtle: #DCDCD4;
    --border-strong: #18181B;

    --accent: #FF4800;
    --accent-hover: #DF3F00;
    --accent-ink: #FFFFFF;
    --accent-soft: rgba(255, 72, 0, 0.09);

    --cobalt: #0055FF;
    --cobalt-soft: rgba(0, 85, 255, 0.09);

    --success: #0F8A5F;
    --success-soft: rgba(15, 138, 95, 0.11);
    --warning: #C97A00;
    --warning-soft: rgba(201, 122, 0, 0.12);
    --danger: #D92D20;
    --danger-soft: rgba(217, 45, 32, 0.10);

    --shadow-sm: 0 1px 2px rgba(17, 17, 19, 0.04);
    --shadow-md: 0 11px 33px rgba(17, 17, 19, 0.08);

    --radius-xs: 4px;
    --radius-sm: 6.5px;
    --radius-md: 11px;
    --radius-lg: 15.5px;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --shell-width: 924px;
    --header-height: 61px;
}

[data-theme="dark"] {
    --bg-page: #0C0C0E;
    --bg-surface: #141417;
    --bg-elevated: #1A1A1F;
    --bg-muted: #212127;
    --bg-dot: rgba(255, 255, 255, 0.07);

    --text-primary: #F4F4F6;
    --text-secondary: #A1A1AA;
    --text-muted: #71717A;

    --border-subtle: #27272E;
    --border-strong: #E4E4E7;

    --accent: #FF5A1F;
    --accent-hover: #FF713E;
    --accent-ink: #0C0C0E;
    --accent-soft: rgba(255, 90, 31, 0.14);

    --cobalt: #4D88FF;
    --cobalt-soft: rgba(77, 136, 255, 0.14);

    --success: #22C58B;
    --success-soft: rgba(34, 197, 139, 0.14);
    --warning: #F59E0B;
    --warning-soft: rgba(245, 158, 11, 0.14);
    --danger: #F87171;
    --danger-soft: rgba(248, 113, 113, 0.14);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 15.5px 39px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-page);
    background-image: radial-gradient(var(--bg-dot) 1px, transparent 1px);
    background-size: 22px 22px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 15.5px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

.site-shell {
    width: 100%;
    max-width: var(--shell-width);
    margin: 0 auto;
    padding-left: 19.5px;
    padding-right: 19.5px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
    position: relative;
    z-index: 60;
    background: var(--bg-page);
    border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 13.5px;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15.5px;
    letter-spacing: -0.02em;
    padding: 5.5px 8.5px 5.5px 4px;
    border-radius: var(--radius-xs);
    white-space: nowrap;
    transition: color 0.15s ease;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xs);
    background: var(--bg-surface);
    color: var(--accent);
}

.brand-link.is-active .brand-text {
    color: var(--accent);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-dropdown {
    position: relative;
}

.nav-trigger {
    display: inline-flex;
    align-items: center;
    gap: 5.5px;
    padding: 6.5px 12px;
    border: 1px solid transparent;
    border-radius: var(--radius-xs);
    background: transparent;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 15px;
    color: var(--text-secondary);
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.nav-trigger:hover,
.nav-trigger[aria-expanded="true"],
.nav-trigger.is-active {
    color: var(--text-primary);
    background: var(--bg-surface);
    border-color: var(--border-subtle);
}

.nav-trigger.is-active {
    border-color: var(--accent);
}

.nav-caret {
    transition: transform 0.18s ease;
    opacity: 0.7;
}

.nav-trigger[aria-expanded="true"] .nav-caret {
    transform: rotate(180deg);
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 6.5px);
    left: 0;
    min-width: 269px;
    padding: 6.5px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    display: none;
    z-index: 80;
}

.dropdown-panel::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 11px;
}

.nav-dropdown.is-open .dropdown-panel {
    display: block;
}

.dropdown-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 5.5px 8.5px 6.5px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 4px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7.5px 8.5px;
    border-radius: var(--radius-xs);
    font-size: 14.5px;
    color: var(--text-secondary);
    transition: background 0.12s ease, color 0.12s ease;
}

.dropdown-item:hover {
    background: var(--bg-muted);
    color: var(--text-primary);
}

.dropdown-item.is-current {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
}

.dropdown-icon {
    display: inline-flex;
    opacity: 0.85;
}

.dropdown-label {
    flex: 1;
}

.dropdown-idx {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--text-muted);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 6.5px;
}

.icon-btn {
    width: 37px;
    height: 37px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xs);
    background: var(--bg-surface);
    color: var(--text-primary);
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.icon-btn:hover {
    border-color: var(--border-strong);
}

[data-theme="light"] .icon-moon {
    display: none;
}

[data-theme="dark"] .icon-sun {
    display: none;
}

.mobile-menu-btn {
    display: none;
}

.mobile-menu-btn .icon-close {
    display: none;
}

.mobile-menu-btn[aria-expanded="true"] .icon-open {
    display: none;
}

.mobile-menu-btn[aria-expanded="true"] .icon-close {
    display: inline-flex;
}

.mobile-drawer {
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
}

.mobile-drawer-inner {
    padding-top: 15.5px;
    padding-bottom: 22px;
    display: flex;
    flex-direction: column;
    gap: 15.5px;
}

.mobile-home-link {
    display: flex;
    align-items: center;
    gap: 8.5px;
    padding: 11px 13.5px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-weight: 600;
    background: var(--bg-elevated);
}

.mobile-home-link.is-current {
    border-color: var(--accent);
    color: var(--accent);
}

.mobile-group-title {
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 6.5px;
}

.mobile-group-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6.5px;
}

.mobile-link {
    display: flex;
    align-items: center;
    gap: 7.5px;
    padding: 8.5px 11px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xs);
    font-size: 14px;
    color: var(--text-secondary);
    background: var(--bg-elevated);
}

.mobile-link.is-current {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
}

/* ==========================================================================
   Main & Hero Header
   ========================================================================== */

.site-main {
    flex: 1;
    padding: 24px 0 39px;
}

.tool-hero {
    margin-bottom: 19.5px;
    padding-bottom: 15.5px;
    border-bottom: 1px solid var(--border-subtle);
}

.tool-hero-meta {
    display: flex;
    align-items: center;
    gap: 8.5px;
    margin-bottom: 6.5px;
}

.tool-badge-idx {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--accent);
}

.tool-badge-cat {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    padding: 2px 6.5px;
    border: 1px solid var(--border-subtle);
    border-radius: 3px;
    background: var(--bg-surface);
    color: var(--text-muted);
}

.tool-h1 {
    margin: 0 0 4px;
    font-family: var(--font-display);
    font-size: 29px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.tool-sub {
    margin: 0;
    color: var(--text-secondary);
    font-size: 15px;
}

/* ==========================================================================
   Shared Precision Primitives (Panels, Controls, Buttons, Inputs)
   ========================================================================== */

.panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 17.5px;
    box-shadow: var(--shadow-sm);
}

.panel-muted {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 13.5px;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 11px;
    margin-bottom: 13.5px;
}

.panel-title {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
}

.field-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 5.5px;
}

.input,
.select,
.textarea {
    width: 100%;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xs);
    background: var(--bg-elevated);
    color: var(--text-primary);
    padding: 8.5px 11px;
    font-size: 15px;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.input:focus,
.select:focus,
.textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-surface);
}

.textarea {
    resize: vertical;
    line-height: 1.5;
}

.mono {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6.5px;
    padding: 8.5px 15.5px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xs);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.2;
    transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.btn:hover {
    border-color: var(--border-strong);
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.btn-cobalt {
    background: var(--cobalt);
    border-color: var(--cobalt);
    color: #FFFFFF;
}

.btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: var(--bg-muted);
    border-color: transparent;
    color: var(--text-primary);
}

.btn-sm {
    padding: 5.5px 11px;
    font-size: 13.5px;
}

.btn-lg {
    padding: 12px 22px;
    font-size: 16px;
}

.segmented {
    display: inline-flex;
    padding: 3px;
    background: var(--bg-muted);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xs);
    gap: 2px;
}

.seg-btn {
    padding: 5.5px 12px;
    border: none;
    border-radius: 3px;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    transition: background 0.14s ease, color 0.14s ease;
}

.seg-btn.is-active {
    background: var(--bg-surface);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 5.5px;
    padding: 4px 10px;
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    background: var(--bg-elevated);
    font-size: 13.5px;
    color: var(--text-secondary);
    transition: border-color 0.14s ease, color 0.14s ease, background 0.14s ease;
}

.chip:hover {
    border-color: var(--border-strong);
    color: var(--text-primary);
}

.chip.is-active {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
}

.toggle-check {
    display: inline-flex;
    align-items: center;
    gap: 7.5px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}

.toggle-check input[type="checkbox"] {
    accent-color: var(--accent);
    width: 16.5px;
    height: 16.5px;
    margin: 0;
}

.not-found-panel {
    margin-bottom: 17.5px;
    border-color: var(--warning);
    background: var(--warning-soft);
}

.nf-code {
    font-family: var(--font-mono);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--warning);
}

.nf-msg {
    margin: 4px 0 0;
    font-size: 14.5px;
}

/* ==========================================================================
   Reserved Article Slot
   ========================================================================== */

.article-slot {
    margin-top: 29px;
}

.article-reserved {
    display: flex;
    align-items: center;
    gap: 13.5px;
    padding: 13.5px 15.5px;
    border: 1px dashed var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 12px;
}

.article-reserved-tag {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.article-reserved-line {
    flex: 1;
    height: 1px;
    background: var(--border-subtle);
}

.article-reserved-meta {
    opacity: 0.7;
}

.article-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 27px 24px;
    line-height: 1.75;
    color: var(--text-secondary);
    font-size: 16px;
}

.article-content h2 {
    margin: 27px 0 11px;
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.article-content h2:first-child {
    margin-top: 0;
}

.article-content h3 {
    margin: 19.5px 0 6.5px;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
}

.article-content p {
    margin: 0 0 13.5px;
}

.article-content ul,
.article-content ol {
    margin: 0 0 15.5px;
    padding-left: 22px;
}

.article-content li {
    margin-bottom: 6.5px;
}

.article-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.article-content blockquote {
    margin: 15.5px 0;
    padding: 11px 15.5px;
    border-left: 3px solid var(--accent);
    background: var(--bg-elevated);
    border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
    color: var(--text-primary);
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 15.5px 0;
    font-size: 15px;
}

.article-content th,
.article-content td {
    padding: 8.5px 11px;
    border: 1px solid var(--border-subtle);
    text-align: left;
}

.article-content th {
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-family: var(--font-display);
    font-weight: 600;
}

.article-content details {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xs);
    padding: 11px 13.5px;
    margin-bottom: 8.5px;
    background: var(--bg-elevated);
}

.article-content summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
}

.article-content details p {
    margin: 8.5px 0 0;
}

.article-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13.5px;
    margin: 15.5px 0;
}

.article-box {
    padding: 13.5px 15.5px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xs);
    background: var(--bg-elevated);
}

@media (max-width: 600px) {
    .article-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    padding: 24px 0 31px;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 11px;
    padding-bottom: 17.5px;
    margin-bottom: 17.5px;
    border-bottom: 1px solid var(--border-subtle);
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 8.5px;
    font-family: var(--font-display);
    font-weight: 700;
}

.footer-version {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    padding: 1px 6.5px;
    border: 1px solid var(--border-subtle);
    border-radius: 3px;
}

.footer-meta {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 13.5px;
    color: var(--text-muted);
}

.footer-lang-select {
    font-family: var(--font-mono);
    font-size: 12px;
    padding: 3px 8.5px;
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    background: var(--bg-elevated);
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color 0.14s ease;
}

.footer-lang-select:hover,
.footer-lang-select:focus {
    outline: none;
    border-color: var(--accent);
}

.footer-directory {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 19.5px;
}

.footer-col-title {
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 8.5px;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5.5px;
}

.footer-col a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 0.14s ease;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 19.5px;
    padding-top: 15.5px;
    border-top: 1px solid var(--border-subtle);
    font-size: 13.5px;
    color: var(--text-muted);
}

.footer-copy {
    font-family: var(--font-mono);
    font-size: 12px;
}

.footer-legal {
    display: inline-flex;
    align-items: center;
    gap: 11px;
}

.footer-legal a {
    color: var(--text-secondary);
    transition: color 0.14s ease;
}

.footer-legal a:hover {
    color: var(--accent);
}

.footer-sep {
    opacity: 0.45;
}

/* ==========================================================================
   Toast Notifications & Fullscreen Helpers
   ========================================================================== */

.toast-stack {
    position: fixed;
    bottom: 19.5px;
    right: 19.5px;
    z-index: 120;
    display: flex;
    flex-direction: column;
    gap: 8.5px;
    pointer-events: none;
}

.toast {
    background: var(--text-primary);
    color: var(--bg-page);
    padding: 10px 15.5px;
    border-radius: var(--radius-xs);
    font-family: var(--font-mono);
    font-size: 13.5px;
    box-shadow: var(--shadow-md);
    animation: toast-in 0.18s ease forwards;
}

@keyframes toast-in {
    from { opacity: 0; transform: translateY(6.5px); }
    to { opacity: 1; transform: translateY(0); }
}

.is-fullscreen-stage:fullscreen {
    background: var(--bg-page);
    padding: 31px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

/* ==========================================================================
   Continuous Timer Alarm Modal
   ========================================================================== */

.alarm-backdrop {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(12, 12, 14, 0.62);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 19.5px;
}

.alarm-modal {
    width: 100%;
    max-width: 418px;
    background: var(--bg-surface);
    border: 2px solid var(--accent);
    border-radius: var(--radius-md);
    padding: 27px 22px;
    text-align: center;
    box-shadow: var(--shadow-md);
    animation: alarm-pulse 1.1s ease-in-out infinite;
}

@keyframes alarm-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 72, 0, 0.35), var(--shadow-md); }
    50% { box-shadow: 0 0 0 11px rgba(255, 72, 0, 0), var(--shadow-md); }
}

.alarm-icon {
    width: 53px;
    height: 53px;
    margin: 0 auto 13.5px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.alarm-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6.5px;
}

.alarm-sub {
    font-family: var(--font-mono);
    font-size: 13.5px;
    color: var(--text-secondary);
    margin: 0 0 19.5px;
}

/* ==========================================================================
   Responsive Breakpoints (Mobile-first refinement for narrow viewports)
   ========================================================================== */

@media (max-width: 760px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: inline-flex;
    }

    .tool-h1 {
        font-size: 24px;
    }

    .footer-directory {
        grid-template-columns: 1fr;
        gap: 15.5px;
    }

    .footer-col ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6.5px 13.5px;
    }
}

@media (max-width: 440px) {
    .site-shell {
        padding-left: 15.5px;
        padding-right: 15.5px;
    }

    .brand-text {
        font-size: 14.5px;
    }

    .mobile-group-grid {
        grid-template-columns: 1fr;
    }

    .footer-col ul {
        grid-template-columns: 1fr;
    }
}
