/*
Theme Name: جريدة هرم مصر
Theme URI: https://example.com/harm-misr
Author: Replit
Author URI: https://replit.com
Description: قالب إخباري عربي حديث ومتجاوب لجريدة هرم مصر.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: harm-misr
*/

:root {
  --hm-ink: #14253f;
  --hm-navy: #0c1b30;
  --hm-teal: #0b9691;
  --hm-teal-dark: #08706d;
  --hm-gold: #d6a84f;
  --hm-paper: #f7f8fa;
  --hm-line: #e4e8ed;
  --hm-muted: #6b7480;
  --hm-white: #ffffff;
  --hm-radius: 16px;
  --hm-shadow: 0 12px 36px rgba(18, 36, 62, .08);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--hm-ink);
  background: var(--hm-paper);
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.single-post { background: #fff; }

body,
button,
input,
textarea,
select { font-size: 16px; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-topbar {
  background: var(--hm-navy);
  color: rgba(255,255,255,.78);
  font-size: 13px;
}

.topbar-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar-links {
  display: flex;
  gap: 18px;
  align-items: center;
}

.topbar-links a:hover { color: var(--hm-white); }

.brand-row {
  background: var(--hm-white);
  border-bottom: 1px solid var(--hm-line);
}

.brand-inner {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 265px;
}

.brand-symbol {
  width: 52px;
  height: 52px;
  position: relative;
  display: grid;
  place-items: center;
  color: var(--hm-white);
  background: var(--hm-teal);
  border-radius: 13px 13px 13px 3px;
  box-shadow: 8px 8px 0 rgba(214,168,79,.23);
  font-size: 26px;
  font-weight: 900;
}

.brand-symbol::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 9px 9px 9px 2px;
}

.brand-name {
  display: block;
  color: var(--hm-navy);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -.8px;
  line-height: 1.15;
}

.brand-tagline {
  display: block;
  margin-top: 4px;
  color: var(--hm-teal-dark);
  font-size: 12px;
  font-weight: 700;
}

.date-card {
  color: var(--hm-muted);
  font-size: 13px;
  text-align: left;
}

.date-card strong {
  display: block;
  color: var(--hm-ink);
  font-size: 15px;
}

.weather-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  color: var(--hm-ink);
  border: 1px solid var(--hm-line);
  border-radius: 999px;
  background: #fbfcfd;
  white-space: nowrap;
}

.weather-chip b { color: var(--hm-gold); font-size: 20px; }

.main-nav {
  background: var(--hm-white);
  border-bottom: 1px solid var(--hm-line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.primary-menu {
  display: flex;
  align-items: stretch;
  gap: 3px;
}

.primary-menu a {
  display: block;
  padding: 14px 13px 12px;
  border-bottom: 3px solid transparent;
  color: var(--hm-ink);
  font-size: 14px;
  font-weight: 700;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
  color: var(--hm-teal-dark);
  border-bottom-color: var(--hm-teal);
}

.nav-actions { display: flex; align-items: center; gap: 8px; }

.icon-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--hm-ink);
  border: 1px solid var(--hm-line);
  background: var(--hm-white);
  border-radius: 50%;
}

.icon-button:hover { color: var(--hm-white); background: var(--hm-teal); border-color: var(--hm-teal); }
.menu-toggle { display: none; }

.breaking-wrap { margin-top: 18px; }

.breaking-bar {
  display: flex;
  align-items: center;
  min-height: 48px;
  overflow: hidden;
  background: var(--hm-white);
  border: 1px solid var(--hm-line);
  border-right: 4px solid var(--hm-teal);
  border-radius: 10px;
  box-shadow: 0 5px 16px rgba(18,36,62,.04);
}

.breaking-label {
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  color: var(--hm-white);
  background: var(--hm-teal);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.breaking-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f8d678;
  box-shadow: 0 0 0 4px rgba(248,214,120,.18);
}

.breaking-track {
  width: max-content;
  min-width: 100%;
  display: inline-flex;
  gap: 28px;
  overflow: hidden;
  padding: 0 18px;
  color: var(--hm-ink);
  font-size: 14px;
  white-space: nowrap;
  animation: harm-misr-ticker 32s linear infinite;
}

.breaking-track a::before { content: "•"; color: var(--hm-gold); margin-left: 8px; }
.breaking-track a:hover { color: var(--hm-teal-dark); }
.breaking-bar:hover .breaking-track,
.breaking-bar:focus-within .breaking-track { animation-play-state: paused; }

@keyframes harm-misr-ticker {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}

.hero-section { padding: 24px 0 0; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(290px, .9fr);
  gap: 18px;
}

.hero-story {
  position: relative;
  min-height: 410px;
  display: flex;
  align-items: flex-end;
  padding: 34px;
  overflow: hidden;
  color: var(--hm-white);
  background:
    linear-gradient(180deg, rgba(12,27,48,.05) 18%, rgba(12,27,48,.94) 100%),
    radial-gradient(circle at 72% 20%, rgba(11,150,145,.8), transparent 32%),
    linear-gradient(135deg, #2a4966, #10233f 60%, #081424);
  border-radius: var(--hm-radius);
  box-shadow: var(--hm-shadow);
}

.hero-story::before {
  content: "هرم مصر";
  position: absolute;
  top: 28px;
  left: 28px;
  padding: 7px 11px;
  color: var(--hm-white);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-content { position: relative; max-width: 640px; }
.category-label { color: var(--hm-teal); font-size: 13px; font-weight: 800; }
.hero-story .category-label { color: #7ce3dd; }

.hero-title {
  margin: 10px 0 10px;
  font-size: clamp(26px, 3.4vw, 48px);
  line-height: 1.3;
  letter-spacing: -.9px;
}

.hero-excerpt {
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 15px;
}

.story-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  color: var(--hm-muted);
  font-size: 12px;
}

.hero-story .story-meta { color: rgba(255,255,255,.65); }
.story-meta span + span::before { content: "·"; margin-left: 14px; color: var(--hm-gold); }

.hero-side { display: grid; gap: 18px; }

.mini-story {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 196px;
  padding: 24px;
  background: var(--hm-white);
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius);
  box-shadow: var(--hm-shadow);
}

.mini-story:nth-child(1) {
  background: linear-gradient(145deg, #e8f6f5 0%, #fff 70%);
}

.mini-story:nth-child(2) {
  background: linear-gradient(145deg, #fff5df 0%, #fff 70%);
}

.mini-title {
  margin: 7px 0 0;
  color: var(--hm-ink);
  font-size: 20px;
  line-height: 1.5;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 42px 0 16px;
}

.section-heading h2 {
  position: relative;
  margin: 0;
  padding-right: 14px;
  color: var(--hm-navy);
  font-size: 25px;
}

.section-heading h2::before {
  content: "";
  position: absolute;
  top: 9px;
  right: 0;
  width: 4px;
  height: 23px;
  background: var(--hm-teal);
  border-radius: 99px;
}

.section-heading a {
  color: var(--hm-teal-dark);
  font-size: 13px;
  font-weight: 800;
}

.section-heading a:hover { color: var(--hm-gold); }

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.news-card {
  overflow: hidden;
  background: var(--hm-white);
  border: 1px solid var(--hm-line);
  border-radius: 13px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.news-card:hover { transform: translateY(-3px); box-shadow: var(--hm-shadow); }

.fake-image {
  height: 140px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #d9eeee, #92c6c4 44%, #203d5d);
}

.fake-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .9;
}

.fake-image::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  left: 12%;
  bottom: -75px;
  transform: rotate(45deg);
  background: rgba(255,255,255,.22);
}

.fake-image::after {
  content: "هرم مصر";
  position: absolute;
  right: 14px;
  bottom: 12px;
  color: rgba(255,255,255,.75);
  font-size: 11px;
  font-weight: 800;
}

.fake-image.gold { background: linear-gradient(135deg, #f8e5b2, #cd9c40 48%, #3b2a17); }
.fake-image.blue { background: linear-gradient(135deg, #b6d5ec, #527eaa 48%, #172c4a); }
.fake-image.plum { background: linear-gradient(135deg, #e0c4d3, #915b7d 48%, #29203b); }

.news-card-body { padding: 17px 18px 18px; }
.news-card h3 { margin: 7px 0 0; font-size: 18px; line-height: 1.55; }
.news-card h3 a:hover { color: var(--hm-teal-dark); }

.read-more {
  display: inline-flex;
  margin-top: 12px;
  color: var(--hm-teal-dark);
  font-size: 12px;
  font-weight: 800;
}

.sidebar-card {
  padding: 20px;
  background: var(--hm-white);
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius);
  box-shadow: var(--hm-shadow);
}

.sidebar-card + .sidebar-card { margin-top: 18px; }
.sidebar-title { margin: 0 0 16px; font-size: 19px; }

.popular-list { counter-reset: popular; }
.popular-list li { counter-increment: popular; display: grid; grid-template-columns: 35px 1fr; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--hm-line); }
.popular-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.popular-list li::before { content: counter(popular, decimal-leading-zero); color: var(--hm-gold); font-size: 18px; font-weight: 900; line-height: 1.3; }
.popular-list a { font-size: 14px; font-weight: 700; line-height: 1.6; }
.popular-list a:hover { color: var(--hm-teal-dark); }

.newsletter {
  position: relative;
  overflow: hidden;
  color: var(--hm-white);
  background: var(--hm-navy);
}

.newsletter::after {
  content: "هـ";
  position: absolute;
  left: -8px;
  bottom: -52px;
  color: rgba(255,255,255,.06);
  font-size: 150px;
  font-weight: 900;
}

.newsletter .sidebar-title, .newsletter p, .newsletter form { position: relative; z-index: 1; }
.newsletter p { margin: 0 0 15px; color: rgba(255,255,255,.72); font-size: 13px; }
.newsletter input { width: 100%; padding: 11px 12px; border: 0; border-radius: 8px; background: rgba(255,255,255,.13); color: #fff; }
.newsletter input::placeholder { color: rgba(255,255,255,.55); }
.newsletter button { width: 100%; margin-top: 8px; padding: 10px; color: var(--hm-navy); background: var(--hm-gold); border: 0; border-radius: 8px; font-weight: 800; }
.newsletter button:hover { background: #f0c969; }

.category-section { padding-bottom: 10px; }
.category-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.category-tile { position: relative; min-height: 135px; display: flex; align-items: flex-end; padding: 18px; overflow: hidden; color: #fff; background: var(--hm-navy); border-radius: 13px; }
.category-tile:nth-child(2) { background: var(--hm-teal); }
.category-tile:nth-child(3) { background: #96733e; }
.category-tile:nth-child(4) { background: #536b82; }
.category-tile::before { content: ""; position: absolute; width: 100px; height: 100px; top: -30px; left: -12px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; box-shadow: 0 0 0 18px rgba(255,255,255,.05), 0 0 0 36px rgba(255,255,255,.04); }
.category-tile span { position: relative; z-index: 1; font-size: 18px; font-weight: 800; }
.category-tile small { position: absolute; top: 17px; right: 18px; color: rgba(255,255,255,.7); font-size: 11px; }

.category-block {
  margin-top: 38px;
  padding-top: 4px;
  border-top: 1px solid var(--hm-line);
}

.category-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 16px;
  padding-top: 17px;
}

.category-block-title {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin: 0;
  color: var(--hm-navy);
  font-size: 24px;
}

.category-block-title::before {
  content: "";
  width: 11px;
  height: 30px;
  display: block;
  background: var(--hm-teal);
  border-radius: 3px 9px 9px 3px;
}

.category-block:nth-of-type(2n) .category-block-title::before { background: var(--hm-gold); }
.category-block:nth-of-type(3n) .category-block-title::before { background: #7a6bc5; }

.category-block-link {
  color: var(--hm-teal-dark);
  font-size: 13px;
  font-weight: 800;
}

.category-block-link:hover { color: var(--hm-gold); }

.category-block-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.category-featured-card {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--hm-white);
  border: 1px solid var(--hm-line);
  border-radius: 14px;
}

.category-featured-card .fake-image { height: 205px; }
.category-featured-card .news-card-body { padding: 20px; }
.category-featured-card h3 { font-size: 22px; }
.category-small-card { display: flex; gap: 12px; padding: 12px; background: var(--hm-white); border: 1px solid var(--hm-line); border-radius: 12px; }
.category-small-card .fake-image { flex: 0 0 92px; height: 82px; border-radius: 8px; }
.category-small-card .news-card-body { padding: 0; }
.category-small-card h3 { margin-top: 4px; font-size: 15px; line-height: 1.55; }
.category-small-card .story-meta { margin-top: 6px; font-size: 11px; }

.section-empty-note {
  padding: 20px;
  color: var(--hm-muted);
  background: var(--hm-white);
  border: 1px dashed var(--hm-line);
  border-radius: 12px;
}

.ad-slot {
  width: min(100% - 40px, 970px);
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px auto;
  padding: 8px;
  overflow: hidden;
  color: var(--hm-muted);
  background: #fff;
  border: 1px dashed var(--hm-line);
  border-radius: 10px;
  text-align: center;
}

.ad-slot:empty { display: none; }
.ad-slot-home { margin-top: 28px; margin-bottom: 4px; }
.ad-slot-single { width: 100%; margin: 20px 0; }

.article-shell {
  max-width: 850px;
  margin-inline: auto;
}

.article-header {
  padding: 34px 34px 27px;
  background: var(--hm-white);
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius);
  box-shadow: var(--hm-shadow);
}

.article-category-block {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  padding: 8px 13px 8px 16px;
  color: var(--hm-white);
  background: var(--hm-teal);
  border-radius: 5px 18px 18px 5px;
  font-size: 13px;
  font-weight: 800;
}

.article-category-block::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hm-gold);
}

.article-title {
  max-width: 760px;
  margin: 0;
  color: var(--hm-navy);
  font-size: clamp(30px, 4.8vw, 55px);
  line-height: 1.35;
  letter-spacing: -1.3px;
}

.article-deck {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--hm-muted);
  font-size: 18px;
  line-height: 1.9;
}

.article-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--hm-line);
}

.article-meta-row .story-meta { margin-top: 0; }
.article-share { display: flex; align-items: center; gap: 7px; }
.article-share a { width: 31px; height: 31px; display: grid; place-items: center; color: var(--hm-teal-dark); background: #eef8f7; border-radius: 50%; font-size: 12px; font-weight: 800; }
.article-share a:hover { color: #fff; background: var(--hm-teal); }

.article-cover {
  min-height: 300px;
  margin-top: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #d9eeee, #92c6c4 44%, #203d5d);
  border-radius: var(--hm-radius);
}

.article-cover img { width: 100%; height: 100%; max-height: 520px; object-fit: cover; }
.article-content-card { margin-top: 20px; padding: 32px 36px; background: var(--hm-white); border: 1px solid var(--hm-line); border-radius: var(--hm-radius); }
.article-content-card .entry-content { max-width: none; }
.article-content-card .entry-content > p:first-child::first-letter { color: var(--hm-teal); float: right; margin: 3px 9px 0 0; font-size: 52px; font-weight: 900; line-height: .8; }

.content-page { padding: 36px 0 70px; }
.content-page .entry-header { margin-bottom: 28px; }
.entry-title { margin: 0; color: var(--hm-navy); font-size: clamp(28px, 4vw, 44px); line-height: 1.35; }
.entry-content { max-width: 780px; font-size: 18px; }
.entry-content h2, .entry-content h3 { margin-top: 30px; color: var(--hm-navy); }
.entry-content a { color: var(--hm-teal-dark); text-decoration: underline; }

/* Single article layout — a quiet, boxed reading view inspired by modern news sites. */
.article-page,
.article-page .container { position: relative; }
.article-page { padding-top: 18px; background: #fff; }
.article-layout { display: block; }
.article-layout .article-shell { max-width: 820px; margin-inline: auto; }
.article-layout .sidebar { display: none; }
.article-layout-with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
}
.article-layout-with-sidebar .article-shell { max-width: none; }
.article-layout-with-sidebar .sidebar { display: block; }

.article-breadcrumbs {
  max-width: 820px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 auto 14px;
  color: var(--hm-muted);
  font-size: 12px;
}
.article-breadcrumbs a:hover { color: var(--hm-teal-dark); }
.article-breadcrumb-separator { color: #aab2bb; font-size: 18px; line-height: 1; }
.article-breadcrumb-current { overflow: hidden; max-width: 58%; text-overflow: ellipsis; white-space: nowrap; }

.article-header {
  margin-bottom: 0 !important;
  padding: 34px 34px 24px;
  text-align: center;
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 2px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .05);
}
.article-title {
  max-width: 760px;
  margin: 0 auto;
  color: #222;
  font-size: clamp(30px, 4.2vw, 44px);
  line-height: 1.35;
  letter-spacing: -.6px;
}
.article-meta-row {
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 22px;
  padding-top: 0;
  border-top: 0;
  color: var(--hm-muted);
  font-size: 12px;
}
.article-byline,
.article-taxonomy {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.article-byline-avatar {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50%;
  object-fit: cover;
}
.article-byline span { color: #333; font-weight: 600; }
.article-meta-label { color: var(--hm-muted); }
.article-dates {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--hm-muted);
}
.article-date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.article-meta-icon { color: var(--hm-teal-dark); font-size: 14px; }
.article-term {
  padding: 3px 10px;
  color: #fff !important;
  background: #003366;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
}
.article-term:hover { background: var(--hm-teal-dark); }

.article-page .ad-slot-single {
  width: 100%;
  min-height: 0;
  margin: 22px 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.article-content-card {
  margin-top: 22px;
  padding: 16px;
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 2px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .05);
}
.article-cover {
  min-height: 0;
  margin: 0 0 16px;
  background: transparent;
  border-radius: 8px;
}
.article-cover img {
  width: 100%;
  height: auto;
  max-height: none;
  border-radius: 8px;
  object-fit: cover;
}
.article-content-card .entry-content {
  max-width: 100%;
  color: #374151;
  font-size: 17px;
  line-height: 1.9;
}
.article-content-card .entry-content > p:first-child::first-letter {
  float: none;
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}
.article-content-card .entry-content p { margin: 0 0 1.25rem; }
.article-content-card .entry-content > p:first-child {
  color: #273444;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.85;
}
.article-content-card .entry-content h2,
.article-content-card .entry-content h3 {
  position: relative;
  margin: 2rem 0 1.2rem;
  padding: .7rem 1rem;
  color: #222;
  background: #fafafa;
  border-right: 3px solid var(--hm-teal);
  border-radius: 4px;
  line-height: 1.4;
}
.article-content-card .entry-content h2 { font-size: 24px; }
.article-content-card .entry-content h3 { font-size: 21px; }
.article-content-card .entry-content blockquote {
  margin: 2rem 0;
  padding: 1.2rem 1.4rem;
  background: #f7f8fa;
  border-right: 3px solid var(--hm-teal);
  border-radius: 8px;
}
.article-content-card .entry-content table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
}
.article-content-card .entry-content th,
.article-content-card .entry-content td {
  padding: 10px;
  border: 1px solid var(--hm-line);
}
.article-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #eef0f3;
}
.article-share-label {
  margin-left: 5px;
  color: var(--hm-muted);
  font-size: 12px;
}
.article-share a,
.article-share button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  color: #fff;
  background: #003366;
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.article-share a:nth-of-type(2) { background: #25d366; }
.article-share a:nth-of-type(3) { background: #229ed9; }
.article-share a:nth-of-type(4) { background: #111; }
.article-share button { font-family: inherit; cursor: pointer; background: #68717c; }
.article-share a:hover,
.article-share button:hover { opacity: .82; }
.share-icon { font-size: 13px; line-height: 1; }
.share-text { font-size: 11px; }
.share-copy-status { color: var(--hm-teal-dark); font-size: 12px; font-weight: 700; }

.table-scroll {
  max-width: 100%;
  margin: 1.5rem 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}
.table-scroll table { margin: 0 !important; min-width: 560px; }

.author-box {
  margin: 32px 0 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--hm-line);
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .02);
}
.author-box-inner {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
}
.author-box-avatar-wrap { flex: 0 0 auto; }
.author-box-avatar {
  width: 64px !important;
  height: 64px !important;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}
.author-box-content { flex: 1; min-width: 0; }
.author-box-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}
.author-box-label {
  color: var(--hm-muted);
  font-size: 12px;
}
.author-box-name {
  margin: 0;
  color: #222;
  font-size: 19px;
}
.author-box-name a:hover { color: var(--hm-teal-dark); }
.author-box-description {
  margin: 8px 0 0;
  color: var(--hm-muted);
  font-size: 15px;
  line-height: 1.6;
}
.author-box-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--hm-teal-dark);
  font-size: 12px;
  font-weight: 700;
}

.related-posts {
  margin-top: 38px;
}
.related-posts .section-heading {
  margin-top: 0;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.related-card {
  min-width: 0;
}
.related-card .fake-image { height: 130px; }
.related-card .news-card-body { padding: 13px; }
.related-card h3 { font-size: 15px; line-height: 1.55; }
.related-card .story-meta { margin-top: 7px; font-size: 11px; }
.related-card .read-more { display: none; }

.post-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.post-nav-item a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--hm-line);
  border-radius: 10px;
}
.post-nav-item a:hover { border-color: var(--hm-teal); }
.post-nav-label { color: var(--hm-muted); font-size: 12px; }
.post-nav-item strong { color: var(--hm-navy); font-size: 14px; line-height: 1.55; }
.post-nav-next { text-align: left; }

.site-footer { margin-top: 64px; color: rgba(255,255,255,.7); background: var(--hm-navy); }
.footer-main { padding: 48px 0 35px; display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 34px; }
.footer-brand .brand-name { color: var(--hm-white); }
.footer-brand .brand-tagline { color: #7ce3dd; }
.footer-description { max-width: 280px; margin: 18px 0 0; font-size: 13px; line-height: 1.9; }
.footer-title { margin: 0 0 15px; color: var(--hm-white); font-size: 16px; }
.footer-menu li + li { margin-top: 7px; }
.footer-menu a { font-size: 13px; }
.footer-menu a:hover { color: var(--hm-gold); }
.footer-bottom { padding: 17px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 20px; }

.scroll-top { position: fixed; right: 20px; bottom: 20px; z-index: 20; width: 42px; height: 42px; display: none; color: #fff; background: var(--hm-teal); border: 0; border-radius: 50%; box-shadow: var(--hm-shadow); }
.scroll-top.is-visible { display: grid; place-items: center; }

.pagination { display: flex; gap: 8px; margin-top: 28px; }
.pagination a, .pagination span { min-width: 38px; padding: 7px 12px; text-align: center; background: #fff; border: 1px solid var(--hm-line); border-radius: 7px; }
.pagination .current, .pagination a:hover { color: #fff; background: var(--hm-teal); border-color: var(--hm-teal); }

.search-form { display: flex; max-width: 620px; gap: 8px; }
.search-form label { flex: 1; }
.search-field { width: 100%; padding: 12px 14px; border: 1px solid var(--hm-line); border-radius: 8px; }
.search-submit { padding: 0 20px; color: #fff; background: var(--hm-teal); border: 0; border-radius: 8px; font-weight: 800; }

@media (max-width: 900px) {
  .brand-inner { min-height: 94px; }
  .primary-menu a { padding-inline: 8px; font-size: 13px; }
  .hero-grid, .news-layout { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-side { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: repeat(2, 1fr); }
  .category-block-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-featured-card { grid-row: auto; grid-column: 1 / -1; }
}

@media (max-width: 650px) {
  .container { width: min(100% - 28px, 1180px); }
  .topbar-inner { justify-content: center; }
  .topbar-links { display: none; }
  .brand-inner { min-height: 86px; gap: 10px; }
  .brand-mark { min-width: 0; }
  .brand-symbol { width: 43px; height: 43px; font-size: 21px; }
  .brand-name { font-size: 22px; }
  .brand-tagline { font-size: 10px; }
  .date-card, .weather-chip { display: none; }
  .nav-inner { min-height: 56px; }
  .menu-toggle { display: grid; }
  .primary-menu { position: absolute; top: 188px; right: 14px; left: 14px; z-index: 10; display: none; flex-direction: column; padding: 8px; background: #fff; border: 1px solid var(--hm-line); border-radius: 10px; box-shadow: var(--hm-shadow); }
  .primary-menu.is-open { display: flex; }
  .primary-menu a { padding: 10px 12px; border-bottom: 0; border-radius: 6px; }
  .primary-menu a:hover { background: var(--hm-paper); }
  .breaking-label { padding-inline: 11px; font-size: 11px; }
  .breaking-track { font-size: 12px; }
  .hero-story { min-height: 370px; padding: 25px 22px; }
  .hero-side, .news-grid, .category-strip { grid-template-columns: 1fr; }
  .mini-story { min-height: 145px; }
  .category-block-grid { grid-template-columns: 1fr; }
  .category-featured-card { grid-column: auto; }
  .category-small-card { min-height: 102px; }
  .article-header { padding: 24px 20px 20px; }
  .article-content-card { padding: 23px 20px; }
  .article-meta-row { align-items: flex-start; flex-direction: column; }
  .article-breadcrumb-current { max-width: 48%; }
  .article-content-card .entry-content > p:first-child { font-size: 18px; }
  .related-grid { grid-template-columns: 1fr; }
  .post-navigation { grid-template-columns: 1fr; }
  .post-nav-next { text-align: right; }
  .share-text { display: none; }
  .article-share a,
  .article-share button { width: 32px; justify-content: center; padding-inline: 7px; }
  .author-box-inner { flex-direction: column; align-items: center; padding: 20px; text-align: center; }
  .author-box-heading { justify-content: center; }
  .author-box-description { font-size: 14px; }
  .section-heading { margin-top: 32px; }
  .section-heading h2 { font-size: 21px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom-inner { flex-direction: column; gap: 5px; }
  .search-form { flex-direction: column; }
  .search-submit { padding: 11px 20px; }
}

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