/*
Theme Name: Game Himitsukichi Community
Theme URI: https://game-himitsukichi.jp/
Author: Project HARMONY
Author URI: https://game-himitsukichi.jp/
Description: ゲーム秘密基地の公開サイト・攻略記事・採用予定ヘッダーを土台にした、初心者歓迎のユーザー参加型攻略ブログ用ブロックテーマ。
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 7.4
Version: 1.5.14
Text Domain: game-himitsukichi-community
*/

:root {
  --gh-ink: #10243d;
  --gh-navy: #081d31;
  --gh-blue: #1679a7;
  --gh-cyan: #4fc9dc;
  --gh-paper: #f3f6f7;
  --gh-muted: #627786;
  --gh-line: #d7e2e7;
  --gh-news: #1679a7;
  --gh-map: #34876d;
  --gh-weapon: #7358b4;
  --gh-strategy: #bd6c21;
  --gh-quest: #c34f7c;
  --gh-shop: #d9941a;
  --gh-radius-sm: 10px;
  --gh-radius-md: 18px;
  --gh-radius-lg: 28px;
  --gh-shadow: 0 18px 48px rgba(16, 47, 71, .10);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--gh-paper);
  color: var(--gh-ink);
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  overflow-wrap: anywhere;
}

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

img {
  height: auto;
}

a {
  text-underline-offset: .18em;
}

:where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid var(--gh-cyan);
  outline-offset: 3px;
}

.gh-site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.gh-header {
  min-height: 82px;
  padding: 10px clamp(16px, 4vw, 60px);
  position: relative;
  z-index: 30;
  border-bottom: 1px solid var(--gh-line);
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(14px);
}

.gh-header__inner {
  width: 100%;
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.gh-brand {
  min-width: 235px;
  margin-right: auto;
  gap: 11px;
}

.gh-brand .wp-block-site-logo img {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(15, 48, 74, .11);
}

.gh-brand .wp-block-site-title {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .04em;
}

.gh-brand .wp-block-site-tagline {
  margin: 3px 0 0;
  color: #6f828e;
  font-size: 8px;
  font-weight: 800;
}

.gh-header .wp-block-navigation {
  font-size: 11px;
  font-weight: 900;
}

.gh-header .wp-block-navigation-item__content {
  min-height: 43px;
  padding: 8px 9px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  color: #405866;
  white-space: nowrap;
}

.gh-header .wp-block-navigation-item__content:hover {
  background: #edf5f7;
  color: var(--gh-blue);
}

.gh-header .gh-nav-beginner > .wp-block-navigation-item__content {
  background: #fff2e3;
  color: #8f4c18;
}

.gh-header .gh-nav-community > .wp-block-navigation-item__content {
  background: #fcebf2;
  color: #a13e64;
}

.gh-header .gh-nav-shop > .wp-block-navigation-item__content {
  background: #fff5df;
  color: #875e0b;
}

.gh-header-search .wp-block-search__inside-wrapper {
  padding: 0;
  border: 0;
}

.gh-header-search .wp-block-search__input {
  width: min(220px, 18vw);
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--gh-line);
  border-radius: 12px;
  background: #fff;
  font-size: 12px;
}

.gh-header-search .wp-block-search__button {
  min-width: 42px;
  min-height: 42px;
  margin-left: 6px;
  padding: 8px;
  border: 0;
  border-radius: 12px;
  background: var(--gh-navy);
  color: #fff;
}

.gh-header .wp-block-navigation__responsive-container.is-menu-open {
  padding: 22px;
  background: #fff;
}

.gh-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
  width: 100%;
  gap: 7px;
}

.gh-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
  width: 100%;
}

.gh-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  width: 100%;
  min-height: 54px;
  padding: 12px 14px;
  background: #f4f7f8;
}

.gh-section {
  padding: clamp(58px, 7vw, 96px) clamp(16px, 6vw, 92px);
}

.gh-section--white {
  background: #fff;
}

.gh-section--navy {
  background: var(--gh-navy);
  color: #fff;
}

.gh-section--soft {
  background: #edf2f4;
}

.gh-section__inner {
  width: min(1270px, 100%);
  margin-inline: auto;
}

.gh-eyebrow,
.is-style-gh-eyebrow {
  display: block;
  margin: 0 0 7px;
  color: var(--gh-blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.gh-section-title,
.is-style-gh-section-title {
  margin: 0;
  color: var(--gh-ink);
  font-size: clamp(30px, 3.4vw, 47px);
  line-height: 1.2;
  letter-spacing: -.04em;
}

.gh-section-title::after,
.is-style-gh-section-title::after {
  content: "";
  width: min(120px, 32%);
  height: 4px;
  margin-top: 13px;
  border-radius: 99px;
  display: block;
  background: linear-gradient(90deg, var(--gh-blue) 0 45%, #9fdcf3 45% 100%);
}

.gh-section-lead {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--gh-muted);
  line-height: 1.8;
}

.gh-hero {
  padding: clamp(25px, 4vw, 58px) clamp(16px, 5vw, 78px) 28px;
}

.gh-hero__grid {
  width: min(1480px, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(330px, .8fr);
  gap: 17px;
}

.gh-hero__story {
  min-height: 550px;
  padding: clamp(32px, 5vw, 66px);
  border-radius: var(--gh-radius-lg);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: var(--gh-navy);
  color: #fff;
  box-shadow: 0 28px 72px rgba(16, 47, 71, .11);
}

.gh-hero__story::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 24, 44, .94), rgba(11, 33, 56, .74) 54%, rgba(11, 33, 56, .15));
}

.gh-hero__story > .wp-block-cover__image-background {
  object-position: center;
}

.gh-hero__story .wp-block-cover__inner-container {
  width: min(680px, 80%);
  position: relative;
  z-index: 2;
}

.gh-hero__story h1 {
  margin: 12px 0 18px;
  font-size: clamp(40px, 4.6vw, 68px);
  line-height: 1.07;
  letter-spacing: -.055em;
}

.gh-hero__story p {
  color: #d6e3ea;
  font-size: 13px;
  line-height: 1.85;
}

.gh-whats-new {
  min-width: 0;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--gh-line);
  border-radius: var(--gh-radius-lg);
  background: #fff;
  box-shadow: 0 22px 52px rgba(16, 47, 71, .05);
}

.gh-whats-new__head {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--gh-line);
}

.gh-whats-new__head h2 {
  margin: 3px 0 0;
  font-size: 23px;
}

.gh-update-list,
.gh-update-list.wp-block-latest-posts {
  margin: 0;
  padding: 0;
  list-style: none;
}

.gh-update-list li {
  min-height: 76px;
  padding: 14px 1px;
  border-bottom: 1px solid var(--gh-line);
}

.gh-update-list a {
  color: var(--gh-ink);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.45;
  text-decoration: none;
}

.gh-update-list time {
  margin-bottom: 5px;
  display: block;
  color: var(--gh-blue);
  font-size: 10px;
  font-weight: 900;
}

.gh-tag,
.is-style-gh-tag {
  width: max-content;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: #12658b;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
}

.gh-tag--map,
.is-style-gh-tag-map { background: #276f59; color: #fff; }
.gh-tag--weapon,
.is-style-gh-tag-weapon { background: #5f479c; color: #fff; }
.gh-tag--strategy,
.is-style-gh-tag-strategy { background: #96500f; color: #fff; }
.gh-tag--quest,
.is-style-gh-tag-quest { background: #a63868; color: #fff; }
.gh-tag--shop,
.is-style-gh-tag-shop { background: #8a5b00; color: #fff; }

.gh-shop-rating {
  overflow: hidden;
  border: 1px solid #e2c46d;
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 213, 82, .22), transparent 30%),
    linear-gradient(145deg, #fffaf0, #fff);
}

.gh-shop-rating__hero {
  padding-bottom: 20px;
  border-bottom: 1px solid #eadba8;
}

.gh-shop-rating__stars {
  margin: 0;
  color: #b66f00;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1;
}

.gh-shop-rating__rank {
  margin-top: 8px;
  color: #7a4700;
}

.gh-shop-rating__metric {
  min-height: 100%;
  padding: 16px;
  border: 1px solid #e5e9ec;
  border-radius: 14px;
  background: #fff;
}

.gh-shop-rating__metric p {
  margin: 0;
  color: var(--gh-muted);
  font-size: .78rem;
  font-weight: 900;
}

.gh-shop-rating__metric h3 {
  margin: 7px 0 0;
  font-size: 1.2rem;
}

.gh-shop-rating__audience {
  gap: 8px;
}

.gh-shop-rating__audience p {
  margin: 0;
  padding: 6px 11px;
  border: 1px solid #bad6e3;
  border-radius: 999px;
  background: #edf8fc;
  color: #195b78;
  font-size: .78rem;
  font-weight: 900;
}

.gh-shop-rating__note {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 5px solid #d9941a;
  border-radius: 10px;
  background: #fff6d9;
}

.gh-category-rail {
  padding: 0 clamp(16px, 5vw, 78px) 52px;
}

.gh-category-rail__inner {
  width: min(1480px, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
}

.gh-category-link {
  min-height: 76px;
  padding: 12px;
  border-left: 4px solid var(--gh-news);
  border-radius: var(--gh-radius-sm);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  color: var(--gh-ink);
  text-decoration: none;
}

.gh-category-link strong {
  font-size: 12px;
}

.gh-category-link small {
  margin-top: 5px;
  color: var(--gh-muted);
  font-size: 9px;
  line-height: 1.4;
}

.gh-category-link.is-map { border-color: var(--gh-map); }
.gh-category-link.is-weapon { border-color: var(--gh-weapon); }
.gh-category-link.is-strategy { border-color: var(--gh-strategy); }
.gh-category-link.is-quest { border-color: var(--gh-quest); }
.gh-category-link.is-shop { border-color: var(--gh-shop); }

.gh-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.gh-quick-card,
.is-style-gh-card {
  min-height: 150px;
  padding: 21px;
  border: 1px solid var(--gh-line);
  border-top: 4px solid var(--gh-news);
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--gh-ink);
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(16, 47, 71, .05);
}

.gh-section--navy .gh-quick-card {
  border-color: rgba(255, 255, 255, .12);
  border-top-color: var(--gh-news);
  background: rgba(255, 255, 255, .05);
  color: #fff;
  box-shadow: none;
}

.gh-quick-card.is-map { border-top-color: var(--gh-map); }
.gh-quick-card.is-weapon { border-top-color: var(--gh-weapon); }
.gh-quick-card.is-strategy { border-top-color: var(--gh-strategy); }
.gh-quick-card.is-quest { border-top-color: var(--gh-quest); }
.gh-quick-card.is-shop { border-top-color: var(--gh-shop); }

.gh-quick-card .gh-number {
  color: rgba(255, 255, 255, .23);
  font-size: 30px;
  font-weight: 900;
}

.gh-quick-card strong {
  margin-top: 12px;
  font-size: 16px;
}

.gh-quick-card small {
  margin-top: 6px;
  color: #aebfca;
  font-size: 10px;
}

.gh-query-grid .wp-block-post-template {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.gh-query-grid .wp-block-post {
  min-width: 0;
  border: 1px solid var(--gh-line);
  border-radius: var(--gh-radius-md);
  overflow: hidden;
  background: #fff;
  transition: transform .2s, box-shadow .2s;
}

.gh-query-grid .wp-block-post:hover {
  transform: translateY(-4px);
  box-shadow: var(--gh-shadow);
}

.gh-query-grid .wp-block-post-featured-image {
  margin: 0;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--gh-navy);
}

.gh-query-grid .wp-block-post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gh-query-card__body {
  min-height: 225px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.gh-query-card__body .wp-block-post-title {
  margin: 9px 0;
  font-size: 19px;
  line-height: 1.46;
}

.gh-query-card__body .wp-block-post-title a {
  color: var(--gh-ink);
  text-decoration: none;
}

.gh-query-card__body .wp-block-post-excerpt {
  color: var(--gh-muted);
  font-size: 13px;
  line-height: 1.7;
}

.gh-query-card__body .wp-block-post-date,
.gh-query-card__body .wp-block-post-terms {
  color: #7d919c;
  font-size: 11px;
  font-weight: 800;
}

.gh-query-list .wp-block-post-template {
  display: grid;
  gap: 10px;
}

.gh-query-list .wp-block-post {
  padding: 18px;
  border-left: 5px solid var(--gh-blue);
  border-radius: 13px;
  display: grid;
  grid-template-columns: minmax(140px, .35fr) 1fr;
  gap: 18px;
  background: #fff;
}

.gh-query-list .wp-block-post-featured-image {
  margin: 0;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: 10px;
  background: var(--gh-navy);
}

.gh-query-list .wp-block-post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gh-hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.gh-hub {
  min-height: 560px;
  border-radius: 25px;
  position: relative;
  overflow: hidden;
  background: var(--gh-navy);
  color: #fff;
}

.gh-hub::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 29, 49, .97) 4%, rgba(10, 29, 49, .74) 50%, rgba(10, 29, 49, .15) 86%);
}

.gh-hub > .wp-block-cover__image-background {
  object-position: center;
}

.gh-hub .wp-block-cover__inner-container {
  padding: clamp(25px, 4vw, 48px);
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
}

.gh-hub h2 {
  margin: 8px 0 13px;
  font-size: clamp(29px, 3vw, 44px);
  line-height: 1.13;
  letter-spacing: -.045em;
}

.gh-hub p {
  color: #d5e0e6;
  font-size: 13px;
  line-height: 1.8;
}

.gh-directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.gh-directory-card {
  min-height: 300px;
  border: 1px solid var(--gh-line);
  border-radius: var(--gh-radius-md);
  overflow: hidden;
  background: #f6f9fa;
}

.gh-directory-card .wp-block-image {
  margin: 0;
  height: 150px;
  background: var(--gh-navy);
}

.gh-directory-card .wp-block-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gh-directory-card__body {
  padding: 20px;
}

.gh-directory-card__body::before {
  content: "";
  width: 42px;
  height: 4px;
  margin-bottom: 11px;
  border-radius: 8px;
  display: block;
  background: var(--gh-news);
}

.gh-directory-card.is-map .gh-directory-card__body::before { background: var(--gh-map); }
.gh-directory-card.is-weapon .gh-directory-card__body::before { background: var(--gh-weapon); }
.gh-directory-card.is-strategy .gh-directory-card__body::before { background: var(--gh-strategy); }
.gh-directory-card.is-quest .gh-directory-card__body::before { background: var(--gh-quest); }
.gh-directory-card.is-shop .gh-directory-card__body::before { background: var(--gh-shop); }

.gh-shop-alert {
  padding: 36px clamp(18px, 7vw, 110px);
  background: #fff2d6;
}

.gh-shop-alert__inner {
  width: min(1270px, 100%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.gh-shop-alert h2 {
  margin: 5px 0;
  font-size: clamp(24px, 3vw, 37px);
}

.gh-article-shell {
  background: #f8fbfc;
}

.gh-article-hero {
  padding: clamp(42px, 5vw, 64px) 24px 42px;
  border-bottom: 1px solid var(--gh-line);
  background: linear-gradient(135deg, #f2fbff 0%, #fff9ec 100%);
}

.gh-article-hero__inner {
  width: min(1120px, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}

.gh-article-hero h1,
.gh-article-hero .wp-block-post-title {
  max-width: 16ch;
  margin: 18px 0;
  font-size: clamp(42px, 4.6vw, 58px);
  line-height: 1.1;
  letter-spacing: -.045em;
}

.gh-article-hero .wp-block-post-featured-image {
  margin: 0;
  aspect-ratio: 16/11;
  border-radius: var(--gh-radius-md);
  overflow: hidden;
  background: var(--gh-navy);
  box-shadow: 0 22px 55px rgba(13, 48, 77, .18);
}

.gh-article-hero .wp-block-post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gh-article-main {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.gh-article-main > * {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.gh-article-main > .alignwide {
  max-width: 1120px;
}

.gh-article-main > .alignfull {
  max-width: none;
}

.gh-article-main h2 {
  margin-top: 2.2em;
  padding: 0 0 17px 16px;
  border-bottom: 1px solid #c9dce5;
  position: relative;
  font-size: clamp(27px, 3vw, 35px);
  line-height: 1.36;
  letter-spacing: -.025em;
}

.gh-article-main h2::before {
  content: "";
  width: 4px;
  border-radius: 99px;
  position: absolute;
  inset: 3px auto 3px 0;
  background: linear-gradient(#1598cc, #56bddb);
}

.gh-article-main h3 {
  margin-top: 1.8em;
  color: #123f70;
  font-size: 22px;
}

.gh-article-main p,
.gh-article-main li {
  line-height: 1.9;
}

.gh-article-toc {
  margin: 22px auto 0;
  padding: 18px;
  border: 1px solid var(--gh-line);
  border-radius: 14px;
  background: #fff;
}

.gh-article-toc strong {
  display: block;
  margin-bottom: 9px;
}

.gh-article-toc ol {
  margin: 0;
  padding-left: 1.4em;
  columns: 2;
  gap: 28px;
}

.gh-article-toc li {
  margin-bottom: 6px;
  break-inside: avoid;
}

.gh-golden-layout {
  width: min(1150px, calc(100% - 48px));
  margin-inline: auto;
  padding: 42px 0 64px;
  display: grid;
  grid-template-columns: minmax(0, 820px) minmax(0, 300px);
  gap: 30px;
  align-items: start;
}

.gh-golden-content {
  min-width: 0;
}

.gh-golden-content > .wp-block-post-content,
.gh-golden-content > .wp-block-post-content > * {
  max-width: 100%;
}

.gh-golden-content > .wp-block-separator {
  margin-top: 48px;
}

.gh-golden-sidebar {
  min-width: 0;
}

.gh-article-sidebar__sticky {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 16px;
}

.gh-article-sidebar__card {
  padding: 20px;
  border: 1px solid #d9e6eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(16, 47, 71, .07);
}

.gh-article-sidebar__label {
  margin: 0 0 5px;
  color: var(--gh-blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}

.gh-article-sidebar__title {
  margin: 0 0 14px;
  color: var(--gh-ink);
  font-size: 20px;
  line-height: 1.35;
}

.gh-article-sidebar__toc ol,
.gh-article-sidebar__related {
  margin: 0;
  padding: 0;
  list-style: none;
}

.gh-article-sidebar__toc ol {
  max-height: 390px;
  padding-right: 5px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.gh-article-sidebar__toc li + li,
.gh-article-sidebar__related li + li {
  border-top: 1px solid #e5eef2;
}

.gh-article-sidebar__toc a,
.gh-article-sidebar__related a {
  display: block;
  padding: 10px 0;
  color: #27445b;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.55;
  text-decoration: none;
}

.gh-article-sidebar__toc .is-h3 a {
  padding-left: 14px;
  color: var(--gh-muted);
  font-size: 13px;
}

.gh-article-sidebar__toc a:hover,
.gh-article-sidebar__related a:hover {
  color: var(--gh-blue);
}

.gh-article-sidebar__cta {
  border-color: #bfe2ec;
  background: linear-gradient(135deg, #eaf8fd 0%, #fff9e9 100%);
}

.gh-article-sidebar__cta p {
  margin: 0 0 14px;
  color: #36546a;
  font-size: 14px;
  line-height: 1.7;
}

.gh-article-sidebar__button,
.gh-article-sidebar__top {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--gh-navy);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.gh-article-sidebar__top {
  border: 1px solid #d7e2e7;
  background: #fff;
  color: var(--gh-ink);
}

@media (min-width: 1100px) {
  .gh-golden-content .gh-article-toc {
    display: none;
  }
}

@media (max-width: 1099px) {
  .gh-golden-layout {
    width: min(820px, calc(100% - 48px));
    grid-template-columns: minmax(0, 1fr);
  }

  .gh-golden-sidebar {
    display: none;
  }
}

.gh-summary-grid,
.gh-comparison-grid,
.gh-step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.gh-summary-card {
  padding: 16px;
  border: 1px solid #e1edf2;
  border-radius: 10px;
  background: #f5f9fb;
}

.gh-summary-card strong,
.gh-summary-card span {
  display: block;
}

.gh-summary-card strong {
  margin-top: 8px;
  font-size: 17px;
}

.gh-summary-card span {
  margin-top: 5px;
  color: var(--gh-muted);
  font-size: 13px;
}

.gh-content-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .65fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: center;
}

.gh-content-split.is-image-first > :first-child {
  order: 2;
}

.gh-content-split .wp-block-image {
  margin: 0;
  aspect-ratio: 16/10;
  overflow: hidden;
  border: 1px solid #bdd5e2;
  border-radius: 14px;
  background: var(--gh-navy);
  box-shadow: 0 14px 34px rgba(14, 57, 87, .12);
}

.gh-content-split .wp-block-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gh-comparison-card,
.gh-step-card {
  padding: 18px;
  border: 1px solid #c9dce5;
  border-radius: 11px;
  background: #fff;
}

.gh-comparison-card {
  border-top: 4px solid var(--gh-blue);
}

.gh-comparison-grid > * {
  margin-block-start: 0 !important;
}

.gh-step-card .gh-number {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #123f70;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

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

.gh-gallery-grid figure {
  margin: 0;
  padding: 10px;
  border: 1px solid #c8dbe5;
  border-radius: 12px;
  background: #edf7fb;
}

.gh-gallery-grid img {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px;
  object-fit: contain;
  background: var(--gh-navy);
}

.gh-gallery-grid figcaption {
  padding: 9px 2px 2px;
  color: #184d73;
  font-size: 13px;
  font-weight: 900;
}

.gh-media-card-grid {
  gap: clamp(18px, 2.4vw, 28px);
  align-items: stretch;
}

.gh-media-card-grid > .wp-block-column {
  display: flex;
}

.gh-media-card {
  width: 100%;
  min-height: 500px;
  display: grid;
  grid-template-rows: minmax(240px, 1fr) minmax(240px, 1fr);
  overflow: hidden;
  border: 1px solid #c8dbe5;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(14, 57, 87, .09);
}

.gh-media-card__image {
  width: 100%;
  height: 100%;
  min-height: 240px;
  margin: 0;
  overflow: hidden;
  background: var(--gh-navy);
}

.gh-media-card__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.gh-media-card__body {
  min-height: 240px;
  padding: clamp(22px, 3vw, 30px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.gh-media-card__body > * {
  width: 100%;
}

.gh-media-card__body .gh-eyebrow {
  margin: 0 0 8px;
}

.gh-media-card__body h3 {
  margin: 0;
  font-size: clamp(21px, 2.1vw, 27px);
  line-height: 1.35;
}

.gh-media-card__body p:not(.gh-eyebrow) {
  margin: 12px 0 0;
  color: var(--gh-muted);
  line-height: 1.8;
}

.gh-media-card__body .wp-block-buttons {
  margin-top: auto;
  padding-top: 20px;
}

.gh-evidence {
  padding: 22px;
  border: 1px solid #efbfd0;
  border-left: 5px solid var(--gh-quest);
  border-radius: 14px;
  background: linear-gradient(135deg, #fff4f8, #fffaf0);
}

.gh-evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.gh-evidence-item {
  min-height: 90px;
  padding: 13px;
  border: 1px solid #e6d6dc;
  border-radius: 10px;
  background: rgba(255, 255, 255, .88);
}

.gh-evidence-item small,
.gh-evidence-item strong {
  display: block;
}

.gh-evidence-item small {
  color: #8d6575;
  font-size: 10px;
  font-weight: 900;
}

.gh-evidence-item strong {
  margin-top: 5px;
  color: var(--gh-ink);
  font-size: 14px;
  line-height: 1.45;
}

.gh-evidence__policy {
  margin-top: 14px;
  padding: 13px 15px;
  border-radius: 10px;
  background: #fff;
  color: #5f5060;
  font-size: 13px;
  line-height: 1.75;
}

.is-style-gh-note,
.gh-note {
  padding: 15px 17px;
  border-left: 4px solid #69b1d8;
  background: #edf7fb;
  color: #40566b;
}

.is-style-gh-important,
.gh-important {
  padding: 18px;
  border: 1px solid #f1c36f;
  border-left: 5px solid #e78018;
  border-radius: 12px;
  background: #fff7df;
}

.is-style-gh-strategy,
.gh-strategy {
  padding: 20px;
  border: 1px solid #9fd2e8;
  border-left: 5px solid var(--gh-blue);
  border-radius: 12px;
  background: linear-gradient(135deg, #e9f8ff, #fff9e8);
}

.is-style-gh-community,
.gh-community {
  padding: 20px;
  border: 1px solid #efbfd0;
  border-left: 5px solid var(--gh-quest);
  border-radius: 12px;
  background: linear-gradient(135deg, #fff0f6, #fff9e8);
}

.is-style-gh-dark,
.gh-dark {
  padding: 20px;
  border-radius: 12px;
  background: var(--gh-navy);
  color: #fff;
}

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

.gh-sources a {
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  background: #123f70;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.gh-template-blueprint {
  --gh-template-gap: clamp(28px, 4vw, 48px);
}

.gh-template-blueprint > * + * {
  margin-top: var(--gh-template-gap);
}

.gh-template-blueprint > h2 + *,
.gh-template-blueprint > .wp-block-heading + * {
  margin-top: 18px;
}

.gh-template-lead {
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid #b8d9e8;
  border-left: 6px solid var(--gh-blue);
  border-radius: 14px;
  background: linear-gradient(135deg, #effaff, #fffaf0);
  color: var(--gh-ink);
  line-height: 1.85;
}

.gh-fact-boundary,
.gh-location-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.gh-fact-card,
.gh-location-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--gh-line);
  border-top: 5px solid var(--gh-blue);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(16, 47, 71, .05);
}

.gh-fact-card.is-fact {
  border-top-color: var(--gh-map);
}

.gh-fact-card.is-field {
  border-top-color: var(--gh-quest);
}

.gh-fact-card.is-advice {
  border-top-color: var(--gh-strategy);
}

.gh-fact-card small,
.gh-fact-card strong,
.gh-template-meta-grid small,
.gh-template-meta-grid strong,
.gh-community-credit small,
.gh-community-credit strong {
  display: block;
}

.gh-fact-card small,
.gh-template-meta-grid small,
.gh-community-credit small {
  color: var(--gh-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
}

.gh-fact-card strong {
  margin-top: 9px;
  color: var(--gh-ink);
  font-size: 17px;
  line-height: 1.5;
}

.gh-fact-card p,
.gh-location-card p {
  margin: 9px 0 0;
  color: var(--gh-muted);
  font-size: 14px;
  line-height: 1.8;
}

.gh-template-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.gh-template-meta-grid > div,
.gh-community-credit > div {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--gh-line);
  border-radius: 11px;
  background: #f6f9fa;
}

.gh-template-meta-grid strong,
.gh-community-credit strong {
  margin-top: 6px;
  color: var(--gh-ink);
  font-size: 14px;
  line-height: 1.55;
}

.gh-location-card:nth-child(1) {
  border-top-color: var(--gh-map);
}

.gh-location-card:nth-child(2) {
  border-top-color: var(--gh-strategy);
}

.gh-location-card:nth-child(3) {
  border-top-color: var(--gh-weapon);
}

.gh-location-card h3 {
  margin: 13px 0 0;
  font-size: 19px;
}

.gh-data-table {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--gh-line);
  border-radius: 12px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.gh-data-table table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.gh-data-table th,
.gh-data-table td {
  padding: 13px 14px;
  border: 0;
  border-bottom: 1px solid var(--gh-line);
  text-align: left;
  vertical-align: top;
  line-height: 1.65;
}

.gh-data-table th {
  background: #123f70;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.gh-data-table td {
  color: var(--gh-ink);
  font-size: 13px;
}

.gh-data-table tbody tr:last-child td {
  border-bottom: 0;
}

.gh-template-checklist {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  list-style: none;
}

.gh-template-checklist li {
  margin: 0;
  padding: 14px 16px 14px 46px;
  border: 1px solid #b9dce7;
  border-radius: 11px;
  position: relative;
  background: #f0fbff;
}

.gh-template-checklist li::before {
  content: "✓";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: absolute;
  top: 13px;
  left: 14px;
  background: var(--gh-blue);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.gh-community-credit {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.gh-footer {
  padding: 42px clamp(18px, 7vw, 110px);
  background: #061827;
  color: #fff;
}

.gh-footer__inner {
  width: min(1270px, 100%);
  margin-inline: auto;
}

.gh-footer a {
  color: #fff;
}

.gh-footer .wp-block-site-title {
  font-weight: 900;
}

.gh-footer .wp-block-site-tagline,
.gh-footer__note {
  color: #8ca4b1;
  font-size: 11px;
}

.is-style-gh-soft {
  padding: 20px;
  border: 1px solid var(--gh-line);
  border-radius: var(--gh-radius-md);
  background: #f6f9fa;
}

.is-style-gh-outline {
  padding: 20px;
  border: 1px solid var(--gh-line);
  border-radius: var(--gh-radius-md);
  background: transparent;
}

.is-style-gh-image-contain img {
  object-fit: contain !important;
  background: var(--gh-navy);
}

.is-style-gh-image-cover img {
  object-fit: cover !important;
}

.wp-block-button.is-style-gh-arrow .wp-block-button__link::after {
  content: " →";
  margin-left: .7em;
}

@media (max-width: 1180px) {
  .gh-header-search {
    display: none;
  }
}

@media (max-width: 960px) {
  .gh-hero__grid {
    grid-template-columns: 1fr;
  }

  .gh-category-rail__inner {
    display: flex;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .gh-category-link {
    min-width: 165px;
  }

  .gh-query-grid .wp-block-post-template,
  .gh-directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gh-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .gh-header {
    min-height: 72px;
    padding-inline: 12px;
  }

  .gh-brand {
    min-width: 0;
  }

  .gh-brand .wp-block-site-logo img {
    width: 44px;
    height: 44px;
  }

  .gh-brand .wp-block-site-title {
    font-size: 14px;
  }

  .gh-brand .wp-block-site-tagline {
    display: none;
  }

  .gh-hero__story {
    min-height: 500px;
    padding: 25px;
    align-items: flex-end;
  }

  .gh-hero__story::after {
    background: linear-gradient(0deg, rgba(7, 24, 44, .97), rgba(11, 33, 56, .77) 52%, rgba(11, 33, 56, .18) 82%);
  }

  .gh-hero__story .wp-block-cover__inner-container {
    width: 100%;
  }

  .gh-hero__story h1 {
    font-size: clamp(35px, 10vw, 48px);
  }

  .gh-query-grid .wp-block-post-template {
    grid-template-columns: 1fr;
  }

  .gh-query-grid .wp-block-post {
    display: grid;
    grid-template-columns: minmax(125px, .8fr) 1.2fr;
  }

  .gh-query-grid .wp-block-post-featured-image {
    height: 100%;
    min-height: 215px;
  }

  .gh-query-card__body {
    min-height: 215px;
    padding: 17px;
  }

  .gh-query-list .wp-block-post,
  .gh-hub-grid,
  .gh-article-hero__inner,
  .gh-content-split,
  .gh-content-split.is-image-first {
    grid-template-columns: 1fr;
  }

  .gh-content-split.is-image-first > :first-child {
    order: initial;
  }

  .gh-hub {
    min-height: 520px;
  }

  .gh-article-hero {
    padding: 30px 16px 26px;
  }

  .gh-article-hero h1,
  .gh-article-hero .wp-block-post-title {
    max-width: 100%;
    font-size: clamp(30px, 8.6vw, 36px);
    line-height: 1.16;
  }

  .gh-article-main {
    width: min(100% - 32px, 1120px);
  }

  .gh-summary-grid,
  .gh-comparison-grid,
  .gh-step-grid,
  .gh-evidence-grid,
  .gh-fact-boundary,
  .gh-location-grid,
  .gh-template-meta-grid,
  .gh-community-credit,
  .gh-sources {
    grid-template-columns: 1fr;
  }

  .gh-article-toc ol {
    columns: 1;
  }

  .gh-media-card-grid {
    gap: 16px;
  }

  .gh-media-card-grid > .wp-block-column {
    flex-basis: 100% !important;
  }

  .gh-media-card {
    min-height: 0;
    grid-template-rows: auto auto;
  }

  .gh-media-card__image {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .gh-media-card__body {
    min-height: 230px;
    padding: 22px;
  }

  .gh-shop-alert__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .gh-hero__story {
    min-height: 485px;
    padding: 21px;
  }

  .gh-hero__story h1 {
    font-size: 34px;
  }

  .gh-quick-grid,
  .gh-directory-grid {
    grid-template-columns: 1fr;
  }

  .gh-query-grid .wp-block-post {
    grid-template-columns: 1fr;
  }

  .gh-query-grid .wp-block-post-featured-image {
    min-height: 0;
  }

  .gh-gallery-grid {
    grid-template-columns: 1fr;
  }
}
