/*
Theme Name: Fortune Herald News
Theme URI: https://www.fortuneherald.com/
Author: WebBox
Description: Custom lightweight news theme for Fortune Herald. Built for Google News: fast, mobile-first, clear dated headlines and bylines. Elementor compatible for pages.
Version: 1.0.4
Requires at least: 6.4
Requires PHP: 8.1
License: Proprietary
Text Domain: fortuneherald-news
*/

:root {
	--fh-navy: #15151a;
	--fh-navy-2: #26262e;
	--fh-flame: #4f46e5;
	--fh-flame-ink: #4338ca;
	--fh-ink: #1c1c22;
	--fh-muted: #5d5f6b;
	--fh-line: #e6e6ee;
	--fh-soft: #f5f5fa;
	--fh-white: #ffffff;
	--fh-head: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--fh-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--fh-wrap: 1200px;
	--fh-gap: 24px;
	--fh-radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--fh-body);
	font-size: 17px;
	line-height: 1.6;
	color: var(--fh-ink);
	background: var(--fh-white);
	text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--fh-flame-ink); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
h1, h2, h3, h4, h5, h6 { font-family: var(--fh-head); color: var(--fh-navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 100; background: var(--fh-white); color: var(--fh-navy); padding: 8px 12px; border-radius: var(--fh-radius); }
.fh-wrap { max-width: var(--fh-wrap); margin: 0 auto; padding: 0 16px; }

/* ---------- Header ---------- */
.fh-topbar { background: var(--fh-navy); color: #cfd0dc; font-size: 13px; }
.fh-topbar .fh-wrap { display: flex; justify-content: space-between; align-items: center; min-height: 34px; gap: 12px; }
.fh-topbar a { color: #e4e4ee; }
.fh-topbar nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; }
.fh-masthead { background: var(--fh-white); text-align: center; padding: 22px 0 16px; }
.fh-brand { display: inline-block; }
.fh-brand img, .fh-brand .fh-logo { height: 104px; width: auto; margin: 0 auto; }
.fh-brand .fh-sitename { font-family: var(--fh-head); font-size: 34px; font-weight: 800; color: var(--fh-navy); }
.fh-tagline { color: var(--fh-muted); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin: 10px 0 0; }
.fh-nav { background: var(--fh-white); border-top: 1px solid var(--fh-line); border-bottom: 3px solid var(--fh-navy); position: sticky; top: 0; z-index: 30; }
.fh-nav .fh-wrap { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; position: relative; }
.fh-mini { display: none; }
.fh-nav.is-stuck .fh-mini { display: block; position: absolute; left: 16px; }
.fh-mini img { width: 30px; height: 30px; border-radius: 7px; }
.fh-menu-toggle { display: none; }
.fh-menu-wrap { flex: 0 1 auto; min-width: 0; }
.fh-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; flex-wrap: nowrap; }
.fh-menu > li { position: relative; flex: 0 0 auto; }
.fh-menu > li > a, .fh-sub-toggle { display: block; padding: 14px 13px; font-family: var(--fh-head); font-weight: 600; font-size: 15px; color: var(--fh-navy); white-space: nowrap; background: none; border: 0; cursor: pointer; line-height: 1.4; }
.fh-sub-toggle span { margin-left: 5px; font-size: 11px; color: var(--fh-muted); }
.fh-menu > li > a:hover, .fh-sub-toggle:hover, .fh-menu > li.current > a { color: var(--fh-flame-ink); text-decoration: none; }
.fh-menu > li.current > a { box-shadow: inset 0 -3px 0 var(--fh-flame); }
.fh-sub { list-style: none; margin: 0; padding: 8px 0; position: absolute; right: 0; top: 100%; min-width: 240px; background: var(--fh-white); border: 1px solid var(--fh-line); border-top: 3px solid var(--fh-flame); box-shadow: 0 12px 28px rgba(21,21,26,.12); display: none; z-index: 40; text-align: left; }
.has-sub:hover > .fh-sub, .has-sub:focus-within > .fh-sub, .has-sub.is-open > .fh-sub { display: block; }
.fh-sub a { display: block; padding: 9px 18px; color: var(--fh-navy); font-size: 15px; font-weight: 500; }
.fh-sub a:hover { background: var(--fh-soft); color: var(--fh-flame-ink); text-decoration: none; }
.fh-search { display: flex; }
.fh-nav .fh-search { position: absolute; right: 16px; }
.fh-search input[type=search] { border: 1px solid var(--fh-line); border-right: 0; border-radius: 99px 0 0 99px; padding: 7px 12px; font: inherit; font-size: 14px; width: 150px; background: var(--fh-soft); }
.fh-search button { border: 0; background: var(--fh-navy); color: #fff; padding: 0 12px; border-radius: 0 99px 99px 0; cursor: pointer; display: flex; align-items: center; }
@media (max-width: 1279px) { .fh-nav .fh-search input[type=search] { width: 110px; } }
@media (max-width: 1159px) {
	.fh-nav .fh-wrap { justify-content: space-between; }
	.fh-nav.is-stuck .fh-mini { position: static; }
	.fh-menu-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; font: 600 15px var(--fh-head); color: var(--fh-navy); background: none; border: 1px solid var(--fh-line); border-radius: 8px; cursor: pointer; }
	.fh-menu-toggle .bars, .fh-menu-toggle .bars::before, .fh-menu-toggle .bars::after { display: block; width: 18px; height: 2px; background: var(--fh-navy); position: relative; content: ""; }
	.fh-menu-toggle .bars::before { position: absolute; top: -6px; } .fh-menu-toggle .bars::after { position: absolute; top: 6px; }
	.fh-nav .fh-search { position: static; }
	.fh-menu-wrap { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--fh-white); border-bottom: 3px solid var(--fh-navy); box-shadow: 0 12px 24px rgba(21,21,26,.12); max-height: 75vh; overflow-y: auto; }
	.fh-nav.is-open .fh-menu-wrap { display: block; }
	.fh-menu { flex-direction: column; align-items: stretch; padding: 6px 16px 14px; }
	.fh-menu > li > a, .fh-sub-toggle { padding: 12px 4px; border-bottom: 1px solid var(--fh-line); width: 100%; text-align: left; }
	.fh-sub { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 6px 12px; min-width: 0; }
	.fh-sub-toggle span { display: none; }
}
/* ---------- Common blocks ---------- */
.fh-main { padding: 28px 0 48px; }
.fh-kicker { display: inline-block; font-family: var(--fh-head); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fh-flame-ink); margin-bottom: 6px; }
.fh-kicker:hover { text-decoration: none; color: var(--fh-navy); }
.fh-meta { color: var(--fh-muted); font-size: 13px; }
.fh-meta a { color: var(--fh-muted); }
.fh-meta .sep { margin: 0 6px; }
.fh-section-title { display: flex; align-items: center; gap: 10px; font-size: 20px; margin: 36px 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--fh-navy); }
.fh-section-title::before { content: ""; width: 10px; height: 10px; background: var(--fh-flame); border-radius: 3px; }
.fh-section-title a { color: var(--fh-navy); }
.fh-section-title .more { margin-left: auto; font-size: 13px; font-family: var(--fh-body); font-weight: 600; color: var(--fh-flame-ink); }

.fh-card { display: flex; flex-direction: column; gap: 8px; }
.fh-card .thumb { aspect-ratio: 16/9; overflow: hidden; border-radius: var(--fh-radius); background: var(--fh-soft); }
.fh-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.fh-card h3 { font-size: 18px; margin: 0; }
.fh-card h3 a { color: var(--fh-navy); }
.fh-card h3 a:hover { color: var(--fh-flame-ink); text-decoration: none; }
.fh-card .excerpt { color: var(--fh-muted); font-size: 15px; margin: 0; }

.fh-grid { display: grid; gap: var(--fh-gap); grid-template-columns: 1fr; }
@media (min-width: 640px) { .fh-grid.cols-2, .fh-grid.cols-3, .fh-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .fh-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } .fh-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Home ---------- */
.fh-lead { display: grid; gap: var(--fh-gap); grid-template-columns: 1fr; }
@media (min-width: 960px) { .fh-lead { grid-template-columns: 2fr 1fr; } }
.fh-lead-main h2 { font-size: 30px; margin: 0 0 8px; }
@media (min-width: 960px) { .fh-lead-main h2 { font-size: 36px; } }
.fh-lead-main h2 a { color: var(--fh-navy); }
.fh-lead-main .excerpt { font-size: 17px; color: var(--fh-ink); }
.fh-lead-side { display: flex; flex-direction: column; gap: 16px; }
.fh-lead-side .fh-card { flex-direction: row; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--fh-line); }
.fh-lead-side .fh-card:last-child { border-bottom: 0; }
.fh-lead-side .fh-card .thumb { flex: 0 0 120px; aspect-ratio: 4/3; }
.fh-lead-side .fh-card h3 { font-size: 16px; }

.fh-list { list-style: none; margin: 0; padding: 0; }
.fh-list li { padding: 12px 0; border-bottom: 1px solid var(--fh-line); }
.fh-list li a { font-family: var(--fh-head); font-weight: 600; color: var(--fh-navy); }

/* ---------- Article ---------- */
.fh-layout { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .fh-layout { grid-template-columns: minmax(0, 1fr) 320px; } }
.fh-breadcrumbs { font-size: 13px; color: var(--fh-muted); margin-bottom: 14px; }
.fh-breadcrumbs a { color: var(--fh-muted); }
.fh-article h1 { font-size: 30px; margin: 0 0 12px; }
@media (min-width: 768px) { .fh-article h1 { font-size: 40px; } }
.fh-standfirst { font-size: 19px; line-height: 1.5; color: #39434c; margin: 0 0 18px; }
.fh-byline { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--fh-line); border-bottom: 1px solid var(--fh-line); margin-bottom: 20px; font-size: 14px; color: var(--fh-muted); flex-wrap: wrap; }
.fh-byline img { width: 40px; height: 40px; border-radius: 50%; }
.fh-byline .author { color: var(--fh-navy); font-weight: 600; }
.fh-figure { margin: 0 0 24px; }
.fh-figure img { width: 100%; border-radius: var(--fh-radius); }
.fh-figure figcaption { font-size: 13px; color: var(--fh-muted); margin-top: 6px; }
.fh-content { font-size: 18px; line-height: 1.72; }
.fh-content h2 { font-size: 26px; margin-top: 1.6em; }
.fh-content h3 { font-size: 21px; margin-top: 1.4em; }
.fh-content a { text-decoration: underline; text-underline-offset: 2px; }
.fh-content ul, .fh-content ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.fh-content blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--fh-flame); font-size: 19px; color: var(--fh-navy); }
.fh-content figure { margin: 1.5em 0; }
.fh-content figcaption, .fh-content .wp-caption-text { font-size: 13px; color: var(--fh-muted); }
.fh-content table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 1.4em 0; display: block; overflow-x: auto; }
.fh-content th, .fh-content td { border: 1px solid var(--fh-line); padding: 8px 10px; text-align: left; }
.fh-content th { background: var(--fh-soft); }
.fh-content img { border-radius: var(--fh-radius); }
.fh-tags { margin: 28px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fh-tags a { font-size: 13px; padding: 4px 10px; border: 1px solid var(--fh-line); border-radius: 99px; color: var(--fh-navy); }
.fh-authorbox { display: flex; gap: 16px; padding: 20px; background: var(--fh-soft); border-radius: var(--fh-radius); margin: 28px 0; }
.fh-authorbox img { width: 72px; height: 72px; border-radius: 50%; flex: 0 0 72px; }
.fh-authorbox h3 { font-size: 17px; margin: 0 0 4px; }
.fh-authorbox p { font-size: 15px; color: #39434c; margin: 0; }
.fh-disclosure { font-size: 14px; color: var(--fh-muted); border-left: 3px solid var(--fh-line); padding-left: 12px; margin: 0 0 20px; }
.fh-sidebar .fh-widget { margin-bottom: 32px; }
.fh-sidebar .fh-widget h2 { font-size: 17px; padding-bottom: 8px; border-bottom: 2px solid var(--fh-navy); }
.fh-sidebar .fh-list li a { font-size: 15px; }

/* ---------- Archive ---------- */
.fh-archive-head { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 2px solid var(--fh-navy); }
.fh-archive-head h1 { font-size: 32px; margin: 0; }
.fh-archive-head .desc { color: var(--fh-muted); margin-top: 8px; }
.fh-river { display: flex; flex-direction: column; }
.fh-river .fh-card { flex-direction: row; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--fh-line); }
.fh-river .fh-card .thumb { flex: 0 0 140px; aspect-ratio: 4/3; }
@media (min-width: 768px) { .fh-river .fh-card .thumb { flex-basis: 240px; aspect-ratio: 16/10; } .fh-river .fh-card h3 { font-size: 21px; } }
.fh-pagination { margin-top: 28px; display: flex; gap: 6px; flex-wrap: wrap; }
.fh-pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--fh-line); border-radius: var(--fh-radius); color: var(--fh-navy); font-weight: 600; }
.fh-pagination .page-numbers.current { background: var(--fh-navy); color: #fff; border-color: var(--fh-navy); }

/* ---------- Page ---------- */
.fh-page { max-width: 820px; }
.fh-page h1 { font-size: 34px; }
.fh-page.full { max-width: none; }

/* ---------- Footer ---------- */
.fh-footer { background: var(--fh-navy); color: #c6d0d8; padding: 40px 0 24px; font-size: 14px; }
.fh-footer a { color: #e7ecf0; }
.fh-footer .cols { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .fh-footer .cols { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.fh-footer h2 { color: #fff; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
.fh-footer ul { list-style: none; margin: 0; padding: 0; }
.fh-footer li { margin-bottom: 8px; }
.fh-footer-logo { display: inline-block; margin-bottom: 12px; }
.fh-footer-logo img { height: 52px; width: auto; }
.fh-footer .bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 16px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: #9fb0bd; }

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
	body { font-size: 16px; }
	.fh-masthead { padding: 14px 0 10px; }
	.fh-brand img, .fh-brand .fh-logo { height: 68px; }
	.fh-tagline { display: none; }
	.fh-topbar nav { display: none; }
	.fh-topbar .fh-wrap { justify-content: center; }
	.fh-nav .fh-search input[type=search] { width: 120px; }
	.fh-content { font-size: 17px; }
	.fh-lead-main h2 { font-size: 26px; }
}

/* ---------- Refinements ---------- */
.fh-figure img { aspect-ratio: 16/9; object-fit: cover; }
.fh-sidebar .fh-list li a { line-height: 1.35; display: block; margin-bottom: 4px; }
.fh-lead-main .fh-card .thumb { aspect-ratio: 16/9; }
@media (max-width: 639px) {
	.fh-grid .fh-card { flex-direction: row; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--fh-line); }
	.fh-grid .fh-card .thumb { flex: 0 0 120px; aspect-ratio: 4/3; }
	.fh-grid .fh-card h3 { font-size: 16px; }
	.fh-grid { gap: 14px; }
}
.fh-page { margin: 0 auto; }
.fh-page.full { margin: 0; }
@media (max-width: 767px) { .fh-byline > .sep { display: none; } .fh-byline > span:last-child { flex-basis: 100%; } }
