@font-face {
    font-family: 'DroidSansHebrew';
    src: url('/fonts/DroidSansHebrew.otf') format('opentype');
    font-display: swap;
}

.content-panel .articles-intro {
    max-width: 660px;
    margin: 0 0 22px;
    color: #555555;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.75;
}

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

.article-preview {
    display: flex;
    align-items: center;
    min-height: 96px;
    gap: 14px;
    padding: 16px;
    color: #37474f;
    background: #ffffff;
    border: 1px solid #e4e9ec;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(35, 54, 64, 0.05);
    text-decoration: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.article-preview:hover {
    color: #37474f;
    border-color: rgba(123, 67, 151, 0.38);
    box-shadow: 0 7px 18px rgba(67, 47, 82, 0.1);
    text-decoration: none;
    transform: translateY(-1px);
}

.content-panel .article-preview,
.content-panel .article-preview:hover,
.content-panel .article-preview:focus,
.content-panel .article-preview:focus-visible,
.content-panel .article-preview:hover *,
.content-panel .article-preview:focus *,
.content-panel .article-preview:focus-visible * {
    text-decoration: none;
}

.article-preview:hover *,
.article-preview:focus *,
.article-preview:focus-visible * {
    text-decoration: none;
}

.article-preview-icon,
.article-page-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #7b4397;
    background: #f6eff9;
    border-radius: 50%;
    font-size: 1rem;
}

.article-preview-content {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.article-preview-content strong {
    color: #37474f;
    font-size: 1rem;
    font-weight: 600;
}

.article-preview-content span {
    color: #78909c;
    font-size: 0.84rem;
    font-weight: 400;
    line-height: 1.35;
}

.article-preview-arrow {
    margin-left: auto;
    color: #90a4ae;
    font-size: 0.78rem;
}

.blog-preview-date {
    color: #90a4ae;
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.35;
}

.article-page {
    padding-top: 0;
}

.article-back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 22px 0 14px;
    color: #6d8490;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
}

.article-back-link:hover {
    color: #7b4397;
    text-decoration: none;
}

.content-panel .article-back-link,
.content-panel .article-back-link:hover,
.content-panel .article-back-link:focus,
.content-panel .article-back-link:focus-visible,
.content-panel .article-back-link:hover * {
    text-decoration: none;
}

.article-page-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #edf0f2;
}

.article-page-header > div,
.article-page-header h1,
.article-page-header p {
    text-align: left;
}

.article-page-header > div {
    min-width: 0;
}

.article-page-icon {
    width: 48px;
    height: 48px;
    font-size: 1.16rem;
}

.article-page-header h1 {
    margin: 0;
}

.article-page-header p {
    margin: 4px 0 0;
    color: #555555;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.75;
}

.article-prose {
    padding: 4px 0 6px;
    color: #555555;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.75;
}

.article-prose p,
.article-prose li {
    color: #555555;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.75;
}

.article-prose p {
    margin: 0 0 13px;
}

.article-prose h2 {
    margin: 26px 0 10px;
    color: #444444;
    font-size: 1.45rem;
    font-weight: 400;
    line-height: 1.25;
}

.article-prose h3 {
    margin: 0;
    color: #455a64;
    font-size: 0.96rem;
    font-weight: 400;
    line-height: 1.5;
}

.article-prose a {
    color: #7b4397;
    text-decoration: none;
}

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

.article-prose blockquote {
    margin: 18px 0;
    padding: 2px 0 2px 16px;
    border-left: 3px solid rgba(123, 67, 151, 0.35);
    color: #607d8b;
}

.article-prose code {
    padding: 1px 5px;
    border-radius: 4px;
    color: #37474f;
    background: #f4f6f7;
    font-size: 0.92em;
}

.article-prose pre {
    overflow-x: auto;
    margin: 18px 0;
    padding: 12px 14px;
    border: 1px solid #e6ecef;
    border-radius: 8px;
    background: #fafbfc;
}

.article-prose pre code {
    padding: 0;
    background: transparent;
}

.article-prose hr {
    margin: 24px 0;
    border: 0;
    border-top: 1px solid #edf0f2;
}

.article-sound {
    color: #d84542;
    font-weight: 600;
}

.article-centered {
    color: #607d8b;
    text-align: center;
}

.article-word-diagram {
    display: grid;
    justify-items: center;
    gap: 2px;
    max-width: 390px;
    margin: 24px auto 10px;
    padding: 18px;
    color: #37474f;
    background: #fafbfc;
    border: 1px solid #e6ecef;
    border-radius: 8px;
}

.article-word-diagram span {
    color: #37474f;
    font-family: 'DroidSansHebrew', 'Arial Hebrew', sans-serif;
    font-size: 2.2rem;
    line-height: 1.2;
}

.article-word-diagram small {
    color: #7b4397;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.article-letter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.article-letter-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 10px 12px;
    background: #fafbfc;
    border: 1px solid #e6ecef;
    border-radius: 7px;
}

.article-letter {
    min-width: 70px;
    color: #37474f;
    font-family: 'DroidSansHebrew', 'Arial Hebrew', sans-serif;
    font-size: 1.7rem;
    line-height: 1;
    text-align: center;
}

.article-letter-card h3 {
    font-size: 0.9rem;
    font-weight: 400;
}

.article-letter-card p {
    margin: 4px 0 0;
}

.article-transcription {
    color: #7b4397;
    font-size: 0.82rem;
    font-style: italic;
}

.article-vowel-list,
.article-sound-list {
    border-top: 1px solid #e6ecef;
}

.article-vowel-row,
.article-sound-row {
    padding: 15px 0;
    border-bottom: 1px solid #e6ecef;
}

.article-vowel-row-content {
    display: grid;
    grid-template-columns: 58px 78px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin-top: 9px;
}

.article-vowel-row-content p,
.article-sound-row p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.5;
}

.article-vowel-sound {
    color: #7b4397;
    font-size: 1rem;
    text-align: center;
}

.article-vowel-diagram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 62px;
    color: #37474f;
    font-family: 'DroidSansHebrew', 'Arial Hebrew', sans-serif;
    font-size: 3rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    text-align: center;
    unicode-bidi: isolate;
    -webkit-font-smoothing: antialiased;
}

.article-sound-row {
    display: grid;
    gap: 8px;
}

.article-sound-row h3 { margin: 0; }

.article-sound-row-content {
    display: grid;
    grid-template-columns: minmax(90px, 0.45fr) minmax(120px, 0.55fr) minmax(320px, 1.2fr);
    align-items: center;
    gap: 18px;
    max-width: 900px;
    margin: 0 auto;
}

.article-sound-letter {
    color: #37474f;
    font-family: 'DroidSansHebrew', 'Arial Hebrew', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
}

.article-sound-row strong { color: #7b4397; font-size: 0.94rem; text-align: center; }

.article-sound-note {
    display: block;
    margin-bottom: 2px;
    color: #78909c;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.35;
}

.article-spelling-section { padding: 18px 0; border-top: 1px solid #e6ecef; }
.article-spelling-section h2 { margin-top: 0; }
.article-spelling-section ul { margin: 8px 0 0; padding-left: 20px; }
.article-spelling-section li { margin: 3px 0; }
.article-spelling-sample { margin: 16px 0 2px; color: #37474f; font-family: 'DroidSansHebrew', 'Arial Hebrew', sans-serif; font-size: 2.25rem; line-height: 1.2; }
.article-sample-label { color: #78909c; font-size: 0.88rem; }

.article-gematria { margin-top: 24px; padding: 18px; background: #fafbfc; border: 1px solid #e6ecef; border-radius: 8px; }
.article-gematria-input { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 10px; align-items: end; margin-bottom: 14px; }
.article-gematria-input label { grid-column: 1 / -1; color: #455a64; font-size: 0.9rem; font-weight: 600; }
.article-gematria-input input { min-width: 0; padding: 9px 12px; color: #37474f; background: #fff; border: 1px solid #dbe4e8; border-radius: 6px; font-family: 'DroidSansHebrew', 'Arial Hebrew', sans-serif; font-size: 1.5rem; }
.article-gematria-backspace { display: inline-flex; align-items: center; justify-content: center; min-width: 0; height: 44px; color: #7b4397; background: #fff; border: 1px solid #dbe4e8; border-radius: 6px; cursor: pointer; }
.article-gematria-backspace:hover { border-color: #c9add8; }
.article-gematria-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.article-gematria-results div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; align-items: center; padding: 12px; background: #ffffff; border: 1px solid #e6ecef; border-radius: 8px; }
.article-gematria-results strong { color: #455a64; font-size: 0.95rem; font-weight: 600; }
.article-gematria-results span { color: #78909c; font-size: 0.74rem; font-weight: 400; line-height: 1.3; }
.article-gematria-results output { grid-row: 1 / span 2; grid-column: 2; color: #7b4397; font-size: 1.55rem; font-weight: 700; text-align: right; }
.article-gematria-note { margin: 0 0 14px; color: #607d8b; font-size: 0.88rem; font-weight: 400; line-height: 1.55; }
.article-gematria-keyboard { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.article-gematria-keyboard button { display: grid; gap: 1px; min-height: 47px; padding: 5px; color: #455a64; background: #fff; border: 1px solid #dbe4e8; border-radius: 6px; cursor: pointer; }
.article-gematria-keyboard button:hover { color: #7b4397; border-color: #c9add8; }.article-gematria-keyboard span { font-family: 'DroidSansHebrew', 'Arial Hebrew', sans-serif; font-size: 1.25rem; }.article-gematria-keyboard small { color: #78909c; font-size: 0.65rem; }
.article-gematria-more { margin-top: 24px; padding-top: 18px; border-top: 1px solid #e6ecef; }
.article-gematria-more h2 { margin-top: 0; }

@media (max-width: 620px) {
    .articles-grid, .article-letter-grid { grid-template-columns: 1fr; }
    .article-back-link { margin: 18px 0 12px; }
    .article-page-header { align-items: flex-start; }
    .article-vowel-row-content { grid-template-columns: 52px 62px minmax(0, 1fr); gap: 8px; }
    .article-sound-row-content { grid-template-columns: 48px 72px minmax(0, 1fr); gap: 8px; max-width: none; }
    .article-gematria-results { grid-template-columns: 1fr; }
    .article-gematria-keyboard { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 400px) {
    .article-vowel-row-content { grid-template-columns: 47px 55px minmax(0, 1fr); }
    .article-vowel-row-content p { font-size: 0.84rem; }
    .article-gematria { padding: 12px; }
}
