/* ==========================================================================
   base.css — tokens, header, drawer, settings panel, buttons, article, footer.

   Per-page styling sits beside it: speedo.css, convert.css, page.css.

   System font stack, not a webfont: a Google Fonts link is render-blocking,
   can't be served offline, and resolves to nearly the same faces anyway.
   ========================================================================== */

:root {
    --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: ui-monospace, 'SF Mono', 'Roboto Mono', Menlo, Consolas, monospace;

    --bg-color: #f8faff;
    --surface-color: #f8faff;
    --surface-raised: #f2f4f7;
    --primary-color: #006496;
    --primary-variant: #00507a;
    --on-primary: #ffffff;
    --text-color: #1a1c1e;
    --text-color-secondary: #42474e;
    --divider-color: #c2c7cf;
    --input-border-color: #72777f;
    --error-color: #ba1a1a;
    --on-error-color: #ffffff;
    --track-color: #dee3eb;
    --good-color: #2e7d32;
    --warn-color: #b26a00;
    --inverse-surface: #2f3133;
    --inverse-on-surface: #f0f0f3;
    --shadow-1: 0 1px 2px 0 rgba(0, 0, 0, .1), 0 1px 3px 1px rgba(0, 0, 0, .08);
    --panel-shadow: 0 8px 10px -5px rgba(0, 0, 0, .2), 0 16px 24px 2px rgba(0, 0, 0, .14), 0 6px 30px 5px rgba(0, 0, 0, .12);
    --hover-opacity: .08;
    --pressed-opacity: .12;
    --disabled-opacity: .38;

    --bezel-1: #ffffff;
    --bezel-2: #b9c1cb;
}

[data-theme=dark] {
    --bg-color: #1a1c1e;
    --surface-color: #1a1c1e;
    --surface-raised: #1f2428;
    --primary-color: #92ccff;
    --primary-variant: #b3d9ff;
    --on-primary: #003450;
    --text-color: #e2e2e5;
    --text-color-secondary: #c2c7cf;
    --divider-color: #42474e;
    --input-border-color: #8c9199;
    --error-color: #ffb4ab;
    --on-error-color: #690005;
    --track-color: #363b41;
    --good-color: #7ddc86;
    --warn-color: #ffb951;
    --inverse-surface: #e2e2e5;
    --inverse-on-surface: #1a1c1e;
    --shadow-1: 0 1px 2px 0 rgba(0, 0, 0, .4), 0 1px 3px 1px rgba(0, 0, 0, .3);
    --panel-shadow: 0 8px 10px -5px rgba(0, 0, 0, .4), 0 16px 24px 2px rgba(0, 0, 0, .28), 0 6px 30px 5px rgba(0, 0, 0, .24);
    --bezel-1: #4a535d;
    --bezel-2: #1a1e22;
}

/* The dial face stays a dark instrument cluster in both themes — a white
   speedometer doesn't read as one. */
:root,
[data-theme=dark] {
    --dial-face-1: #313841;
    --dial-face-2: #14181d;
    --dial-ink: #eef2f7;
    --dial-ink-dim: #8d97a3;
    --dial-track: #2c333b;
    --dial-needle: #ff2f2f;
    --dial-accent-1: #00b7ff;
    --dial-accent-2: #0071d8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    font-family: var(--font-sans);
    transition: background-color .3s, color .3s, border-color .3s, box-shadow .3s, fill .3s, opacity .3s;
    -webkit-tap-highlight-color: transparent;
}

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

html,
body {
    width: 100%;
    background-color: var(--bg-color);
    color: var(--text-color);
}

body {
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.app {
    display: flex;
    flex-direction: column;
    /* vh first for Safari below 15.4 and older Android WebViews; svh wins
       where it is understood and keeps the layout clear of the URL bar. */
    min-height: 100vh;
    min-height: 100svh;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    padding: 12px 18px;
    background: var(--primary-color);
    color: var(--on-primary);
    border-radius: 0 0 8px 0;
    font-size: .9rem;
    text-decoration: none;
}

.skip-link:focus {
    left: 0;
}

.hidden {
    display: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* ---------------- header ---------------- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 4px;
    height: 64px;
    border-bottom: 1px solid var(--divider-color);
    flex-shrink: 0;
    background-color: var(--surface-color);
    z-index: 60;
}

.header-title {
    font-weight: 400;
    font-size: 1.375rem;
    line-height: 1.75rem;
    flex-grow: 1;
    margin: 0 4px 0 8px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.icon-button {
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    background-color: transparent;
    color: var(--text-color-secondary);
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    overflow: hidden;
}

.icon-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: currentColor;
    opacity: 0;
    border-radius: 50%;
    transform: scale(1) translate(-50%, -50%);
}

.icon-button:active::after {
    transform: scale(15) translate(-50%, -50%);
    opacity: var(--pressed-opacity);
}

.icon-button:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.ic {
    width: 24px;
    height: 24px;
    display: block;
    fill: currentColor;
}

.ic--line {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------------- language dropup ----------------
   In the footer, opening upward. Seventeen entries do not fit in a single
   column on a phone, so the menu is a grid that gains columns with width and
   scrolls when it runs out of height. */
.langpick {
    display: inline-block;
    margin-bottom: 16px;
}

.langpick-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid var(--divider-color);
    border-radius: 21px;
    background: var(--surface-raised);
    color: var(--text-color);
    font-family: inherit;
    font-size: .875rem;
    font-weight: 500;
    cursor: pointer;
}

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

.langpick-btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.langpick-btn .ic {
    width: 18px;
    height: 18px;
    color: var(--text-color-secondary);
}

.langpick-btn .ic--line {
    transition: transform .2s;
}

.langpick.open .langpick-btn .ic--line {
    transform: rotate(180deg);
}

.langpick-label {
    max-width: 14ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.langpick-menu {
    display: none;
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    z-index: 1002;
    width: max-content;
    max-width: min(92vw, 620px);
    max-height: 60vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 6px;
    border-radius: 12px;
    border: 1px solid var(--divider-color);
    background: var(--surface-raised);
    box-shadow: var(--panel-shadow);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
    text-align: left;
}

.langpick.open .langpick-menu {
    display: grid;
}

.langpick-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--text-color);
    text-decoration: none;
    font-size: .875rem;
    white-space: nowrap;
}

.langpick-menu a:hover {
    background-color: rgba(128, 128, 128, .14);
}

.langpick-menu a[aria-current=true] {
    background: var(--primary-color);
    color: var(--on-primary);
    font-weight: 500;
}

.langpick-flag {
    font-size: 1.05rem;
    line-height: 1;
    flex-shrink: 0;
}

.langpick-name {
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width:560px) {
    .langpick-menu {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .langpick-btn .ic--line {
        transition: none;
    }
}

/* ---------------- drawer ---------------- */
.drawer {
    position: fixed;
    inset: 0 auto 0 0;
    width: 300px;
    max-width: 86%;
    background-color: var(--surface-raised);
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1), box-shadow .3s;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--divider-color);
}

.drawer.active {
    transform: none;
    box-shadow: var(--panel-shadow);
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 4px 0 24px;
    border-bottom: 1px solid var(--divider-color);
    flex-shrink: 0;
}

.panel-title {
    font-size: 1.125rem;
    font-weight: 500;
}

.drawer-body {
    overflow-y: auto;
    padding: 8px 12px calc(24px + env(safe-area-inset-bottom));
    flex: 1;
}

.nav-section {
    font-size: .6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-color-secondary);
    padding: 18px 16px 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 10px 16px;
    border-radius: 24px;
    text-decoration: none;
    color: var(--text-color-secondary);
    font-size: .875rem;
    font-weight: 500;
}

.nav-link:hover {
    background-color: rgba(128, 128, 128, .12);
}

.nav-link[aria-current=page] {
    background-color: var(--primary-color);
    color: var(--on-primary);
}

.nav-link .ic {
    width: 20px;
    height: 20px;
    opacity: .9;
    flex-shrink: 0;
}

.nav-badge {
    margin-left: auto;
    font-size: .625rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--primary-color);
    color: var(--on-primary);
}

.nav-link[aria-current=page] .nav-badge {
    background: var(--on-primary);
    color: var(--primary-color);
}

.nav-sep {
    height: 1px;
    background: var(--divider-color);
    margin: 12px 16px;
}

/* ---------------- main column ---------------- */
.main {
    flex: 1;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 20px 16px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ---------------- buttons ---------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 10px 24px;
    border: none;
    border-radius: 20px;
    font-family: inherit;
    font-size: .875rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
}

.btn .ic {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--on-primary);
    box-shadow: var(--shadow-1);
}

.btn-primary.stop {
    background-color: var(--error-color);
    color: var(--on-error-color);
}

.btn-ghost {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--input-border-color);
}

.btn-ghost:hover:not(:disabled) {
    border-color: var(--primary-color);
}

.btn:disabled {
    opacity: var(--disabled-opacity);
    cursor: not-allowed;
    box-shadow: none;
}

.btn-ghost:disabled {
    opacity: 1;
    color: var(--text-color-secondary);
    border-color: var(--divider-color);
}

.btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ---------------- form controls ---------------- */
.field {
    margin-bottom: 26px;
}

.field-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-color-secondary);
    margin-bottom: 12px;
}

.field-label .ic {
    width: 16px;
    height: 16px;
    cursor: help;
}

.input,
.select {
    width: 100%;
    height: 56px;
    padding: 0 16px;
    border-radius: 4px;
    border: 1px solid var(--input-border-color);
    background-color: transparent;
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    appearance: none;
    -webkit-appearance: none;
}

.select {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2372777f'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 24px;
    padding-right: 40px;
}

[data-theme=dark] .select {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238c9199'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
}

.input:focus,
.select:focus {
    outline: 0;
    border: 2px solid var(--primary-color);
    padding: 0 15px;
}

.input[type=number] {
    -moz-appearance: textfield;
}

.input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.row .field-label {
    margin-bottom: 0;
}

.switch {
    width: 52px;
    height: 32px;
    flex-shrink: 0;
}

.switch input {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
    z-index: 2;
}

.switch .track {
    position: absolute;
    inset: 0;
    background: var(--track-color);
    border: 2px solid var(--input-border-color);
    border-radius: 16px;
}

.switch .track::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--input-border-color);
    border-radius: 50%;
    transition: transform .2s cubic-bezier(.4, 0, .2, 1), width .2s, height .2s, left .2s, background-color .2s;
}

.switch input:checked+.track {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.switch input:checked+.track::before {
    width: 24px;
    height: 24px;
    left: 2px;
    transform: translateY(-50%) translateX(20px);
    background: var(--on-primary);
}

.switch input:focus-visible+.track {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.hint {
    font-size: .75rem;
    line-height: 1.45;
    color: var(--text-color-secondary);
    padding-top: 4px;
}

.notice {
    font-size: .8rem;
    line-height: 1.5;
    color: var(--text-color-secondary);
    padding: 12px;
    border: 1px dashed var(--divider-color);
    border-radius: 8px;
}

.notice strong {
    color: var(--text-color);
    font-weight: 500;
}

/* Chip rows: speed-limit presets, quick conversion values. */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    appearance: none;
    border: 1px solid var(--input-border-color);
    background: transparent;
    color: var(--text-color-secondary);
    border-radius: 16px;
    padding: 6px 14px;
    font-family: inherit;
    font-size: .8125rem;
    font-weight: 500;
    cursor: pointer;
}

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

.chip[aria-pressed=true] {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--on-primary);
}

/* A selected default should read as "nothing is on", not as an alarm. */
.chip--off[aria-pressed=true] {
    background: var(--track-color);
    border-color: var(--input-border-color);
    color: var(--text-color);
}

/* ---------------- tooltip ---------------- */
.tip-wrap {
    display: inline-block;
}

.tip {
    position: absolute;
    left: 50%;
    bottom: 135%;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    background: var(--inverse-surface);
    color: var(--inverse-on-surface);
    padding: 8px 10px;
    border-radius: 4px;
    font-size: .75rem;
    line-height: 1.35;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    width: max-content;
    max-width: 210px;
    z-index: 1010;
    pointer-events: none;
}

.tip-trigger:hover+.tip,
.tip-trigger:focus+.tip {
    opacity: .96;
    visibility: visible;
}

/* ---------------- settings panel ---------------- */
.panel {
    position: fixed;
    inset: 0 0 0 auto;
    width: 340px;
    max-width: 90%;
    background-color: var(--surface-raised);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1), box-shadow .3s;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--divider-color);
}

.panel.active {
    transform: none;
    box-shadow: var(--panel-shadow);
}

.panel-body {
    padding: 16px 24px calc(20px + env(safe-area-inset-bottom));
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.panel-foot {
    padding: 16px 24px calc(16px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--divider-color);
    text-align: right;
}

.scrim {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, .5);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
}

.scrim.active {
    opacity: 1;
    visibility: visible;
}

/* ---------------- permission dialog ----------------
   Above the drawer and the panel: it appears because nothing else can work. */
.perm {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, .6);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    overflow-y: auto;
}

.perm[hidden] {
    display: none;
}

.perm-box {
    width: 100%;
    max-width: 460px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 22px;
    border-radius: 16px;
    background: var(--surface-raised);
    box-shadow: var(--panel-shadow);
}

.perm-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.perm-head .ic {
    width: 28px;
    height: 28px;
    color: var(--error-color);
    flex-shrink: 0;
}

.perm-title {
    font-size: 1.25rem;
    font-weight: 500;
}

.perm-lede {
    font-size: .9375rem;
    line-height: 1.6;
    color: var(--text-color-secondary);
    margin-bottom: 18px;
}

.perm-platform {
    display: block;
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.perm-steps ol {
    margin: 0 0 4px 20px;
    font-size: .9375rem;
    line-height: 1.6;
    color: var(--text-color-secondary);
}

.perm-steps li {
    margin-bottom: 8px;
}

.perm-steps strong {
    color: var(--text-color);
    font-weight: 500;
}

.perm-note {
    font-size: .8125rem;
    line-height: 1.5;
    color: var(--text-color-secondary);
    padding: 10px 12px;
    margin: 16px 0 18px;
    border-left: 3px solid var(--good-color);
    background: var(--bg-color);
    border-radius: 0 8px 8px 0;
}

.perm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ---------------- article ---------------- */
.article {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 8px 20px 56px;
    color: var(--text-color-secondary);
    font-size: 1rem;
    line-height: 1.72;
}

.article h2 {
    font-size: 1.375rem;
    font-weight: 500;
    color: var(--text-color);
    margin: 40px 0 12px;
    letter-spacing: -.01em;
}

.article h3 {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-color);
    margin: 26px 0 8px;
}

.article p {
    margin-bottom: 14px;
}

.article ul,
.article ol {
    margin: 0 0 16px 20px;
}

.article li {
    margin-bottom: 8px;
}

.article strong {
    color: var(--text-color);
    font-weight: 500;
}

.article a {
    color: var(--primary-color);
}

.lead {
    font-size: 1.05rem;
    color: var(--text-color);
}

.callout {
    border-left: 3px solid var(--primary-color);
    background: var(--surface-raised);
    border-radius: 0 8px 8px 0;
    padding: 14px 16px;
    margin: 20px 0;
    font-size: .95rem;
}

.tbl {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0 20px;
    font-size: .92rem;
}

.tbl th,
.tbl td {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 1px solid var(--divider-color);
}

.tbl th {
    color: var(--text-color);
    font-weight: 500;
}

.tbl td:first-child {
    font-family: var(--font-mono);
    white-space: nowrap;
}

.faq {
    border-bottom: 1px solid var(--divider-color);
}

.faq summary {
    cursor: pointer;
    padding: 15px 30px 15px 0;
    font-weight: 500;
    color: var(--text-color);
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: '+';
    position: absolute;
    right: 4px;
    top: 13px;
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-color-secondary);
}

.faq[open] summary::after {
    content: '–';
}

.faq p {
    padding-bottom: 14px;
    margin: 0;
}

/* ---------------- related tools ---------------- */
.related {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.related h2 {
    font-size: 1.375rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.related-sub {
    font-size: .9rem;
    color: var(--text-color-secondary);
    margin-bottom: 16px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.related-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    background: var(--surface-raised);
    box-shadow: var(--shadow-1);
    text-decoration: none;
    color: var(--text-color-secondary);
}

.related-card:hover {
    box-shadow: var(--panel-shadow);
}

.related-card .ic {
    width: 22px;
    height: 22px;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.related-card strong {
    display: block;
    color: var(--text-color);
    font-weight: 500;
    font-size: .9375rem;
    margin-bottom: 2px;
}

.related-card span {
    font-size: .8125rem;
    line-height: 1.5;
}

/* ---------------- footer ---------------- */
.foot {
    border-top: 1px solid var(--divider-color);
    padding: 22px 20px calc(36px + env(safe-area-inset-bottom));
    text-align: center;
}

.foot a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: .85rem;
}

.foot a:hover {
    text-decoration: underline;
}

.foot .sep {
    margin: 0 6px;
    color: var(--text-color-secondary);
    font-size: .85rem;
}

.foot p {
    font-size: .8rem;
    color: var(--text-color-secondary);
    margin-top: 10px;
}

/* ---------------- responsive ---------------- */
@media (max-width:600px) {
    .header {
        height: 56px;
        padding: 4px;
    }

    .header-title {
        font-size: 1.25rem;
    }

    .icon-button {
        width: 40px;
        height: 40px;
    }

    .ic {
        width: 22px;
        height: 22px;
    }

    .main {
        padding: 16px 12px 20px;
    }

    .panel {
        width: 300px;
    }

    .panel-body {
        padding: 12px 16px calc(20px + env(safe-area-inset-bottom));
    }

    .field {
        margin-bottom: 20px;
    }

    .input,
    .select {
        height: 50px;
        font-size: .95rem;
    }

    .btn {
        padding: 8px 16px;
        font-size: .8125rem;
        min-height: 38px;
        border-radius: 19px;
    }

    .btn .ic {
        width: 16px;
        height: 16px;
    }

    .article {
        padding: 8px 16px 44px;
        font-size: .95rem;
    }

    .article h2 {
        font-size: 1.2rem;
        margin-top: 32px;
    }

    .related {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}
