/*
Theme Name: Policy Hub GP Child
Theme URI: https://example.com/
Description: GeneratePress child theme for a government benefits and policy guide site.
Author: OpenAI Codex
Author URI: https://openai.com/
Template: generatepress
Version: 1.5.0
Text Domain: policy-hub-gp-child
*/

:root {
  --ph-bg: #f3f6fa;
  --ph-card: #ffffff;
  --ph-text: #182433;
  --ph-muted: #627182;
  --ph-line: #dbe4ef;
  --ph-primary: #1353b7;
  --ph-primary-dark: #0f3e85;
  --ph-accent: #0c7a66;
  --ph-surface: #eef4fb;
  --ph-warm: #fff5df;
  --ph-warm-text: #7d5300;
  --ph-shadow: 0 16px 38px rgba(17, 36, 61, 0.07);
  --ph-radius-lg: 24px;
  --ph-radius-md: 18px;
  --ph-radius-sm: 12px;
}

body {
  background: linear-gradient(180deg, #f8fafc 0%, var(--ph-bg) 100%);
  color: var(--ph-text);
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, #0f3e85 0%, #1353b7 55%, #0c7a66 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 14%, rgba(19, 83, 183, 0.08), transparent 22%),
    radial-gradient(circle at 88% 18%, rgba(12, 122, 102, 0.07), transparent 18%),
    linear-gradient(rgba(255,255,255,0.42) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.42) 1px, transparent 1px);
  background-size: auto, auto, 36px 36px, 36px 36px;
  opacity: 0.5;
  z-index: -1;
}

.site.grid-container {
  max-width: 1200px;
}

.ph-front-page .site.grid-container {
  max-width: none;
  width: 100%;
}

.ph-front-page #page {
  width: 100%;
}

.ph-front-page .site-content {
  padding-left: 0;
  padding-right: 0;
}

.ph-front-page .content-area,
.ph-front-page .site-main {
  width: 100%;
  max-width: none;
  margin: 0;
}

.inside-header {
  padding-top: 20px;
  padding-bottom: 20px;
}

.site-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e8eef5;
}

.main-title a,
.site-description {
  letter-spacing: -0.02em;
}

.main-title {
  margin-bottom: 4px;
}

.main-title a {
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 800;
  color: #16263b;
}

.site-description {
  font-size: 18px;
  color: var(--ph-muted);
}

.main-navigation {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid #e7edf4;
  border-bottom: 1px solid #e7edf4;
  box-shadow: 0 8px 18px rgba(17, 36, 61, 0.04);
}

.main-navigation .inside-navigation {
  padding-top: 10px;
  padding-bottom: 10px;
}

.main-navigation .main-nav {
  overflow-x: auto;
}

.main-navigation .main-nav ul {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
}

.main-navigation .main-nav ul li {
  flex: 0 0 auto;
}

.main-navigation .main-nav ul li > a {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  color: #22324a;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.main-navigation .main-nav ul li > a:hover,
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current-menu-ancestor > a {
  background: #eff5ff;
  color: var(--ph-primary-dark);
  box-shadow: inset 0 0 0 1px #d7e6ff;
}

.menu-toggle,
.menu-toggle:hover {
  border-radius: 14px;
  font-weight: 700;
}

.main-navigation .menu-bar-item > a,
.main-navigation .menu-bar-item.sfHover > a {
  border-radius: 999px;
  font-weight: 700;
}

.ph-shell {
  display: grid;
  gap: 28px;
  width: min(100%, 1540px);
  margin: 0 auto;
  padding: 0 28px 36px;
}

.ph-header-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.ph-header-band__item {
  position: relative;
  padding: 18px 20px 18px 54px;
  border: 1px solid rgba(19, 83, 183, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(17, 36, 61, 0.05);
  backdrop-filter: blur(8px);
}

.ph-header-band__item::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1353b7 0%, #0c7a66 100%);
  box-shadow: 0 0 0 6px rgba(19, 83, 183, 0.08);
}

.ph-header-band__item strong,
.ph-header-band__item span {
  display: block;
}

.ph-header-band__item strong {
  margin-bottom: 4px;
  font-size: 15px;
}

.ph-header-band__item span {
  color: var(--ph-muted);
  line-height: 1.6;
  font-size: 14px;
}

.ph-sync-strip {
  padding: 26px 28px;
  border: 1px solid rgba(19, 83, 183, 0.12);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(19, 83, 183, 0.08), transparent 20%),
    linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(247,250,255,0.96) 100%);
  box-shadow: 0 14px 30px rgba(17, 36, 61, 0.05);
}

.ph-sync-strip__eyebrow {
  font-size: 13px;
  font-weight: 800;
  color: var(--ph-primary);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.ph-sync-strip h2 {
  margin: 8px 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.18;
}

.ph-sync-strip p {
  margin: 0;
  color: var(--ph-muted);
}

.ph-sync-strip__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
}

.ph-sync-strip__result {
  color: #27415e;
  font-size: 14px;
  line-height: 1.6;
}

.ph-discovery {
  padding: 30px;
  border: 1px solid rgba(19, 83, 183, 0.1);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(247,250,255,0.94) 100%);
  box-shadow: 0 18px 36px rgba(17, 36, 61, 0.06);
}

.ph-discovery__intro {
  margin-bottom: 20px;
}

.ph-discovery__intro h2 {
  margin: 10px 0 8px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
}

.ph-discovery__intro p {
  margin: 0;
  color: var(--ph-muted);
  font-size: 17px;
}

.ph-tag--soft {
  background: #edf5ff;
}

.ph-discovery__panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.ph-discovery__groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ph-discovery__group,
.ph-discovery__group:visited {
  display: block;
  padding: 22px;
  border-radius: 22px;
  color: #fff;
  text-decoration: none;
  min-height: 170px;
  box-shadow: 0 18px 34px rgba(17, 36, 61, 0.08);
}

.ph-discovery__group strong,
.ph-discovery__group span {
  display: block;
}

.ph-discovery__group strong {
  margin-bottom: 10px;
  font-size: 20px;
}

.ph-discovery__group span {
  color: rgba(255,255,255,0.86);
  line-height: 1.7;
}

.ph-discovery__group--blue {
  background: linear-gradient(145deg, #235ed1 0%, #1d77d2 100%);
}

.ph-discovery__group--mint {
  background: linear-gradient(145deg, #167f75 0%, #18a382 100%);
}

.ph-discovery__group--navy {
  background: linear-gradient(145deg, #193d74 0%, #28538d 100%);
}

.ph-searchbox {
  height: 100%;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid #dfe7f3;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6), 0 14px 28px rgba(17,36,61,0.04);
}

.ph-searchbox__label {
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 800;
  color: #20314a;
}

.ph-searchbox__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ph-searchbox__chips a,
.ph-searchbox__chips a:visited {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f4f8fd;
  border: 1px solid #deebf8;
  color: #214062;
  text-decoration: none;
  font-weight: 700;
}

.ph-hero {
  position: relative;
  overflow: hidden;
  padding: 46px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 28%),
    linear-gradient(145deg, #0f2440 0%, #1c4575 58%, #0d6670 100%);
  color: #fff;
  box-shadow: var(--ph-shadow);
}

.ph-front-page .ph-hero {
  min-height: 640px;
}

.ph-hero::before {
  content: "";
  position: absolute;
  inset: auto auto -120px -90px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 70%);
}

.ph-hero::after {
  content: "";
  position: absolute;
  top: -48px;
  right: -48px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.ph-hero__eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 700;
}

.ph-hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr);
  gap: 34px;
  align-items: center;
}

.ph-hero__content {
  max-width: 780px;
}

.ph-hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 5.4vw, 64px);
  line-height: 1.08;
  color: #fff;
}

.ph-hero p {
  max-width: 860px;
  margin: 0;
  font-size: 20px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
}

.ph-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.ph-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.ph-stat {
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.ph-stat strong,
.ph-stat span {
  display: block;
}

.ph-stat strong {
  margin-bottom: 6px;
  font-size: 16px;
}

.ph-stat span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.55;
}

.ph-hero__visual {
  position: relative;
  min-height: 520px;
}

.ph-hero__image {
  display: block;
  width: 100%;
  max-width: 620px;
  margin: 18px auto 0;
  filter: drop-shadow(0 30px 50px rgba(5, 16, 32, 0.18));
}

.ph-hero__visual-card {
  position: absolute;
  z-index: 3;
  padding: 18px 18px 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 36px rgba(5, 16, 32, 0.16);
}

.ph-hero__visual-card--top {
  top: 0;
  right: 14px;
  width: 260px;
}

.ph-hero__visual-card--bottom {
  left: 0;
  bottom: 12px;
  width: 280px;
  display: grid;
  gap: 12px;
}

.ph-hero__visual-card strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 17px;
}

.ph-hero__visual-card p,
.ph-mini-metric span {
  margin: 0;
  color: rgba(255,255,255,0.82);
  line-height: 1.65;
  font-size: 14px;
}

.ph-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.ph-mini-metric strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-size: 15px;
}

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

.ph-spotlight-card {
  overflow: hidden;
  border: 1px solid var(--ph-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(17, 36, 61, 0.06);
}

.ph-spotlight-card__media {
  position: relative;
  height: 168px;
  overflow: hidden;
}

.ph-spotlight-card__media::before,
.ph-spotlight-card__media::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.ph-spotlight-card__media::before {
  width: 180px;
  height: 180px;
  top: -54px;
  right: -30px;
  background: rgba(255,255,255,0.18);
}

.ph-spotlight-card__media::after {
  width: 98px;
  height: 98px;
  left: 22px;
  bottom: -20px;
  background: rgba(255,255,255,0.14);
}

.ph-spotlight-card__icon {
  position: absolute;
  left: 24px;
  top: 22px;
  width: 62px;
  height: 62px;
  border-radius: 20px;
  background: rgba(255,255,255,0.2);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}

.ph-spotlight-card__body {
  padding: 22px;
}

.ph-spotlight-card__body h3 {
  margin: 10px 0 8px;
  font-size: 24px;
  line-height: 1.3;
}

.ph-inline-action,
.ph-inline-action:visited {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  color: var(--ph-primary-dark);
  text-decoration: none;
  font-weight: 800;
}

.ph-inline-action::after {
  content: "→";
  margin-left: 6px;
}

.ph-tone-fund-guide .ph-spotlight-card__media {
  background: linear-gradient(145deg, #1f62d1 0%, #3480dd 100%);
}

.ph-tone-tax-refund .ph-spotlight-card__media {
  background: linear-gradient(145deg, #15796c 0%, #1ca086 100%);
}

.ph-tone-welfare-life .ph-spotlight-card__media {
  background: linear-gradient(145deg, #5a52d6 0%, #7a72ea 100%);
}

.ph-tone-housing-finance .ph-spotlight-card__media {
  background: linear-gradient(145deg, #264c88 0%, #2e699c 100%);
}

.ph-tone-small-business .ph-spotlight-card__media {
  background: linear-gradient(145deg, #6d4bba 0%, #8b68d8 100%);
}

.ph-tone-schedule .ph-spotlight-card__media,
.ph-tone-updates .ph-spotlight-card__media {
  background: linear-gradient(145deg, #e68b1e 0%, #efb13b 100%);
}

.ph-issue-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ph-issue-card {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--ph-line);
  background: #fff;
  box-shadow: 0 14px 28px rgba(17,36,61,0.05);
}

.ph-issue-card__thumb {
  height: 132px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.28), transparent 28%),
    linear-gradient(145deg, #214f96 0%, #1e7d9f 100%);
}

.ph-issue-card__body {
  padding: 18px;
}

.ph-issue-card__body h3 {
  margin: 8px 0 0;
  font-size: 19px;
  line-height: 1.4;
}

.ph-button,
.ph-button:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.ph-button:hover {
  transform: translateY(-1px);
}

.ph-button--solid,
.ph-button--solid:visited {
  background: #fff;
  color: var(--ph-primary-dark);
  box-shadow: 0 12px 28px rgba(6, 18, 42, 0.18);
}

.ph-button--solid:hover {
  box-shadow: 0 16px 32px rgba(6, 18, 42, 0.22);
}

.ph-button--ghost,
.ph-button--ghost:visited {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.ph-button--ghost:hover {
  background: rgba(255,255,255,0.14);
}

.ph-button--navy,
.ph-button--navy:visited {
  background: linear-gradient(145deg, #173b6c 0%, #1353b7 100%);
  color: #fff;
  box-shadow: 0 14px 28px rgba(17, 36, 61, 0.16);
}

.ph-button.is-loading {
  opacity: 0.72;
  pointer-events: none;
}

.ph-section {
  padding: 30px;
  border: 1px solid var(--ph-line);
  border-radius: var(--ph-radius-lg);
  background: var(--ph-card);
  box-shadow: var(--ph-shadow);
}

.ph-front-page .ph-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ph-front-page .ph-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ph-section--soft {
  background: linear-gradient(180deg, #f8fbff 0%, #f1f6fb 100%);
}

.ph-section__header {
  display: flex;
  gap: 16px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 18px;
}

.ph-section__header h2,
.ph-section__header p {
  margin: 0;
}

.ph-section__header h2 {
  font-size: 30px;
  line-height: 1.2;
}

.ph-section__header p {
  color: var(--ph-muted);
}

.ph-grid {
  display: grid;
  gap: 18px;
}

.ph-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ph-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ph-post-card,
.ph-category-card,
.ph-mini-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--ph-line);
  border-radius: var(--ph-radius-md);
  background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
  box-shadow: 0 10px 24px rgba(17, 36, 61, 0.04);
}

.ph-post-card {
  border-top: 4px solid #d7e6ff;
}

.ph-post-card:nth-child(1) {
  background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
}

.ph-post-card:nth-child(2) {
  background: linear-gradient(180deg, #ffffff 0%, #f6fcfb 100%);
}

.ph-post-card:nth-child(3) {
  background: linear-gradient(180deg, #ffffff 0%, #f8f8ff 100%);
}

.ph-category-card {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.ph-post-card__meta,
.ph-category-card__meta,
.ph-mini-card__meta {
  font-size: 13px;
  color: var(--ph-muted);
}

.ph-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--ph-primary);
  font-size: 12px;
  font-weight: 700;
}

.ph-post-card h3,
.ph-category-card h3,
.ph-mini-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.35;
}

.ph-post-card p,
.ph-category-card p,
.ph-mini-card p {
  margin: 0;
  color: var(--ph-muted);
  line-height: 1.72;
}

.ph-link,
.ph-link:visited {
  color: var(--ph-primary-dark);
  font-weight: 700;
  text-decoration: none;
}

.ph-link:hover {
  color: var(--ph-primary);
}

.ph-post-card:hover,
.ph-category-card:hover,
.ph-mini-card:hover,
.ph-topic-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(17, 36, 61, 0.08);
}

.ph-list {
  display: grid;
  gap: 14px;
}

.ph-list-item {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: var(--ph-radius-md);
  background: linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
  border: 1px solid var(--ph-line);
}

.ph-list-item__top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: space-between;
}

.ph-deadline {
  color: #b45309;
  background: var(--ph-warm);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.ph-process {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ph-process__item {
  padding: 20px;
  border: 1px solid var(--ph-line);
  border-radius: var(--ph-radius-md);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(17, 36, 61, 0.05);
}

.ph-process__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--ph-primary);
  color: #fff;
  font-weight: 800;
}

.ph-process__item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.ph-process__item p {
  margin: 0;
  color: var(--ph-muted);
}

.ph-topic-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ph-topic-card,
.ph-topic-card:visited {
  display: block;
  padding: 20px;
  border-radius: var(--ph-radius-md);
  border: 1px solid var(--ph-line);
  background: linear-gradient(180deg, #fff 0%, #f7fbff 100%);
  color: var(--ph-text);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ph-topic-card strong,
.ph-topic-card span {
  display: block;
}

.ph-topic-card strong {
  margin-bottom: 8px;
  font-size: 18px;
  color: var(--ph-primary-dark);
}

.ph-topic-card span {
  color: var(--ph-muted);
  line-height: 1.65;
}

.ph-trust {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ph-trust__item {
  padding: 18px;
  border-radius: var(--ph-radius-md);
  background: #f7fafc;
  border: 1px solid var(--ph-line);
  box-shadow: 0 12px 28px rgba(17, 36, 61, 0.04);
}

.ph-trust__item strong {
  display: block;
  margin-bottom: 8px;
}

.ph-note {
  padding: 16px 18px;
  border-left: 4px solid var(--ph-accent);
  border-radius: 0 var(--ph-radius-sm) var(--ph-radius-sm) 0;
  background: #edf9f5;
  color: #115847;
}

.ph-category-intro {
  margin-bottom: 24px;
  padding: 28px;
  border-radius: var(--ph-radius-lg);
  background: linear-gradient(180deg, #f8fbff 0%, #edf4ff 100%);
  border: 1px solid #d7e7ff;
}

.ph-category-intro h1 {
  margin-bottom: 10px;
}

.ph-category-intro p:last-child {
  margin-bottom: 0;
}

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

.ph-archive-card {
  padding: 24px;
  border-radius: var(--ph-radius-lg);
  background: #fff;
  border: 1px solid var(--ph-line);
  box-shadow: var(--ph-shadow);
}

.ph-archive-card h2,
.ph-archive-card p {
  margin-top: 0;
}

.ph-archive-card .entry-meta {
  margin-bottom: 12px;
  color: var(--ph-muted);
}

.inside-article,
.comments-area,
.paging-navigation,
.post-navigation {
  border-radius: var(--ph-radius-lg);
  background: #fff;
  box-shadow: var(--ph-shadow);
}

.inside-article {
  padding: 36px;
}

.entry-header .entry-title {
  line-height: 1.22;
}

.entry-header {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ph-line);
}

.entry-content h2,
.entry-content h3 {
  letter-spacing: -0.02em;
}

.entry-content h2 {
  margin-top: 1.8em;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ph-line);
}

.entry-content .wp-block-group.is-style-ph-note,
.entry-content .ph-inline-note {
  margin: 24px 0;
  padding: 18px 20px;
  border-radius: var(--ph-radius-md);
  background: #f8fbff;
  border: 1px solid #d7e7ff;
}

.entry-content .wp-block-table table {
  border-color: var(--ph-line);
}

.entry-content .wp-block-table th {
  background: #eff4ff;
}

.entry-content p,
.entry-content li {
  line-height: 1.85;
}

.entry-content h2 {
  font-size: 30px;
}

.entry-content h3 {
  font-size: 22px;
}

.entry-meta,
.entry-footer {
  color: var(--ph-muted);
}

.site-footer {
  margin-top: 40px;
  background: linear-gradient(180deg, #16304f 0%, #12263e 100%);
}

.footer-widgets,
.site-info {
  color: #d8dfeb;
}

@media (max-width: 1024px) {
  .ph-discovery__panel,
  .ph-discovery__groups,
  .ph-spotlight-grid,
  .ph-issue-grid,
  .ph-grid--4,
  .ph-trust,
  .ph-topic-grid,
  .ph-hero__stats,
  .ph-header-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ph-grid--3,
  .ph-archive-grid,
  .ph-process,
  .ph-hero__grid {
    grid-template-columns: 1fr;
  }

  .ph-hero__visual {
    min-height: auto;
    max-width: 720px;
    margin: 0 auto;
  }

  .ph-hero__visual-card--top {
    right: 10px;
  }

  .ph-hero__visual-card--bottom {
    left: 10px;
  }

  .ph-shell {
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 768px) {
  .inside-header {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .site-description {
    font-size: 16px;
  }

  .main-navigation .inside-navigation {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .ph-discovery,
  .ph-hero,
  .ph-section,
  .inside-article {
    padding: 24px;
  }

  .ph-section__header {
    display: grid;
  }

  .ph-discovery__intro h2 {
    font-size: 30px;
  }

  .ph-discovery__intro p {
    font-size: 16px;
  }

  .ph-discovery__group {
    min-height: auto;
  }

  .ph-grid--4,
  .ph-trust,
  .ph-topic-grid,
  .ph-hero__stats,
  .ph-header-band {
    grid-template-columns: 1fr;
  }

  .ph-hero__grid,
  .ph-process {
    grid-template-columns: 1fr;
  }

  .ph-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .ph-post-card h3,
  .ph-category-card h3,
  .ph-mini-card h3 {
    font-size: 19px;
  }

  .ph-hero h1 {
    font-size: clamp(32px, 12vw, 44px);
  }

  .ph-hero p {
    font-size: 18px;
  }

  .ph-hero__visual {
    min-height: auto;
  }

  .ph-hero__image {
    max-width: 100%;
    margin-top: 10px;
  }

  .ph-hero__visual-card {
    position: static;
    width: 100%;
    margin-top: 14px;
  }

  .ph-spotlight-card__body h3 {
    font-size: 21px;
  }

  .ph-issue-card__body h3 {
    font-size: 18px;
  }

  .entry-content h2 {
    font-size: 26px;
  }

  .entry-content h3 {
    font-size: 20px;
  }
}
