.word-article-page {
    box-sizing: border-box;
    color: #305978;
    margin: 0 auto;
    max-width: 576px;
    padding: 8px;
}

.word-article-page .word-article-breadcrumbs {
    margin-bottom: 10px;
    width: fit-content;
}

.word-article {
    background: #fbfdff;
    border: 1px solid #c2e1f0;
    border-radius: 8px;
    overflow-wrap: anywhere;
}

.word-article-header {
    background: #f0fced;
    border-bottom: 1px solid #d6ebd1;
    border-radius: 8px 8px 0 0;
    padding: 22px 24px;
}

.word-article h1 {
    color: #174ea6;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.2;
    margin: 0;
}

.word-article-header p {
    color: #305978;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.55;
    margin: 12px 0 0;
}

.word-article-intro-link,
.word-article-text-link {
    color: #174ea6;
    display: inline-block;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
    margin-top: 14px;
    padding: 5px 0;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.word-article-intro-link { margin-top: 8px; }

.word-article .pwa-install-button {
    background: #eaf5fc;
    border-color: #c2dfee;
    border-radius: 8px;
    display: flex;
    margin-top: 16px;
    max-width: 100%;
}

.word-article .pwa-install-button:hover { background: #dfedf9; }

.word-article-start { margin-top: 18px; }

.word-article-facts {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 20px 0 0;
    padding-top: 16px;
    border-top: 1px solid #cce3c8;
}

.word-article-facts > div {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 4px;
    text-align: center;
}

.word-article-facts > div + div { border-left: 1px solid #cce3c8; }

.word-article-facts dt {
    grid-row: 2;
    color: #305978;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.word-article-facts dd {
    grid-row: 1;
    color: #174ea6;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.2;
    margin: 0;
}

.word-article--landing .word-article-action {
    background: #27813d;
    border-color: #217035;
}

.word-article--landing .word-article-action:hover,
.word-article--landing .word-article-action:active { background: #217035; }

.word-article-toc {
    background: #eaf5fc;
    border-bottom: 1px solid #cfe4f1;
    padding: 0 24px;
}

.word-article summary {
    align-items: center;
    color: #174ea6;
    cursor: pointer;
    display: flex;
    font-size: 15px;
    font-weight: 800;
    gap: 16px;
    justify-content: space-between;
    line-height: 1.4;
    list-style: none;
    min-height: 48px;
    padding: 12px 0;
    box-sizing: border-box;
}

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

.word-article summary::after {
    border-bottom: 2px solid currentColor;
    border-right: 2px solid currentColor;
    content: "";
    flex: 0 0 7px;
    height: 7px;
    margin-right: 3px;
    opacity: 0.5;
    transform: translateY(-2px) rotate(45deg);
}

.word-article details[open] > summary::after {
    transform: translateY(2px) rotate(225deg);
}

.word-article-toc ol {
    counter-reset: article-toc;
    list-style: none;
    margin: 0;
    padding: 0 0 12px;
}

.word-article-toc li {
    counter-increment: article-toc;
}

.word-article-toc a {
    align-items: baseline;
    color: #305978;
    display: flex;
    font-size: 14px;
    font-weight: 700;
    gap: 10px;
    line-height: 1.45;
    padding: 9px 0;
    text-decoration: none;
}

.word-article-toc a::before {
    color: #287c87;
    content: counter(article-toc, decimal-leading-zero);
    flex: 0 0 22px;
    font-size: 11px;
    font-weight: 900;
}

.word-article-content { padding: 0 24px; }

.word-article-section {
    --section-accent: #b8d5f1;
    --section-tint: #edf5fd;
    padding: 26px 0;
}

.word-article-section:nth-child(3n + 2) {
    --section-accent: #b4dcca;
    --section-tint: #edf8f2;
}

.word-article-section:nth-child(3n) {
    --section-accent: #efcdbd;
    --section-tint: #fff3ed;
}

.word-article-section + .word-article-section {
    border-top: 1px solid #d4e7f1;
}

.word-article h2 {
    color: #174ea6;
    font-size: 21px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.35;
    margin: 0 0 14px;
    scroll-margin-top: 88px;
}

.word-article-section h2 {
    padding-bottom: 13px;
    position: relative;
}

.word-article-section h2::after {
    background: var(--section-accent);
    border-radius: 2px;
    bottom: 0;
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    width: 64px;
}

.word-article-section p,
.word-article-faq p {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.65;
    margin: 0;
}

.word-article-section p + p { margin-top: 14px; }

.word-article-flashcards {
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1fr);
    margin-top: 20px;
}

.word-article-flashcard {
    background: var(--flashcard-tint);
    border: 1px solid var(--flashcard-border);
    border-radius: 8px;
    box-sizing: border-box;
    min-height: 232px;
}

.word-article-flashcard-item {
    --flashcard-tint: #edf5fd;
    --flashcard-border: #b8d5f1;
    min-height: 232px;
    min-width: 0;
}

.word-article-flashcard-item:nth-child(2) {
    --flashcard-tint: #edf8f2;
    --flashcard-border: #b4dcca;
}

.word-article-flashcard-item:nth-child(3) {
    --flashcard-tint: #fff3ed;
    --flashcard-border: #efcdbd;
}

.word-article-flashcard > summary {
    min-height: 230px;
    padding: 16px;
}

.word-article-flashcard__front {
    display: block;
    flex: 1;
    text-align: center;
}

.word-article-flashcard__front > strong {
    display: block;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.3;
}

.word-article-flashcard__transcription {
    color: #46667c;
    display: block;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    margin-top: 4px;
}

.word-article-flashcard__show,
.word-article-flashcard__hide {
    display: block;
    font-size: 13px;
    margin-top: 12px;
}

.word-article-flashcard__hide,
.word-article-flashcard[open] .word-article-flashcard__show { display: none; }

.word-article-flashcard[open] .word-article-flashcard__hide { display: block; }

.word-article-flashcard[open] > summary {
    border-bottom: 1px solid rgb(71 111 145 / 15%);
    min-height: 80px;
    padding: 12px 16px;
}

.word-article-flashcard[open] .word-article-flashcard__front {
    display: grid;
    align-items: baseline;
    column-gap: 10px;
    grid-template-columns: auto 1fr;
    text-align: left;
}

.word-article-flashcard[open] .word-article-flashcard__front > strong { font-size: 18px; }
.word-article-flashcard[open] .word-article-flashcard__transcription { font-size: 14px; margin-top: 0; }
.word-article-flashcard[open] .word-article-flashcard__hide { grid-column: 1 / -1; margin-top: 4px; }

.word-article-flashcard__answer { padding: 16px; }

.word-article-flashcard__answer > strong {
    color: #174ea6;
    display: block;
    font-size: 19px;
    line-height: 1.4;
    margin-bottom: 12px;
}

.word-article-flashcard__answer p { font-size: 15px; line-height: 1.5; }
.word-article-flashcard__answer p + p { margin-top: 4px; }

.word-article-flashcard--interactive {
    background: transparent;
    border: 0;
    perspective: 760px;
    position: relative;
}

.word-article-flashcard__inner {
    display: grid;
    min-height: 232px;
    transform-origin: center center;
    transform-style: preserve-3d;
    transition: transform 0.62s cubic-bezier(0.45, 0.05, 0.2, 1);
    width: 100%;
}

.word-article-flashcard--flipped .word-article-flashcard__inner {
    transform: rotateY(180deg);
}

.word-article-flashcard__face {
    -webkit-backface-visibility: hidden;
    align-items: center;
    backface-visibility: hidden;
    background: var(--flashcard-tint);
    border: 1px solid var(--flashcard-border);
    border-radius: 8px;
    box-shadow: 0 4px 11px rgb(0 75 110 / 14%);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    grid-area: 1 / 1;
    justify-content: center;
    min-height: 232px;
    min-width: 0;
    overflow-wrap: anywhere;
    padding: 20px 16px 56px;
    text-align: center;
    transform: rotateY(0deg);
}

.word-article-flashcard__face.word-article-flashcard__answer {
    background: #fff4a8;
    border-color: #f2c13e;
    box-shadow: 0 5px 14px rgb(118 87 0 / 18%);
    transform: rotateY(180deg);
}

.word-article-flashcard__face.word-article-flashcard__answer > strong {
    font-size: 24px;
}

.word-article-flashcard-toggle {
    align-items: center;
    background: rgb(255 255 255 / 75%);
    border: 1px solid #9fc5eb;
    border-radius: 8px;
    bottom: 12px;
    color: #174ea6;
    cursor: pointer;
    display: flex;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    gap: 7px;
    justify-content: center;
    left: 50%;
    letter-spacing: 0;
    line-height: 1.4;
    max-width: calc(100% - 32px);
    min-height: 32px;
    padding: 5px 12px;
    position: absolute;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 1;
}

.word-article-flashcard-toggle[hidden] { display: none; }

.word-article-flashcard-toggle[aria-pressed="true"] {
    background: rgb(255 255 255 / 55%);
    border-color: #d3b64e;
    color: #705500;
}

.word-article-flashcard-toggle__icon {
    align-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    display: inline-flex;
    height: 17px;
    justify-content: center;
    line-height: 1;
    width: 17px;
}

@media (prefers-reduced-motion: reduce) {
    .word-article-flashcard__inner { transition: none; }
}

.word-article-steps {
    background: var(--section-tint);
    border-bottom: 1px solid var(--section-accent);
    border-top: 1px solid var(--section-accent);
    counter-reset: article-step;
    list-style: none;
    margin: 20px 0 0;
    padding: 4px 14px;
}

.word-article-steps li {
    counter-increment: article-step;
    padding: 12px 0 12px 30px;
    position: relative;
}

.word-article-steps li + li { border-top: 1px solid rgb(71 111 145 / 12%); }

.word-article-steps li::before {
    color: #287c87;
    content: counter(article-step, decimal-leading-zero);
    font-size: 11px;
    font-weight: 900;
    left: 0;
    position: absolute;
    top: 16px;
}

.word-article-steps strong {
    color: #174ea6;
    display: block;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.45;
}

.word-article-steps span {
    display: block;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    margin-top: 3px;
}

.word-article-faq {
    background: #fff5ef;
    border-bottom: 1px solid #efddd2;
    border-top: 1px solid #efddd2;
    padding: 24px;
}

.word-article-faq h2 { margin-bottom: 8px; }

.word-article-faq details + details { border-top: 1px solid #efddd2; }

.word-article-faq details p { padding: 0 18px 16px 0; }

.word-article-footer { padding: 24px; }

.word-article-action {
    align-items: center;
    background: #27813d;
    border: 2px solid #217035;
    border-radius: 8px;
    box-shadow: 0 2px 0 rgb(24 58 88 / 12%);
    box-sizing: border-box;
    color: #fff;
    display: flex;
    font-size: 16px;
    font-weight: 900;
    justify-content: center;
    letter-spacing: 0;
    line-height: 1.4;
    min-height: 48px;
    padding: 11px 16px;
    text-align: center;
    text-decoration: none;
}

.word-article-related { margin-top: 28px; }

.word-article-related > div {
    display: flex;
    flex-direction: column;
}

.word-article-related a {
    border-top: 1px solid #d4e7f1;
    color: #305978;
    display: block;
    padding: 14px 0;
    text-decoration: none;
}

.word-article-related strong {
    color: #174ea6;
    display: block;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.4;
}

.word-article-related span {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    margin-top: 4px;
}

.word-article-sources {
    border-top: 1px solid #d4e7f1;
    margin-top: 14px;
}

.word-article-sources p {
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 12px;
}

.word-article-sources a {
    color: #174ea6;
    text-underline-offset: 3px;
}

.word-article-sources span {
    display: block;
    margin-top: 8px;
}

.word-article a:focus-visible,
.word-article button:focus-visible,
.word-article summary:focus-visible,
.word-article h2:focus-visible {
    outline: 2px solid #174ea6;
    outline-offset: 3px;
}

@media (hover: hover) {
    .word-article a:hover { text-decoration: underline; text-underline-offset: 3px; }
    .word-article summary:hover { color: #287c87; }
    .word-article .word-article-action:hover { background: #217035; text-decoration: none; }
    .word-article-flashcard-toggle:hover { filter: brightness(0.96); }
}

.word-article .word-article-action:active { background: #217035; box-shadow: none; }

@media (max-width: 480px) {
    .word-article-header,
    .word-article-faq,
    .word-article-footer { padding: 20px 16px; }
    .word-article-header { padding-top: 16px; padding-bottom: 16px; }
    .word-article-content,
    .word-article-toc { padding-left: 16px; padding-right: 16px; }
    .word-article h1 { font-size: 26px; }
    .word-article-header p { font-size: 15px; line-height: 1.5; }
    .word-article h2 { font-size: 21px; }
}
