
/* =========================================================
   MORSE CODE TRANSLATOR
   CharacterCounter.com
========================================================= */


/* =========================================================
   BASE LAYOUT
========================================================= */

.morse-main {
    width: 100%;
    background: #ffffff;
}

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

.morse-section {
    width: 100%;
    padding: 68px 20px 70px;
}

.morse-layout {
    display: grid;
    grid-template-columns: minmax(0, 900px) 300px;
    gap: 32px;
    width: 100%;
    max-width: 1232px;
    margin: 0 auto;
    align-items: stretch;
}

.morse-main-column {
    min-width: 0;
}

.morse-main [hidden] {
    display: none !important;
}


/* =========================================================
   PAGE HEADER
========================================================= */

.morse-main .tool-header {
    margin-bottom: 28px;
    text-align: center;
}

.morse-main .tool-header h1 {
    margin: 0 0 12px;
    color: #202124;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
}

.morse-main .tool-intro {
    max-width: 790px;
    margin: 0 auto;
    color: #5f6368;
    font-size: 17px;
    line-height: 1.6;
}


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

.morse-translator-tool {
    width: 100%;
    min-width: 0;
}


/* =========================================================
   TEXT AND MORSE CODE GRID
========================================================= */

.morse-editor-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        34px
        minmax(0, 1fr);
    column-gap: 10px;
    width: 100%;
    align-items: start;
}

.morse-text-panel {
    width: 100%;
    min-width: 0;
}

.morse-panel-title {
    margin: 0 0 10px;
    color: #202124;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
}

.morse-textarea-wrapper {
    position: relative;
    width: 100%;
    min-width: 0;
}


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

.morse-textarea {
    display: block;
    width: 100%;
    height: 290px;
    min-height: 110px;
    margin: 0;
    padding: 16px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    outline: none;
    background: #ffffff;
    color: #202124;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
    resize: vertical;
    overflow-y: auto;
    overflow-x: auto;
    overflow-wrap: anywhere;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.morse-textarea::placeholder {
    color: #80868b;
    opacity: 1;
}

.morse-textarea:hover {
    border-color: #bdc1c6;
}

.morse-textarea:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 1px #1a73e8;
}

.morse-plain-textarea {
    font-family: Arial, Helvetica, sans-serif;
}

.morse-code-textarea {
    font-family:
        Consolas,
        "Courier New",
        monospace;
    font-size: 15px;
    line-height: 1.7;
    letter-spacing: 0.1px;
}

.morse-textarea:disabled {
    background: #f8f9fa;
    color: #80868b;
    cursor: not-allowed;
}


/* =========================================================
   TEXTAREA ACTION BUTTONS
   BELOW THE TEXT BOXES
========================================================= */

.morse-textarea-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    width: 100%;
    margin-top: 9px;
}

.morse-textarea-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 61px;
    min-height: 32px;
    padding: 7px 11px;
    border: 1px solid #dadce0;
    border-radius: 5px;
    background: #f8f9fa;
    color: #3c4043;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.morse-textarea-action:hover:not(:disabled) {
    border-color: #bdc1c6;
    background: #f1f3f4;
}

.morse-textarea-action:active:not(:disabled) {
    background: #e8eaed;
}

.morse-textarea-action:focus-visible {
    outline: 2px solid #1a73e8;
    outline-offset: 2px;
}

.morse-textarea-action:disabled {
    color: #9aa0a6;
    background: #f8f9fa;
    cursor: not-allowed;
}

.morse-textarea-action.is-copied {
    border-color: #188038;
    background: #e6f4ea;
    color: #137333;
}


/* =========================================================
   CONVERSION INDICATOR
========================================================= */

.morse-conversion-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 290px;
    padding-top: 37px;
    color: #5f6368;
}

.morse-conversion-indicator i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #dadce0;
    border-radius: 50%;
    background: #f8f9fa;
    font-size: 17px;
    line-height: 1;
}


/* =========================================================
   CONVERSION STATUS
========================================================= */

.morse-conversion-status {
    margin: 13px 0 0;
    padding: 0;
    color: #5f6368;
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.morse-conversion-status:empty {
    display: none;
}

.morse-conversion-status.is-error,
.morse-conversion-status.error {
    padding: 11px 13px;
    border: 1px solid #f6c7c3;
    border-radius: 6px;
    background: #fce8e6;
    color: #b3261e;
}

.morse-conversion-status.is-warning,
.morse-conversion-status.warning {
    padding: 11px 13px;
    border: 1px solid #f3d18c;
    border-radius: 6px;
    background: #fef7e0;
    color: #795900;
}

.morse-conversion-status.is-success,
.morse-conversion-status.success {
    padding: 11px 13px;
    border: 1px solid #ceead6;
    border-radius: 6px;
    background: #e6f4ea;
    color: #137333;
}


/* =========================================================
   FORMAT NOTE
========================================================= */

.morse-format-note {
    margin: 13px 0 0;
    color: #5f6368;
    font-size: 13px;
    line-height: 1.6;
}


/* =========================================================
   QUICK EXAMPLES
========================================================= */

.morse-examples {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px 12px;
    width: 100%;
    margin-top: 22px;
}

.morse-examples-label {
    color: #3c4043;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.morse-example-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.morse-example-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid #dadce0;
    border-radius: 6px;
    background: #ffffff;
    color: #3c4043;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.morse-example-button:hover {
    border-color: #1a73e8;
    background: #e8f0fe;
    color: #174ea6;
}

.morse-example-button:active {
    background: #dce8fc;
}

.morse-example-button:focus-visible {
    outline: 2px solid #1a73e8;
    outline-offset: 2px;
}

.morse-example-button.is-active {
    border-color: #1a73e8;
    background: #e8f0fe;
    color: #174ea6;
}


/* =========================================================
   TRANSLATION STATISTICS
========================================================= */

.morse-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    margin-top: 22px;
}

.morse-stat-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-width: 0;
    min-height: 76px;
    padding: 12px 14px;
    border: 1px solid #dadce0;
    border-radius: 7px;
    background: #ffffff;
}

.morse-stat-card strong {
    display: block;
    max-width: 100%;
    color: #1a73e8;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.morse-stat-card span {
    display: block;
    margin-top: 5px;
    color: #5f6368;
    font-size: 12px;
    line-height: 1.4;
}


/* =========================================================
   SHARED SECTION HEADINGS
========================================================= */

.morse-section-heading {
    margin-bottom: 18px;
}

.morse-section-heading h2 {
    margin: 0 0 7px;
    color: #202124;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.3;
}

.morse-section-heading p {
    margin: 0;
    color: #5f6368;
    font-size: 14px;
    line-height: 1.6;
}


/* =========================================================
   MORSE CODE AUDIO SECTION
========================================================= */

.morse-audio-section {
    width: 100%;
    min-width: 0;
    margin-top: 37px;
    padding: 22px;
    border: 1px solid #dadce0;
    border-radius: 9px;
    background: #ffffff;
}


/* =========================================================
   AUDIO ACTION BUTTONS
========================================================= */

.morse-audio-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 23px;
}

.morse-audio-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 9px 16px;
    border: 1px solid #dadce0;
    border-radius: 6px;
    background: #ffffff;
    color: #3c4043;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.morse-audio-button i {
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
}

.morse-audio-button:hover:not(:disabled) {
    border-color: #bdc1c6;
    background: #f8f9fa;
}

.morse-audio-button:active:not(:disabled) {
    background: #e8eaed;
}

.morse-audio-button:focus-visible {
    outline: 2px solid #1a73e8;
    outline-offset: 2px;
}

.morse-audio-button:disabled {
    border-color: #e8eaed;
    background: #f8f9fa;
    color: #9aa0a6;
    cursor: not-allowed;
}


/* Play button */

.morse-audio-play {
    min-width: 104px;
    border-color: #1a73e8;
    background: #1a73e8;
    color: #ffffff;
}

.morse-audio-play:hover:not(:disabled) {
    border-color: #1558b0;
    background: #1558b0;
    color: #ffffff;
}

.morse-audio-play:active:not(:disabled) {
    background: #174ea6;
}

.morse-audio-play.is-playing,
.morse-audio-play[aria-pressed="true"] {
    border-color: #174ea6;
    background: #174ea6;
    color: #ffffff;
}


/* Stop button */

.morse-audio-stop {
    min-width: 100px;
}


/* Download WAV button */

.morse-audio-download {
    min-width: 154px;
}


/* =========================================================
   AUDIO OPTIONS
========================================================= */

.morse-audio-options {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(150px, 1fr);
    gap: 24px;
    align-items: start;
    width: 100%;
}

.morse-audio-option-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.morse-option-label,
.morse-option-label-row label {
    display: block;
    color: #202124;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.morse-option-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-bottom: 12px;
}

.morse-option-label-row output {
    color: #1a73e8;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.morse-audio-option-group > .morse-option-label {
    margin-bottom: 10px;
}


/* =========================================================
   SPEED RANGE SLIDER
========================================================= */

.morse-range {
    display: block;
    width: 100%;
    height: 24px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    accent-color: #1a73e8;
    -webkit-appearance: none;
    appearance: none;
}

.morse-range:focus-visible {
    outline: 2px solid #1a73e8;
    outline-offset: 4px;
    border-radius: 4px;
}

.morse-range::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: #dadce0;
}

.morse-range::-moz-range-track {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: #dadce0;
}

.morse-range::-webkit-slider-thumb {
    width: 18px;
    height: 18px;
    margin-top: -6px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: #1a73e8;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    cursor: grab;
    -webkit-appearance: none;
    appearance: none;
}

.morse-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: #1a73e8;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    cursor: grab;
}

.morse-range:active::-webkit-slider-thumb {
    cursor: grabbing;
}

.morse-range:active::-moz-range-thumb {
    cursor: grabbing;
}

.morse-range:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.morse-range-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 3px;
    color: #80868b;
    font-size: 12px;
    line-height: 1.4;
}


/* =========================================================
   SELECT DROPDOWNS
========================================================= */

.morse-select {
    display: block;
    width: 100%;
    min-width: 0;
    height: 43px;
    min-height: 43px;
    padding: 9px 34px 9px 12px;
    border: 1px solid #dadce0;
    border-radius: 6px;
    background-color: #ffffff;
    color: #202124;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    cursor: pointer;
}

.morse-select:hover {
    border-color: #bdc1c6;
}

.morse-select:focus {
    border-color: #1a73e8;
    outline: 2px solid #1a73e8;
    outline-offset: 1px;
}

.morse-select:disabled {
    background: #f8f9fa;
    color: #9aa0a6;
    cursor: not-allowed;
}


/* =========================================================
   ADVANCED AUDIO SETTINGS
========================================================= */

.morse-advanced-settings {
    width: 100%;
    margin-top: 23px;
    border-top: 1px solid #e8eaed;
}

.morse-advanced-settings summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 16px 0 2px;
    color: #1a73e8;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    list-style: none;
}

.morse-advanced-settings summary::-webkit-details-marker {
    display: none;
}

.morse-advanced-settings summary::marker {
    content: "";
}

.morse-advanced-settings summary:hover {
    color: #1558b0;
}

.morse-advanced-settings summary:focus-visible {
    outline: 2px solid #1a73e8;
    outline-offset: 3px;
    border-radius: 3px;
}

.morse-advanced-settings summary i {
    font-size: 19px;
    line-height: 1;
    transition: transform 0.15s ease;
}

.morse-advanced-settings[open] summary i {
    transform: rotate(180deg);
}

.morse-advanced-content {
    padding: 19px 0 4px;
}

.morse-advanced-content .morse-audio-option-group {
    max-width: 420px;
}

.morse-option-note {
    margin: 10px 0 0;
    color: #5f6368;
    font-size: 13px;
    line-height: 1.6;
}


/* =========================================================
   AUDIO STATUS
========================================================= */

.morse-audio-status {
    margin: 15px 0 0;
    color: #5f6368;
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.morse-audio-status:empty {
    display: none;
}

.morse-audio-status.is-error {
    padding: 10px 12px;
    border: 1px solid #f6c7c3;
    border-radius: 6px;
    background: #fce8e6;
    color: #b3261e;
}

.morse-audio-status.is-warning {
    padding: 10px 12px;
    border: 1px solid #f3d18c;
    border-radius: 6px;
    background: #fef7e0;
    color: #795900;
}

.morse-audio-status.is-success {
    color: #137333;
}


/* =========================================================
   SHARED TOOL BUTTONS
========================================================= */

.morse-tool-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 15px;
    border: 1px solid #dadce0;
    border-radius: 6px;
    background: #ffffff;
    color: #3c4043;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.morse-tool-button:hover:not(:disabled) {
    border-color: #bdc1c6;
    background: #f8f9fa;
}

.morse-tool-button:active:not(:disabled) {
    background: #e8eaed;
}

.morse-tool-button:focus-visible {
    outline: 2px solid #1a73e8;
    outline-offset: 2px;
}

.morse-tool-button:disabled {
    border-color: #e8eaed;
    background: #f8f9fa;
    color: #9aa0a6;
    cursor: not-allowed;
}


/* =========================================================
   MORSE CODE LIGHT SIGNAL
========================================================= */

.morse-light-section {
    width: 100%;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #e8eaed;
}

.morse-light-heading h3 {
    margin: 0 0 7px;
    color: #202124;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

.morse-light-heading p {
    margin: 0;
    color: #5f6368;
    font-size: 14px;
    line-height: 1.6;
}

.morse-light-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 17px;
    margin-top: 17px;
}

.morse-flash-button i {
    font-size: 17px;
    line-height: 1;
}

.morse-flash-button[aria-pressed="true"],
.morse-flash-button.is-active {
    border-color: #1a73e8;
    background: #e8f0fe;
    color: #174ea6;
}

.morse-flash-button[aria-pressed="true"]:hover:not(:disabled),
.morse-flash-button.is-active:hover:not(:disabled) {
    background: #dce8fc;
}


/* =========================================================
   LIGHT INDICATOR
========================================================= */

.morse-light-signal {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    border: 1px solid #dadce0;
    border-radius: 50%;
    background: #f8f9fa;
}

.morse-light-bulb {
    display: block;
    width: 30px;
    height: 30px;
    border: 1px solid #bdc1c6;
    border-radius: 50%;
    background: #dadce0;
}

.morse-light-signal.is-on .morse-light-bulb,
.morse-light-signal.is-active .morse-light-bulb,
.morse-light-bulb.is-on {
    border-color: #d9aa21;
    background: #fbbc04;
    box-shadow:
        0 0 10px rgba(251, 188, 4, 0.45),
        0 0 20px rgba(251, 188, 4, 0.2);
}

.morse-light-status {
    margin: 12px 0 0;
    color: #5f6368;
    font-size: 13px;
    line-height: 1.5;
}

.morse-light-status:empty {
    display: none;
}

.morse-light-status.is-error {
    color: #b3261e;
}

.morse-light-note {
    margin: 13px 0 0;
    color: #80868b;
    font-size: 12px;
    line-height: 1.6;
}


/* =========================================================
   MORSE CODE REFERENCE SECTION
========================================================= */

.morse-reference-section {
    width: 100%;
    min-width: 0;
    margin-top: 39px;
}


/* =========================================================
   MORSE ALPHABET CHARACTER CARDS
========================================================= */

.morse-character-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

.morse-character-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    min-height: 78px;
    padding: 11px 5px;
    border: 1px solid #dadce0;
    border-radius: 7px;
    background: #ffffff;
    color: #202124;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.morse-character-card strong {
    display: block;
    color: #202124;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.15;
}

.morse-character-card code {
    display: block;
    max-width: 100%;
    color: #1a73e8;
    font-family:
        Consolas,
        "Courier New",
        monospace;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}

.morse-character-card:hover {
    border-color: #1a73e8;
    background: #f4f8ff;
}

.morse-character-card:active {
    background: #e8f0fe;
}

.morse-character-card:focus-visible {
    outline: 2px solid #1a73e8;
    outline-offset: 2px;
}

.morse-character-card.is-active {
    border-color: #1a73e8;
    background: #e8f0fe;
}


/* =========================================================
   REFERENCE SUBSECTIONS
========================================================= */

.morse-reference-subsection {
    margin-top: 31px;
}

.morse-reference-subsection h3 {
    margin: 0 0 10px;
    color: #202124;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
}

.morse-reference-subsection > p {
    margin: 0 0 16px;
    color: #5f6368;
    font-size: 14px;
    line-height: 1.6;
}

.morse-reference-subsection > p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   REFERENCE TABLE WRAPPERS
========================================================= */

.morse-table-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid #dadce0;
    border-radius: 8px;
    background: #ffffff;
    -webkit-overflow-scrolling: touch;
}


/* =========================================================
   REFERENCE TABLES
========================================================= */

.morse-reference-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    color: #3c4043;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
}

.morse-reference-table th,
.morse-reference-table td {
    padding: 11px 13px;
    border-bottom: 1px solid #e8eaed;
    vertical-align: middle;
}

.morse-reference-table thead th {
    background: #f8f9fa;
    color: #202124;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.morse-reference-table tbody tr:last-child td,
.morse-reference-table tbody tr:last-child th {
    border-bottom: none;
}

.morse-reference-table tbody tr:hover {
    background: #f8f9fa;
}

.morse-reference-table td code {
    padding: 2px 5px;
    border-radius: 4px;
    background: #f1f3f4;
    color: #202124;
    font-family:
        Consolas,
        "Courier New",
        monospace;
    font-size: 14px;
    white-space: nowrap;
}

.morse-reference-table td:first-child {
    font-weight: 600;
}


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

.morse-reference-note,
.morse-standard-note {
    margin: 13px 0 0;
    color: #5f6368;
    font-size: 13px;
    line-height: 1.6;
}

.morse-reference-note code {
    padding: 2px 5px;
    border-radius: 4px;
    background: #f1f3f4;
    color: #202124;
    font-family:
        Consolas,
        "Courier New",
        monospace;
    font-size: 13px;
}

.morse-standard-note {
    margin-top: 23px;
}

.morse-standard-note a {
    color: #1a73e8;
    text-decoration: none;
}

.morse-standard-note a:hover,
.morse-standard-note a:focus {
    color: #1558b0;
    text-decoration: underline;
}


/* =========================================================
   MORE MORSE CODE SYMBOLS
========================================================= */

.morse-extensions-details {
    width: 100%;
    margin-top: 28px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    background: #ffffff;
}

.morse-extensions-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 17px;
    color: #202124;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    list-style: none;
}

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

.morse-extensions-details summary::marker {
    content: "";
}

.morse-extensions-details summary:hover {
    background: #f8f9fa;
}

.morse-extensions-details summary:focus-visible {
    outline: 2px solid #1a73e8;
    outline-offset: -3px;
    border-radius: 7px;
}

.morse-extensions-details summary i {
    color: #5f6368;
    font-size: 20px;
    line-height: 1;
    transition: transform 0.15s ease;
}

.morse-extensions-details[open] summary i {
    transform: rotate(180deg);
}

.morse-extensions-details[open] summary {
    border-bottom: 1px solid #e8eaed;
}

.morse-extensions-content {
    padding: 18px;
}

.morse-extensions-content > p {
    margin: 0 0 15px;
    color: #5f6368;
    font-size: 14px;
    line-height: 1.6;
}


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

.morse-main .related-tool-callout {
    margin: 29px 0 34px;
    padding: 14px 16px;
    border: 1px solid #dadce0;
    border-radius: 7px;
    background: #f8f9fa;
    color: #3c4043;
    font-size: 14px;
    line-height: 1.65;
}

.morse-main .related-tool-row + .related-tool-row {
    margin-top: 8px;
}

.morse-main .related-tool-callout strong {
    color: #202124;
    font-weight: 600;
}

.morse-main .related-tool-callout a,
.morse-content a {
    color: #1a73e8;
    text-decoration: none;
}

.morse-main .related-tool-callout a:hover,
.morse-main .related-tool-callout a:focus,
.morse-content a:hover,
.morse-content a:focus {
    color: #1558b0;
    text-decoration: underline;
}


/* =========================================================
   SEO CONTENT
========================================================= */

.morse-content {
    width: 100%;
    min-width: 0;
    color: #3c4043;
}

.morse-content h2 {
    margin: 38px 0 13px;
    color: #202124;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.3;
}

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

.morse-content h3 {
    margin: 28px 0 11px;
    color: #202124;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
}

.morse-content p {
    margin: 0 0 17px;
    color: #3c4043;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.8;
}

.morse-content p:last-child {
    margin-bottom: 0;
}

.morse-content strong {
    color: #202124;
    font-weight: 700;
}

.morse-content p code {
    padding: 2px 5px;
    border-radius: 4px;
    background: #f1f3f4;
    color: #202124;
    font-family:
        Consolas,
        "Courier New",
        monospace;
    font-size: 0.93em;
    overflow-wrap: anywhere;
}


/* =========================================================
   MORSE CODE EXAMPLES IN SEO CONTENT
========================================================= */

.morse-content .morse-example {
    width: 100%;
    min-width: 0;
    margin: 19px 0 21px;
    padding: 17px 19px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    background: #f8f9fa;
}

.morse-example-label {
    margin: 0 0 7px;
    color: #5f6368;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.morse-content .morse-example > code {
    display: block;
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #e8eaed;
    border-radius: 6px;
    background: #ffffff;
    color: #202124;
    font-family:
        Consolas,
        "Courier New",
        monospace;
    font-size: 14px;
    line-height: 1.7;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.morse-content .morse-example > code +
.morse-example-label {
    margin-top: 16px;
}


/* =========================================================
   SEO CONTENT TABLES
========================================================= */

.morse-content .morse-table-wrapper {
    margin: 18px 0 21px;
}

.morse-content .morse-reference-table td:first-child {
    font-weight: 400;
}


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

#sidebar {
    width: 300px;
    min-width: 300px;
    min-height: 600px;
    align-self: stretch;
    position: relative;
}


/* =========================================================
   RESPONSIVE: SMALLER DESKTOP
========================================================= */

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

    .morse-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 28px;
    }

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

}


/* =========================================================
   RESPONSIVE: TABLET / HIDE SIDEBAR
========================================================= */

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

    .morse-section {
        padding-top: 82px;
    }

    .morse-layout {
        display: block;
        max-width: 900px;
    }

    #sidebar {
        display: none;
    }

    .morse-main .tool-header h1 {
        font-size: 32px;
    }

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

}


/* =========================================================
   RESPONSIVE: STACK TEXT BOXES
========================================================= */

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

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

    .morse-text-panel {
        width: 100%;
        min-width: 0;
    }

    .morse-textarea {
        height: 225px;
        min-height: 100px;
    }

    .morse-conversion-indicator {
        min-height: auto;
        height: 51px;
        padding: 0;
    }

    .morse-conversion-indicator i {
        transform: rotate(90deg);
    }

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

}


/* =========================================================
   RESPONSIVE: SMALL TABLETS
========================================================= */

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

    .morse-section {
        padding: 82px 16px 55px;
    }

    .morse-main .tool-header {
        margin-bottom: 24px;
    }

    .morse-main .tool-header h1 {
        font-size: 30px;
    }

    .morse-main .tool-intro {
        font-size: 16px;
    }

    .morse-panel-title {
        font-size: 19px;
    }

    .morse-textarea {
        height: 210px;
    }

    .morse-stat-card {
        min-height: 70px;
        padding: 10px 12px;
    }

    .morse-stat-card strong {
        font-size: 21px;
    }

    .morse-audio-section {
        margin-top: 32px;
        padding: 19px;
    }

    .morse-section-heading h2 {
        font-size: 22px;
    }

    .morse-audio-options {
        gap: 18px;
    }

    .morse-reference-section {
        margin-top: 34px;
    }

    .morse-reference-subsection h3 {
        font-size: 19px;
    }

    .morse-content h2 {
        margin-top: 32px;
        font-size: 22px;
    }

    .morse-content h3 {
        margin-top: 24px;
        font-size: 18px;
    }

}


/* =========================================================
   RESPONSIVE: MOBILE PHONES
========================================================= */

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

    .morse-section {
        padding: 82px 14px 48px;
    }

    .morse-main .tool-header {
        margin-bottom: 22px;
    }

    .morse-main .tool-header h1 {
        font-size: 28px;
        line-height: 1.25;
    }

    .morse-main .tool-intro {
        font-size: 15px;
        line-height: 1.6;
    }

    .morse-panel-title {
        margin-bottom: 9px;
        font-size: 19px;
    }

    .morse-textarea {
        height: 190px;
        min-height: 90px;
        padding: 13px;
        font-size: 15px;
        line-height: 1.6;
    }

    .morse-code-textarea {
        font-size: 14px;
        line-height: 1.7;
    }

    .morse-textarea-actions {
        justify-content: flex-end;
        gap: 6px;
        margin-top: 8px;
    }

    .morse-textarea-action {
        min-height: 32px;
        padding: 7px 9px;
        font-size: 12px;
    }

    .morse-conversion-indicator {
        height: 46px;
    }

    .morse-format-note {
        font-size: 12px;
    }

    .morse-examples {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
        margin-top: 20px;
    }

    .morse-example-buttons {
        gap: 7px;
    }

    .morse-example-button {
        min-height: 32px;
        padding: 7px 10px;
        font-size: 12px;
    }

    .morse-stats {
        gap: 7px;
        margin-top: 19px;
    }

    .morse-stat-card {
        min-height: 69px;
        padding: 10px 9px;
    }

    .morse-stat-card strong {
        font-size: 20px;
    }

    .morse-stat-card span {
        margin-top: 4px;
        font-size: 11px;
    }

    .morse-audio-section {
        padding: 16px;
        margin-top: 29px;
    }

    .morse-section-heading {
        margin-bottom: 15px;
    }

    .morse-section-heading h2 {
        font-size: 21px;
    }

    .morse-section-heading p {
        font-size: 13px;
    }

    .morse-audio-actions {
        gap: 8px;
        margin-bottom: 20px;
    }

    .morse-audio-button {
        min-height: 39px;
        padding: 8px 12px;
        gap: 5px;
        font-size: 12px;
    }

    .morse-audio-button i {
        font-size: 16px;
    }

    .morse-audio-play,
    .morse-audio-stop,
    .morse-audio-download {
        min-width: 0;
    }

    .morse-audio-options {
        grid-template-columns: minmax(0, 1fr);
        gap: 19px;
    }

    .morse-option-label,
    .morse-option-label-row label {
        font-size: 14px;
    }

    .morse-advanced-settings {
        margin-top: 20px;
    }

    .morse-advanced-settings summary {
        font-size: 13px;
    }

    .morse-light-section {
        margin-top: 20px;
        padding-top: 20px;
    }

    .morse-light-heading h3 {
        font-size: 17px;
    }

    .morse-light-heading p {
        font-size: 13px;
    }

    .morse-light-controls {
        gap: 13px;
        margin-top: 14px;
    }

    .morse-flash-button {
        font-size: 13px;
    }

    .morse-light-signal {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .morse-light-bulb {
        width: 27px;
        height: 27px;
    }

    .morse-reference-section {
        margin-top: 32px;
    }

    .morse-character-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .morse-character-card {
        min-height: 72px;
        gap: 5px;
        padding: 10px 3px;
    }

    .morse-character-card strong {
        font-size: 19px;
    }

    .morse-character-card code {
        font-size: 14px;
    }

    .morse-reference-subsection {
        margin-top: 28px;
    }

    .morse-reference-subsection h3 {
        font-size: 18px;
    }

    .morse-reference-subsection > p {
        font-size: 13px;
    }

    .morse-reference-table {
        font-size: 13px;
    }

    .morse-reference-table th,
    .morse-reference-table td {
        padding: 10px 11px;
    }

    .morse-reference-table thead th {
        font-size: 12px;
    }

    .morse-reference-table td code {
        font-size: 12px;
    }

    .morse-extensions-details summary {
        padding: 14px;
        font-size: 14px;
    }

    .morse-extensions-content {
        padding: 14px;
    }

    .morse-main .related-tool-callout {
        padding: 12px 14px;
        font-size: 13px;
    }

    .morse-content h2 {
        font-size: 22px;
    }

    .morse-content h3 {
        font-size: 18px;
    }

    .morse-content p {
        font-size: 14px;
        line-height: 1.75;
    }

    .morse-content .morse-example {
        padding: 14px;
    }

    .morse-content .morse-example > code {
        padding: 10px;
        font-size: 13px;
    }

}


/* =========================================================
   RESPONSIVE: VERY SMALL PHONES
========================================================= */

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

    .morse-section {
        padding-left: 12px;
        padding-right: 12px;
    }

    .morse-main .tool-header h1 {
        font-size: 26px;
    }

    .morse-textarea {
        height: 180px;
    }

    .morse-textarea-action {
        padding: 6px 8px;
        font-size: 11px;
    }

    .morse-example-buttons {
        gap: 6px;
    }

    .morse-example-button {
        padding: 7px 8px;
        font-size: 11px;
    }

    .morse-stats {
        gap: 5px;
    }

    .morse-stat-card {
        padding: 9px 6px;
    }

    .morse-stat-card strong {
        font-size: 18px;
    }

    .morse-stat-card span {
        font-size: 10px;
    }

    .morse-audio-section {
        padding: 13px;
    }

    .morse-audio-button {
        padding: 8px 9px;
        font-size: 11px;
    }

    .morse-character-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    .morse-character-card {
        min-height: 70px;
    }

    .morse-character-card strong {
        font-size: 18px;
    }

    .morse-character-card code {
        font-size: 14px;
    }

    .morse-content h2 {
        font-size: 21px;
    }

}


/* =========================================================
   ACCESSIBILITY AND REDUCED MOTION
========================================================= */

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

    .morse-main *,
    .morse-main *::before,
    .morse-main *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }

}


/* =========================================================
   PRINT STYLES
========================================================= */

@media print {

    .morse-section {
        padding: 15px 0;
    }

    .morse-layout {
        display: block;
        max-width: 100%;
    }

    #sidebar,
    .morse-conversion-indicator,
    .morse-textarea-actions,
    .morse-examples,
    .morse-audio-section,
    .morse-main .related-tool-callout {
        display: none !important;
    }

    .morse-editor-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .morse-textarea {
        height: 180px;
        border: 1px solid #999999;
        resize: none;
    }

    .morse-reference-section {
        margin-top: 25px;
    }

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

    .morse-character-card {
        break-inside: avoid;
    }

    .morse-content h2,
    .morse-content h3,
    .morse-reference-subsection h3 {
        break-after: avoid;
    }

    .morse-table-wrapper {
        overflow: visible;
    }

    .morse-reference-table tr {
        break-inside: avoid;
    }

}
