/*
 * Editorial presentation layer.
 * All colors resolve through theme.json and owner Global Styles semantic
 * presets; no brand color value is duplicated here.
 */

:where(html) {
  scroll-behavior: smooth;
}

:where(body) {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

:where(body, button, input, select, textarea) {
  font-family: var(--wp--preset--font-family--sans);
}

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

:where(img, video, iframe) {
  max-width: 100%;
  height: auto;
}

:where(.wp-site-blocks) { min-width: 0; }

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

:where(a) {
  text-underline-offset: 0.18em;
  transition: color 140ms ease, text-decoration-color 140ms ease;
}

:where(a:hover) {
  text-decoration-thickness: 0.14em;
}

:where(.wp-element-button, button, input[type="submit"]) {
  min-height: 2.75rem;
  cursor: pointer;
  transition: filter 140ms ease;
}

:where(.wp-element-button, button, input[type="submit"]):hover {
  filter: brightness(0.92);
}

:where(input, select, textarea) {
  max-width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 0.75rem;
  color: var(--wp--preset--color--text);
  background: var(--wp--preset--color--surface);
  border: 1px solid color-mix(in srgb, var(--wp--preset--color--muted) 48%, transparent);
  border-radius: 0.2rem;
}

:where(textarea) {
  min-height: 9rem;
}

:where(.screen-reader-text) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  white-space: nowrap;
}

.screen-reader-text:focus {
  z-index: 100000;
  top: 0.75rem;
  left: 0.75rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  overflow: visible;
  clip: auto;
  clip-path: none;
  color: var(--wp--preset--color--surface);
  background: var(--wp--preset--color--text);
}

.hh-skip-link-wrapper {
  margin: 0;
}

/* Header and footer remain editable template parts. */
.hh-site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--muted) 28%, transparent);
}

.hh-site-header__inner {
  min-height: 5.25rem;
}

.hh-site-brand {
  min-width: max-content;
}

.hh-site-brand .wp-block-site-title {
  margin: 0;
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.9rem);
  font-weight: 780;
  letter-spacing: -0.035em;
}

.hh-site-brand a,
.hh-site-header .wp-block-navigation-item__content {
  text-decoration: none;
}

.hh-site-header .wp-block-navigation {
  font-size: 0.875rem;
  font-weight: 650;
}

.hh-site-header .wp-block-navigation-item__content {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
}

.hh-site-header .wp-block-search__inside-wrapper {
  min-width: 2.75rem;
  border: 0;
}

.hh-site-header .wp-block-search__input {
  min-width: 8rem;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
}

.hh-site-header .wp-block-search__button {
  padding-inline: 0.7rem;
  color: var(--wp--preset--color--text);
  background: transparent;
}

.hh-site-footer {
  margin-block-start: var(--wp--preset--spacing--50);
  color: var(--wp--preset--color--background);
  background: var(--wp--preset--color--text);
}

.hh-site-footer a,
.hh-site-footer .wp-block-site-title,
.hh-site-footer .wp-block-site-tagline {
  color: inherit;
}

.hh-site-footer a {
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
}

.hh-site-footer__top {
  padding-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40);
}

.hh-site-footer__bottom {
  padding-block: var(--wp--preset--spacing--20);
  border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  font-size: var(--wp--preset--font-size--small);
}

/* Page and archive scaffolding. */
.hh-page-main,
.hh-archive-main,
.hh-single-main {
  min-width: 0;
}

.haihai-breadcrumbs {
  width: min(100%, var(--wp--style--global--wide-size));
  padding-inline: var(--wp--preset--spacing--30);
  margin: var(--wp--preset--spacing--30) auto 0;
  color: var(--wp--preset--color--muted);
  border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--muted) 26%, transparent);
  font-size: var(--wp--preset--font-size--small);
}

.haihai-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.55rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.haihai-breadcrumbs__item {
  display: flex;
  min-width: 0;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.55rem;
  overflow-wrap: anywhere;
}

.haihai-breadcrumbs__item:not(:last-child)::after {
  content: "/";
  color: color-mix(in srgb, var(--wp--preset--color--muted) 60%, transparent);
}

.haihai-breadcrumbs a {
  color: inherit;
  text-decoration-thickness: 1px;
}

.haihai-breadcrumbs [aria-current="page"] {
  color: var(--wp--preset--color--text);
}

.hh-page-header,
.hh-archive-header,
.hh-single-header {
  padding-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40);
}

.hh-page-header .wp-block-post-title,
.hh-archive-header .wp-block-query-title,
.hh-single-header .wp-block-post-title {
  max-width: 22ch;
  margin-block: 0;
  font-size: var(--wp--preset--font-size--display);
  overflow-wrap: anywhere;
}

.hh-single-kicker,
.hh-pattern-kicker,
.hh-query-kicker {
  margin-block: 0 0.6rem;
  color: var(--wp--preset--color--secondary);
  font-size: 0.75rem;
  font-weight: 760;
  letter-spacing: 0.12em;
}

.hh-single-meta,
.hh-query-meta {
  color: var(--wp--preset--color--muted);
  font-size: var(--wp--preset--font-size--small);
}

.hh-single-featured {
  margin-block: 0 var(--wp--preset--spacing--40);
}

.hh-single-featured img {
  width: 100%;
  max-height: 46rem;
  object-fit: cover;
  border-radius: 0.35rem;
}

.hh-reading-column {
  padding-bottom: var(--wp--preset--spacing--50);
}

.hh-reading-column :where(p, li) {
  overflow-wrap: anywhere;
}

.hh-reading-column :where(h2) {
  margin-block-start: 2.8rem;
  font-size: clamp(1.45rem, 1.2rem + 1vw, 2.05rem);
}

.hh-reading-column :where(h3) {
  margin-block-start: 2.15rem;
}

.hh-reading-column :where(blockquote) {
  padding-inline-start: 1.25rem;
  margin-inline: 0;
  color: var(--wp--preset--color--muted);
  border-inline-start: 0.2rem solid var(--wp--preset--color--secondary);
}

.hh-reading-column :where(table) {
  width: 100%;
  border-collapse: collapse;
}

.hh-reading-column :where(th, td) {
  padding: 0.65rem;
  border: 1px solid color-mix(in srgb, var(--wp--preset--color--muted) 36%, transparent);
  text-align: start;
}

.hh-post-navigation {
  padding-block-start: var(--wp--preset--spacing--30);
  margin-block-start: var(--wp--preset--spacing--40);
  border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--muted) 34%, transparent);
}

.hh-pagination {
  padding-block: var(--wp--preset--spacing--40);
}

.hh-pagination .page-numbers {
  min-width: 2.75rem;
  min-height: 2.75rem;
}

/* Server-rendered discovery search: semantic GET form, enhanced by CSS only. */
.wp-block-haihai-discovery-search,
.haihai-discovery-search {
  width: min(100%, var(--wp--style--global--wide-size));
  padding-inline: var(--wp--preset--spacing--30);
  margin-inline: auto;
}

.hh-filter-disclosure > summary {
  display: none;
}

.discover-form {
  padding-block: var(--wp--preset--spacing--30);
  border-block: 1px solid color-mix(in srgb, var(--wp--preset--color--muted) 40%, transparent);
}

.discover-form__primary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.discover-form label > span,
.discover-form legend {
  display: block;
  margin-block-end: 0.35rem;
  color: var(--wp--preset--color--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.discover-form select,
.discover-form input[type="search"] {
  width: 100%;
}

.discover-form__keyword {
  grid-column: span 2;
}

.discover-form__conditions {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  padding: 1rem 0 0;
  margin: 1rem 0 1.25rem;
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--muted) 28%, transparent);
}

.discover-form__conditions legend {
  width: 100%;
}

.discover-form__conditions label {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.45rem;
  padding-block: 0.45rem;
  border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--muted) 24%, transparent);
  font-size: 0.875rem;
}

.discover-form__conditions label > span {
  margin: 0;
  color: inherit;
  font-size: inherit;
}

.discover-form input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  accent-color: var(--wp--preset--color--secondary);
}

.discover-form__submit {
  padding: 0.75rem 1.15rem;
  color: var(--wp--preset--color--surface);
  background: var(--wp--preset--color--primary);
  border: 1px solid var(--wp--preset--color--primary);
  border-radius: 0.2rem;
  font-weight: 700;
}

.discover-form__current {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding-block: 0.85rem;
  border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--muted) 30%, transparent);
  font-size: 0.8125rem;
}

.discover-form__current > span {
  color: var(--wp--preset--color--muted);
  font-weight: 700;
}

.discover-form__current ul {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.discover-form__current li {
  border-bottom: 1px solid currentColor;
}

.discover-form__current > a {
  font-weight: 700;
}

.discover-results {
  padding-block: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
}

.discover-results .section-heading {
  margin-block-end: var(--wp--preset--spacing--30);
}

.discover-results .section-heading h2 {
  max-width: 24ch;
  margin-block: 0;
  font-size: var(--wp--preset--font-size--x-large);
}

.discover-results .content-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.discover-results .content-card {
  min-width: 0;
  grid-column: span 4;
}

.discover-results .content-card:first-child {
  grid-column: span 7;
}

.discover-results .content-card:nth-child(2) {
  grid-column: span 5;
}

.content-card__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-block-end: 0.9rem;
  background: color-mix(in srgb, var(--wp--preset--color--secondary) 11%, var(--wp--preset--color--surface));
}

.content-card:first-child .content-card__media {
  aspect-ratio: 16 / 10;
}

.content-card__media img,
.content-card__placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-card__placeholder {
  display: block;
}

.content-card__meta {
  display: flex;
  min-height: 1.2rem;
  flex-wrap: wrap;
  gap: 0.4rem;
  color: var(--wp--preset--color--muted);
  font-size: 0.75rem;
}

.content-card__body h3 {
  margin-block: 0.35rem;
  font-size: clamp(1.05rem, 0.95rem + 0.45vw, 1.35rem);
}

.content-card__body h3 a {
  text-decoration: none;
}

.content-card__body > p:not(.content-card__date, .verification-badge) {
  color: var(--wp--preset--color--muted);
  font-size: 0.875rem;
}

.content-card__date {
  color: var(--wp--preset--color--secondary);
  font-weight: 700;
}

.verification-badge {
  color: var(--wp--preset--color--muted);
  font-size: 0.75rem;
}

.disclosure {
  padding-inline-start: 0.4rem;
  border-inline-start: 0.15rem solid var(--wp--preset--color--primary);
  font-weight: 750;
}

.pagination {
  margin-block-start: var(--wp--preset--spacing--40);
}

.pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  padding: 0;
  list-style: none;
}

.pagination a,
.pagination span {
  display: grid;
  min-width: 2.75rem;
  min-height: 2.75rem;
  place-items: center;
  padding: 0.35rem;
  border-bottom: 1px solid currentColor;
}

.pagination .current {
  color: var(--wp--preset--color--surface);
  background: var(--wp--preset--color--secondary);
  border-color: var(--wp--preset--color--secondary);
}

.empty-state {
  max-width: 42rem;
  padding-block: var(--wp--preset--spacing--30);
  border-block: 1px solid color-mix(in srgb, var(--wp--preset--color--muted) 40%, transparent);
}

.empty-state h2,
.empty-state h3 {
  margin-block-start: 0;
}

.haihai-event-summary {
  padding-block: 0.65rem;
  margin-block: 0.65rem;
  border-block: 1px solid color-mix(in srgb, var(--wp--preset--color--muted) 30%, transparent);
}

.haihai-event-summary p {
  margin-block: 0.25rem;
}

.haihai-event-summary__date {
  color: var(--wp--preset--color--secondary);
  font-weight: 750;
}

.haihai-event-summary__venue,
.haihai-event-summary__status {
  color: var(--wp--preset--color--muted);
  font-size: var(--wp--preset--font-size--small);
}

.haihai-event-summary__status {
  padding-inline-start: 0.45rem;
  border-inline-start: 0.2rem solid currentColor;
  font-weight: 700;
}

.haihai-event-summary__status--cancelled,
.haihai-event-summary__status--postponed,
.haihai-event-summary__status--ended {
  color: var(--wp--preset--color--primary);
}

/* Shared section language: whitespace and rules instead of repeated cards. */
.hh-section,
.haihai-home-section {
  padding-block: var(--wp--preset--spacing--50);
}

.haihai-home-section {
  width: min(100%, var(--wp--style--global--wide-size));
  padding-inline: var(--wp--preset--spacing--30);
  margin-inline: auto;
}

.hh-section + .hh-section,
.haihai-home-section + .haihai-home-section,
.is-style-editorial-rule {
  border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--muted) 34%, transparent);
}

.is-style-quiet-surface,
.haihai-home-section--sand {
  background: color-mix(in srgb, var(--wp--preset--color--primary) 7%, var(--wp--preset--color--background));
}

.haihai-home-section--sage {
  background: color-mix(in srgb, var(--wp--preset--color--secondary) 8%, var(--wp--preset--color--surface));
}

.haihai-home-section--plain {
  background: var(--wp--preset--color--surface);
}

.hh-section-heading,
.haihai-home-section__heading {
  max-width: 23ch;
  margin-block: 0;
  font-size: var(--wp--preset--font-size--x-large);
}

.hh-section-intro,
.haihai-home-section__description {
  max-width: 42rem;
  color: var(--wp--preset--color--muted);
}

.haihai-home-section__items {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.8vw, 2.25rem);
  margin-block-start: var(--wp--preset--spacing--40);
}

.haihai-home-section__media,
.haihai-home-section__placeholder {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-block-end: 0.9rem;
  background: color-mix(in srgb, var(--wp--preset--color--secondary) 11%, var(--wp--preset--color--surface));
}

.haihai-home-section__placeholder,
.content-card__placeholder {
  position: relative;
}

.haihai-home-section__placeholder::after,
.content-card__placeholder::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  content: "画像は未設定です";
  color: var(--wp--preset--color--muted);
  font-size: var(--wp--preset--font-size--small);
  text-align: center;
}

.haihai-home-section__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.haihai-home-section__item-body {
  min-width: 0;
}

.haihai-home-section__item-body h3 {
  margin-block: 0.35rem;
  font-size: clamp(1.05rem, 0.95rem + 0.45vw, 1.35rem);
  line-height: 1.45;
}

.haihai-home-section__item-body h3 a {
  text-decoration: none;
}

.haihai-home-section__item-body > p:not(.haihai-home-section__meta, .haihai-home-section__date) {
  margin-block: 0.45rem 0;
  color: var(--wp--preset--color--muted);
  font-size: 0.875rem;
}

.haihai-home-section__meta {
  display: flex;
  min-height: 1.25rem;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-block: 0;
  color: var(--wp--preset--color--muted);
  font-size: 0.75rem;
}

.haihai-home-section__date {
  margin-block: 0.45rem 0;
  color: var(--wp--preset--color--secondary);
  font-weight: 700;
}

.haihai-disclosure {
  padding-inline-start: 0.4rem;
  border-inline-start: 0.15rem solid var(--wp--preset--color--primary);
  font-weight: 750;
}

.haihai-home-section__item {
  min-width: 0;
  grid-column: span 4;
}

.wp-block-haihai-main-feature .haihai-home-section__item {
  grid-column: 1 / -1;
}

.wp-block-haihai-main-feature .haihai-home-section__item.is-featured {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(17rem, 5fr);
  align-items: end;
  gap: clamp(1.5rem, 5vw, 4.5rem);
}

.wp-block-haihai-main-feature .haihai-home-section__item.is-featured .haihai-home-section__media,
.wp-block-haihai-main-feature .haihai-home-section__item.is-featured .haihai-home-section__placeholder {
  min-height: clamp(23rem, 49vw, 38rem);
  margin: 0;
}

.wp-block-haihai-main-feature .haihai-home-section__item.is-featured .haihai-home-section__item-body {
  padding-block: var(--wp--preset--spacing--40);
}

.wp-block-haihai-main-feature .haihai-home-section__item.is-featured h3 {
  font-size: var(--wp--preset--font-size--x-large);
}

.wp-block-haihai-editor-picks .haihai-home-section__item:first-child,
.wp-block-haihai-article-list .haihai-home-section__item:first-child,
.wp-block-haihai-spot-list .haihai-home-section__item:first-child {
  grid-column: span 7;
}

.wp-block-haihai-editor-picks .haihai-home-section__item:nth-child(n + 2),
.wp-block-haihai-article-list .haihai-home-section__item:nth-child(n + 2),
.wp-block-haihai-spot-list .haihai-home-section__item:nth-child(2) {
  grid-column: span 5;
  padding-block: var(--wp--preset--spacing--20);
  border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--muted) 34%, transparent);
}

.wp-block-haihai-category-navigation .haihai-home-section__item,
.wp-block-haihai-condition-navigation .haihai-home-section__item,
.wp-block-haihai-area-navigation .haihai-home-section__item {
  min-height: 4.75rem;
  padding-block: var(--wp--preset--spacing--20);
  border-block-end: 1px solid color-mix(in srgb, var(--wp--preset--color--muted) 38%, transparent);
}

.haihai-home-section__links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  margin-block: var(--wp--preset--spacing--40) 0;
  border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--muted) 38%, transparent);
  list-style: none;
}

.haihai-home-section__links li {
  min-width: 0;
  padding-block: 0.8rem;
  border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--muted) 38%, transparent);
}

.haihai-home-section__links li:not(:nth-child(4n + 1)) {
  padding-inline-start: 1rem;
  border-inline-start: 1px solid color-mix(in srgb, var(--wp--preset--color--muted) 25%, transparent);
}

.haihai-home-section__links a {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  font-weight: 680;
  text-decoration: none;
}

.haihai-home-section__condition-groups .haihai-home-section__links + .haihai-home-section__links {
  margin-block-start: var(--wp--preset--spacing--30);
}

.wp-block-haihai-category-navigation .haihai-home-section__item a,
.wp-block-haihai-area-navigation .haihai-home-section__item a {
  font-size: var(--wp--preset--font-size--large);
  font-weight: 700;
  text-decoration: none;
}

.wp-block-haihai-condition-navigation .haihai-home-section__items {
  gap: 0 1.25rem;
}

.wp-block-haihai-condition-navigation .haihai-home-section__item {
  grid-column: span 3;
  min-height: 2.75rem;
}

.wp-block-haihai-record-details,
.wp-block-haihai-provenance,
.haihai-record-details,
.haihai-provenance {
  width: min(100%, var(--wp--style--global--content-size));
  margin-inline: auto;
  margin-block: var(--wp--preset--spacing--40);
}

.wp-block-haihai-record-details,
.haihai-record-details {
  border-block: 1px solid color-mix(in srgb, var(--wp--preset--color--muted) 38%, transparent);
}

.wp-block-haihai-provenance,
.haihai-provenance {
  padding: var(--wp--preset--spacing--30);
  color: var(--wp--preset--color--muted);
  background: color-mix(in srgb, var(--wp--preset--color--secondary) 7%, var(--wp--preset--color--surface));
  border-inline-start: 0.25rem solid var(--wp--preset--color--secondary);
  font-size: var(--wp--preset--font-size--small);
}

.haihai-record-details > h2 {
  margin-block: var(--wp--preset--spacing--30) var(--wp--preset--spacing--20);
  font-size: var(--wp--preset--font-size--large);
}

.haihai-record-details dl {
  margin: 0;
}

.haihai-record-details dl > div {
  display: grid;
  grid-template-columns: minmax(6.5rem, 0.28fr) minmax(0, 1fr);
  gap: 1rem;
  padding-block: 0.75rem;
  border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--muted) 28%, transparent);
}

.haihai-record-details dt {
  color: var(--wp--preset--color--muted);
  font-size: var(--wp--preset--font-size--small);
  font-weight: 700;
}

.haihai-record-details dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.haihai-record-details__caution {
  padding-inline-start: var(--wp--preset--spacing--30);
  margin-block: var(--wp--preset--spacing--30);
  border-inline-start: 0.25rem solid var(--wp--preset--color--secondary);
}

.haihai-record-details__caution h3 {
  font-size: 1rem;
}

.haihai-provenance p {
  margin-block: 0.4rem;
}

.haihai-home-section__cta-image {
  margin-block: var(--wp--preset--spacing--40);
}

.haihai-home-section__cta-image img {
  width: 100%;
  max-height: 28rem;
  object-fit: cover;
}

.haihai-home-section__empty {
  padding-block: var(--wp--preset--spacing--30);
  color: var(--wp--preset--color--muted);
  border-block: 1px solid color-mix(in srgb, var(--wp--preset--color--muted) 35%, transparent);
}

.haihai-home-section__cta {
  display: inline-block;
  margin-block-start: var(--wp--preset--spacing--30);
  font-weight: 700;
}

/* Editable feature patterns. */
.hh-feature-layout {
  align-items: stretch;
}

.hh-feature-copy {
  padding-block: clamp(2rem, 5vw, 5rem);
}

.hh-feature-copy h1,
.hh-feature-copy h2 {
  max-width: 13ch;
  margin-block: 0;
  font-size: var(--wp--preset--font-size--display);
  line-height: 1.15;
}

.hh-feature-copy p:not(.hh-pattern-kicker) {
  max-width: 36rem;
  color: var(--wp--preset--color--muted);
}

.hh-feature-media,
.hh-image-placeholder {
  min-height: clamp(20rem, 56vw, 39rem);
  background: color-mix(in srgb, var(--wp--preset--color--secondary) 16%, var(--wp--preset--color--surface));
}

.hh-image-placeholder {
  display: grid;
  place-items: center;
  padding: var(--wp--preset--spacing--30);
  color: var(--wp--preset--color--muted);
  border-block: 1px solid color-mix(in srgb, var(--wp--preset--color--muted) 30%, transparent);
  text-align: center;
}

.hh-feature-media img,
.hh-image-text img,
.hh-query-list .wp-block-post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hh-image-text {
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
}

.hh-image-text__media,
.hh-site-footer__brand {
  flex-basis: 46%;
}

.hh-image-text__media {
  flex-basis: 58%;
}

.hh-image-text__copy {
  flex-basis: 42%;
}

.hh-site-footer__links {
  flex-basis: 54%;
}

.hh-image-text .wp-block-media-text__content {
  padding-block: var(--wp--preset--spacing--40);
}

/* Query patterns: intentionally varied image ratios and hierarchy. */
.hh-query-list.wp-block-post-template,
.hh-query-list .wp-block-post-template {
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.hh-query-list > li,
.hh-query-list .wp-block-post-template > li {
  min-width: 0;
}

.hh-query-list .wp-block-post-featured-image {
  margin-block-end: 0.9rem;
  background: color-mix(in srgb, var(--wp--preset--color--secondary) 10%, var(--wp--preset--color--surface));
}

.hh-query-list .wp-block-post-featured-image img {
  aspect-ratio: 4 / 3;
}

.hh-query-list .wp-block-post-title {
  margin-block: 0.4rem;
  font-size: clamp(1.05rem, 0.95rem + 0.45vw, 1.35rem);
  line-height: 1.45;
}

.hh-query-list .wp-block-post-title a {
  text-decoration: none;
}

.hh-query-list .wp-block-post-date,
.hh-query-list .wp-block-post-terms {
  color: var(--wp--preset--color--muted);
  font-size: 0.75rem;
}

.hh-query-list .wp-block-post-excerpt {
  font-size: 0.9rem;
}

.hh-editorial-grid.wp-block-post-template,
.hh-editorial-grid .wp-block-post-template,
.is-style-editorial-mix .wp-block-post-template {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.hh-editorial-grid > li:first-child,
.hh-editorial-grid .wp-block-post-template > li:first-child,
.is-style-editorial-mix .wp-block-post-template > li:first-child {
  grid-column: span 7;
  grid-row: span 2;
}

.hh-editorial-grid > li:nth-child(n + 2),
.hh-editorial-grid .wp-block-post-template > li:nth-child(n + 2),
.is-style-editorial-mix .wp-block-post-template > li:nth-child(n + 2) {
  grid-column: span 5;
  padding-block-start: var(--wp--preset--spacing--20);
  border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--muted) 34%, transparent);
}

.hh-editorial-grid > li:first-child .wp-block-post-featured-image img,
.hh-editorial-grid .wp-block-post-template > li:first-child .wp-block-post-featured-image img {
  aspect-ratio: 16 / 11;
}

.hh-editorial-grid > li:nth-child(n + 2) .wp-block-post-featured-image,
.hh-editorial-grid .wp-block-post-template > li:nth-child(n + 2) .wp-block-post-featured-image {
  float: inline-start;
  width: min(42%, 11rem);
  margin: 0 1rem 0.5rem 0;
}

.hh-editorial-grid > li:nth-child(n + 2) .wp-block-post-featured-image img,
.hh-editorial-grid .wp-block-post-template > li:nth-child(n + 2) .wp-block-post-featured-image img {
  aspect-ratio: 1;
}

.hh-five-grid.wp-block-post-template,
.hh-five-grid .wp-block-post-template {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.hh-five-grid > li,
.hh-five-grid .wp-block-post-template > li {
  grid-column: span 4;
}

.hh-five-grid > li:first-child,
.hh-five-grid .wp-block-post-template > li:first-child {
  grid-column: span 7;
}

.hh-five-grid > li:nth-child(2),
.hh-five-grid .wp-block-post-template > li:nth-child(2) {
  grid-column: span 5;
}

.hh-five-grid > li:first-child .wp-block-post-featured-image img,
.hh-five-grid .wp-block-post-template > li:first-child .wp-block-post-featured-image img {
  aspect-ratio: 16 / 10;
}

.hh-horizontal-scroll .wp-block-post-template,
.is-style-horizontal-strip .wp-block-post-template,
.wp-block-haihai-spot-list.is-style-horizontal-strip .haihai-home-section__items {
  display: grid;
  grid-auto-columns: minmax(17rem, 24rem);
  grid-auto-flow: column;
  grid-template-columns: none;
  gap: 1.25rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding-block-end: 1rem;
  scroll-snap-type: inline proximity;
  scrollbar-color: var(--wp--preset--color--secondary) transparent;
}

.hh-horizontal-scroll .wp-block-post-template > li,
.is-style-horizontal-strip .wp-block-post-template > li,
.wp-block-haihai-spot-list.is-style-horizontal-strip .haihai-home-section__item {
  grid-column: auto;
  scroll-snap-align: start;
}

.hh-brief-list.wp-block-post-template,
.hh-brief-list .wp-block-post-template {
  display: block;
  padding: 0;
  border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--muted) 42%, transparent);
}

.hh-brief-list > li,
.hh-brief-list .wp-block-post-template > li {
  display: grid;
  grid-template-columns: minmax(7rem, 0.25fr) minmax(0, 1fr);
  gap: 1.25rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--muted) 42%, transparent);
}

.hh-brief-list .wp-block-post-title,
.hh-brief-list .wp-block-post-date {
  margin: 0;
}

.is-style-ruled-list {
  padding: 0;
  border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--muted) 42%, transparent);
  list-style: none;
}

.is-style-ruled-list > li {
  padding-block: 0.85rem;
  border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--muted) 42%, transparent);
}

/* Navigation and callout patterns are typographic, not card grids. */
.hh-link-directory {
  border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--muted) 42%, transparent);
}

.hh-link-directory > .wp-block-group,
.hh-link-directory > .wp-block-column {
  min-height: 7rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--muted) 42%, transparent);
}

.hh-link-directory a {
  font-size: var(--wp--preset--font-size--large);
  font-weight: 700;
  text-decoration: none;
}

.hh-condition-links {
  gap: 0.2rem 1.25rem;
}

.hh-condition-links a {
  display: inline-block;
  min-height: 2.75rem;
  padding-block: 0.55rem;
  font-size: 0.875rem;
  font-weight: 650;
  text-decoration-thickness: 1px;
}

.hh-two-column-guide {
  border-block: 1px solid color-mix(in srgb, var(--wp--preset--color--muted) 40%, transparent);
}

.hh-two-column-guide > .wp-block-column {
  padding-block: var(--wp--preset--spacing--40);
}

.hh-two-column-guide > .wp-block-column + .wp-block-column {
  padding-inline-start: var(--wp--preset--spacing--40);
  border-inline-start: 1px solid color-mix(in srgb, var(--wp--preset--color--muted) 40%, transparent);
}

.hh-instagram-callout,
.hh-listing-callout {
  padding-block: var(--wp--preset--spacing--50);
  border-block: 1px solid color-mix(in srgb, var(--wp--preset--color--muted) 40%, transparent);
}

.hh-instagram-callout h2,
.hh-listing-callout h2 {
  max-width: 16ch;
  margin-block: 0;
  font-size: var(--wp--preset--font-size--x-large);
}

.hh-notice,
.hh-pr-disclosure {
  padding: var(--wp--preset--spacing--30);
  border-block: 1px solid color-mix(in srgb, var(--wp--preset--color--muted) 42%, transparent);
}

.hh-notice {
  border-inline-start: 0.25rem solid var(--wp--preset--color--secondary);
}

.hh-pr-disclosure {
  background: color-mix(in srgb, var(--wp--preset--color--primary) 7%, var(--wp--preset--color--surface));
}

.hh-notice > :first-child,
.hh-pr-disclosure > :first-child {
  margin-block-start: 0;
}

.hh-notice > :last-child,
.hh-pr-disclosure > :last-child {
  margin-block-end: 0;
}

.hh-404 {
  min-height: 55vh;
  padding-block: var(--wp--preset--spacing--50);
}

@media (max-width: 64rem) {
  .hh-site-header__inner {
    flex-wrap: wrap;
  }

  .hh-site-header__navigation {
    order: 3;
    width: 100%;
  }

  .hh-five-grid > li,
  .hh-five-grid .wp-block-post-template > li {
    grid-column: span 6;
  }

  .hh-five-grid > li:first-child,
  .hh-five-grid .wp-block-post-template > li:first-child {
    grid-column: span 7;
  }

  .hh-five-grid > li:nth-child(2),
  .hh-five-grid .wp-block-post-template > li:nth-child(2) {
    grid-column: span 5;
  }

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

@media (max-width: 48rem) {
  .hh-site-header__inner {
    min-height: 4.4rem;
  }

  .hh-site-header__search,
  .hh-site-header__cta {
    display: none;
  }

  .hh-site-header__navigation {
    order: initial;
    width: auto;
    margin-inline-start: auto;
  }

  .hh-filter-disclosure {
    border-block: 1px solid color-mix(in srgb, var(--wp--preset--color--muted) 40%, transparent);
  }

  .hh-filter-disclosure > summary {
    display: flex;
    min-height: 3rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    font-weight: 700;
    list-style: none;
  }

  .hh-filter-disclosure > summary::-webkit-details-marker {
    display: none;
  }

  .hh-filter-disclosure > summary::after {
    content: "+";
    font-size: 1.25rem;
    font-weight: 400;
  }

  .hh-filter-disclosure[open] > summary::after {
    content: "−";
  }

  .hh-filter-disclosure .discover-form {
    border-block-end: 0;
  }

  .discover-results .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .discover-results .content-card,
  .discover-results .content-card:first-child,
  .discover-results .content-card:nth-child(2) {
    grid-column: auto;
  }

  .hh-feature-layout,
  .hh-image-text {
    grid-template-columns: 1fr;
  }

  .wp-block-haihai-main-feature .haihai-home-section__item.is-featured {
    grid-template-columns: 1fr;
  }

  .wp-block-haihai-main-feature .haihai-home-section__item.is-featured .haihai-home-section__media,
  .wp-block-haihai-main-feature .haihai-home-section__item.is-featured .haihai-home-section__placeholder {
    min-height: 20rem;
  }

  .hh-feature-layout .wp-block-column,
  .hh-feature-copy {
    min-height: 0;
  }

  .hh-feature-media,
  .hh-image-placeholder {
    min-height: 20rem;
  }

  .hh-editorial-grid.wp-block-post-template,
  .hh-editorial-grid .wp-block-post-template,
  .is-style-editorial-mix .wp-block-post-template,
  .hh-five-grid.wp-block-post-template,
  .hh-five-grid .wp-block-post-template,
  .haihai-home-section__items {
    grid-template-columns: 1fr;
  }

  .hh-editorial-grid > li:first-child,
  .hh-editorial-grid > li:nth-child(n + 2),
  .hh-editorial-grid .wp-block-post-template > li:first-child,
  .hh-editorial-grid .wp-block-post-template > li:nth-child(n + 2),
  .is-style-editorial-mix .wp-block-post-template > li,
  .hh-five-grid > li,
  .hh-five-grid .wp-block-post-template > li,
  .haihai-home-section__item,
  .wp-block-haihai-main-feature .haihai-home-section__item,
  .wp-block-haihai-editor-picks .haihai-home-section__item:first-child,
  .wp-block-haihai-editor-picks .haihai-home-section__item:nth-child(n + 2),
  .wp-block-haihai-article-list .haihai-home-section__item,
  .wp-block-haihai-spot-list .haihai-home-section__item,
  .wp-block-haihai-condition-navigation .haihai-home-section__item {
    grid-column: 1;
  }

  .haihai-home-section__links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .haihai-home-section__links li:nth-child(n) {
    padding-inline-start: 0;
    border-inline-start: 0;
  }

  .haihai-home-section__links li:nth-child(even) {
    padding-inline-start: 1rem;
    border-inline-start: 1px solid color-mix(in srgb, var(--wp--preset--color--muted) 25%, transparent);
  }

  .hh-editorial-grid > li:nth-child(n + 2) .wp-block-post-featured-image,
  .hh-editorial-grid .wp-block-post-template > li:nth-child(n + 2) .wp-block-post-featured-image {
    float: none;
    width: 100%;
    margin: 0 0 0.9rem;
  }

  .hh-horizontal-scroll .wp-block-post-template,
  .is-style-horizontal-strip .wp-block-post-template,
  .wp-block-haihai-spot-list.is-style-horizontal-strip .haihai-home-section__items {
    grid-auto-columns: minmax(16rem, 82vw);
  }

  .hh-two-column-guide > .wp-block-column + .wp-block-column {
    padding-inline-start: 0;
    border-inline-start: 0;
    border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--muted) 40%, transparent);
  }
}

@media (max-width: 30rem) {
  .hh-brief-list > li,
  .hh-brief-list .wp-block-post-template > li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .haihai-record-details dl > div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .discover-form__primary,
  .discover-results .content-grid {
    grid-template-columns: 1fr;
  }

  .discover-form__keyword {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  :where(html) {
    scroll-behavior: auto;
  }

  :where(*, *::before, *::after) {
    scroll-behavior: auto;
    transition-duration: 0.01ms;
  }
}

/* September editorial revision: preserve blocks and make sparse media useful. */
.hh-site-brand { min-width: 0; }
.hh-site-brand__text { min-width: 0; }
.hh-site-brand .wp-block-site-tagline { margin: 0.3rem 0 0; color: var(--wp--preset--color--muted); font-size: 0.75rem; line-height: 1.6; }
.hh-site-header__inner { min-height: 6rem; gap: 1.5rem; }
.hh-site-header__cta { display: none; }
.hh-site-header__search { max-width: 12rem; }
.hh-site-header .wp-block-navigation { font-size: 0.875rem; font-weight: 600; }
.hh-page-main > .wp-block-site-title { max-width: var(--wp--style--global--wide-size); margin: 1.5rem auto 0; font-size: 1.5rem; text-align: left; }
.hh-site-footer { color: var(--wp--preset--color--text); background: transparent; border-top: 1px solid currentColor; }
.hh-site-footer__top { padding-block: var(--wp--preset--spacing--40); }
.hh-site-footer__bottom { color: var(--wp--preset--color--muted); border-color: var(--wp--preset--color--border); }
.hh-site-footer .wp-block-site-title { font-size: 1.5rem; }
.hh-site-footer .wp-block-site-tagline { color: var(--wp--preset--color--muted); }
.hh-page-header,.hh-archive-header,.hh-single-header { padding-block: var(--wp--preset--spacing--40); }
.hh-single-header .wp-block-post-title { max-width: 24em; }
.hh-single-featured { margin-block: var(--wp--preset--spacing--30) 0; }
.hh-single-featured img { max-height: 40rem; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0.2rem; }
.hh-single-spot .hh-single-featured { max-width: min(100%,var(--wp--style--global--wide-size)); }
.hh-single-kicker,.hh-pattern-kicker,.hh-query-kicker { color: var(--wp--preset--color--primary); font-size: 0.8125rem; letter-spacing: 0.04em; }
.hh-reading-column { max-width: var(--wp--style--global--content-size); }
.hh-reading-column :where(p,li) { line-height: 1.9; }
.discover-form label > span,.discover-form legend { font-size: 0.875rem; }
.discover-results .content-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.discover-results .content-card,.discover-results .content-card:first-child,.discover-results .content-card:nth-child(2) { grid-column: auto; }
.content-card__media,.content-card:first-child .content-card__media { aspect-ratio: 3 / 2; background: transparent; }
.content-card__body > p:not(.content-card__date,.verification-badge) { font-size: 1rem; }
.content-card__meta,.verification-badge,.haihai-home-section__meta { font-size: 0.8125rem; }
.content-card:has(.content-card__placeholder) { padding-block-start: 1.5rem; border-top: 1px solid var(--wp--preset--color--border); }
.content-card__media:has(.content-card__placeholder) { display: none; }
.haihai-home-section__placeholder { display: none; }
.haihai-home-section__media { aspect-ratio: 3 / 2; background: transparent; }
.haihai-home-section__item:has(> .haihai-home-section__placeholder) { padding-block-start: 1.5rem; border-top: 1px solid var(--wp--preset--color--border); }
.wp-block-haihai-main-feature .haihai-home-section__item.is-featured { align-items: center; }
.wp-block-haihai-main-feature .haihai-home-section__item.is-featured:has(.haihai-home-section__placeholder) { display: block; max-width: 52rem; border-top: 3px solid var(--wp--preset--color--text); }
.wp-block-haihai-main-feature .haihai-home-section__item.is-featured .haihai-home-section__media { min-height: 0; aspect-ratio: 4 / 3; }
.wp-block-haihai-main-feature .haihai-home-section__item.is-featured .haihai-home-section__item-body { padding-block: 1rem; }
.wp-block-haihai-main-feature .haihai-home-section__item.is-featured h3 { max-width: 20em; font-size: var(--wp--preset--font-size--display); }
.haihai-home-section__item-body > p:not(.haihai-home-section__meta,.haihai-home-section__date) { font-size: 1rem; }
.wp-block-haihai-weekend .haihai-home-section__items { display: block; }
.wp-block-haihai-weekend .haihai-home-section__item { padding-block: 1.25rem; border-top: 1px solid var(--wp--preset--color--border); }
.wp-block-haihai-weekend .haihai-home-section__media { display: none; }
.wp-block-haihai-weekend .haihai-home-section__date { font-size: 1.25rem; }
.hh-feature-media,.hh-image-placeholder { min-height: 0; aspect-ratio: 4 / 3; }
.hh-editorial-grid .wp-block-post-featured-image img,.hh-five-grid .wp-block-post-featured-image img { aspect-ratio: 3 / 2; }
.hh-feature-copy { min-height: 0; }
.haihai-record-details dl > div { border-color: var(--wp--preset--color--border); }
@media (max-width: 64rem) { .hh-site-header__inner { flex-wrap: wrap; } .hh-site-header__search { display: none; } }
@media (max-width: 48rem) {
  .hh-site-header__inner { min-height: 5.5rem; flex-wrap: nowrap; }
  .hh-site-brand .wp-block-site-title { font-size: 1.625rem; }
  .hh-site-brand .wp-block-site-tagline { max-width: 15rem; font-size: 0.6875rem; }
  .hh-site-brand .wp-block-site-logo { max-width: 2.5rem; }
  .hh-site-header .wp-block-navigation { margin-inline-start: auto; }
  .hh-site-header__navigation { order: initial; width: auto; }
  .hh-page-main > .wp-block-site-title { margin-top: 1rem; font-size: 1rem; }
  .discover-results .content-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .wp-block-haihai-main-feature .haihai-home-section__item.is-featured .haihai-home-section__media { min-height: 0; }
  .hh-feature-media,.hh-image-placeholder { min-height: 0; }
  .hh-single-header .wp-block-post-title { font-size: 1.75rem; }
  .hh-single-header { padding-block: 1.5rem; }
  .hh-section,.haihai-home-section { padding-block: 3rem; }
}
@media (max-width: 30rem) {
  .discover-results .content-grid { grid-template-columns: 1fr; }
  .hh-site-brand .wp-block-site-tagline { max-width: 11rem; }
}

/* Long owner-edited names and links must not set a minimum page width. */
.hh-site-header__inner { flex-wrap: wrap; }
.hh-site-brand { flex: 1 1 18rem; max-width: 100%; }
.hh-site-brand__text { flex: 1 1 auto; }
.hh-site-brand .wp-block-site-logo { flex: 0 0 auto; }
.hh-site-brand .wp-block-site-title,
.hh-site-brand .wp-block-site-tagline,
.hh-site-footer .wp-block-site-title { overflow-wrap: anywhere; word-break: normal; }
.hh-site-header__navigation { flex: 1 1 24rem; min-width: 0; max-width: 100%; }
.hh-site-header__search { flex: 0 1 12rem; min-width: 0; }
.hh-site-header .wp-block-navigation__responsive-container-open { flex-shrink: 0; min-width: 2.75rem; min-height: 2.75rem; }
.haihai-home-section__header,
.haihai-home-section__item-body,
.hh-feature-copy { min-width: 0; }
.haihai-home-section__heading,
.haihai-home-section__description,
.haihai-home-section__item-body h3,
.hh-feature-copy :where(h1,h2,h3) { overflow-wrap: anywhere; word-break: normal; }
.haihai-home-section__cta,
.hh-section .wp-block-button,
.hh-section .wp-block-button__link { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.haihai-home-section__cta { line-height: 1.7; }
@media (min-width: 37.5rem) and (max-width: 48rem) {
  .hh-site-header__navigation { flex-basis: 100%; }
}
@media (max-width: 37.499rem) {
  .hh-site-header__inner { flex-wrap: nowrap; gap: 1rem; }
  .hh-site-brand { flex: 1 1 0; gap: 0.75rem; }
  .hh-site-header__navigation { flex: 0 0 auto; }
  .hh-site-brand .wp-block-site-title { font-size: clamp(1.25rem, 5.5vw, 1.625rem); line-height: 1.45; }
  .hh-site-brand .wp-block-site-tagline { max-width: none; font-size: 0.875rem; }
}

@media print {
  .hh-site-header,
  .hh-site-footer,
  .wp-block-navigation,
  .wp-block-search,
  .hh-post-navigation {
    display: none;
  }

  :where(body) {
    color: CanvasText;
    background: Canvas;
  }

  .hh-reading-column {
    max-width: none;
  }
}
