.seo-tool-page {
    box-sizing: border-box;
    color: #2f5d6b;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 auto;
    max-width: 576px;
    padding: 8px;
}

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

.seo-tool-hero,
.seo-tool-toc,
.seo-tool-content,
.seo-tool-faq,
.alphabet-board {
    background: rgb(255 255 255 / 84%);
    border: 1px solid rgb(182 213 255 / 88%);
    border-radius: 18px;
    box-shadow: 0 1px 2px rgb(0 0 0 / 18%);
    box-sizing: border-box;
}

.seo-tool-hero {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    min-height: 250px;
    padding: 20px;
}

.seo-tool-eyebrow {
    color: #009688;
    display: block;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 7px;
    text-transform: uppercase;
}

.seo-tool-hero h1,
.seo-tool-toc h2,
.seo-tool-content h2,
.seo-tool-faq h2,
.alphabet-board h2 {
    color: #174ea6;
    font-weight: 900;
    letter-spacing: 0;
    margin: 0;
}

.seo-tool-hero h1 {
    font-size: 30px;
    line-height: 1.08;
}

.seo-tool-hero p {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin: 12px 0 16px;
}

.seo-tool-action {
    align-items: center;
    background: #20c91c;
    border: 2px solid #fff;
    border-radius: 16px;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-family: inherit;
    font-size: 14px;
    font-weight: 900;
    justify-content: center;
    letter-spacing: 1px;
    line-height: 1;
    min-height: 42px;
    padding: 10px 16px;
    text-align: center;
    text-decoration: none;
}

.seo-tool-action--footer {
    align-self: center;
    margin: 4px 0 10px;
}

.seo-tool-toc {
    padding: 14px 18px;
}

.seo-tool-toc h2 {
    font-size: 17px;
    line-height: 1.15;
}

.seo-tool-toc ul {
    display: grid;
    gap: 0 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    list-style: none;
    margin: 9px 0 0;
    padding: 0;
}

.seo-tool-toc li {
    border-top: 1px solid rgb(119 199 255 / 32%);
}

.seo-tool-toc a {
    color: #174ea6;
    display: block;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    padding: 8px 0;
    text-decoration: none;
}

:is(.alphabet-page, .phonetics-page) .seo-tool-toc {
    display: block;
    overflow: visible;
    padding: 12px;
}

:is(.alphabet-page, .phonetics-page) .seo-tool-toc h2 {
    font-size: 15px;
    line-height: 1.1;
}

:is(.alphabet-page, .phonetics-page) .seo-tool-toc ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 9px 0 0;
    padding: 0;
}

:is(.alphabet-page, .phonetics-page) .seo-tool-toc li {
    border: 0;
}

:is(.alphabet-page, .phonetics-page) .seo-tool-toc a {
    background: rgb(220 244 255 / 88%);
    border: 1px solid rgb(119 199 255 / 68%);
    border-radius: 999px;
    display: block;
    font-size: 12px;
    line-height: 1;
    padding: 7px 10px;
    white-space: nowrap;
}

:is(.alphabet-page, .phonetics-page) .seo-tool-toc li:nth-child(2) a {
    background: rgb(220 255 235 / 88%);
    border-color: rgb(32 201 28 / 44%);
    color: #087d31;
}

:is(.alphabet-page, .phonetics-page) .seo-tool-toc li:nth-child(3) a {
    background: rgb(255 237 201 / 88%);
    border-color: rgb(255 184 80 / 68%);
    color: #b34b20;
}

:is(.alphabet-page, .phonetics-page) .seo-tool-toc li:nth-child(4) a {
    background: rgb(235 220 255 / 82%);
    border-color: rgb(141 80 248 / 46%);
    color: #7040cf;
}

:is(.alphabet-page, .phonetics-page) .seo-tool-toc li:nth-child(5) a {
    background: rgb(255 222 241 / 86%);
    border-color: rgb(255 83 177 / 46%);
    color: #b82f7a;
}

:is(.alphabet-page, .phonetics-page) .seo-tool-toc li:nth-child(6) a {
    background: rgb(255 247 190 / 88%);
    border-color: rgb(255 199 0 / 58%);
    color: #8a6500;
}

:is(.alphabet-page, .phonetics-page) .seo-tool-toc li:nth-child(7) a {
    background: rgb(210 250 248 / 88%);
    border-color: rgb(0 150 136 / 46%);
    color: #00796b;
}

:is(.alphabet-page, .phonetics-page) .seo-tool-toc li:nth-child(8) a {
    background: rgb(255 225 213 / 88%);
    border-color: rgb(255 99 71 / 48%);
    color: #b53c27;
}

.seo-tool-content,
.seo-tool-faq {
    padding: 17px 18px;
}

.seo-tool-content h2,
.seo-tool-faq h2,
.alphabet-board h2 {
    font-size: 21px;
    line-height: 1.15;
}

.seo-tool-content h3 {
    color: #8d50f8;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.2;
    margin: 18px 0 0;
}

.seo-tool-content p,
.seo-tool-faq p,
.alphabet-board header p {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.48;
    margin: 9px 0 0;
}

.seo-tool-content p + p {
    margin-top: 9px;
}

.seo-tool-text-link {
    color: #174ea6;
    display: inline-block;
    font-size: 14px;
    font-weight: 900;
    margin-top: 11px;
    text-underline-offset: 3px;
}

.seo-tool-steps {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    list-style: none;
    margin: 13px 0 0;
    padding: 0;
}

.seo-tool-steps li {
    background: rgb(220 244 255 / 76%);
    border: 1px solid rgb(119 199 255 / 44%);
    border-radius: 10px;
    min-height: 92px;
    padding: 11px;
}

.seo-tool-steps strong,
.seo-tool-steps span {
    display: block;
}

.seo-tool-steps strong {
    color: #009688;
    font-size: 14px;
    font-weight: 900;
    margin-bottom: 4px;
}

.seo-tool-steps span {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.32;
}

.seo-tool-faq details {
    border-top: 1px solid rgb(119 199 255 / 38%);
    padding: 12px 0;
}

.seo-tool-faq details:first-of-type {
    margin-top: 10px;
}

.seo-tool-faq summary {
    color: #174ea6;
    cursor: pointer;
    font-size: 15px;
    font-weight: 900;
}

.alphabet-board {
    padding: 16px;
    scroll-margin-top: 12px;
}

.seo-tool-content[id],
.seo-tool-faq[id] {
    scroll-margin-top: 12px;
}

.alphabet-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 15px;
}

.alphabet-letter {
    align-items: center;
    background: rgb(220 244 255 / 82%);
    border: 1px solid rgb(119 199 255 / 62%);
    border-radius: 10px;
    box-sizing: border-box;
    color: #174ea6;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    font-family: inherit;
    min-height: 174px;
    padding: 9px 6px 8px;
    position: relative;
    text-align: center;
}

.alphabet-letter.is-playing {
    background: rgb(220 244 255 / 82%);
    border-color: #20c91c;
}

.alphabet-letter__symbol {
    align-items: baseline;
    color: #8d50f8;
    display: inline-flex;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 29px;
    font-weight: 900;
    gap: 3px;
    line-height: 1;
}

.alphabet-letter__symbol small {
    color: inherit;
    font-size: 16px;
}

.alphabet-letter--vowel .alphabet-letter__symbol {
    color: #ff6347;
}

.alphabet-letter--consonant .alphabet-letter__symbol {
    color: #174ea6;
}

.alphabet-letter__pronunciation {
    font-size: 11px;
    font-weight: 800;
    margin-top: 6px;
}

.alphabet-letter__example {
    align-items: center;
    color: #009688;
    display: flex;
    flex-direction: column;
    font-family: "Nunito", Arial, sans-serif;
    line-height: 1.15;
    margin-top: 6px;
    max-width: 100%;
}

.alphabet-letter__example strong {
    font-size: 12px;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.alphabet-letter__example small {
    color: #587586;
    font-size: 10px;
    font-weight: 800;
    margin-top: 2px;
}

.alphabet-letter__example em {
    color: #2f5d6b;
    font-family: inherit;
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
    margin-top: 2px;
    overflow-wrap: anywhere;
}

.alphabet-letter img {
    height: 22px;
    margin-top: 7px;
    width: 22px;
}

.alphabet-board__status {
    color: #587586;
    font-size: 12px;
    font-weight: 800;
    min-height: 17px;
    margin: 8px 0 0;
    text-align: center;
}

.alphabet-counts {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 14px 0 0;
}

.alphabet-counts > div {
    align-items: center;
    background: rgb(220 244 255 / 72%);
    border: 1px solid rgb(119 199 255 / 52%);
    border-radius: 10px;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(125px, 0.7fr) minmax(0, 2.3fr);
    min-width: 0;
    padding: 9px 11px;
    text-align: left;
}

.alphabet-counts dt,
.alphabet-counts dd {
    margin: 0;
}

.alphabet-counts dt {
    color: #174ea6;
    font-size: 13px;
    font-weight: 900;
}

.alphabet-counts dd {
    color: #174ea6;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.alphabet-inline-letter {
    align-items: center;
    border: 1px solid;
    border-radius: 7px;
    display: inline-flex;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 12px;
    font-weight: 900;
    height: 21px;
    justify-content: center;
    line-height: 1;
    margin: 1px;
    min-width: 21px;
    padding: 0 3px;
    vertical-align: middle;
}

.alphabet-inline-letter--vowel {
    background: rgb(255 255 255 / 72%);
    border-color: rgb(119 199 255 / 64%);
    color: #c74429;
}

.alphabet-inline-letter--consonant {
    background: rgb(255 255 255 / 72%);
    border-color: rgb(119 199 255 / 64%);
    color: #174ea6;
}

.alphabet-sound-list {
    list-style: none;
    margin: 13px 0 0;
    padding: 0;
}

.alphabet-sound-list li {
    align-items: center;
    border-top: 1px solid rgb(119 199 255 / 38%);
    display: grid;
    gap: 9px;
    grid-template-columns: 76px minmax(0, 1fr);
    padding: 9px 0;
}

.alphabet-sound-list strong {
    color: #174ea6;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 14px;
    font-weight: 900;
}

.alphabet-sound-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.alphabet-word-audio {
    align-items: center;
    background: rgb(255 255 255 / 76%);
    border: 1px solid rgb(119 199 255 / 62%);
    border-radius: 9px;
    color: #174ea6;
    cursor: pointer;
    display: inline-flex;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 13px;
    font-weight: 900;
    gap: 6px;
    min-height: 34px;
    padding: 5px 7px 5px 9px;
}

.alphabet-word-audio i {
    font-style: normal;
}

.alphabet-word-audio img {
    height: 19px;
    width: 19px;
}

.alphabet-word-audio.is-playing {
    background: rgb(178 238 109 / 76%);
    border-color: #20c91c;
}

.alphabet-note {
    border-left: 4px solid #ffb850;
    padding-left: 10px;
}

.alphabet-dialogue {
    border-left: 4px solid #20c91c;
    margin-top: 13px;
    padding-left: 12px;
}

.alphabet-dialogue p {
    margin: 0;
}

.alphabet-dialogue p + p {
    margin-top: 9px;
}

.alphabet-memory-groups {
    margin: 13px 0 0;
}

.alphabet-memory-groups > div {
    align-items: baseline;
    border-top: 1px solid rgb(119 199 255 / 38%);
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    padding: 9px 0;
}

.alphabet-memory-groups dt,
.alphabet-memory-groups dd {
    margin: 0;
}

.alphabet-memory-groups dt {
    color: #009688;
    font-size: 13px;
    font-weight: 900;
}

.alphabet-memory-groups dd {
    color: #174ea6;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.75;
}

.alphabet-practice details {
    border-top: 1px solid rgb(119 199 255 / 38%);
    padding: 12px 0;
}

.alphabet-practice details:first-of-type {
    margin-top: 10px;
}

.alphabet-practice summary {
    color: #174ea6;
    cursor: pointer;
    font-size: 14px;
    font-weight: 900;
}

.phonetics-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 14px 0 0;
}

.phonetics-summary > div {
    border-left: 1px solid rgb(119 199 255 / 45%);
    min-width: 0;
    padding: 4px 9px;
    text-align: center;
}

.phonetics-summary > div:first-child {
    border-left: 0;
}

.phonetics-summary dt,
.phonetics-summary dd {
    margin: 0;
}

.phonetics-summary dt {
    color: #587586;
    font-size: 11px;
    font-weight: 800;
}

.phonetics-summary dd {
    color: #174ea6;
    font-size: 14px;
    font-weight: 900;
}

.phonetics-notation {
    margin: 11px 0 0;
}

.phonetics-notation > div {
    align-items: baseline;
    border-top: 1px solid rgb(119 199 255 / 38%);
    display: grid;
    gap: 12px;
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 9px 0;
}

.phonetics-notation dt,
.phonetics-notation dd {
    margin: 0;
}

.phonetics-notation dt {
    color: #8d50f8;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 18px;
    font-weight: 900;
}

.phonetics-notation dd {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.38;
}

.phonetics-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 13px;
}

.phonetics-sound {
    align-items: center;
    background: rgb(220 244 255 / 62%);
    border: 1px solid rgb(119 199 255 / 52%);
    border-radius: 10px;
    box-sizing: border-box;
    color: #2f5d6b;
    cursor: pointer;
    display: grid;
    font-family: inherit;
    grid-template-columns: minmax(0, 1fr) 22px;
    min-height: 104px;
    padding: 9px;
    text-align: left;
    width: 100%;
}

.phonetics-sound.is-playing {
    background: rgb(220 244 255 / 62%);
    border-color: #20c91c;
}

.phonetics-sound:focus-visible {
    border-radius: 6px;
    outline: 3px solid #ffcb05;
    outline-offset: 1px;
}

.phonetics-sound__symbol,
.phonetics-sound__word,
.phonetics-sound__transcription,
.phonetics-sound__translation {
    grid-column: 1;
    min-width: 0;
}

.phonetics-sound__symbol {
    color: #8d50f8;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.05;
}

.phonetics-sound--vowel .phonetics-sound__symbol {
    color: #ff6347;
}

.phonetics-sound--diphthong .phonetics-sound__symbol {
    color: #8d50f8;
}

.phonetics-sound--consonant .phonetics-sound__symbol {
    color: #174ea6;
}

.phonetics-sound__word {
    color: #174ea6;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.1;
}

.phonetics-sound__transcription,
.phonetics-sound__translation {
    font-size: 10px;
    font-weight: 800;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.phonetics-sound__transcription {
    color: #009688;
    font-family: "Nunito", Arial, sans-serif;
}

.phonetics-sound img {
    grid-column: 2;
    grid-row: 1 / span 4;
    height: 20px;
    justify-self: end;
    width: 20px;
}

.phonetics-status {
    color: #587586;
    font-size: 12px;
    font-weight: 800;
    margin: -5px 18px 0;
    min-height: 17px;
}

.phonetics-articulation {
    margin: 12px 0 0;
}

.phonetics-articulation > div {
    border-top: 1px solid rgb(119 199 255 / 38%);
    padding: 10px 0;
}

.phonetics-articulation dt,
.phonetics-articulation dd {
    margin: 0;
}

.phonetics-articulation dt {
    color: #174ea6;
    font-size: 14px;
    font-weight: 900;
}

.phonetics-articulation dt span {
    color: #8d50f8;
    display: inline-block;
    font-family: "Nunito", Arial, sans-serif;
    min-width: 82px;
}

.phonetics-articulation dd {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.38;
    margin-top: 4px;
}

.phonetics-voicing-pairs {
    display: grid;
    gap: 0 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 11px 0 0;
}

.phonetics-voicing-pairs > div {
    align-items: baseline;
    border-top: 1px solid rgb(119 199 255 / 38%);
    display: flex;
    gap: 8px;
    justify-content: space-between;
    padding: 8px 0;
}

.phonetics-voicing-pairs dt,
.phonetics-voicing-pairs dd {
    font-family: "Nunito", Arial, sans-serif;
    font-size: 12px;
    font-weight: 900;
    margin: 0;
}

.phonetics-voicing-pairs dt {
    color: #8d50f8;
}

.phonetics-voicing-pairs dd {
    color: #174ea6;
    text-align: right;
}

.phonetics-minimal-pairs {
    display: grid;
    gap: 0 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 11px;
}

.phonetics-minimal-pairs > div {
    border-top: 1px solid rgb(119 199 255 / 38%);
    padding: 9px 0;
}

.phonetics-minimal-pairs strong,
.phonetics-minimal-pairs span,
.phonetics-minimal-pairs small {
    display: block;
}

.phonetics-minimal-pairs strong {
    color: #174ea6;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 13px;
    font-weight: 900;
}

.phonetics-minimal-pairs span,
.phonetics-minimal-pairs small {
    font-family: "Nunito", Arial, sans-serif;
    font-size: 11px;
    font-weight: 800;
    margin-top: 3px;
}

.phonetics-minimal-pairs span {
    color: #009688;
}

.phonetics-minimal-pairs small {
    color: #587586;
}

.phonetics-practice details {
    border-top: 1px solid rgb(119 199 255 / 38%);
    padding: 12px 0;
}

.phonetics-practice details:first-of-type {
    margin-top: 10px;
}

.phonetics-practice summary {
    color: #174ea6;
    cursor: pointer;
    font-size: 14px;
    font-weight: 900;
}

.seo-tool-footer-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 4px 0 10px;
}

.seo-tool-footer-actions .seo-tool-action {
    margin: 0;
}

@media (max-width: 520px) {
    .seo-tool-hero {
        min-height: 220px;
        padding: 17px;
    }

    .seo-tool-hero h1 {
        font-size: 26px;
    }

    .seo-tool-hero p {
        font-size: 15px;
    }

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

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

@media (max-width: 380px) {
    .seo-tool-toc ul,
    .seo-tool-steps {
        grid-template-columns: 1fr;
    }

    .alphabet-counts {
        display: flex;
    }

    .phonetics-summary,
    .phonetics-voicing-pairs,
    .phonetics-minimal-pairs {
        grid-template-columns: 1fr;
    }

    .alphabet-counts > div {
        gap: 5px;
        grid-template-columns: 1fr;
        padding: 8px 9px;
    }

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