.rashifal-page {
    margin: 0;
    color: #272727;
    background: #f6f6f6;
    font-family: "Source Sans 3", Arial, sans-serif;
}

.rashifal-site-header {
    min-height: 82px;
    padding: 8px max(20px, calc((100% - 1180px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
}

.rashifal-brand img {
    display: block;
    width: min(220px, 45vw);
    height: auto;
}

.rashifal-site-header nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.rashifal-site-header a,
.rashifal-footer a {
    color: #a10d27;
    font-weight: 700;
    text-decoration: none;
}

.rashifal-shell {
    width: min(1180px, calc(100% - 36px));
    margin: 26px auto 46px;
}

.rashifal-breadcrumb {
    display: flex;
    gap: 9px;
    align-items: center;
    margin-bottom: 18px;
    color: #666;
    font-size: 14px;
}

.rashifal-breadcrumb a {
    color: #a10d27;
}

.rashifal-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(245px, 320px);
    gap: 32px;
    align-items: start;
    padding: 30px;
    margin-bottom: 24px;
    border: 1px solid #e6e6e6;
    border-top: 4px solid #a10d27;
    border-radius: 8px;
    background: #fff;
}

.rashifal-eyebrow {
    margin: 0 0 8px;
    color: #a10d27;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.rashifal-heading h1 {
    margin: 0 0 10px;
    color: #202020;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.35;
}

.rashifal-heading p {
    margin: 8px 0;
    line-height: 1.75;
}

.rashifal-date-label {
    color: #555;
}

.rashifal-language {
    display: inline-flex;
    padding: 4px;
    border: 1px solid #dedede;
    border-radius: 6px;
    background: #fafafa;
}

.rashifal-language a {
    padding: 7px 12px;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
}

.rashifal-language a.is-active {
    background: #a10d27;
    color: #fff;
}

.rashifal-language .is-unavailable {
    padding: 7px 12px;
    color: #777;
    font-size: 13px;
}

.rashifal-translation-note {
    color: #555;
    font-size: 13px;
}

.rashifal-date-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-top: 14px;
}

.rashifal-date-form label {
    grid-column: 1 / -1;
    font-weight: 700;
}

.rashifal-date-form select,
.rashifal-date-form button {
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid #c9c9c9;
    border-radius: 5px;
    background: #fff;
    color: #222;
    font: inherit;
}

.rashifal-date-form button,
.rashifal-button {
    border-color: #a10d27;
    background: #a10d27;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.rashifal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.rashifal-featured {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 26px;
    margin-bottom: 18px;
    border: 1px solid #ead8dc;
    border-radius: 8px;
    background: #fff9fa;
}

.rashifal-featured h2 {
    margin: 0;
    font-size: 24px;
}

.rashifal-featured p:not(.rashifal-eyebrow) {
    margin: 6px 0 0;
    line-height: 1.7;
}

.rashifal-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    max-width: 520px;
    margin: 0 0 16px;
}

.rashifal-search label {
    font-weight: 700;
}

.rashifal-search input {
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    padding: 10px 13px;
    border: 1px solid #c9c9c9;
    border-radius: 5px;
    background: #fff;
    color: #222;
    font: inherit;
}

.rashifal-search input:focus {
    border-color: #a10d27;
    outline: 3px solid #f1ccd3;
    outline-offset: 1px;
}

.rashifal-search-status {
    min-height: 1.4em;
    margin: 0;
    color: #626262;
    font-size: 14px;
}

.rashifal-card[hidden],
.rashifal-no-results[hidden] {
    display: none;
}

.rashifal-no-results {
    padding: 18px;
    border: 1px solid #ead8dc;
    border-radius: 6px;
    background: #fff9fa;
}

.rashifal-name-checker {
    margin: 0 0 24px;
    padding: 22px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .035);
}

.rashifal-name-checker h2 {
    margin: 0 0 8px;
    font-size: 23px;
}

.rashifal-name-checker > p {
    max-width: 820px;
    line-height: 1.7;
}

.rashifal-name-form {
    max-width: 620px;
    margin: 18px 0;
}

.rashifal-name-form label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
}

.rashifal-name-input-row {
    display: flex;
    gap: 9px;
}

.rashifal-name-input-row input {
    box-sizing: border-box;
    flex: 1;
    min-width: 0;
    min-height: 46px;
    padding: 10px 13px;
    border: 1px solid #c9c9c9;
    border-radius: 5px;
    color: #222;
    font: inherit;
}

.rashifal-name-input-row input:focus {
    border-color: #a10d27;
    outline: 3px solid #f1ccd3;
    outline-offset: 1px;
}

.rashifal-name-input-row .rashifal-button {
    min-height: 46px;
    padding: 10px 16px;
}

.rashifal-name-result {
    padding: 14px;
    border: 1px solid #ead8dc;
    border-radius: 6px;
    background: #fff9fa;
}

.rashifal-name-result > p:first-child {
    margin-top: 0;
    font-weight: 700;
}

.rashifal-name-matches {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.rashifal-name-match {
    padding: 15px;
    border: 1px solid #e7e7e7;
    border-radius: 6px;
    background: #fff;
}

.rashifal-name-match h3 {
    margin: 9px 0 4px;
    font-size: 19px;
}

.rashifal-name-match p {
    line-height: 1.6;
}

.rashifal-name-sounds {
    margin: 18px 0 12px;
    padding: 14px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.rashifal-name-sounds summary {
    color: #a10d27;
    font-weight: 700;
    cursor: pointer;
}

.rashifal-name-sound-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.rashifal-name-sound-grid section {
    min-width: 0;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 5px;
    background: #fdfdfd;
}

.rashifal-name-sound-grid h3 {
    margin: 0 0 7px;
    font-size: 17px;
}

.rashifal-name-sound-grid h3 span {
    color: #666;
    font-weight: 400;
}

.rashifal-name-sound-grid p {
    margin: 6px 0;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.rashifal-name-note {
    color: #626262;
    font-size: 14px;
}

.rashifal-card,
.rashifal-detail,
.rashifal-empty,
.rashifal-other-signs {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .035);
}

.rashifal-faq {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
}

.rashifal-faq h2 {
    margin: 0 0 12px;
    font-size: 20px;
}

.rashifal-faq details {
    padding: 12px 0;
    border-top: 1px solid #eee;
}

.rashifal-faq summary {
    color: #a10d27;
    font-weight: 700;
    cursor: pointer;
}

.rashifal-faq p {
    margin: 8px 0 0;
    line-height: 1.7;
}

.rashifal-card {
    min-width: 0;
    padding: 22px;
}

.rashifal-symbol {
    display: inline-grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 50%;
    background: #fff2f4;
    color: #a10d27;
    font-family: Arial, sans-serif;
    font-size: 28px;
}

.rashifal-card h2 {
    margin: 12px 0 0;
    font-size: 23px;
}

.rashifal-sign-translation {
    margin: 2px 0 12px !important;
    color: #747474;
    font-size: 14px;
}

.rashifal-card p {
    line-height: 1.7;
}

.rashifal-read-link {
    display: inline-block;
    margin-top: 6px;
    color: #a10d27;
    font-weight: 700;
    text-decoration: none;
}

.rashifal-read-link:focus,
.rashifal-site-header a:focus,
.rashifal-language a:focus,
.rashifal-other-signs a:focus,
.rashifal-footer a:focus {
    outline: 3px solid #e2a2af;
    outline-offset: 3px;
}

.rashifal-detail {
    padding: clamp(20px, 4vw, 38px);
}

.rashifal-detail-title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.rashifal-detail-title h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 32px);
}

.rashifal-summary {
    margin: 24px 0;
    color: #4b4b4b;
    font-size: 19px;
    line-height: 1.75;
}

.rashifal-updated {
    margin: -12px 0 20px;
    color: #666;
    font-size: 13px;
}

.rashifal-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.rashifal-section {
    padding: 16px;
    border: 1px solid #ececec;
    border-radius: 6px;
    background: #fdfdfd;
}

.rashifal-section h3 {
    margin: 0 0 8px;
    color: #a10d27;
    font-size: 18px;
}

.rashifal-section p {
    margin: 0;
    line-height: 1.8;
    white-space: pre-line;
}

.rashifal-section:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.rashifal-date-navigation {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin: 20px 0;
}

.rashifal-date-navigation a {
    display: grid;
    gap: 3px;
    padding: 13px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #fff;
    color: #a10d27;
    font-weight: 700;
    text-decoration: none;
}

.rashifal-date-navigation span {
    color: #555;
    font-size: 13px;
    font-weight: 400;
}

.rashifal-other-signs {
    padding: 20px;
}

.rashifal-other-signs h2 {
    margin: 0 0 14px;
    font-size: 20px;
}

.rashifal-other-signs div {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.rashifal-other-signs a {
    padding: 7px 11px;
    border: 1px solid #eee;
    border-radius: 4px;
    color: #a10d27;
    text-decoration: none;
}

.rashifal-empty {
    padding: 28px;
    text-align: center;
}

.rashifal-empty h2 {
    margin-top: 0;
}

.rashifal-button {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 5px;
}

.rashifal-disclaimer {
    margin: 22px 0 0;
    color: #626262;
    font-size: 14px;
    line-height: 1.7;
}

.rashifal-footer {
    display: flex;
    justify-content: center;
    gap: 18px;
    padding: 22px 16px;
    border-top: 1px solid #e8e8e8;
    background: #fff;
    color: #666;
}

@media (max-width: 760px) {
    .rashifal-site-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding: 12px 18px;
    }

    .rashifal-site-header nav {
        gap: 10px 16px;
    }

    .rashifal-shell {
        width: min(100% - 24px, 620px);
        margin-top: 18px;
    }

    .rashifal-heading {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 21px;
    }

    .rashifal-featured {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px;
    }

    .rashifal-name-sound-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rashifal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .rashifal-card {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .rashifal-grid,
    .rashifal-sections {
        grid-template-columns: 1fr;
    }

    .rashifal-section:last-child:nth-child(odd) {
        grid-column: auto;
    }

    .rashifal-date-navigation {
        flex-direction: column;
    }

    .rashifal-name-input-row {
        align-items: stretch;
        flex-direction: column;
    }

    .rashifal-name-sound-grid {
        grid-template-columns: 1fr;
    }

    .rashifal-footer {
        flex-wrap: wrap;
        gap: 8px 16px;
    }
}
