/* Hindu-style Search page */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;600;700&display=swap');

:root {
    --srch-ink: #222;
    --srch-muted: #666;
    --srch-line: #ddd;
    --srch-soft: #ececec;
    --srch-blue: #1a5fb4;
    --srch-blue-dark: #134a8c;
    --srch-sans: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

.srch-body {
    margin: 0;
    font-family: var(--srch-sans);
    background: #fff;
    color: var(--srch-ink);
    min-height: 100vh;
}

.srch-brand-bar {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 14px 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.srch-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.srch-brand-logo {
    height: 48px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
    display: block;
    filter: none;
}

.srch-brand-name {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.srch-epaper {
    display: inline-flex;
    align-items: baseline;
    background: #111;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 9px;
    line-height: 1;
}

.srch-epaper .srch-e {
    font-size: 0.62rem;
    margin-right: 1px;
    position: relative;
    top: -2px;
}

.srch-title-bar {
    background: #111;
    color: #fff;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 48px;
}

.srch-back {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 1.45rem;
    border-radius: 4px;
}

.srch-back:hover {
    background: rgba(255, 255, 255, 0.1);
}

.srch-title {
    margin: 0;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 700;
    letter-spacing: 0.01em;
}

.srch-main {
    width: min(980px, 100%);
    margin: 0 auto;
    padding: 0 0 48px;
}

.srch-form {
    background: var(--srch-soft);
    padding: 18px 20px 14px;
    border-bottom: 1px solid #d8d8d8;
}

.srch-label {
    display: block;
    font-size: 0.82rem;
    color: #555;
    margin-bottom: 6px;
    font-weight: 600;
}

.srch-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.srch-input,
.srch-select {
    flex: 1;
    min-width: 0;
    height: 40px;
    border: 1px solid #c8c8c8;
    background: #fff;
    padding: 0 12px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #222;
}

.srch-input:focus,
.srch-select:focus {
    outline: 2px solid rgba(26, 95, 180, 0.35);
    border-color: var(--srch-blue);
}

.srch-submit {
    appearance: none;
    border: none;
    background: var(--srch-blue);
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 0 22px;
    min-width: 100px;
    cursor: pointer;
    font-family: inherit;
}

.srch-submit:hover {
    background: var(--srch-blue-dark);
}

.srch-advanced-toggle-wrap {
    margin-top: 10px;
}

.srch-advanced-link {
    color: var(--srch-blue);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.srch-advanced-link:hover {
    text-decoration: underline;
}

.srch-advanced {
    margin-top: 14px;
    padding-top: 4px;
}

.srch-advanced-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 12px;
}

.srch-error {
    margin: 16px 20px 0;
    color: #b00020;
    font-size: 0.92rem;
}

.srch-results {
    padding: 0 20px;
}

.srch-results-head {
    display: grid;
    grid-template-columns: minmax(0, 2.4fr) 0.7fr 1.2fr 0.9fr;
    gap: 12px;
    padding: 16px 4px 10px;
    border-bottom: 1px solid var(--srch-line);
    font-size: 0.92rem;
    font-weight: 700;
    color: #333;
}

.srch-results-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.srch-result-row {
    display: grid;
    grid-template-columns: minmax(0, 2.4fr) 0.7fr 1.2fr 0.9fr;
    gap: 12px;
    padding: 14px 4px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: inherit;
    align-items: start;
}

.srch-result-row:hover {
    background: #fafafa;
}

.srch-col-title {
    color: var(--srch-blue);
    font-size: 0.95rem;
    line-height: 1.45;
    font-weight: 600;
}

.srch-col-page,
.srch-col-edition,
.srch-col-date {
    font-size: 0.9rem;
    color: #444;
}

.srch-empty {
    margin: 28px 4px;
    color: var(--srch-muted);
    font-size: 0.95rem;
}

@media (max-width: 767.98px) {
    .srch-row {
        flex-direction: column;
    }
    .srch-submit {
        min-height: 42px;
    }
    .srch-advanced-grid {
        grid-template-columns: 1fr;
    }
    .srch-results-head {
        display: none;
    }
    .srch-result-row {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 14px 0;
    }
    .srch-col-page::before { content: "Page "; color: #888; }
    .srch-col-edition::before { content: "Edition: "; color: #888; }
    .srch-col-date::before { content: "Date: "; color: #888; }
    .srch-brand-logo {
        height: 40px;
        max-width: 180px;
    }
}
