/*
Theme Name: Health Insurance FAQs (GeneratePress child)
Theme URI: https://healthinsurancefaqs.com
Description: Child theme of GeneratePress. Modern single-FAQ layout: short-answer card, source cards, related questions, tag chips, in-flow ad, and FAQ schema, applied via GeneratePress hooks and CSS. Single-column, mobile-first.
Author: Health Insurance FAQs
Template: generatepress
Version: 1.7.2
*/

:root{
  --hif-bg:#f5f7fa; --hif-ink:#142235; --hif-muted:#5f6d7b; --hif-line:#dbe4ee;
  --hif-blue:#2368b4; --hif-blue-dark:#123f73; --hif-blue-soft:#eaf3ff;
  --hif-green:#21764c; --hif-green-soft:#edf9f3; --hif-read:820px;
}

body{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--hif-ink);}
body.single-post{background:var(--hif-bg);}

/* ---------- Header ---------- */
.site-header{border-bottom:1px solid var(--hif-line);}
.main-title a{letter-spacing:-.02em;font-weight:800;}
#site-navigation .main-nav ul li a,
.main-navigation .main-nav ul li a{font-weight:600;border-radius:999px;}
#site-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li a:hover,
#site-navigation .main-nav ul li.current-menu-item a{background:var(--hif-blue-soft);color:var(--hif-blue-dark);}

/* ---------- Single FAQ article shell ---------- */
.single-post .inside-article{
  max-width:var(--hif-read);margin-left:auto;margin-right:auto;
  border:1px solid #e6edf5;border-radius:18px;
  box-shadow:0 12px 34px rgba(20,34,53,.055);
}
.single-post .entry-header .entry-meta{display:none;} /* hide GP top byline/date; we show a reviewed badge */
.single-post .entry-title{font-size:clamp(28px,3.4vw,40px);line-height:1.15;letter-spacing:-.02em;font-weight:800;margin:.2em 0 0;}

/* ---------- Pills ---------- */
.hif-pill-row{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 12px;}
.hif-pill{display:inline-flex;align-items:center;border-radius:999px;padding:5px 11px;font-size:13px;font-weight:700;line-height:1.2;text-decoration:none;}
.hif-pill-cat{background:var(--hif-blue-soft);color:var(--hif-blue-dark);}
.hif-pill-reviewed{background:var(--hif-green-soft);color:var(--hif-green);}

/* ---------- Content ---------- */
.single-post .entry-content{font-size:17px;line-height:1.7;}
.single-post .entry-content h2{font-size:24px;font-weight:800;letter-spacing:-.02em;margin:1.6em 0 .5em;}
.single-post .entry-content h3{font-size:20px;font-weight:700;margin:1.4em 0 .4em;}
.single-post .entry-content a{overflow-wrap:anywhere;}
.single-post .entry-content hr{border:0;border-top:1px solid var(--hif-line);margin:1.6em 0;}

/* Short-answer card (built from .faq-short-answer in the post body) */
.single-post .faq-short-answer{border:1px solid #cfe2f6;border-left:6px solid var(--hif-blue);background:#f4f8ff;border-radius:0 14px 14px 0;padding:16px 18px;margin:0 0 22px;}
.single-post .faq-short-answer p{margin:0;font-size:19px;line-height:1.5;}
.single-post .faq-short-answer p strong:first-child{display:block;color:var(--hif-blue-dark);text-transform:uppercase;letter-spacing:.08em;font-size:12px;font-weight:800;margin-bottom:5px;}

/* Sources list -> cards (the list right after a heading) */
.single-post .entry-content h3 + ul{list-style:none;margin:.6em 0;padding:0;display:grid;gap:10px;}
.single-post .entry-content h3 + ul li{border:1px solid var(--hif-line);border-radius:12px;background:#f8fbff;padding:13px 15px;font-size:15px;line-height:1.5;}

/* ---------- About this topic ---------- */
.single-post .hif-about{max-width:var(--hif-read);margin:18px auto 0;padding:16px 18px;border:1px solid var(--hif-line);border-left:6px solid #9fb6cf;border-radius:0 14px 14px 0;background:#fbfdff;}
.single-post .hif-about-title{margin:0 0 6px;font-size:18px;font-weight:800;}
.single-post .hif-about p{margin:0;color:var(--hif-muted);font-size:16px;line-height:1.55;}

/* ---------- In-flow ad ---------- */
.single-post .hif-ad{max-width:var(--hif-read);margin:22px auto 0;padding:16px 18px;border:1px solid var(--hif-line);border-radius:14px;background:#fbfdff;}
.single-post .hif-ad img{max-width:100%;height:auto;border-radius:8px;}
.single-post .hif-ad-label{text-transform:uppercase;letter-spacing:.08em;font-size:11px;font-weight:800;color:var(--hif-muted);margin:0 0 8px;}

/* ---------- Related questions ---------- */
.single-post .hif-related{max-width:var(--hif-read);margin:28px auto 0;border-top:1px solid var(--hif-line);padding-top:22px;}
.single-post .hif-related h2{margin:0 0 12px;font-size:22px;font-weight:800;letter-spacing:-.02em;}
.single-post .hif-related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
.single-post .hif-related-card{display:block;border:1px solid var(--hif-line);border-radius:12px;padding:13px;color:var(--hif-ink);text-decoration:none;font-size:15px;font-weight:700;line-height:1.35;background:#fff;}
.single-post .hif-related-card:hover{background:#f8fbff;border-color:#b8d1ea;}

/* ---------- Bottom meta: tags as chips, hide duplicate category line ---------- */
.single-post footer.entry-meta{max-width:var(--hif-read);margin-left:auto;margin-right:auto;border-top:1px solid var(--hif-line);padding-top:14px;}
.single-post footer.entry-meta .cat-links{display:none;}
.single-post .tags-links a{display:inline-block;text-decoration:none;border:1px solid var(--hif-line);background:#f2f5f8;color:#28394b;border-radius:999px;padding:6px 11px;font-size:14px;font-weight:600;margin:0 4px 6px 0;}
.single-post .tags-links{font-size:0;}
.single-post .tags-links a{font-size:14px;}

/* ---------- Reusable callout boxes (drop into any post) ---------- */
.hif-callout{border-radius:0 12px 12px 0;padding:14px 16px;margin:1.2em 0;border:1px solid var(--hif-line);border-left:5px solid #9fb6cf;background:#fbfdff;}
.hif-callout-warning{background:#fff8e8;border-color:#eedda8;border-left-color:#8d6400;}
.hif-callout-tip{background:#edf9f3;border-color:#bfe6d4;border-left-color:#21764c;}
.hif-callout-keyfigure{background:#eaf3ff;border-color:#cfe2f6;border-left-color:#2368b4;}
.hif-callout-definition{background:#f3f1fb;border-color:#ddd6f3;border-left-color:#5a4ab7;}

/* ---------- Responsive ---------- */
@media (max-width:768px){
  .single-post .hif-related-grid{grid-template-columns:1fr;}
  .single-post .entry-title{font-size:28px;}
}

/* ---------- v1.1 structural cleanup ---------- */
/* Drop the horizontal divider lines (rely on spacing instead) */
.single-post .entry-content hr{display:none;}
.single-post .hif-related{border-top:0;padding-top:0;margin-top:30px;}
.single-post footer.entry-meta{border-top:0;}
.single-post .hif-about{margin-top:24px;}
/* Kill previous/next post navigation */
.single-post .post-navigation,.single-post #nav-below,.single-post .nav-links{display:none;}

/* ---------- v1.2 breadcrumb + labeled topics ---------- */
.single-post .hif-top{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 14px;}
.single-post .hif-breadcrumb{font-size:13px;color:var(--hif-muted);display:flex;flex-wrap:wrap;gap:6px;align-items:center;}
.single-post .hif-breadcrumb a{color:var(--hif-blue-dark);text-decoration:none;font-weight:600;}
.single-post .hif-breadcrumb a:hover{text-decoration:underline;}
.single-post .hif-sep{color:#b7c2cf;}

/* Labeled topics row (bottom) */
.single-post .hif-topics{margin:22px 0 0;display:flex;flex-wrap:wrap;gap:8px;align-items:center;}
.single-post .hif-topics-label{font-weight:700;color:var(--hif-muted);font-size:14px;}
.single-post .hif-pill-topic{background:var(--hif-blue-soft);color:var(--hif-blue-dark);text-decoration:none;}

/* We render our own breadcrumb + topics, so hide GP's default post meta */
.single-post footer.entry-meta{display:none;}

/* Even spacing between sections (fixes the tight gap after the last source) */
.single-post .entry-content h3{margin-top:1.9em;}
.single-post .entry-content h3 + ul{margin:.7em 0 1.8em;}
.single-post .hif-about{margin-top:26px;}
.single-post .hif-related{margin-top:30px;}

/* ---------- v1.3 breadcrumb/title spacing ---------- */
.single-post .hif-top{margin:0 0 22px;}
.single-post .entry-header .entry-title{margin-top:6px;}

/* ---------- v1.5 history footer (below topics) + declutter ---------- */
.single-post .entry-content .hif-history{display:none;} /* inline copy hidden; theme renders it at the very bottom */
.single-post .hif-history-footer{max-width:var(--hif-read);margin:12px auto 0;font-size:13px;color:var(--hif-muted);line-height:1.55;}
.single-post .hif-history-footer strong{color:var(--hif-ink);font-weight:700;margin-right:7px;}
/* keep Topics + History together as a quiet meta footer */
.single-post .hif-topics{margin-top:26px;}
/* lighten the About callout so it stops competing with the source/related cards */
.single-post .hif-about{border:0;border-left:4px solid #c4d3e6;background:#f7fafd;}

/* ---------- v1.6 About box removed from single FAQ pages (lives on topic pages) ---------- */
.single-post .hif-about{display:none;}

/* ============ v1.7 FROSTING ============ */
/* Source cards (built from the Sources list by the theme) */
.single-post .entry-content .hif-source-list{display:grid;gap:10px;margin:.7em 0 0;}
.single-post .entry-content .hif-source-card{display:block;border:1px solid var(--hif-line);border-radius:12px;background:#f8fbff;padding:13px 16px;text-decoration:none;transition:background .15s ease,border-color .15s ease,box-shadow .15s ease;}
.single-post .entry-content .hif-source-card:hover{background:#eef5ff;border-color:#b8d1ea;box-shadow:0 4px 14px rgba(20,34,53,.06);}
.single-post .entry-content .hif-source-card strong{display:block;color:var(--hif-ink);font-weight:700;font-size:15px;line-height:1.4;}
.single-post .entry-content .hif-source-card span{display:block;color:var(--hif-blue-dark);font-size:13px;margin-top:3px;word-break:break-word;}

/* Slightly deeper card depth + crisper radius on the main article and related cards */
.single-post .inside-article{box-shadow:0 14px 40px rgba(20,34,53,.07);border-radius:20px;}
.single-post .hif-related-card{border-radius:14px;transition:background .15s ease,border-color .15s ease,box-shadow .15s ease;}
.single-post .hif-related-card:hover{box-shadow:0 4px 14px rgba(20,34,53,.06);}

/* Reading typography + section rhythm */
.single-post .entry-content{font-size:17px;line-height:1.68;}
.single-post .entry-content p{margin:0 0 1.05em;}
.single-post .entry-content h2{margin:1.7em 0 .5em;}
.single-post .entry-content h3{margin:1.6em 0 .5em;}

/* A faint hairline + heading lift above Related questions */
.single-post .hif-related{border-top:1px solid var(--hif-soft-line,#edf2f7);padding-top:24px;margin-top:34px;}

/* In-flow ad polish */
.single-post .hif-ad{border-radius:14px;box-shadow:0 4px 14px rgba(20,34,53,.05);}
.single-post .hif-ad h2{margin:.1em 0 .4em;font-size:18px;font-weight:800;letter-spacing:-.01em;}

/* Callout boxes: finalized spacing/typography (ready for the editorial pass) */
.single-post .entry-content .hif-callout{margin:1.4em 0;}
.single-post .entry-content .hif-callout p{margin:0;}
.single-post .entry-content .hif-callout p + p{margin-top:.6em;}
.single-post .entry-content .hif-callout strong:first-child{color:var(--hif-ink);}

/* ---------- v1.7.1 short-answer card matched to the sample ---------- */
.single-post .faq-short-answer{border-radius:16px;padding:18px 20px;margin:0 0 24px;}
.single-post .faq-short-answer p{font-size:21px;line-height:1.45;}
.single-post .faq-short-answer p strong:first-child{font-weight:900;}
