/*
Theme Name: Humorkult V5
Theme URI: https://humorkult.org
Author: humorkult.org
Description: Clean block-theme baseline for Humorkult V5. Templates and patterns live in the theme. Functional logic lives in the Humorkult Platform V5 plugin.
Requires at least: 6.6
Requires PHP: 7.4
Version: 5.0.10
Text Domain: humorkult-v5
*/

:root {
  --hk-bg: #d9e9f7;
  --hk-surface: #f8fbff;
  --hk-card: #ffffff;
  --hk-ink: #10151b;
  --hk-muted: #4d6072;
  --hk-line: #8db2d3;
  --hk-accent: #1661b3;
  --hk-accent-2: #7bcbff;
  --hk-stage: #0d1014;
  --hk-shadow: 0 20px 50px rgba(16, 21, 27, 0.14);
  --hk-radius: 18px;
  --hk-content: var(--wp--style--global--content-size, 980px);
  --hk-wide: var(--wp--style--global--wide-size, 1480px);
}

body {
  background: linear-gradient(180deg, #d7e7f5 0%, #c9def1 100%);
  color: var(--hk-ink);
}

/*
 * Respect per-block layout widths from the editor before falling back to the
 * global site widths. This keeps manually adjusted section widths effective.
 */
:root :where(.is-layout-constrained) > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: var(--wp--style--layout--content-size, var(--wp--style--global--content-size));
}

:root :where(.is-layout-constrained) > .alignwide {
  max-width: var(--wp--style--layout--wide-size, var(--wp--style--global--wide-size));
}

.wp-site-blocks {
  min-height: 100vh;
}

.hk-shell {
  padding: 0 1rem 4rem;
}

.hk-header,
.hk-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 1rem 1rem 1.2rem;
  background:
    linear-gradient(180deg, rgba(224, 237, 249, 0.98) 0%, rgba(216, 232, 246, 0.94) 100%);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(141, 178, 211, 0.7);
  box-shadow: 0 12px 34px rgba(17, 27, 39, 0.08);
}

.hk-header__inner,
.hk-site-header__inner {
  display: grid;
  gap: 0.65rem;
}

.hk-header__row,
.hk-brandbar__meta,
.hk-brandbar__core,
.hk-site-header__utility,
.hk-site-header__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.hk-header__brand,
.hk-site-header__brand,
.hk-brand-lockup {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  min-width: 0;
}

.hk-brandbar,
.hk-menu-board {
  position: relative;
}

.hk-brandbar {
  gap: 0;
  padding: 1rem 1.15rem 0.85rem;
  background:
    linear-gradient(180deg, rgba(248, 252, 255, 0.95) 0%, rgba(236, 245, 252, 0.92) 100%);
  border: 1px solid rgba(141, 178, 211, 0.78);
  border-radius: 24px;
  box-shadow:
    0 18px 42px rgba(18, 33, 48, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.hk-brandbar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.36) 0%, rgba(255, 255, 255, 0) 42%);
}

.hk-header .custom-logo,
.hk-header .wp-block-site-logo img,
.hk-site-header .custom-logo,
.hk-site-header .wp-block-site-logo img {
  width: min(248px, 42vw);
  height: auto;
}

.hk-header__copy,
.hk-brand-copy {
  min-width: 0;
}

.hk-header__copy .wp-block-site-title,
.hk-header__copy .wp-block-site-title a,
.hk-brand-copy .wp-block-site-title,
.hk-brand-copy .wp-block-site-title a {
  margin: 0;
  color: var(--hk-ink);
  font-size: clamp(1.55rem, 2.1vw, 2.3rem);
  line-height: 0.94;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.hk-header__tagline,
.hk-brand-claim {
  margin: 0.28rem 0 0;
  color: #203142;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.hk-brand-description,
.hk-brand-subcopy {
  margin: 0.28rem 0 0;
  color: var(--hk-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.hk-header__actions,
.hk-site-header__controls,
.hk-site-header__controls--stage {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.hk-brandbar__meta,
.hk-site-header__utility {
  position: relative;
  z-index: 1;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(141, 178, 211, 0.58);
}

.hk-brandbar__search-label {
  margin: 0;
  color: #395065;
  font-size: 0.88rem;
  line-height: 1.35;
}

.hk-brandbar__core,
.hk-brandbar__core--stage {
  position: relative;
  z-index: 1;
  padding-top: 0.95rem;
  padding-bottom: 0.8rem;
}

.hk-site-header__controls--stage {
  justify-content: flex-end;
  min-width: min(420px, 100%);
}

.hk-header .wp-block-button__link,
.hk-header .wp-block-search__button,
.hk-site-header .wp-block-button__link,
.hk-site-header .wp-block-search__button,
.hk-footer .wp-block-button__link {
  min-height: 44px;
  border-radius: 999px;
  border: 2px solid var(--hk-stage);
  background: var(--hk-card);
  color: var(--hk-stage);
  font-weight: 700;
  padding: 0.75rem 1.2rem;
  box-shadow: 0 8px 20px rgba(16, 21, 27, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.hk-header .wp-block-button.is-style-fill .wp-block-button__link,
.hk-site-header .wp-block-button.is-style-fill .wp-block-button__link,
.hk-footer .wp-block-button.is-style-fill .wp-block-button__link {
  background: var(--hk-stage);
  color: #fff;
}

.hk-header .wp-block-button__link:hover,
.hk-header .wp-block-button__link:focus,
.hk-header .wp-block-search__button:hover,
.hk-header .wp-block-search__button:focus,
.hk-site-header .wp-block-button__link:hover,
.hk-site-header .wp-block-button__link:focus,
.hk-site-header .wp-block-search__button:hover,
.hk-site-header .wp-block-search__button:focus,
.hk-footer .wp-block-button__link:hover,
.hk-footer .wp-block-button__link:focus {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(16, 21, 27, 0.12);
}

.hk-header .wp-block-navigation,
.hk-site-header .wp-block-navigation {
  width: 100%;
  padding-top: 0;
}

.hk-header .wp-block-navigation-item__content,
.hk-site-header .wp-block-navigation-item__content {
  color: var(--hk-ink);
  font-weight: 700;
  padding: 0.72rem 0.95rem;
  border-radius: 999px;
  line-height: 1.1;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.hk-header .wp-block-navigation .has-child .wp-block-navigation__submenu-container,
.hk-site-header .wp-block-navigation .has-child .wp-block-navigation__submenu-container {
  background: #10161d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 0.35rem;
  box-shadow: 0 18px 36px rgba(11, 17, 24, 0.22);
}

.hk-header .wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation-item__content,
.hk-site-header .wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  color: #fff;
}

.hk-header .wp-block-navigation-item__content:hover,
.hk-header .wp-block-navigation-item__content:focus,
.hk-site-header .wp-block-navigation-item__content:hover,
.hk-site-header .wp-block-navigation-item__content:focus,
.hk-site-header .current-menu-item > .wp-block-navigation-item__content,
.hk-site-header .current-menu-ancestor > .wp-block-navigation-item__content {
  background: rgba(22, 97, 179, 0.10);
  color: #163b65;
}

.hk-brand-edition {
  margin: 0;
  color: #1d4f88;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hk-header-search {
  min-width: min(390px, 100%);
}

.hk-brandbar__navrow {
  position: relative;
  z-index: 1;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(141, 178, 211, 0.58);
}

.hk-brandbar__nav,
.hk-brandbar__nav--editorial {
  width: 100%;
}

.hk-main-nav,
.hk-main-nav--editorial {
  align-items: center;
}

.hk-main-nav .wp-block-navigation__container,
.hk-main-nav--editorial .wp-block-navigation__container {
  row-gap: 0.45rem;
  column-gap: 0.2rem;
}

.hk-footer {
  padding: 2rem 1rem 3.4rem;
  margin-top: 2.2rem;
}

.hk-card,
.hk-slab,
.hk-footer__panel,
.hk-section > .wp-block-group,
.hk-hero,
.hk-stream-card {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(141, 178, 211, 0.7);
  border-radius: var(--hk-radius);
  box-shadow: var(--hk-shadow);
}

.hk-hero {
  overflow: hidden;
}

.hk-hero__media {
  position: relative;
  min-height: 420px;
  background: #111;
}

.hk-hero__media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
  filter: none;
  opacity: 1;
}

.hk-hero__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.25rem;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.88) 70%);
}

.hk-hero__copy {
  max-width: 760px;
  background: rgba(0, 0, 0, 0.84);
  color: #fff;
  padding: 1rem 1.1rem;
  border-radius: 16px;
}

.hk-kicker {
  margin: 0 0 0.5rem;
  color: var(--hk-accent);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hk-section-title,
.hk-hero__copy h1,
.hk-hero__copy h2 {
  margin: 0;
  line-height: 0.95;
  font-size: clamp(2rem, 4vw, 4.8rem);
}

.hk-hero__copy p:last-child,
.hk-section-copy:last-child {
  margin-bottom: 0;
}

.hk-page-builder,
.hk-section-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.3rem;
}

.hk-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.hk-page-builder > *,
.hk-section-stack > *,
.hk-section > * {
  min-width: 0;
  justify-self: stretch;
}

.hk-page-builder > .wp-block-group,
.hk-section-stack > .wp-block-group,
.hk-section > .wp-block-group {
  width: 100%;
}

.hk-grid-3,
.hk-grid-4,
.hk-category-grid,
.hk-quiz-grid {
  display: grid;
  gap: 1rem;
}

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

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

.hk-post-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.9fr);
  gap: 1rem;
  padding: 1rem;
}

.hk-post-lead__image img,
.hk-post-card__image img,
.hk-category-card__thumb img,
.hk-quiz-card__image img {
  width: 100%;
  max-width: 100%;
  display: block;
  border-radius: 14px;
  object-fit: cover;
}

.hk-post-card,
.hk-category-card,
.hk-quiz-card,
.hk-tag-links {
  padding: 1rem;
}

.hk-bestof-grid,
.hk-latest-grid,
.hk-themehub-grid {
  display: grid;
  gap: 1rem;
}

.hk-bestof-query .wp-block-post-template,
.hk-bestof-query .wp-block-query-pagination {
  margin: 0;
  padding: 0;
}

.hk-bestof-query .wp-block-post-template {
  list-style: none;
}

.hk-bestof-editorial-top,
.hk-bestof-editorial-middle {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.hk-bestof-tail-item {
  margin-top: 1rem;
}

.hk-bestof-tail-item .wp-block-columns {
  gap: 1rem;
}

.hk-bestof-tail-item__image img {
  width: 100%;
  display: block;
  border-radius: 14px;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

.hk-bestof-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.8fr);
}

.hk-bestof-feature,
.hk-latest-feature {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.hk-bestof-feature__image img,
.hk-latest-feature__image img,
.hk-bestof-duo__image img,
.hk-themehub-card__image img {
  width: 100%;
  display: block;
  border-radius: 14px;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

.hk-bestof-stack,
.hk-latest-stack {
  padding: 1rem;
}

.hk-bestof-list-item + .hk-bestof-list-item {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(141, 178, 211, 0.6);
}

.hk-bestof-list-item h3,
.hk-bestof-duo__copy h3,
.hk-bestof-feature__copy h3,
.hk-latest-feature__copy h3,
.hk-themehub-card__body h3 {
  margin: 0.2rem 0 0;
}

.hk-bestof-duo {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.hk-bestof-duo__item {
  padding: 1rem;
}

.hk-themehub-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.hk-themehub-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
  align-items: stretch;
}

.hk-themehub-row__main,
.hk-themehub-row__topics {
  min-width: 0;
}

.hk-themehub-row__main {
  display: grid;
  grid-template-columns: minmax(168px, 220px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.hk-themehub-row__image img {
  width: 100%;
  display: block;
  border-radius: 14px;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.hk-themehub-row__body,
.hk-themehub-row__topics {
  display: grid;
  gap: 0.7rem;
}

.hk-themehub-row__topics {
  align-content: start;
  padding-left: 0.25rem;
}

.hk-themehub-row__body h3 {
  margin: 0;
  font-size: clamp(1.25rem, 1.7vw, 1.65rem);
  line-height: 1.05;
}

.hk-themehub-row__body p {
  margin: 0;
}

.hk-themehub-row__latest {
  font-size: 0.95rem;
  color: var(--hk-muted);
}

.hk-themehub-row__latest a,
.hk-themehub-topic-item__post,
.hk-themehub-topic-item__term,
.hk-themehub-row__body h3 a {
  color: inherit;
  text-decoration: none;
}

.hk-themehub-row__latest a:hover,
.hk-themehub-row__latest a:focus,
.hk-themehub-topic-item__post:hover,
.hk-themehub-topic-item__post:focus,
.hk-themehub-topic-item__term:hover,
.hk-themehub-topic-item__term:focus,
.hk-themehub-row__body h3 a:hover,
.hk-themehub-row__body h3 a:focus {
  text-decoration: underline;
}

.hk-themehub-topic-list {
  display: grid;
  gap: 0.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hk-themehub-topic-item {
  display: grid;
  gap: 0.22rem;
  padding: 0.85rem 0.95rem;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(141, 178, 211, 0.62);
  border-radius: 16px;
}

.hk-themehub-topic-item__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.7rem;
}

.hk-themehub-topic-item__term {
  font-weight: 800;
  color: var(--hk-ink);
}

.hk-themehub-topic-item__count {
  flex: 0 0 auto;
  min-width: 2rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(22, 97, 179, 0.12);
  color: var(--hk-accent);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.hk-themehub-topic-item__post {
  font-size: 0.95rem;
  color: var(--hk-muted);
}

.hk-themehub-row__empty {
  margin: 0;
  color: var(--hk-muted);
}

.hk-themehub-more {
  border-top: 1px solid rgba(141, 178, 211, 0.68);
  padding-top: 0.9rem;
}

.hk-themehub-more summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--hk-ink);
}

.hk-themehub-topic-list--more {
  margin-top: 0.9rem;
}

.hk-tone-a { background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(232,244,255,0.92)); }
.hk-tone-b { background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(245,239,255,0.92)); }
.hk-tone-c { background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(244,250,235,0.92)); }
.hk-tone-d { background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,244,231,0.92)); }
.hk-tone-e { background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(240,247,247,0.92)); }
.hk-tone-f { background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,240,245,0.92)); }

.hk-post-card__image img,
.hk-category-card__thumb img,
.hk-quiz-card__image img {
  aspect-ratio: 16 / 10;
}

.hk-post-card__meta,
.hk-category-card__meta,
.hk-quiz-card__meta {
  color: var(--hk-muted);
  font-size: 0.92rem;
}

.hk-button-row,
.hk-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hk-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--hk-line);
  background: rgba(255,255,255,0.85);
  color: var(--hk-ink);
  text-decoration: none;
  font-weight: 700;
}

.hk-single-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(320px, 0.9fr);
  gap: 1.2rem;
}

.hk-single-main,
.hk-single-side,
.hk-loop-shell {
  padding: 1.2rem;
}

.hk-single-main .wp-block-post-content > *,
.hk-loop-shell .wp-block-post-content > * {
  max-width: 100%;
}

.hk-single-main .wp-block-post-featured-image {
  display: none;
}

.hk-loop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.hk-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.hk-footer__panel {
  padding: 1rem;
}

.hk-site-footer-wrap {
  margin-top: 2.2rem;
}

.hk-site-footer {
  padding: 1.4rem;
  background:
    linear-gradient(180deg, rgba(10, 16, 24, 0.96) 0%, rgba(17, 26, 37, 0.98) 100%);
  border: 1px solid rgba(83, 124, 159, 0.42);
  border-radius: 28px;
  box-shadow:
    0 24px 48px rgba(10, 15, 21, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hk-site-footer .hk-section-header {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
}

.hk-site-footer .hk-section-header h2,
.hk-site-footer .hk-section-header h3,
.hk-site-footer .hk-section-header p,
.hk-site-footer .hk-site-footer__meta,
.hk-site-footer .wp-block-heading,
.hk-site-footer p,
.hk-site-footer li,
.hk-site-footer a {
  color: #f5f9fd;
}

.hk-site-footer .hk-kicker,
.hk-site-footer .hk-footer-route-card__meta,
.hk-site-footer .wp-block-search__label,
.hk-site-footer .wp-block-search__input::placeholder {
  color: #9fc7ea;
}

.hk-site-footer__grid,
.hk-footer-close {
  gap: 1.15rem;
  align-items: stretch;
}

.hk-site-footer__column {
  display: flex;
  min-width: 0;
}

.hk-menu-board__panel,
.hk-site-footer .hk-footer__panel {
  display: grid;
  gap: 1rem;
  width: 100%;
  height: 100%;
  padding: 1.2rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(159, 199, 234, 0.22);
  border-radius: 22px;
  box-shadow: none;
}

.hk-menu-board__panel h3 {
  margin: 0;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.hk-footer-route-grid {
  display: grid;
  gap: 0.9rem;
}

.hk-footer-route-card {
  display: grid;
  gap: 0.55rem;
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(159, 199, 234, 0.16);
  border-radius: 18px;
}

.hk-footer-route-card .wp-block-buttons {
  margin-top: 0.15rem;
}

.hk-footer-route-card__meta {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
}

.hk-footer-route-card__title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.2;
}

.hk-site-footer .wp-block-search__inside-wrapper {
  min-height: 52px;
  border-radius: 18px;
  border: 1px solid rgba(159, 199, 234, 0.28);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.3rem;
}

.hk-site-footer .wp-block-search__input {
  min-height: 44px;
  border: 0;
  color: #f5f9fd;
  background: transparent;
  padding: 0 0.95rem;
}

.hk-site-footer .wp-block-search__button,
.hk-site-footer .wp-block-button__link {
  border-color: rgba(255, 255, 255, 0.14);
}

.hk-site-footer .is-style-outline .wp-block-button__link,
.hk-site-footer .wp-block-search__button {
  background: rgba(255, 255, 255, 0.08);
  color: #f5f9fd;
}

.hk-site-footer .is-style-outline .wp-block-button__link:hover,
.hk-site-footer .wp-block-search__button:hover,
.hk-site-footer .is-style-outline .wp-block-button__link:focus,
.hk-site-footer .wp-block-search__button:focus {
  background: rgba(255, 255, 255, 0.14);
}

.hk-site-footer__meta,
.hk-menu-board__closing {
  margin-top: 1rem;
  color: #c2d6ea;
  font-size: 0.92rem;
  line-height: 1.45;
}

.hk-empty {
  padding: 1rem;
  border-radius: 14px;
  background: rgba(22, 97, 179, 0.08);
  border: 1px dashed rgba(22, 97, 179, 0.4);
}

.hk-overlay-list details {
  border-top: 1px solid rgba(141, 178, 211, 0.75);
  padding-top: 0.7rem;
}

.hk-overlay-list summary {
  cursor: pointer;
  font-weight: 700;
}

.hk-search-box .wp-block-search__inside-wrapper {
  border: 2px solid var(--hk-stage);
  border-radius: 999px;
  background: #fff;
  padding: 0.35rem;
}

.hk-search-box .wp-block-search__input {
  min-height: 46px;
  border: 0;
  padding: 0 1rem;
}

.hk-live-search {
  position: relative;
  width: 100%;
}

.hk-live-search__toggle {
  min-width: 160px;
  min-height: 50px;
  justify-content: center;
  width: 100%;
  padding-inline: 1.35rem;
  font-size: 0.98rem;
}

.hk-live-search__overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(7, 11, 16, 0.7);
  padding: 1rem;
  overflow-y: auto;
}

.hk-live-search__panel {
  width: min(980px, 100%);
  min-height: min(720px, calc(100vh - 4rem));
  margin: 2rem auto;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(141, 178, 211, 0.8);
  border-radius: var(--hk-radius);
  box-shadow: var(--hk-shadow);
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 0.75rem;
}

.hk-live-search__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.hk-live-search__close {
  border: 0;
  background: transparent;
  color: var(--hk-ink);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.hk-live-search__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hk-live-search__input,
.hk-live-search__submit {
  min-height: 48px;
  border-radius: 999px;
}

.hk-live-search__input {
  border: 2px solid var(--hk-stage);
  padding: 0 1rem;
  background: #fff;
}

.hk-live-search__submit {
  border: 2px solid var(--hk-stage);
  background: var(--hk-stage);
  color: #fff;
  font-weight: 700;
  padding: 0 1.2rem;
  cursor: pointer;
}

.hk-live-search__status {
  min-height: 1.2rem;
  color: var(--hk-muted);
  font-size: 0.95rem;
}

.hk-live-search__results {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.hk-live-search__result {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
}

.hk-live-search__result-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 14px;
  aspect-ratio: 16 / 10;
}

.hk-live-search__result-type {
  margin: 0 0 0.4rem;
  color: var(--hk-muted);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hk-live-search__result-copy h3 {
  margin-top: 0;
}

.hk-live-search__result-excerpt {
  margin-bottom: 0;
}

.hk-live-search__footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.5rem;
}

.hk-live-search__all-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  border: 2px solid var(--hk-stage);
  background: #fff;
  color: var(--hk-stage);
  font-weight: 700;
  padding: 0.7rem 1rem;
  text-decoration: none;
}

body.hk-live-search--open {
  overflow: hidden;
}

.hk-game {
  padding: 1rem;
}

.hk-game__button,
.hk-game__choice {
  min-height: 44px;
  border-radius: 999px;
  border: 2px solid var(--hk-stage);
  background: #fff;
  color: var(--hk-stage);
  font-weight: 700;
  padding: 0.7rem 1rem;
  cursor: pointer;
}

.hk-game__status {
  margin-bottom: 0;
}

.hk-game__choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hk-page-shell {
  display: grid;
  gap: 1rem;
}

.hk-post-404 {
  padding: 2rem;
  text-align: center;
}

.hk-post-404__code {
  margin: 0;
  font-size: clamp(6rem, 18vw, 11rem);
  line-height: 0.8;
}

@media (max-width: 1100px) {
  .hk-grid-4,
  .hk-grid-3,
  .hk-category-grid,
  .hk-quiz-grid,
  .hk-footer__grid,
  .hk-loop-grid,
  .hk-single-grid,
  .hk-post-lead,
  .hk-bestof-grid,
  .hk-bestof-duo,
  .hk-bestof-editorial-top,
  .hk-bestof-editorial-middle,
  .hk-themehub-grid {
    grid-template-columns: 1fr;
  }
  .hk-live-search__result {
    grid-template-columns: 1fr;
  }

  .hk-brandbar__core,
  .hk-brandbar__core--stage {
    align-items: flex-start;
  }

  .hk-site-header__controls--stage {
    width: 100%;
    justify-content: stretch;
  }

  .hk-themehub-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 782px) {
  body {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hk-shell,
  .hk-header,
  .hk-footer,
  .hk-site-footer-wrap,
  .hk-site-footer {
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }

  .hk-header,
  .hk-site-header {
    padding-top: 0.7rem;
    padding-bottom: 0.85rem;
  }

  .hk-brandbar,
  .hk-menu-board {
    border-radius: 22px;
  }

  .hk-brandbar {
    padding: 0.9rem 0.9rem 0.8rem;
  }

  .wp-block-group.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
  .wp-block-post-content.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: min(94vw, var(--wp--style--layout--content-size, var(--wp--style--global--content-size, 94vw)));
  }

  .hk-header .custom-logo,
  .hk-header .wp-block-site-logo img,
  .hk-site-header .custom-logo,
  .hk-site-header .wp-block-site-logo img {
    width: min(188px, 56vw);
  }

  .hk-header-search {
    min-width: 100%;
  }

  .hk-brandbar__meta,
  .hk-site-header__utility {
    padding-bottom: 0.65rem;
  }

  .hk-brandbar__core,
  .hk-brandbar__core--stage {
    padding-top: 0.8rem;
    padding-bottom: 0.65rem;
  }

  .hk-brand-lockup,
  .hk-site-header__brand {
    align-items: flex-start;
  }

  .hk-brand-copy .wp-block-site-title,
  .hk-brand-copy .wp-block-site-title a {
    font-size: clamp(1.35rem, 7vw, 1.8rem);
  }

  .hk-brand-claim {
    font-size: 0.92rem;
  }

  .hk-brand-description {
    font-size: 0.88rem;
  }

  .hk-main-nav .wp-block-navigation__container,
  .hk-main-nav--editorial .wp-block-navigation__container {
    row-gap: 0.35rem;
  }

  .hk-header .wp-block-navigation-item__content,
  .hk-site-header .wp-block-navigation-item__content {
    padding: 0.68rem 0.85rem;
  }

  .hk-hero__media,
  .hk-hero__media img {
    min-height: 320px;
  }

  .hk-live-search__panel {
    margin: 0;
    min-height: 100dvh;
    border-radius: 0;
  }

  .hk-themehub-row__main {
    grid-template-columns: 1fr;
  }

  .hk-themehub-row__image img {
    aspect-ratio: 16 / 10;
  }

  .hk-themehub-row__topics {
    padding-left: 0;
  }

  .hk-live-search__form {
    grid-template-columns: 1fr;
  }

  .hk-post-card__image img,
  .hk-category-card__thumb img,
  .hk-quiz-card__image img {
    width: min(100%, 600px);
    margin-inline: auto;
  }

  .hk-menu-board__panel,
  .hk-site-footer .hk-footer__panel {
    padding: 1rem;
  }

  .hk-site-footer {
    padding: 1rem;
  }

  .hk-footer-route-card {
    padding: 0.85rem 0.9rem;
  }

  .hk-site-footer__meta,
  .hk-menu-board__closing {
    margin-top: 0.8rem;
    font-size: 0.88rem;
  }
}

.hk-latest-editorial-top {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.hk-latest-query .wp-block-post-template {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hk-latest-query--stack .wp-block-post-template {
  display: grid;
  gap: 1rem;
}

.hk-latest-stack-item__image img {
  width: 100%;
  display: block;
  border-radius: 14px;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

@media (max-width: 1100px) {
  .hk-latest-editorial-top {
    grid-template-columns: 1fr;
  }
}
