/* =========================================================
   BRAILLE TRANSLATOR — CharacterCounter.com

   File: braille-translator.css
   ========================================================= */


/* =========================================================
   PAGE BASE
   ========================================================= */

.bt-page {
    width: 100%;
    padding: 105px 15px 45px;

    background: #fff;
    color: #333;

    font-family: "Roboto", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;

    --bt-blue: #1a73e8;
    --bt-blue-dark: #1558aa;
    --bt-blue-light: #edf5ff;

    --bt-border: #dce2e9;
    --bt-text: #333;
    --bt-muted: #666;

    --bt-green: #237a40;
    --bt-green-light: #edf9f0;

    --bt-braille-font:
        "Noto Sans Symbols 2",
        "Segoe UI Symbol",
        "Apple Symbols",
        "DejaVu Sans",
        Arial,
        sans-serif;
}


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


.bt-page [hidden] {
    display: none !important;
}


.bt-page button,
.bt-page textarea,
.bt-page select,
.bt-page input {
    font-family: "Roboto", Arial, sans-serif;
}


.bt-page button {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}


.bt-page button:disabled {
    cursor: not-allowed;
}


.bt-page a {
    color: #1155cc;
    text-decoration: none;
}


.bt-page a:hover {
    text-decoration: underline;
}


.bt-page button:focus-visible,
.bt-page a:focus-visible,
.bt-page select:focus-visible,
.bt-page textarea:focus-visible {
    outline: 3px solid #1a73e8;
    outline-offset: 3px;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.bt-visually-hidden {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    padding: 0 !important;
    margin: -1px !important;

    overflow: hidden !important;

    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;

    white-space: nowrap !important;

    border: 0 !important;
}


/* =========================================================
   MAIN PAGE LAYOUT
   ========================================================= */

.bt-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        300px;

    align-items: stretch;

    gap: 25px;

    width: 100%;
    max-width: 1400px;

    margin: 0 auto;
}


.bt-main {
    width: 100%;
    min-width: 0;
}


/* =========================================================
   RAPTIVE ADVERTISING SIDEBAR
   ========================================================= */

.bt-sidebar {
    display: block;

    width: 300px;
    min-width: 300px;
    min-height: 100%;

    align-self: stretch;

    margin: 0;
    padding: 0;
}


/* =========================================================
   PAGE HEADING
   ========================================================= */

.bt-heading {
    width: 100%;

    margin: 0 0 25px;
    padding: 0;

    text-align: center;
}


.bt-heading h1 {
    margin: 0 0 10px;
    padding: 0;

    color: #333;

    font-family: "Roboto", Arial, sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;

    overflow-wrap: break-word;
}


.bt-intro {
    width: 100%;
    max-width: 800px;

    margin: 0 auto;
    padding: 0;

    color: #555;

    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
}


/* =========================================================
   JAVASCRIPT NOTICE
   ========================================================= */

.bt-notice {
    width: 100%;

    margin: 0 0 20px;
    padding: 12px 15px;

    border: 1px solid #e3cf9b;
    border-radius: 7px;

    background: #fff9eb;
    color: #665022;

    font-size: 14px;
    line-height: 1.5;
}


/* =========================================================
   MAIN TRANSLATOR TOOL
   ========================================================= */

.bt-tool {
    display: flex;
    flex-direction: column;

    gap: 20px;

    width: 100%;
    min-width: 0;

    margin: 0 0 40px;
    padding: 0;
}


/* =========================================================
   TRANSLATION DIRECTION
   ========================================================= */

.bt-direction {
    display: flex;

    align-items: stretch;
    justify-content: center;

    gap: 6px;

    width: fit-content;
    max-width: 100%;

    margin: 0 auto;
    padding: 5px;

    border: 1px solid #dce2e9;
    border-radius: 9px;

    background: #f4f6f8;
}


.bt-page .bt-direction-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    flex: 1 1 auto;

    min-height: 42px;

    margin: 0;
    padding: 10px 21px;

    border: 1px solid transparent;
    border-radius: 6px;

    background: transparent;
    color: #444;

    font-family: "Roboto", Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;

    text-align: center;
    white-space: nowrap;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}


.bt-page .bt-direction-button:hover {
    background: #e7edf5;
    color: #1558aa;
}


.bt-page .bt-direction-button.is-active,
.bt-page .bt-direction-button[aria-pressed="true"] {
    border-color: var(--bt-blue);

    background: var(--bt-blue);
    color: #fff;

    font-weight: 600;
}


.bt-page .bt-direction-button.is-active:hover,
.bt-page .bt-direction-button[aria-pressed="true"]:hover {
    border-color: var(--bt-blue-dark);

    background: var(--bt-blue-dark);
    color: #fff;
}


/* =========================================================
   TEXTAREA GRID

   English / Braille textarea — Swap — Translation textarea
   ========================================================= */

.bt-editor-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        44px
        minmax(0, 1fr);

    align-items: start;

    gap: 12px;

    width: 100%;
    min-width: 0;
}


.bt-editor-panel {
    display: flex;
    flex-direction: column;

    gap: 9px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}


/* =========================================================
   TEXTAREA HEADINGS
   ========================================================= */

.bt-editor-heading {
    display: flex;

    align-items: center;
    justify-content: space-between;

    flex-wrap: wrap;

    gap: 6px 10px;

    width: 100%;
    min-width: 0;
}


.bt-editor-label {
    display: block;

    margin: 0;
    padding: 0;

    color: #333;

    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
}


/* =========================================================
   TEXTAREA WRAPPER
   ========================================================= */

.bt-textarea-wrap {
    position: relative;

    display: block;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}


/* =========================================================
   TEXTAREAS

   Buttons are outside the textareas so text can extend
   all the way to the bottom.

   Native resize handle remains in the bottom-right corner.
   ========================================================= */

.bt-page .bt-textarea {
    display: block;

    width: 100%;
    min-width: 0;

    height: 230px;
    min-height: 120px;

    margin: 0;
    padding: 14px 15px;

    border: 2px solid #c9ced6;
    border-radius: 8px;

    background: #fff;
    color: #333;

    font-family: "Roboto", Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;

    text-align: left;
    text-transform: none;

    letter-spacing: normal;
    word-spacing: normal;

    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-break: normal;

    overflow-x: hidden;
    overflow-y: auto;

    resize: vertical;

    outline: none;

    appearance: none;
    -webkit-appearance: none;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}


.bt-page .bt-textarea::placeholder {
    color: #757b84;

    font-family: "Roboto", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;

    opacity: 1;

    letter-spacing: normal;
}


.bt-page .bt-textarea:hover {
    border-color: #aeb7c2;
}


.bt-page .bt-textarea:focus,
.bt-page .bt-textarea:focus-visible {
    border-color: var(--bt-blue);

    outline: none;

    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12);
}


.bt-page .bt-textarea[readonly] {
    background: #f8fafc;
    color: #333;

    cursor: text;
}


.bt-page .bt-textarea[aria-invalid="true"],
.bt-page .bt-textarea.is-invalid {
    border-color: #c43b35;
}


.bt-page .bt-textarea[aria-invalid="true"]:focus,
.bt-page .bt-textarea.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(196, 59, 53, 0.12);
}


.bt-page .bt-textarea:disabled {
    background: #f4f5f7;
    color: #777;

    cursor: not-allowed;
}


/* =========================================================
   BRAILLE TEXTAREA TYPOGRAPHY
   ========================================================= */

.bt-braille-text {
    font-family: var(--bt-braille-font);
    font-weight: 400;

    font-variant-ligatures: none;

    text-transform: none;
}


.bt-page .bt-textarea.bt-braille-text {
    font-family: var(--bt-braille-font);

    font-size: 23px;
    font-weight: 400;
    line-height: 1.65;

    letter-spacing: 0.5px;
}


.bt-page .bt-textarea.bt-braille-text::placeholder {
    font-family: "Roboto", Arial, sans-serif;
    font-size: 16px;

    letter-spacing: normal;
}


/* =========================================================
   TEXTAREA ACTION BUTTONS
   ========================================================= */

.bt-editor-actions {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 8px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}


.bt-input-actions {
    justify-content: flex-end;
}


.bt-output-actions {
    justify-content: flex-end;
}


/* =========================================================
   SHARED BUTTON STYLING
   ========================================================= */

.bt-page .bt-button {
    display: inline-flex;

    flex: 0 0 auto;

    align-items: center;
    justify-content: center;

    gap: 7px;

    min-height: 40px;

    margin: 0;
    padding: 9px 14px;

    border: 1px solid transparent;
    border-radius: 6px;

    font-family: "Roboto", Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;

    text-align: center;
    text-transform: none;

    white-space: nowrap;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease,
        box-shadow 0.15s ease;
}


.bt-page .bt-button i {
    flex: 0 0 auto;

    font-size: 17px;
    line-height: 1;
}


.bt-page .bt-button span {
    display: inline-block;
}


/* =========================================================
   PRIMARY BUTTONS
   ========================================================= */

.bt-page .bt-button-primary {
    border-color: var(--bt-blue);

    background: var(--bt-blue);
    color: #fff;
}


.bt-page .bt-button-primary:hover:not(:disabled) {
    border-color: var(--bt-blue-dark);

    background: var(--bt-blue-dark);
    color: #fff;
}


.bt-page .bt-button-primary:active:not(:disabled) {
    background: #124c91;
    border-color: #124c91;
}


/* =========================================================
   SECONDARY BUTTONS
   ========================================================= */

.bt-page .bt-button-secondary {
    border-color: #cbd5e1;

    background: #fff;
    color: #444;
}


.bt-page .bt-button-secondary:hover:not(:disabled) {
    border-color: #9bbce5;

    background: #f0f6ff;
    color: var(--bt-blue-dark);
}


.bt-page .bt-button-secondary:active:not(:disabled) {
    border-color: #9bbce5;

    background: #e2eeff;
    color: var(--bt-blue-dark);
}


/* =========================================================
   DISABLED BUTTONS
   ========================================================= */

.bt-page .bt-button:disabled {
    border-color: #dce2e9;

    background: #f1f3f5;
    color: #777;

    cursor: not-allowed;

    box-shadow: none;
}


/* =========================================================
   COPY BUTTON

   Fixed minimum width prevents layout shifting when
   the label changes from Copy to Copied!
   ========================================================= */

.bt-page #btCopy {
    min-width: 100px;
}


.bt-page #btCopy.is-copied,
.bt-page #btCopy.copied {
    border-color: var(--bt-green);

    background: var(--bt-green);
    color: #fff;
}


.bt-page #btCopy.is-copied:hover,
.bt-page #btCopy.copied:hover {
    border-color: var(--bt-green);

    background: var(--bt-green);
    color: #fff;
}


/* =========================================================
   SWAP BUTTON
   ========================================================= */

.bt-swap-wrap {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 125px 0 0;
}


.bt-page .bt-swap-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    margin: 0;
    padding: 0;

    border: 1px solid #cbd5e1;
    border-radius: 50%;

    background: #fff;
    color: var(--bt-blue);

    font-size: 22px;
    line-height: 1;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}


.bt-page .bt-swap-button i {
    font-size: 22px;
    line-height: 1;
}


.bt-page .bt-swap-button:hover:not(:disabled) {
    border-color: #9bbce5;

    background: #edf5ff;
    color: var(--bt-blue-dark);
}


.bt-page .bt-swap-button:active:not(:disabled) {
    background: #e2eeff;
}


.bt-page .bt-swap-button:disabled {
    border-color: #dce2e9;

    background: #f5f6f8;
    color: #8b94a0;

    cursor: not-allowed;
}


/* =========================================================
   TRANSLATION OPTIONS
   ========================================================= */

.bt-options {
    display: flex;
    flex-direction: column;

    gap: 8px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 15px 17px;

    border: 1px solid #dce2e9;
    border-radius: 8px;

    background: #f8fafc;
}


.bt-option-group {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 10px 16px;

    width: 100%;
    min-width: 0;
}


.bt-option-label {
    flex: 0 0 auto;

    margin: 0;
    padding: 0;

    color: #333;

    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}


/* =========================================================
   BRAILLE TYPE DROPDOWN
   ========================================================= */

.bt-page .bt-select {
    display: block;

    width: 285px;
    max-width: 100%;
    min-width: 0;
    min-height: 43px;

    margin: 0;
    padding: 10px 12px;

    border: 1px solid #c5ced8;
    border-radius: 6px;

    background-color: #fff;
    color: #333;

    font-family: "Roboto", Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;

    cursor: pointer;

    appearance: auto;
    -webkit-appearance: menulist;

    outline: none;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}


.bt-page .bt-select:hover {
    border-color: #aeb7c2;
}


.bt-page .bt-select:focus,
.bt-page .bt-select:focus-visible {
    border-color: var(--bt-blue);

    outline: none;

    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12);
}


.bt-page .bt-select:disabled {
    background: #f1f3f5;
    color: #777;

    cursor: not-allowed;
}


.bt-option-description {
    margin: 0;
    padding: 0;

    color: #555;

    font-size: 14px;
    line-height: 1.55;
}


/* =========================================================
   TRANSLATION HELP
   ========================================================= */

.bt-translation-help {
    margin: -10px 0 0;
    padding: 0;

    color: #666;

    font-size: 13px;
    line-height: 1.5;
}


/* =========================================================
   ENGINE LOADING STATUS
   ========================================================= */

.bt-engine-status {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 10px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 11px 14px;

    border: 1px solid #c9dff9;
    border-radius: 7px;

    background: #f0f6ff;
    color: #24558d;

    font-size: 14px;
    line-height: 1.5;
}


.bt-engine-status.is-ready,
.bt-engine-status.is-success {
    border-color: #c9e7d0;

    background: #edf9f0;
    color: #237a40;
}


.bt-engine-status.is-error {
    border-color: #ebc7c5;

    background: #fff2f1;
    color: #a52b27;
}


.bt-engine-status.is-error .bt-loading-spinner,
.bt-engine-status.is-ready .bt-loading-spinner,
.bt-engine-status.is-success .bt-loading-spinner {
    display: none;
}


.bt-page #btRetry {
    min-height: 34px;

    margin-left: auto;
    padding: 6px 12px;

    font-size: 13px;
}


/* =========================================================
   LOADING SPINNER
   ========================================================= */

.bt-loading-spinner {
    display: inline-block;

    flex: 0 0 auto;

    width: 17px;
    height: 17px;

    border: 2px solid #c9dff9;
    border-top-color: var(--bt-blue);
    border-radius: 50%;

    animation: bt-spin 0.8s linear infinite;
}


@keyframes bt-spin {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}


/* =========================================================
   TRANSLATION WARNINGS
   ========================================================= */

.bt-warning {
    display: flex;

    align-items: flex-start;

    gap: 9px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 12px 14px;

    border: 1px solid #e9d3a0;
    border-radius: 7px;

    background: #fff9ec;
    color: #74571b;

    font-size: 14px;
    line-height: 1.55;
}


.bt-warning i {
    flex: 0 0 auto;

    margin-top: 2px;

    font-size: 18px;
    line-height: 1.2;
}


.bt-warning span {
    min-width: 0;

    overflow-wrap: anywhere;
}


/* =========================================================
   INTERACTIVE BRAILLE KEYBOARD
   ========================================================= */

.bt-keyboard {
    display: flex;
    flex-direction: column;

    gap: 18px;

    width: 100%;
    min-width: 0;

    margin: 5px 0 0;
    padding: 20px;

    border: 1px solid #dce2e9;
    border-radius: 9px;

    background: #f8fafc;
}


.bt-keyboard-heading {
    width: 100%;

    margin: 0;
    padding: 0;

    text-align: center;
}


.bt-keyboard-heading h2 {
    margin: 0 0 7px;
    padding: 0;

    color: #333;

    font-size: 23px;
    font-weight: 700;
    line-height: 1.35;
}


.bt-keyboard-heading p {
    margin: 0;
    padding: 0;

    color: #555;

    font-size: 15px;
    line-height: 1.55;
}


/* =========================================================
   KEYBOARD BODY
   ========================================================= */

.bt-keyboard-body {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 35px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}


/* =========================================================
   SIX-DOT BRAILLE CELL

   1   4
   2   5
   3   6
   ========================================================= */

.bt-dot-cell {
    display: grid;

    grid-template-columns:
        repeat(2, 56px);

    grid-template-rows:
        repeat(3, 56px);

    align-items: center;
    justify-items: center;

    gap: 13px 17px;

    flex: 0 0 auto;

    width: fit-content;

    margin: 0;
    padding: 19px;

    border: 2px solid #cbd5e1;
    border-radius: 17px;

    background: #fff;
}


/* =========================================================
   INTERACTIVE DOT BUTTONS
   ========================================================= */

.bt-page .bt-dot {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 56px;
    height: 56px;

    margin: 0;
    padding: 0;

    border: 2px solid #c2ccd8;
    border-radius: 50%;

    background: #edf1f5;
    color: #555;

    font-family: "Roboto", Arial, sans-serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 1;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease,
        transform 0.12s ease;
}


.bt-page .bt-dot:hover {
    border-color: #8eafd9;

    background: #e4edf9;
    color: var(--bt-blue-dark);
}


.bt-page .bt-dot:active {
    transform: scale(0.96);
}


.bt-page .bt-dot.is-active,
.bt-page .bt-dot.is-selected,
.bt-page .bt-dot[aria-pressed="true"] {
    border-color: var(--bt-blue);

    background: var(--bt-blue);
    color: #fff;
}


.bt-page .bt-dot.is-active:hover,
.bt-page .bt-dot.is-selected:hover,
.bt-page .bt-dot[aria-pressed="true"]:hover {
    border-color: var(--bt-blue-dark);

    background: var(--bt-blue-dark);
    color: #fff;
}


.bt-page .bt-dot:focus-visible {
    outline: 3px solid #1558aa;
    outline-offset: 4px;
}


/* =========================================================
   SELECTED CHARACTER PREVIEW
   ========================================================= */

.bt-keyboard-preview {
    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 9px;

    flex: 0 1 235px;

    min-width: 0;

    margin: 0;
    padding: 0;

    text-align: center;
}


.bt-preview-label {
    color: #555;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}


.bt-selected-character {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100px;
    height: 95px;

    margin: 0;
    padding: 8px;

    border: 1px solid #dce2e9;
    border-radius: 8px;

    background: #fff;
    color: #222;

    font-family: var(--bt-braille-font);
    font-size: 58px;
    font-weight: 400;
    line-height: 1;

    text-align: center;
}


.bt-selected-dots {
    display: block;

    min-height: 20px;

    color: #555;

    font-size: 13px;
    line-height: 1.4;

    overflow-wrap: break-word;
}


.bt-page #btInsertCharacter {
    width: 100%;
    min-height: 42px;
}


.bt-page #btResetDots {
    width: 100%;
    min-height: 37px;
}


/* =========================================================
   KEYBOARD ACTIONS
   ========================================================= */

.bt-keyboard-actions {
    display: flex;

    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 8px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}


.bt-keyboard-actions .bt-button {
    min-height: 39px;
}


.bt-keyboard-note {
    margin: -5px 0 0;
    padding: 0;

    color: #666;

    font-size: 13px;
    line-height: 1.5;

    text-align: center;
}


/* =========================================================
   BRAILLE REFERENCE SECTIONS
   ========================================================= */

.bt-reference-section {
    width: 100%;
    min-width: 0;

    margin: 0 0 35px;
    padding: 0;

    scroll-margin-top: 100px;
}


.bt-reference-section h2 {
    margin: 0 0 9px;
    padding: 0;

    color: #333;

    font-family: "Roboto", Arial, sans-serif;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.35;

    overflow-wrap: break-word;
}


.bt-section-intro {
    margin: 0 0 15px;
    padding: 0;

    color: #555;

    font-size: 15px;
    line-height: 1.6;
}


/* =========================================================
   BRAILLE ALPHABET GRID
   ========================================================= */

.bt-alphabet-grid {
    display: grid;

    grid-template-columns:
        repeat(9, minmax(0, 1fr));

    align-items: stretch;

    gap: 8px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}


/* =========================================================
   BRAILLE NUMBERS GRID
   ========================================================= */

.bt-numbers-grid {
    display: grid;

    grid-template-columns:
        repeat(10, minmax(0, 1fr));

    align-items: stretch;

    gap: 8px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}


/* =========================================================
   BRAILLE PUNCTUATION GRID
   ========================================================= */

.bt-punctuation-grid {
    display: grid;

    grid-template-columns:
        repeat(6, minmax(0, 1fr));

    align-items: stretch;

    gap: 8px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}


/* =========================================================
   BRAILLE REFERENCE CARDS
   ========================================================= */

.bt-page .bt-reference-card {
    position: relative;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 4px;

    width: 100%;
    min-width: 0;
    min-height: 100px;

    margin: 0;
    padding: 11px 5px;

    border: 1px solid #d9e0e8;
    border-radius: 7px;

    background: #fff;
    color: #333;

    font-family: "Roboto", Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;

    text-align: center;
    text-transform: none;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}


.bt-page .bt-reference-card:hover {
    border-color: #9bbce5;

    background: #f0f6ff;
    color: var(--bt-blue-dark);
}


.bt-page .bt-reference-card:active {
    border-color: var(--bt-blue);

    background: #e2eeff;
}


.bt-page .bt-reference-card:focus-visible {
    outline: 3px solid var(--bt-blue);
    outline-offset: 2px;
}


/* =========================================================
   BRAILLE SYMBOL INSIDE REFERENCE CARD
   ========================================================= */

.bt-reference-symbol {
    display: block;

    max-width: 100%;

    margin: 0;
    padding: 0;

    color: #222;

    font-family: var(--bt-braille-font);
    font-size: 35px;
    font-weight: 400;
    line-height: 1.15;

    letter-spacing: normal;

    text-align: center;
    white-space: nowrap;

    font-variant-ligatures: none;

    user-select: text;
    -webkit-user-select: text;
}


.bt-reference-label {
    display: block;

    max-width: 100%;

    margin: 0;
    padding: 0;

    color: #333;

    font-family: "Roboto", Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;

    text-align: center;

    overflow-wrap: break-word;
}


.bt-reference-dots {
    display: block;

    max-width: 100%;

    margin: 0;
    padding: 0;

    color: #666;

    font-size: 11px;
    font-weight: 400;
    line-height: 1.3;

    letter-spacing: normal;

    text-align: center;
}


/* =========================================================
   NUMBERS REFERENCE CARDS
   ========================================================= */

.bt-numbers-grid .bt-reference-card {
    min-height: 88px;
}


.bt-numbers-grid .bt-reference-symbol {
    font-size: 30px;
}


/* =========================================================
   PUNCTUATION REFERENCE CARDS
   ========================================================= */

.bt-punctuation-grid .bt-reference-card {
    min-height: 102px;

    gap: 7px;

    padding: 12px 7px;
}


.bt-punctuation-grid .bt-reference-symbol {
    font-size: 32px;
}


.bt-punctuation-grid .bt-reference-label {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
}


/* =========================================================
   REFERENCE CARD COPY FEEDBACK
   ========================================================= */

.bt-page .bt-reference-card.is-copied,
.bt-page .bt-reference-card.copied {
    border-color: #88c59a;

    background: var(--bt-green-light);
    color: var(--bt-green);
}


.bt-reference-card.is-copied .bt-reference-label,
.bt-reference-card.copied .bt-reference-label {
    color: var(--bt-green);
}


.bt-reference-card.is-copied .bt-reference-symbol,
.bt-reference-card.copied .bt-reference-symbol {
    color: var(--bt-green);
}


.bt-copy-feedback {
    position: absolute;

    z-index: 2;

    right: 4px;
    bottom: 4px;
    left: 4px;

    display: block;

    padding: 4px 2px;

    border-radius: 4px;

    background: var(--bt-green-light);
    color: var(--bt-green);

    font-family: "Roboto", Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;

    text-align: center;
}


/* =========================================================
   REFERENCE NOTES
   ========================================================= */

.bt-reference-note {
    margin: 10px 0 0;
    padding: 0;

    color: #666;

    font-size: 13px;
    line-height: 1.6;
}


/* =========================================================
   INLINE BRAILLE CHARACTERS
   ========================================================= */

.bt-inline-braille {
    display: inline;

    color: #222;

    font-family: var(--bt-braille-font);
    font-size: 1.18em;
    font-weight: 400;
    line-height: 1.5;

    white-space: nowrap;

    vertical-align: baseline;

    font-variant-ligatures: none;
}


/* =========================================================
   INFORMATIONAL ARTICLE
   ========================================================= */

.bt-article {
    width: 100%;
    min-width: 0;

    margin: 40px 0 0;
    padding: 0;

    color: #333;

    font-family: "Roboto", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.75;
}


.bt-article section {
    width: 100%;
    min-width: 0;

    margin: 0 0 30px;
    padding: 0;

    scroll-margin-top: 100px;
}


.bt-article section:last-child {
    margin-bottom: 0;
}


.bt-article h2 {
    margin: 0 0 12px;
    padding: 0;

    color: #333;

    font-family: "Roboto", Arial, sans-serif;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.35;

    overflow-wrap: break-word;
}


.bt-article h3 {
    margin: 22px 0 8px;
    padding: 0;

    color: #333;

    font-family: "Roboto", Arial, sans-serif;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.45;

    overflow-wrap: break-word;
}


.bt-article p {
    margin: 0 0 13px;
    padding: 0;

    color: #333;

    font-size: 16px;
    font-weight: 400;
    line-height: 1.75;

    overflow-wrap: break-word;
}


.bt-article p:last-child {
    margin-bottom: 0;
}


.bt-article strong {
    font-weight: 600;
}


.bt-article a {
    color: #1155cc;
}


.bt-article a:hover {
    text-decoration: underline;
}


/* =========================================================
   ARTICLE ORDERED AND UNORDERED LISTS
   ========================================================= */

.bt-article ul,
.bt-article ol {
    display: block;

    margin: 0 0 15px;
    padding: 0 0 0 25px;

    color: #333;

    font-size: 16px;
    line-height: 1.75;
}


.bt-article ul {
    list-style-type: disc;
}


.bt-article ol {
    list-style-type: decimal;
}


.bt-article li {
    display: list-item;

    margin: 0 0 5px;
    padding-left: 2px;
}


.bt-article li:last-child {
    margin-bottom: 0;
}


.bt-article li::marker {
    color: #444;
}


/* =========================================================
   BRAILLE CELL FIGURE
   ========================================================= */

.bt-cell-figure {
    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 10px;

    width: 100%;

    margin: 20px 0;
    padding: 20px 15px;

    border: 1px solid #dce2e9;
    border-radius: 8px;

    background: #f8fafc;
}


.bt-cell-diagram {
    display: grid;

    grid-template-columns:
        repeat(2, 43px);

    grid-template-rows:
        repeat(3, 43px);

    align-items: center;
    justify-items: center;

    gap: 10px 14px;

    width: fit-content;

    margin: 0;
    padding: 15px;

    border: 2px solid #aebac8;
    border-radius: 14px;

    background: #fff;
}


.bt-diagram-dot {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 43px;
    height: 43px;

    border-radius: 50%;

    background: #333;
    color: #fff;

    font-family: "Roboto", Arial, sans-serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 1;
}


.bt-cell-figure figcaption {
    margin: 0;
    padding: 0;

    color: #666;

    font-size: 13px;
    line-height: 1.5;

    text-align: center;
}


/* =========================================================
   ARTICLE TABLE WRAPPER
   ========================================================= */

.bt-table-wrap {
    width: 100%;
    max-width: 100%;

    margin: 17px 0;
    padding: 0;

    border: 1px solid #dce2e9;
    border-radius: 7px;

    overflow-x: auto;

    -webkit-overflow-scrolling: touch;
}


/* =========================================================
   ARTICLE TABLES
   ========================================================= */

.bt-page .bt-table {
    width: 100%;

    margin: 0;
    padding: 0;

    border: 0;

    border-collapse: collapse;
    border-spacing: 0;

    background: #fff;

    color: #333;

    font-family: "Roboto", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
}


.bt-page .bt-table th,
.bt-page .bt-table td {
    padding: 12px 15px;

    border: 0;
    border-bottom: 1px solid #e5e9ef;

    text-align: left;
    vertical-align: middle;
}


.bt-page .bt-table thead th {
    background: #f1f4f8;
    color: #333;

    font-size: 14px;
    font-weight: 600;
}


.bt-page .bt-table tbody th {
    font-weight: 500;
}


.bt-page .bt-table tbody tr:last-child th,
.bt-page .bt-table tbody tr:last-child td {
    border-bottom: 0;
}


.bt-page .bt-table tbody tr:nth-child(even) {
    background: #fafbfc;
}


.bt-page .bt-table tbody tr:hover {
    background: #f5f8fc;
}


/* =========================================================
   BRAILLE CHARACTERS INSIDE TABLES
   ========================================================= */

.bt-page .bt-table .bt-table-braille {
    color: #222;

    font-family: var(--bt-braille-font);
    font-size: 23px;
    font-weight: 400;
    line-height: 1.4;

    white-space: nowrap;

    font-variant-ligatures: none;
}


.bt-comparison-table {
    table-layout: fixed;
}


.bt-comparison-table th:first-child {
    width: 30%;
}


.bt-examples-table th:first-child {
    width: 35%;
}


/* =========================================================
   FREQUENTLY ASKED QUESTIONS
   ========================================================= */

.bt-faq {
    display: flex;
    flex-direction: column;

    gap: 0;

    width: 100%;
    min-width: 0;
}


.bt-faq h2 {
    margin-bottom: 5px;
}


.bt-faq-item {
    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 16px 0;

    border-bottom: 1px solid #e3e7ec;
}


.bt-faq-item:last-child {
    padding-bottom: 0;

    border-bottom: 0;
}


.bt-article .bt-faq-item h3 {
    margin: 0 0 7px;
    padding: 0;

    color: #333;

    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}


.bt-article .bt-faq-item p {
    margin: 0;
    padding: 0;

    font-size: 16px;
    line-height: 1.7;
}


/* =========================================================
   RELATED TOOLS
   ========================================================= */

.bt-related {
    width: 100%;
    min-width: 0;
}


.bt-article .bt-related-list {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    align-items: stretch;

    gap: 12px 18px;

    width: 100%;

    margin: 0;
    padding: 0;

    list-style: none;
}


.bt-article .bt-related-list li {
    display: flex;
    flex-direction: column;

    gap: 4px;

    min-width: 0;

    margin: 0;
    padding: 13px 15px;

    border: 1px solid #dce2e9;
    border-radius: 7px;

    background: #fff;

    list-style: none;
}


.bt-related-list a {
    display: inline-block;

    width: fit-content;
    max-width: 100%;

    color: #1155cc;

    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;

    overflow-wrap: break-word;
}


.bt-related-list span {
    display: block;

    color: #555;

    font-size: 14px;
    line-height: 1.55;
}


/* =========================================================
   LARGE DESKTOP SCREENS
   ========================================================= */

@media screen and (min-width: 1400px) {

    .bt-alphabet-grid {
        grid-template-columns:
            repeat(13, minmax(0, 1fr));
    }


    .bt-page .bt-textarea {
        height: 255px;
    }


    .bt-swap-wrap {
        padding-top: 138px;
    }

}


/* =========================================================
   MEDIUM DESKTOP SCREENS

   Maintain the 300px advertising sidebar while adjusting
   the translator and reference charts.
   ========================================================= */

@media screen and (max-width: 1150px) {

    .bt-layout {
        gap: 20px;
    }


    .bt-editor-grid {
        grid-template-columns:
            minmax(0, 1fr)
            38px
            minmax(0, 1fr);

        gap: 8px;
    }


    .bt-page .bt-swap-button {
        width: 36px;
        height: 36px;

        font-size: 20px;
    }


    .bt-page .bt-swap-button i {
        font-size: 20px;
    }


    .bt-alphabet-grid {
        grid-template-columns:
            repeat(7, minmax(0, 1fr));
    }


    .bt-numbers-grid {
        grid-template-columns:
            repeat(5, minmax(0, 1fr));
    }


    .bt-punctuation-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }


    .bt-reference-symbol {
        font-size: 32px;
    }


    .bt-numbers-grid .bt-reference-symbol {
        font-size: 32px;
    }


    .bt-page .bt-button {
        padding-right: 11px;
        padding-left: 11px;
    }

}


/* =========================================================
   TABLET SCREENS

   Hide the advertising sidebar.
   ========================================================= */

@media screen and (max-width: 900px) {

    .bt-layout {
        grid-template-columns:
            minmax(0, 1fr);

        gap: 0;

        max-width: 850px;
    }


    .bt-sidebar {
        display: none !important;
    }


    .bt-page {
        padding: 95px 15px 35px;
    }


    .bt-editor-grid {
        grid-template-columns:
            minmax(0, 1fr)
            44px
            minmax(0, 1fr);

        gap: 12px;
    }


    .bt-page .bt-swap-button {
        width: 42px;
        height: 42px;
    }


    .bt-page .bt-swap-button i {
        font-size: 22px;
    }


    .bt-alphabet-grid {
        grid-template-columns:
            repeat(9, minmax(0, 1fr));
    }


    .bt-numbers-grid {
        grid-template-columns:
            repeat(10, minmax(0, 1fr));
    }


    .bt-punctuation-grid {
        grid-template-columns:
            repeat(6, minmax(0, 1fr));
    }

}


/* =========================================================
   SMALL TABLETS
   ========================================================= */

@media screen and (max-width: 720px) {

    .bt-alphabet-grid {
        grid-template-columns:
            repeat(7, minmax(0, 1fr));
    }


    .bt-numbers-grid {
        grid-template-columns:
            repeat(5, minmax(0, 1fr));
    }


    .bt-punctuation-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }


    .bt-heading h1 {
        font-size: 30px;
    }

}


/* =========================================================
   MOBILE SCREENS
   ========================================================= */

@media screen and (max-width: 600px) {

    .bt-page {
        padding: 90px 12px 30px;

        font-size: 15px;
    }


    .bt-heading {
        margin-bottom: 20px;
    }


    .bt-heading h1 {
        margin-bottom: 8px;

        font-size: 28px;
    }


    .bt-intro {
        font-size: 15px;
        line-height: 1.55;
    }


    .bt-tool {
        gap: 17px;

        margin-bottom: 30px;
    }


    /* Direction selector */

    .bt-direction {
        width: 100%;

        gap: 4px;

        padding: 4px;
    }


    .bt-page .bt-direction-button {
        flex: 1 1 0;

        min-width: 0;
        min-height: 42px;

        padding: 9px 8px;

        font-size: 14px;
    }


    /* Stack input and output vertically */

    .bt-editor-grid {
        grid-template-columns:
            minmax(0, 1fr);

        align-items: start;

        gap: 8px;
    }


    .bt-editor-panel {
        gap: 8px;
    }


    .bt-editor-label {
        font-size: 16px;
    }


    .bt-page .bt-textarea {
        height: 175px;
        min-height: 110px;

        padding: 12px;

        font-size: 17px;
        line-height: 1.6;
    }


    .bt-page .bt-textarea.bt-braille-text {
        font-size: 23px;
        line-height: 1.6;
    }


    .bt-page .bt-textarea::placeholder {
        font-size: 16px;
    }


    /* Swap button between textareas */

    .bt-swap-wrap {
        justify-content: center;

        padding: 0;
    }


    .bt-page .bt-swap-button {
        width: 38px;
        height: 38px;
    }


    .bt-page .bt-swap-button i {
        font-size: 20px;

        transform: rotate(90deg);
    }


    /* Textarea actions */

    .bt-editor-actions {
        gap: 7px;
    }


    .bt-page .bt-button {
        min-height: 44px;

        padding: 8px 12px;

        font-size: 13px;
    }


    .bt-page .bt-button i {
        font-size: 16px;
    }


    .bt-page #btCopy {
        min-width: 95px;
    }


    /* Options */

    .bt-options {
        gap: 9px;

        padding: 13px;
    }


    .bt-option-group {
        flex-direction: column;

        align-items: stretch;

        gap: 7px;
    }


    .bt-option-label {
        font-size: 15px;
    }


    .bt-page .bt-select {
        width: 100%;
        min-height: 44px;

        font-size: 16px;
    }


    .bt-option-description {
        font-size: 13px;
    }


    .bt-translation-help {
        margin-top: -7px;

        font-size: 12px;
    }


    /* Status and warnings */

    .bt-engine-status {
        gap: 8px;

        padding: 10px 12px;

        font-size: 13px;
    }


    .bt-warning {
        padding: 10px 12px;

        font-size: 13px;
    }


    /* Interactive keyboard */

    .bt-keyboard {
        gap: 16px;

        margin-top: 0;
        padding: 15px;
    }


    .bt-keyboard-heading h2 {
        font-size: 21px;
    }


    .bt-keyboard-heading p {
        font-size: 14px;
    }


    .bt-keyboard-body {
        gap: 22px;
    }


    .bt-dot-cell {
        grid-template-columns:
            repeat(2, 46px);

        grid-template-rows:
            repeat(3, 46px);

        gap: 10px 12px;

        padding: 13px;

        border-radius: 13px;
    }


    .bt-page .bt-dot {
        width: 46px;
        height: 46px;

        font-size: 15px;
    }


    .bt-keyboard-preview {
        flex: 0 1 170px;

        gap: 7px;
    }


    .bt-selected-character {
        width: 80px;
        height: 75px;

        font-size: 48px;
    }


    .bt-preview-label {
        font-size: 13px;
    }


    .bt-selected-dots {
        font-size: 12px;
    }


    .bt-page #btInsertCharacter,
    .bt-page #btResetDots {
        min-height: 44px;

        padding: 7px 9px;

        font-size: 12px;
    }


    .bt-keyboard-actions {
        gap: 6px;
    }


    .bt-keyboard-actions .bt-button {
        min-height: 44px;

        padding: 8px 10px;
    }


    .bt-keyboard-note {
        font-size: 12px;
    }


    /* Reference sections */

    .bt-reference-section {
        margin-bottom: 30px;
    }


    .bt-reference-section h2 {
        font-size: 23px;
    }


    .bt-section-intro {
        margin-bottom: 12px;

        font-size: 14px;
        line-height: 1.55;
    }


    .bt-alphabet-grid {
        grid-template-columns:
            repeat(6, minmax(0, 1fr));

        gap: 6px;
    }


    .bt-numbers-grid {
        grid-template-columns:
            repeat(5, minmax(0, 1fr));

        gap: 6px;
    }


    .bt-punctuation-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 6px;
    }


    .bt-page .bt-reference-card {
        min-height: 84px;

        padding: 8px 4px;
    }


    .bt-reference-symbol {
        font-size: 30px;
    }


    .bt-reference-label {
        font-size: 15px;
    }


    .bt-reference-dots {
        font-size: 10px;
    }


    .bt-numbers-grid .bt-reference-card {
        min-height: 76px;
    }


    .bt-numbers-grid .bt-reference-symbol {
        font-size: 27px;
    }


    .bt-punctuation-grid .bt-reference-card {
        min-height: 90px;

        padding: 10px 5px;
    }


    .bt-punctuation-grid .bt-reference-symbol {
        font-size: 29px;
    }


    .bt-punctuation-grid .bt-reference-label {
        font-size: 12px;
    }


    .bt-reference-note {
        font-size: 12px;
    }


    /* Informational article */

    .bt-article {
        margin-top: 30px;

        font-size: 15px;
        line-height: 1.7;
    }


    .bt-article section {
        margin-bottom: 25px;
    }


    .bt-article h2 {
        margin-bottom: 10px;

        font-size: 23px;
    }


    .bt-article h3 {
        margin-top: 18px;

        font-size: 18px;
    }


    .bt-article p,
    .bt-article ul,
    .bt-article ol {
        font-size: 15px;
        line-height: 1.7;
    }


    .bt-article ul,
    .bt-article ol {
        padding-left: 22px;
    }


    /* Tables */

    .bt-page .bt-table {
        font-size: 14px;
    }


    .bt-page .bt-table th,
    .bt-page .bt-table td {
        padding: 10px 9px;
    }


    .bt-page .bt-table thead th {
        font-size: 13px;
    }


    .bt-page .bt-table .bt-table-braille {
        font-size: 21px;
    }


    /* Frequently asked questions */

    .bt-faq-item {
        padding: 14px 0;
    }


    .bt-article .bt-faq-item h3 {
        font-size: 17px;
    }


    .bt-article .bt-faq-item p {
        font-size: 15px;
        line-height: 1.7;
    }


    /* Related tools */

    .bt-article .bt-related-list {
        grid-template-columns:
            minmax(0, 1fr);

        gap: 9px;
    }


    .bt-article .bt-related-list li {
        padding: 12px 13px;
    }

}


/* =========================================================
   SMALL MOBILE SCREENS
   ========================================================= */

@media screen and (max-width: 440px) {

    .bt-page {
        padding-right: 10px;
        padding-left: 10px;
    }


    .bt-heading h1 {
        font-size: 27px;
    }


    .bt-page .bt-direction-button {
        padding-right: 5px;
        padding-left: 5px;

        font-size: 13px;
    }


    .bt-keyboard {
        padding: 13px 10px;
    }


    .bt-keyboard-body {
        gap: 16px;
    }


    .bt-dot-cell {
        grid-template-columns:
            repeat(2, 46px);

        grid-template-rows:
            repeat(3, 46px);

        gap: 9px 10px;

        padding: 11px;
    }


    .bt-page .bt-dot {
        width: 46px;
        height: 46px;
    }


    .bt-keyboard-preview {
        flex-basis: 145px;
    }


    .bt-page #btInsertCharacter,
    .bt-page #btResetDots {
        padding-right: 5px;
        padding-left: 5px;
    }


    .bt-alphabet-grid {
        grid-template-columns:
            repeat(5, minmax(0, 1fr));
    }


    .bt-reference-symbol {
        font-size: 29px;
    }


    .bt-numbers-grid .bt-reference-symbol {
        font-size: 25px;
    }


    .bt-punctuation-grid .bt-reference-symbol {
        font-size: 28px;
    }


    .bt-punctuation-grid .bt-reference-label {
        font-size: 12px;
    }


    .bt-page .bt-table th,
    .bt-page .bt-table td {
        padding: 10px 8px;
    }


    .bt-page .bt-table .bt-table-braille {
        font-size: 19px;
    }

}


/* =========================================================
   VERY SMALL MOBILE SCREENS
   ========================================================= */

@media screen and (max-width: 340px) {

    .bt-page {
        padding-right: 8px;
        padding-left: 8px;
    }


    .bt-heading h1 {
        font-size: 25px;
    }


    .bt-intro {
        font-size: 14px;
    }


    .bt-page .bt-direction-button {
        font-size: 12px;

        white-space: normal;
    }


    .bt-page .bt-textarea {
        padding: 10px;
    }


    .bt-editor-actions {
        gap: 5px;
    }


    .bt-page .bt-button {
        padding-right: 9px;
        padding-left: 9px;
    }


    .bt-keyboard-body {
        flex-direction: column;

        gap: 15px;
    }


    .bt-keyboard-preview {
        flex: 0 0 auto;

        width: 100%;
        max-width: 200px;
    }


    .bt-keyboard-actions {
        gap: 5px;
    }


    .bt-keyboard-actions .bt-button {
        font-size: 12px;
    }


    .bt-alphabet-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }


    .bt-numbers-grid {
        grid-template-columns:
            repeat(5, minmax(0, 1fr));
    }


    .bt-numbers-grid .bt-reference-symbol {
        font-size: 22px;
    }


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


    .bt-reference-section h2,
    .bt-article h2 {
        font-size: 21px;
    }

}


/* =========================================================
   TOUCH DEVICES
   ========================================================= */

@media (pointer: coarse) {

    .bt-page .bt-button,
    .bt-page .bt-direction-button {
        min-height: 44px;
    }


    .bt-page .bt-swap-button {
        width: 44px;
        height: 44px;
    }


    .bt-page .bt-dot {
        min-width: 44px;
        min-height: 44px;
    }

}


/* =========================================================
   HIGH CONTRAST / FORCED COLORS
   ========================================================= */

@media (forced-colors: active) {

    .bt-page .bt-direction-button,
    .bt-page .bt-button,
    .bt-page .bt-dot,
    .bt-page .bt-swap-button,
    .bt-page .bt-reference-card,
    .bt-page .bt-textarea,
    .bt-page .bt-select {
        border: 1px solid ButtonText;
    }


    .bt-page .bt-dot[aria-pressed="true"],
    .bt-page .bt-direction-button[aria-pressed="true"] {
        forced-color-adjust: none;

        border-color: Highlight;

        background: Highlight;
        color: HighlightText;
    }


    .bt-page button:focus-visible,
    .bt-page a:focus-visible,
    .bt-page textarea:focus-visible,
    .bt-page select:focus-visible {
        outline: 3px solid Highlight;
        outline-offset: 3px;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

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

    .bt-page *,
    .bt-page *::before,
    .bt-page *::after {
        scroll-behavior: auto !important;

        transition: none !important;
    }


    .bt-loading-spinner {
        animation: none;
    }


    .bt-page .bt-dot:active {
        transform: none;
    }

}