/*
Theme Name: Health Policy Magazine
Theme URI: https://health-policy.ir/
Author: Health Policy
Author URI: https://health-policy.ir/
Description: قالب مجله‌ای فارسی و واکنش‌گرا برای رسانه‌ها، مجلات پزشکی و وب‌سایت‌های سیاست‌گذاری سلامت؛ دارای صفحه اصلی ماژولار، تایپوگرافی خوانا، داده‌های ساختاریافته و بهینه‌سازی پایه سئو.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: health-policy-magazine
Tags: blog, news, education, one-column, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, rtl-language-support
*/

@font-face {
    font-family: "VazirFD";
    src: url("/wp-content/themes/health-policy-magazine/assets/fonts/Vazir-FD.woff2") format("woff2"),
         url("/wp-content/themes/health-policy-magazine/assets/fonts/Vazir-FD.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
  --hp-primary: #0f766e;
  --hp-primary-dark: #0b4f4a;
  --hp-primary-soft: #dff7f3;
  --hp-secondary: #183153;
  --hp-accent: #ff7b6b;
  --hp-gold: #f2bb3d;
  --hp-ink: #132238;
  --hp-muted: #64748b;
  --hp-border: #e6edf3;
  --hp-surface: #ffffff;
  --hp-surface-soft: #f7fafc;
  --hp-shadow: 0 18px 45px rgba(24, 49, 83, .09);
  --hp-shadow-sm: 0 9px 24px rgba(24, 49, 83, .08);
  --hp-radius: 24px;
  --hp-radius-sm: 16px;
  --hp-container: 1240px;
  --hp-font: "VazirFD", "IRANSansX", "Segoe UI", Tahoma, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--hp-ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(15, 118, 110, .08), transparent 23rem),
    radial-gradient(circle at 88% 8%, rgba(255, 123, 107, .08), transparent 20rem),
    #fff;
  font-family: var(--hp-font);
  font-size: 16px;
  line-height: 1.9;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--hp-primary); text-decoration: none; transition: .22s ease; }
a:hover { color: var(--hp-accent); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
::selection { background: var(--hp-primary); color: #fff; }

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: #fff; clip: auto !important; clip-path: none; color: var(--hp-secondary);
  display: block; font-size: 14px; height: auto; right: 8px; top: 8px;
  padding: 12px 18px; width: auto; z-index: 100000; border-radius: 10px;
  box-shadow: var(--hp-shadow-sm);
}

.hp-container { width: min(calc(100% - 32px), var(--hp-container)); margin-inline: auto; }
.hp-grid { display: grid; gap: 24px; }
.hp-main-layout { grid-template-columns: minmax(0, 1fr) 330px; align-items: start; }
.hp-section { padding: 62px 0; }
.hp-section--soft { background: var(--hp-surface-soft); }
.hp-section-head {
  display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px;
}
.hp-section-title { margin: 0; font-size: clamp(1.55rem, 2.4vw, 2.15rem); line-height: 1.35; }
.hp-section-title span { color: var(--hp-primary); }
.hp-section-kicker { display: block; color: var(--hp-accent); font-weight: 800; font-size: .78rem; letter-spacing: .03em; margin-bottom: 7px; }
.hp-more-link { font-weight: 800; white-space: nowrap; }
.hp-more-link::after { content: " ←"; }

.hp-topbar { background: var(--hp-secondary); color: rgba(255,255,255,.88); font-size: .86rem; }
.hp-topbar__inner { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.hp-topbar p { margin: 0; }
.hp-topbar a { color: #fff; }
.hp-topbar__links { display: flex; gap: 16px; align-items: center; }

.site-header {
  position: sticky; top: 0; z-index: 999; background: rgba(255,255,255,.93);
  backdrop-filter: blur(18px); border-bottom: 1px solid rgba(230,237,243,.9);
}
.admin-bar .site-header { top: 32px; }
.hp-header__inner { min-height: 86px; display: flex; align-items: center; gap: 28px; }
.site-branding { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.custom-logo-link img { width: auto; max-height: 54px; }
.hp-brand-mark {
  width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center;
  color: #fff; background: linear-gradient(135deg, var(--hp-primary), #20a79b);
  box-shadow: 0 10px 22px rgba(15,118,110,.24); flex: 0 0 auto;
}
.hp-brand-mark svg { width: 26px; height: 26px; }
.site-title { margin: 0; font-size: 1.1rem; line-height: 1.35; font-weight: 900; }
.site-title a { color: var(--hp-secondary); }
.site-description { margin: 3px 0 0; color: var(--hp-muted); font-size: .72rem; line-height: 1.5; }
.main-navigation { margin-inline-start: auto; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.main-navigation li { position: relative; }
.main-navigation a { display: block; color: var(--hp-ink); font-weight: 750; font-size: .9rem; padding: 12px 13px; border-radius: 12px; }
.main-navigation a:hover, .main-navigation .current-menu-item > a, .main-navigation .current-menu-ancestor > a { background: var(--hp-primary-soft); color: var(--hp-primary-dark); }
.main-navigation .sub-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 210px; display: block;
  background: #fff; padding: 8px; border: 1px solid var(--hp-border); border-radius: 16px;
  box-shadow: var(--hp-shadow); opacity: 0; visibility: hidden; transform: translateY(7px); transition: .2s ease;
}
.main-navigation li:hover > .sub-menu, .main-navigation li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.main-navigation .sub-menu a { padding: 9px 11px; }
.hp-header-actions { display: flex; align-items: center; gap: 9px; }
.hp-icon-button, .hp-menu-toggle {
  width: 44px; height: 44px; border: 1px solid var(--hp-border); border-radius: 14px;
  display: grid; place-items: center; background: #fff; color: var(--hp-secondary);
}
.hp-icon-button:hover, .hp-menu-toggle:hover { border-color: var(--hp-primary); color: var(--hp-primary); }
.hp-icon-button svg, .hp-menu-toggle svg { width: 21px; height: 21px; }
.hp-menu-toggle { display: none; }

.hp-search-panel {
  position: fixed; inset: 0; z-index: 1200; display: grid; place-items: start center; padding-top: 15vh;
  background: rgba(10,28,45,.72); backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: .22s ease;
}
.hp-search-panel.is-open { opacity: 1; visibility: visible; }
.hp-search-box { width: min(calc(100% - 32px), 720px); background: #fff; padding: 24px; border-radius: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.hp-search-box__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.hp-search-box__head strong { font-size: 1.15rem; }
.hp-search-close { border: 0; background: var(--hp-surface-soft); width: 38px; height: 38px; border-radius: 50%; }
.search-form { display: flex; gap: 10px; }
.search-form label { flex: 1; }
.search-field {
  width: 100%; min-height: 50px; border: 1px solid var(--hp-border); border-radius: 14px;
  padding: 0 16px; outline: none; background: #fff; color: var(--hp-ink);
}
.search-field:focus { border-color: var(--hp-primary); box-shadow: 0 0 0 4px rgba(15,118,110,.09); }
.search-submit, .hp-button {
  min-height: 50px; border: 0; border-radius: 14px; padding: 0 21px; background: var(--hp-primary);
  color: #fff; font-weight: 850; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 10px 20px rgba(15,118,110,.18);
}
.search-submit:hover, .hp-button:hover { color: #fff; background: var(--hp-primary-dark); transform: translateY(-1px); }
.hp-button--light { background: #fff; color: var(--hp-secondary); box-shadow: none; }
.hp-button--light:hover { background: var(--hp-primary-soft); color: var(--hp-primary-dark); }
.hp-button--ghost { background: transparent; border: 1px solid var(--hp-border); color: var(--hp-secondary); box-shadow: none; }
.hp-button--ghost:hover { color: var(--hp-primary); background: #fff; }

.hp-hero { padding: 38px 0 28px; }
.hp-hero__intro {
  position: relative; overflow: hidden; min-height: 164px; border-radius: 30px; padding: 34px 38px;
  display: flex; justify-content: space-between; align-items: center; gap: 30px; color: #fff;
  background: linear-gradient(125deg, var(--hp-secondary), #234f71 58%, var(--hp-primary));
  box-shadow: var(--hp-shadow);
}
.hp-hero__intro::before, .hp-hero__intro::after {
  content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.16);
}
.hp-hero__intro::before { width: 210px; height: 210px; left: -45px; top: -80px; }
.hp-hero__intro::after { width: 118px; height: 118px; left: 150px; bottom: -76px; }
.hp-hero__intro-content { position: relative; z-index: 2; max-width: 720px; }
.hp-hero__intro h1 { font-size: clamp(1.7rem, 4vw, 3rem); line-height: 1.35; margin: 0 0 12px; }
.hp-hero__intro p { margin: 0; color: rgba(255,255,255,.82); max-width: 680px; }
.hp-hero__badge {
  position: relative; z-index: 2; width: 130px; height: 130px; border-radius: 38px; flex: 0 0 auto;
  display: grid; place-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18);
  transform: rotate(-6deg);
}
.hp-hero__badge svg { width: 65px; height: 65px; }
.hp-featured-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .9fr); gap: 22px; margin-top: 24px; }
.hp-featured-main { min-height: 490px; }
.hp-featured-side { display: grid; grid-template-rows: repeat(2, 1fr); gap: 22px; }
.hp-story {
  position: relative; overflow: hidden; border-radius: var(--hp-radius); background: var(--hp-secondary); color: #fff;
  box-shadow: var(--hp-shadow-sm); isolation: isolate;
}
.hp-story > a.hp-story__media { position: absolute; inset: 0; }
.hp-story__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hp-story::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,22,37,.94), rgba(7,22,37,.08) 70%); z-index: -0; }
.hp-story:hover .hp-story__media img { transform: scale(1.035); }
.hp-story__placeholder {
  position: absolute; inset: 0; background: linear-gradient(145deg, var(--hp-primary), var(--hp-secondary));
}
.hp-story__placeholder::before {
  content: "+"; position: absolute; font-size: 9rem; line-height: 1; font-weight: 200; color: rgba(255,255,255,.12); left: 8%; top: 3%;
}
.hp-story__content { position: absolute; inset-inline: 0; bottom: 0; z-index: 2; padding: 28px; }
.hp-featured-side .hp-story__content { padding: 20px; }
.hp-story__title { margin: 10px 0 9px; font-size: clamp(1.25rem, 2.2vw, 2rem); line-height: 1.55; }
.hp-featured-side .hp-story__title { font-size: 1.05rem; line-height: 1.65; margin: 7px 0; }
.hp-story__title a { color: #fff; }
.hp-story__excerpt { color: rgba(255,255,255,.78); margin: 0 0 12px; font-size: .93rem; }
.hp-featured-side .hp-story__excerpt { display: none; }
.hp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--hp-muted); font-size: .78rem; }
.hp-story .hp-meta { color: rgba(255,255,255,.74); }
.hp-meta span { display: inline-flex; align-items: center; gap: 5px; }
.hp-meta svg { width: 15px; height: 15px; }
.hp-category-pill {
  display: inline-flex; align-items: center; min-height: 29px; padding: 3px 11px; border-radius: 999px;
  font-size: .7rem; font-weight: 900; background: var(--hp-primary-soft); color: var(--hp-primary-dark);
}
.hp-story .hp-category-pill { color: #fff; background: rgba(255,255,255,.17); backdrop-filter: blur(7px); }

.hp-topic-strip { padding: 4px 0 14px; }
.hp-topic-strip__inner { display: flex; align-items: center; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 4px 0 10px; }
.hp-topic-strip__inner::-webkit-scrollbar { display: none; }
.hp-topic-label { font-weight: 900; color: var(--hp-secondary); white-space: nowrap; }
.hp-topic-link { white-space: nowrap; padding: 9px 14px; border: 1px solid var(--hp-border); border-radius: 999px; color: var(--hp-ink); background: #fff; font-size: .82rem; font-weight: 750; }
.hp-topic-link:hover { background: var(--hp-primary); border-color: var(--hp-primary); color: #fff; }

.hp-post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hp-card {
  overflow: hidden; border: 1px solid var(--hp-border); border-radius: var(--hp-radius); background: #fff;
  box-shadow: 0 10px 30px rgba(24,49,83,.055); transition: .25s ease; height: 100%;
}
.hp-card:hover { transform: translateY(-5px); box-shadow: var(--hp-shadow); border-color: rgba(15,118,110,.2); }
.hp-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--hp-primary-soft); }
.hp-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hp-card:hover .hp-card__media img { transform: scale(1.045); }
.hp-card__placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--hp-primary); background: linear-gradient(145deg, var(--hp-primary-soft), #eef5ff); }
.hp-card__placeholder svg { width: 54px; height: 54px; opacity: .72; }
.hp-card__body { padding: 22px; }
.hp-card__title { margin: 10px 0 9px; font-size: 1.08rem; line-height: 1.7; }
.hp-card__title a { color: var(--hp-secondary); }
.hp-card__title a:hover { color: var(--hp-primary); }
.hp-card__excerpt { margin: 0 0 14px; color: var(--hp-muted); font-size: .87rem; line-height: 1.85; }
.hp-card--horizontal { display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.hp-card--horizontal .hp-card__media { aspect-ratio: auto; min-height: 190px; }

.hp-policy-brief {
  position: relative; overflow: hidden; border-radius: 30px; background: linear-gradient(120deg, #f2f9f8, #fff8f5);
  border: 1px solid var(--hp-border); padding: 32px; display: grid; grid-template-columns: 210px minmax(0, 1fr) auto;
  align-items: center; gap: 28px;
}
.hp-policy-brief::after { content: ""; width: 180px; height: 180px; border-radius: 50%; position: absolute; left: -80px; bottom: -110px; background: rgba(255,123,107,.12); }
.hp-policy-brief__icon { width: 180px; height: 150px; border-radius: 32px; display: grid; place-items: center; background: linear-gradient(135deg, var(--hp-primary), var(--hp-secondary)); color: #fff; transform: rotate(2deg); }
.hp-policy-brief__icon svg { width: 76px; height: 76px; }
.hp-policy-brief h2 { margin: 0 0 8px; font-size: 1.55rem; }
.hp-policy-brief p { margin: 0; color: var(--hp-muted); }

.hp-category-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; }
.hp-category-feature { min-height: 430px; }
.hp-mini-list { display: grid; gap: 14px; }
.hp-mini-card { display: grid; grid-template-columns: 125px minmax(0, 1fr); gap: 15px; align-items: center; padding: 12px; border: 1px solid var(--hp-border); border-radius: 18px; background: #fff; }
.hp-mini-card__media { aspect-ratio: 1.15 / 1; border-radius: 13px; overflow: hidden; background: var(--hp-primary-soft); }
.hp-mini-card__media img { width: 100%; height: 100%; object-fit: cover; }
.hp-mini-card h3 { margin: 4px 0 6px; font-size: .94rem; line-height: 1.65; }
.hp-mini-card h3 a { color: var(--hp-secondary); }

.hp-newsletter { padding: 44px 0; }
.hp-newsletter__box {
  border-radius: 30px; padding: 38px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 28px;
  background: linear-gradient(120deg, var(--hp-primary-dark), var(--hp-primary) 55%, #2e9f8e); box-shadow: var(--hp-shadow);
}
.hp-newsletter__box h2 { margin: 0 0 8px; font-size: 1.7rem; }
.hp-newsletter__box p { margin: 0; color: rgba(255,255,255,.82); }

.hp-page-header { padding: 44px 0 24px; }
.hp-page-header__box { border-radius: 28px; padding: 34px; background: linear-gradient(125deg, #f0faf8, #f8fbff); border: 1px solid var(--hp-border); }
.hp-page-title { margin: 0; font-size: clamp(1.65rem, 3vw, 2.5rem); line-height: 1.45; }
.hp-page-description { margin: 10px 0 0; color: var(--hp-muted); max-width: 780px; }
.hp-breadcrumbs { margin-bottom: 12px; color: var(--hp-muted); font-size: .78rem; }
.hp-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; padding: 0; margin: 0; }
.hp-breadcrumbs li:not(:last-child)::after { content: "/"; margin-right: 7px; color: #a7b3c2; }
.hp-breadcrumbs a { color: var(--hp-muted); }

.hp-content-area { padding: 28px 0 70px; }
.hp-content-list { display: grid; gap: 20px; }
.hp-pagination { margin-top: 34px; }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.page-numbers { min-width: 42px; height: 42px; padding: 0 10px; display: grid; place-items: center; border: 1px solid var(--hp-border); border-radius: 12px; background: #fff; color: var(--hp-secondary); font-weight: 750; }
.page-numbers.current, .page-numbers:hover { color: #fff; background: var(--hp-primary); border-color: var(--hp-primary); }

.widget-area { position: sticky; top: 112px; display: grid; gap: 20px; }
.widget { background: #fff; border: 1px solid var(--hp-border); border-radius: 22px; padding: 22px; box-shadow: 0 9px 28px rgba(24,49,83,.045); }
.widget-title { position: relative; margin: 0 0 18px; padding-right: 17px; font-size: 1.02rem; }
.widget-title::before { content: ""; position: absolute; right: 0; top: 6px; width: 6px; height: 20px; border-radius: 5px; background: var(--hp-accent); }
.widget ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.widget li { color: var(--hp-muted); font-size: .88rem; }
.widget li a { color: var(--hp-secondary); }
.widget li a:hover { color: var(--hp-primary); }
.widget_tag_cloud .tag-cloud-link { display: inline-flex; margin: 4px 2px; padding: 6px 10px; border-radius: 999px; background: var(--hp-surface-soft); font-size: .75rem !important; }
.hp-sidebar-cta { color: #fff; background: linear-gradient(145deg, var(--hp-secondary), var(--hp-primary)); border: 0; }
.hp-sidebar-cta .widget-title::before { background: var(--hp-gold); }
.hp-sidebar-cta p { color: rgba(255,255,255,.8); font-size: .88rem; }

.hp-article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 34px; align-items: start; padding: 36px 0 72px; }
.hp-article { min-width: 0; }
.hp-article-header { margin-bottom: 24px; }
.hp-article-title { margin: 10px 0 16px; font-size: clamp(1.9rem, 4vw, 3.25rem); line-height: 1.52; letter-spacing: -.02em; }
.hp-article-subtitle { margin: -4px 0 20px; color: var(--hp-muted); font-size: 1.02rem; }
.hp-author-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 0; border-top: 1px solid var(--hp-border); border-bottom: 1px solid var(--hp-border); }
.hp-author { display: flex; align-items: center; gap: 11px; }
.hp-author img { border-radius: 50%; width: 46px; height: 46px; }
.hp-author strong { display: block; color: var(--hp-secondary); font-size: .88rem; }
.hp-author span { display: block; color: var(--hp-muted); font-size: .72rem; }
.hp-share { display: flex; gap: 7px; }
.hp-share a { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--hp-surface-soft); color: var(--hp-secondary); }
.hp-share a:hover { background: var(--hp-primary); color: #fff; }
.hp-featured-image { margin: 24px 0; overflow: hidden; border-radius: 28px; box-shadow: var(--hp-shadow-sm); }
.hp-featured-image img { width: 100%; }
.hp-article-content {
  font-size: 1.05rem; line-height: 2.12; color: #26364a; background: #fff;
}
.hp-article-content > * { max-width: 100%; }
.hp-article-content p { margin: 0 0 1.35em; }
.hp-article-content h2, .hp-article-content h3, .hp-article-content h4 { color: var(--hp-secondary); line-height: 1.6; margin: 2em 0 .75em; scroll-margin-top: 120px; }
.hp-article-content h2 { font-size: 1.65rem; border-right: 5px solid var(--hp-primary); padding-right: 15px; }
.hp-article-content h3 { font-size: 1.28rem; }
.hp-article-content ul, .hp-article-content ol { padding-right: 1.35rem; margin: 0 0 1.5em; }
.hp-article-content li { margin-bottom: .55em; }
.hp-article-content blockquote { margin: 1.7em 0; padding: 24px 28px; border: 0; border-right: 5px solid var(--hp-accent); border-radius: 18px; background: #fff6f4; color: #523733; font-size: 1.04rem; }
.hp-article-content table { width: 100%; border-collapse: collapse; margin: 1.7em 0; font-size: .88rem; display: block; overflow-x: auto; }
.hp-article-content th, .hp-article-content td { padding: 12px 14px; border: 1px solid var(--hp-border); text-align: right; white-space: nowrap; }
.hp-article-content th { background: var(--hp-secondary); color: #fff; }
.hp-article-content tr:nth-child(even) td { background: var(--hp-surface-soft); }
.hp-article-content figure { margin: 1.8em 0; }
.hp-article-content figcaption { color: var(--hp-muted); font-size: .78rem; text-align: center; margin-top: 8px; }
.hp-article-content a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.hp-article-content code { direction: ltr; display: inline-block; background: #f2f5f8; border-radius: 6px; padding: 1px 6px; font-size: .88em; }
.hp-article-content pre { direction: ltr; text-align: left; overflow-x: auto; background: #102133; color: #e8f0f7; border-radius: 16px; padding: 20px; }
.hp-article-content .alignwide { margin-inline: -4%; max-width: 108%; }
.hp-article-content .alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.hp-article-footer { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--hp-border); }
.hp-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hp-tags a { padding: 7px 11px; border-radius: 999px; background: var(--hp-surface-soft); color: var(--hp-muted); font-size: .76rem; }
.hp-tags a:hover { background: var(--hp-primary); color: #fff; }
.hp-post-navigation { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 30px; }
.hp-post-navigation a { min-height: 120px; padding: 20px; border: 1px solid var(--hp-border); border-radius: 18px; background: #fff; color: var(--hp-secondary); }
.hp-post-navigation small { display: block; color: var(--hp-muted); margin-bottom: 7px; }
.hp-post-navigation strong { display: block; line-height: 1.7; }
.hp-author-box { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 18px; margin-top: 30px; padding: 24px; border-radius: 22px; background: linear-gradient(135deg, #f4fbfa, #f7f9fd); border: 1px solid var(--hp-border); }
.hp-author-box img { border-radius: 20px; }
.hp-author-box h3 { margin: 0 0 6px; }
.hp-author-box p { margin: 0; color: var(--hp-muted); font-size: .88rem; }
.hp-reading-progress { position: fixed; top: 0; right: 0; z-index: 1500; height: 3px; width: 0; background: linear-gradient(90deg, var(--hp-accent), var(--hp-primary)); }
.admin-bar .hp-reading-progress { top: 32px; }

.comments-area { margin-top: 40px; }
.comments-title, .comment-reply-title { font-size: 1.35rem; }
.comment-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 15px; }
.comment-body { padding: 20px; border: 1px solid var(--hp-border); border-radius: 18px; background: #fff; }
.comment-meta { font-size: .78rem; color: var(--hp-muted); }
.comment-author { display: flex; align-items: center; gap: 9px; }
.comment-author img { border-radius: 50%; }
.comment-content { margin-top: 12px; }
.comment-content p:last-child { margin-bottom: 0; }
.comment-respond { margin-top: 28px; padding: 24px; border-radius: 22px; background: var(--hp-surface-soft); }
.comment-form p { margin: 0 0 15px; }
.comment-form label { display: block; font-weight: 750; margin-bottom: 5px; }
.comment-form input:not([type="submit"]), .comment-form textarea { width: 100%; border: 1px solid var(--hp-border); border-radius: 13px; padding: 11px 13px; background: #fff; outline: none; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--hp-primary); }
.form-submit .submit { border: 0; border-radius: 13px; min-height: 46px; padding: 0 20px; color: #fff; background: var(--hp-primary); font-weight: 800; }

.hp-empty { text-align: center; padding: 60px 24px; border-radius: 24px; background: var(--hp-surface-soft); border: 1px dashed #cdd9e4; }
.hp-empty svg { width: 76px; height: 76px; color: var(--hp-primary); opacity: .7; margin: 0 auto 16px; }
.hp-404 { text-align: center; padding: 90px 0; }
.hp-404__number { font-size: clamp(6rem, 18vw, 14rem); line-height: .8; font-weight: 950; color: transparent; -webkit-text-stroke: 3px var(--hp-primary); opacity: .2; }
.hp-404 h1 { margin: 24px 0 10px; }
.hp-404 p { color: var(--hp-muted); }

.site-footer { margin-top: 20px; color: rgba(255,255,255,.78); background: #10243b; }
.hp-footer-main { padding: 58px 0 38px; }
.hp-footer-grid { display: grid; grid-template-columns: 1.35fr repeat(3, 1fr); gap: 36px; }
.hp-footer-brand .site-title a { color: #fff; }
.hp-footer-brand p { color: rgba(255,255,255,.68); max-width: 390px; font-size: .88rem; }
.hp-footer-title { color: #fff; margin: 0 0 16px; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { color: rgba(255,255,255,.76); }
.site-footer a:hover { color: #fff; }
.hp-socials { display: flex; gap: 8px; margin-top: 18px; }
.hp-socials a { width: 39px; height: 39px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.hp-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.hp-footer-bottom__inner { min-height: 70px; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: .78rem; }
.hp-back-to-top { width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255,255,255,.17); background: transparent; color: #fff; }

@media (max-width: 1100px) {
  .main-navigation a { padding-inline: 9px; font-size: .84rem; }
  .hp-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .admin-bar .site-header { top: 46px; }
  .main-navigation {
    position: fixed; inset: 0 0 0 auto; width: min(84vw, 360px); padding: 90px 20px 30px;
    background: #fff; box-shadow: -15px 0 40px rgba(0,0,0,.12); transform: translateX(110%); transition: .25s ease; overflow-y: auto;
  }
  .main-navigation.is-open { transform: translateX(0); }
  .main-navigation ul { display: block; }
  .main-navigation a { padding: 11px 13px; }
  .main-navigation .sub-menu { position: static; min-width: 0; padding: 0 14px; box-shadow: none; border: 0; opacity: 1; visibility: visible; transform: none; display: none; }
  .main-navigation li.is-submenu-open > .sub-menu { display: block; }
  .hp-menu-toggle { display: grid; position: relative; z-index: 2; }
  .hp-main-layout, .hp-article-wrap { grid-template-columns: 1fr; }
  .widget-area { position: static; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hp-featured-grid { grid-template-columns: 1fr; }
  .hp-featured-side { grid-template-columns: repeat(2, 1fr); grid-template-rows: none; }
  .hp-featured-side .hp-story { min-height: 270px; }
  .hp-policy-brief { grid-template-columns: 150px minmax(0,1fr); }
  .hp-policy-brief__icon { width: 145px; height: 125px; }
  .hp-policy-brief .hp-button { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 720px) {
  .hp-container { width: min(calc(100% - 22px), var(--hp-container)); }
  .hp-section { padding: 44px 0; }
  .hp-topbar__links { display: none; }
  .hp-topbar__inner { justify-content: center; text-align: center; }
  .hp-header__inner { min-height: 72px; gap: 10px; }
  .site-branding { min-width: 0; flex: 1; }
  .hp-brand-mark { width: 41px; height: 41px; border-radius: 13px; }
  .site-description { display: none; }
  .hp-hero { padding-top: 22px; }
  .hp-hero__intro { padding: 26px 22px; min-height: 0; }
  .hp-hero__badge { display: none; }
  .hp-featured-main { min-height: 410px; }
  .hp-featured-side { grid-template-columns: 1fr; }
  .hp-featured-side .hp-story { min-height: 260px; }
  .hp-story__content { padding: 21px; }
  .hp-post-grid { grid-template-columns: 1fr; }
  .hp-card--horizontal { grid-template-columns: 125px minmax(0, 1fr); }
  .hp-card--horizontal .hp-card__media { min-height: 170px; }
  .hp-card--horizontal .hp-card__body { padding: 15px; }
  .hp-card--horizontal .hp-card__excerpt { display: none; }
  .hp-category-layout { grid-template-columns: 1fr; }
  .hp-category-feature { min-height: 390px; }
  .hp-policy-brief { grid-template-columns: 1fr; padding: 25px; }
  .hp-policy-brief__icon { width: 100%; height: 110px; transform: none; }
  .hp-newsletter__box { padding: 27px 22px; align-items: flex-start; flex-direction: column; }
  .hp-section-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .widget-area { grid-template-columns: 1fr; }
  .hp-article-wrap { padding-top: 22px; }
  .hp-article-title { font-size: 1.75rem; }
  .hp-author-row { align-items: flex-start; flex-direction: column; }
  .hp-article-content { font-size: 1rem; line-height: 2.03; }
  .hp-article-content h2 { font-size: 1.35rem; }
  .hp-post-navigation { grid-template-columns: 1fr; }
  .hp-author-box { grid-template-columns: 58px minmax(0,1fr); padding: 18px; }
  .hp-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hp-footer-bottom__inner { padding: 16px 0; flex-direction: column; text-align: center; }
}

@media (max-width: 420px) {
  .hp-icon-button { display: none; }
  .hp-mini-card { grid-template-columns: 100px minmax(0,1fr); }
  .hp-card--horizontal { grid-template-columns: 1fr; }
  .hp-card--horizontal .hp-card__media { aspect-ratio: 16/9; min-height: 0; }
  .search-form { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Ensure absolutely-positioned featured content fills its grid cell. */
.hp-featured-main > .hp-story { height: 100%; min-height: inherit; }
