/* Vetted - Shared base stylesheet
   ================================
   Site-wide base for EVERY SSR page and blog article: font, :root palette, reset, element
   typography, and the few components non-article pages render (breadcrumb, .currency, FAQ
   accordion, share panel, related-card podcast badge, insurer provider circles).
   Served by the API at /static/base.css?v=<content hash> (routes/ssr/core/sharedAssets.ts) and
   linked BEFORE any page stylesheet. Article-only components live in article.css. */

@font-face {
    font-family: "Secular";
    src: url("/assets/secular.ttf") format("truetype");
    font-display: swap;
}

:root {
    --bg: #141415;
    --surface: #1d2533;
    --border: #374151;
    --text: #d1d5db;
    --text-bright: #f9fafb;
    --accent: #f9a61d;
    --link: #60a5fa;
    --font: "Secular", "Arial Hebrew", Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: clamp(17px, 4vw, 20px);
}

body {
    font-family: var(--font);
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    line-height: 1.8;
}

a {
    color: var(--link);
    text-decoration: none;
}

/* ── Breadcrumb ─────────────────────────── */

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.breadcrumb a,
.breadcrumb span {
    unicode-bidi: isolate;
}

.breadcrumb a {
    color: var(--link);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.bc-sep {
    color: #9ca3af;
}

/* ── Typography ─────────────────────────── */

h1 {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    font-weight: 900;
    color: var(--text-bright);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2.5rem 0 0.75rem;
    color: var(--accent);
}

h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 1.5rem 0 0.5rem;
    color: var(--text-bright);
}

p {
    margin-bottom: 1rem;
}

strong {
    color: var(--text-bright);
}

.currency {
    font-family: Arial, sans-serif;
    font-size: 0.8em;
    unicode-bidi: embed;
    direction: ltr;
}

ul,
ol {
    padding-right: 1.4rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.4rem;
}

/* ── FAQ accordion ──────────────────────── */

.faq-item {
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 0.6rem;
    background: var(--surface);
    transition: border-color 0.2s;
}

.faq-item[open] {
    border-color: var(--accent);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1rem 1.25rem;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-bright);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "";
    display: inline-block;
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(45deg);
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-right: 0.25rem;
}

.faq-item[open] summary::after {
    transform: rotate(-135deg);
}

.faq-a {
    color: var(--text);
    margin: 0;
    padding: 0.75rem 1.25rem 1.1rem;
    border-top: 1px solid var(--border);
    line-height: 1.7;
}

/* ── Share Panel ─────────────────────────── */

.share-panel {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.share-panel-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-bright);
}

.share-panel-buttons {
    display: flex;
    gap: 0.6rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    transition:
        border-color 0.2s,
        transform 0.15s;
}

@media (hover: hover) {
    .share-btn:hover {
        border-color: var(--accent);
        transform: scale(1.1);
    }
}

.share-btn:active {
    border-color: var(--accent);
    transform: scale(0.95);
}

.share-btn img {
    width: 1.3rem;
    height: 1.3rem;
}

.share-btn img[src*="facebook"],
.share-btn img[src*="telegram"] {
    background: #fff;
    border-radius: 50%;
}

/* Podcast badge on a related card whose article has an episode: same size/placement as the podcast
   page's `.pc-play` badge (2.4rem circle, bottom-left of the image). */
.bc-podcast-badge {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Related cards only on this surface: smaller than the big listing/home cards (2.4rem). */
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--accent);
    color: #141415;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

.bc-podcast-badge svg {
    width: 0.95rem;
    height: 0.95rem;
}

/* Phones: related cards get shorter, so the badge shrinks with them. */
@media (max-width: 600px) {
    .bc-podcast-badge {
        width: 1.6rem;
        height: 1.6rem;
        bottom: 0.45rem;
        left: 0.45rem;
    }
    .bc-podcast-badge svg {
        width: 0.8rem;
        height: 0.8rem;
    }
}

.insurance-compare-banner-providers {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
    align-items: center;
}

.insurance-compare-banner-providers .provider-circle {
    height: 2rem;
    width: 2rem;
    border-radius: 50%;
    scale: 1.6;
    background: #fff;
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.insurance-compare-banner-providers .provider-circle img {
    width: 150%;
    height: 150%;
    object-fit: contain;
    transform: translateY(16%);
}

.insurance-compare-banner-providers span {
    color: #9ca3af;
    font-size: 0.8rem;
}

/* ── Mobile ─────────────────────────────── */

@media (max-width: 600px) {
    html {
        font-size: 15px;
    }

    h2 {
        font-size: 1.2rem;
    }

    h3 {
        font-size: 1rem;
    }

    .insurance-compare-banner-providers {
        justify-content: center;
    }
}
