/* Progressive usability enhancements for Hokusetsu Kurashicho. */
.hk-skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  transform: translateY(-160%);
  border-radius: 10px;
  background: #2f2a22;
  color: #fffdf7;
  padding: 11px 16px;
  font-family: var(--font-utility, sans-serif);
  font-size: .9rem;
  font-weight: 700;
  transition: transform .18s ease;
}

.hk-skip-link:focus {
  transform: translateY(0);
}

.hk-discovery-tools {
  max-width: 1420px;
  margin: 22px auto 0;
  padding: 0 34px;
}

.hk-hero-search-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  min-height: 46px;
  margin-top: 17px;
  border: 1px solid #873e29;
  border-radius: 999px;
  background: var(--terra, #a84d32);
  color: #fff;
  padding: 10px 18px;
  font-family: var(--font-utility, sans-serif);
  font-size: .84rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 6px 16px #4a271b2e;
}

.hk-hero-search-link:hover {
  background: #873e29;
}

.hk-hero-search-link:focus-visible {
  outline: 3px solid #1f766d;
  outline-offset: 3px;
}

.hk-discovery-inner {
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(320px, 1.28fr);
  align-items: center;
  gap: 24px;
  border: 1px solid #ded1b5;
  border-radius: 18px;
  background: #fffcf3;
  padding: 20px 24px;
  box-shadow: 0 6px 18px #4a341c12;
}

.hk-discovery-copy p {
  margin: 0;
}

.hk-discovery-copy .hk-overline {
  color: var(--terra, #a84d32);
  font-family: var(--font-utility, sans-serif);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .16em;
}

.hk-discovery-copy h2 {
  margin: 4px 0 4px;
  font-family: var(--font-display, serif);
  font-size: clamp(1.24rem, 2vw, 1.62rem);
  font-weight: 600;
  line-height: 1.35;
}

.hk-discovery-copy .hk-help {
  color: var(--ink-soft, #6f6253);
  font-size: .83rem;
  line-height: 1.55;
}

.hk-keyword-label {
  min-width: 0;
}

.hk-keyword-area {
  min-width: 0;
}

.hk-keyword-suggestions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  font-family: var(--font-utility, sans-serif);
}

.hk-keyword-suggestions > span {
  color: var(--ink-soft, #6f6253);
  font-size: .74rem;
  font-weight: 700;
}

.hk-keyword-suggestions button,
.hk-share-search {
  min-height: 44px;
  border: 1px solid #d7c7a8;
  border-radius: 999px;
  background: #fffdf8;
  color: #4d3e30;
  padding: 7px 12px;
  font: inherit;
  font-size: .78rem;
  font-weight: 750;
  cursor: pointer;
}

.hk-keyword-suggestions button:hover,
.hk-share-search:hover {
  border-color: var(--terra, #a84d32);
  color: var(--terra, #a84d32);
}

.hk-keyword-suggestions button[aria-pressed="true"] {
  border-color: var(--terra, #a84d32);
  background: var(--terra, #a84d32);
  color: #fff;
}

.hk-keyword-suggestions button:focus-visible,
.hk-share-search:focus-visible {
  outline: 3px solid #1f766d;
  outline-offset: 2px;
}

.hk-share-search[hidden] {
  display: none;
}

.hk-share-status {
  min-width: 5.5em;
  color: #1f766d;
  font-family: var(--font-utility, sans-serif);
  font-size: .76rem;
  font-weight: 800;
}

.hk-keyword-label > span {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-soft, #6f6253);
  font-family: var(--font-utility, sans-serif);
  font-size: .72rem;
  font-weight: 700;
}

.hk-keyword-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 2px solid #b9a98a;
  border-radius: 13px;
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.hk-keyword-control:focus-within {
  border-color: var(--terra, #a84d32);
  box-shadow: 0 0 0 4px #a84d3220;
}

.hk-keyword-control input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink, #352e27);
  padding: 14px 15px;
  font: inherit;
  font-size: 1rem;
}

.hk-keyword-control input::placeholder {
  color: #8b8174;
}

.hk-keyword-clear {
  border: 0;
  border-left: 1px solid #e3d8c2;
  background: #f6efe1;
  color: var(--ink, #352e27);
  padding: 0 15px;
  font-family: var(--font-utility, sans-serif);
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
}

.hk-keyword-clear[hidden] {
  display: none;
}

.hk-filter-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
  padding: 0 4px;
  font-family: var(--font-utility, sans-serif);
}

.hk-filter-state p {
  min-width: 0;
  margin: 0;
  color: var(--ink-soft, #6f6253);
  font-size: .78rem;
  line-height: 1.5;
}

.hk-filter-state strong {
  color: var(--ink, #352e27);
}

.hk-reset-filters {
  flex: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--terra, #a84d32);
  padding: 5px 1px;
  font-family: inherit;
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
}

.hk-reset-filters:disabled {
  opacity: .42;
  cursor: default;
}

.results-summary .hk-results-reset {
  color: var(--terra, #a84d32);
}

.venue-card.hk-card-clickable {
  cursor: pointer;
}

.hk-card-new {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid #fff7;
  border-radius: 999px;
  background: var(--terra, #a84d32);
  color: #fff;
  padding: 4px 10px;
  font-family: var(--font-utility, sans-serif);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .1em;
  box-shadow: 0 3px 10px #2e1d1633;
}

.hk-card-experience-label {
  color: var(--terra, #a84d32);
  font-weight: 800;
  white-space: nowrap;
}

.venue-card.hk-card-clickable:focus-within {
  outline: 3px solid #a84d3247;
  outline-offset: 3px;
}

.venue-card[hidden] {
  display: none !important;
}

.hk-empty-results {
  grid-column: 1 / -1;
  border: 1px dashed #b9a98a;
  border-radius: 18px;
  background: #fffaf0;
  padding: 34px 24px;
  text-align: center;
}

.hk-empty-results h3 {
  margin: 0 0 8px;
  font-family: var(--font-display, serif);
  font-size: 1.38rem;
  font-weight: 600;
}

.hk-empty-results p {
  margin: 0 0 17px;
  color: var(--ink-soft, #6f6253);
  line-height: 1.7;
}

.hk-empty-results button {
  border: 1px solid var(--terra, #a84d32);
  border-radius: 999px;
  background: var(--terra, #a84d32);
  color: #fff;
  padding: 10px 18px;
  font: inherit;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
}

.hk-filter-fab {
  display: none;
}

.hk-detail-quick-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 14px 4px 0;
  font-family: var(--font-utility, sans-serif);
}

.hk-detail-quick-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid #cfc0a4;
  border-radius: 999px;
  background: #fffcf3;
  color: var(--ink, #352e27);
  padding: 9px 16px;
  font-size: .8rem;
  font-weight: 800;
  text-decoration: none;
}

.hk-detail-quick-actions a:last-child {
  border-color: var(--terra, #a84d32);
  background: var(--terra, #a84d32);
  color: #fff;
}

.hk-experience-section {
  margin: 28px 0 0;
  border: 1px solid #d8c9aa;
  border-radius: 24px;
  background: linear-gradient(145deg, #fffdf7, #f7f0df);
  padding: clamp(24px, 4vw, 38px);
  box-shadow: 0 8px 24px #4a341c12;
}

.hk-experience-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #ded1b5;
}

.hk-experience-heading p {
  margin: 0 0 7px;
  color: var(--terra, #a84d32);
  font-family: var(--font-utility, sans-serif);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .15em;
}

.hk-experience-heading h2 {
  margin: 0;
  font-family: var(--font-display, serif);
  font-size: clamp(1.62rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.35;
}

.hk-experience-heading time {
  color: var(--ink-soft, #6f6253);
  font-family: var(--font-utility, sans-serif);
  font-size: .72rem;
  white-space: nowrap;
}

.hk-experience-lead {
  max-width: 920px;
  margin: 0 0 20px;
  color: var(--ink, #352e27);
  font-size: 1rem;
  line-height: 1.9;
}

.hk-experience-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hk-experience-points li {
  position: relative;
  border: 1px solid #e0d5bf;
  border-radius: 15px;
  background: #fffdfa;
  padding: 17px 17px 17px 43px;
  color: var(--ink, #352e27);
  font-size: .9rem;
  line-height: 1.75;
}

.hk-experience-points li::before {
  content: "✓";
  position: absolute;
  top: 17px;
  left: 17px;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #2b6e67;
  color: #fff;
  font-family: sans-serif;
  font-size: .72rem;
  font-weight: 800;
}

.hk-experience-alert {
  margin: 18px 0 0;
  border-left: 4px solid #b4472f;
  border-radius: 10px;
  background: #f8e7df;
  padding: 14px 16px;
  color: #5c2c20;
  font-size: .9rem;
  font-weight: 650;
  line-height: 1.75;
}

.hk-experience-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .65fr);
  gap: 20px;
  margin-top: 22px;
}

.hk-experience-caution,
.hk-experience-sources {
  border-top: 1px solid #ded1b5;
  padding-top: 16px;
}

.hk-experience-caution h3,
.hk-experience-sources summary {
  margin: 0 0 9px;
  font-family: var(--font-utility, sans-serif);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.hk-experience-sources details {
  border: 1px solid #ded1b5;
  border-radius: 12px;
  background: #fffdfa;
}

.hk-experience-sources summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  margin: 0;
  padding: 10px 13px;
  color: var(--ink, #352e27);
  cursor: pointer;
  list-style: none;
}

.hk-experience-sources summary::-webkit-details-marker {
  display: none;
}

.hk-experience-sources summary::after {
  content: "+";
  color: var(--terra, #a84d32);
  font-size: 1.15rem;
  line-height: 1;
}

.hk-experience-sources details[open] summary::after {
  content: "−";
}

.hk-experience-caution ul,
.hk-experience-sources ul {
  margin: 0 13px 13px;
  padding: 11px 0 0 1.15em;
  border-top: 1px solid #eee4d1;
}

.hk-experience-caution li,
.hk-experience-sources li {
  margin: 5px 0;
  color: var(--ink-soft, #6f6253);
  font-size: .82rem;
  line-height: 1.65;
}

.hk-experience-sources a {
  color: #315f59;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hk-source-kind {
  display: inline-block;
  min-width: 3.5em;
  margin-right: 6px;
  border-radius: 999px;
  background: #e8e0ce;
  color: #554b3e;
  padding: 1px 7px;
  font-family: var(--font-utility, sans-serif);
  font-size: .64rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.hk-experience-disclosure {
  margin: 18px 0 0;
  color: var(--ink-soft, #6f6253);
  font-size: .74rem;
  line-height: 1.7;
}

.hk-experience-disclosure a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hk-static-mark {
  justify-self: center;
  width: 118px;
  height: 118px;
  color: var(--terra, #a84d32);
  opacity: .7;
}

.hk-fact-symbol {
  display: inline-grid;
  place-items: center;
  flex: none;
  min-width: 28px;
  height: 24px;
  border-radius: 7px;
  background: #eee3cd;
  color: #6c5c45;
  padding: 0 5px;
  font-family: var(--font-utility, sans-serif);
  font-size: .58rem;
  font-weight: 800;
}

.hk-new-spot-points {
  margin: 24px 0 0;
  border: 1px solid #ded1b5;
  border-radius: 20px;
  background: #fffaf0;
  padding: 28px 30px;
}

.hk-new-spot-points > p {
  margin: 0 0 6px;
  color: var(--terra, #a84d32);
  font-family: var(--font-utility, sans-serif);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .15em;
}

.hk-new-spot-points h2 {
  margin: 0 0 14px;
  font-family: var(--font-display, serif);
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 600;
}

.hk-new-spot-points ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hk-new-spot-points li {
  border-radius: 13px;
  background: #f3ead8;
  padding: 15px 16px;
  color: var(--ink, #352e27);
  font-size: .88rem;
  line-height: 1.7;
}

.hk-new-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--terra, #a84d32);
  color: #fff;
  padding: 4px 10px;
  font-family: var(--font-utility, sans-serif);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.policy-grid article[data-hk-experience-policy] ul {
  margin: 14px 0 0;
  padding-left: 1.15em;
  color: var(--ink-soft, #6f6253);
}

.policy-grid article[data-hk-experience-policy] li {
  margin: 5px 0;
  font-size: .84rem;
  line-height: 1.6;
}

:where(a, button, input, select):focus-visible {
  outline: 3px solid #2b6e67;
  outline-offset: 3px;
}

.venue-favorite,
.venue-footer a,
.back-link {
  min-height: 44px;
}

.venue-favorite {
  min-width: 44px;
}

.hk-filter-fab.is-motion-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(100% + 24px));
}

@media (max-width: 900px) {
  .hk-hero-search-link {
    font-size: .84rem;
  }

  .hk-discovery-tools {
    padding: 0 22px;
  }

  .hk-discovery-inner {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .hk-experience-points,
  .hk-experience-meta,
  .hk-new-spot-points ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .inner-header .brand {
    min-width: 0;
  }

  .inner-header nav {
    flex: none;
  }

  .inner-header nav a:not(:first-child),
  .inner-header nav span {
    display: none;
  }

  .inner-header nav a:first-child {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .hk-discovery-tools {
    margin-top: 18px;
    padding: 0 18px;
  }

  .hk-discovery-inner {
    gap: 13px;
    border-radius: 16px;
    padding: 17px;
  }

  .hk-discovery-copy .hk-help {
    font-size: .78rem;
  }

  .hk-keyword-control input {
    padding: 13px;
    font-size: 16px;
  }

  .hk-filter-state {
    align-items: flex-start;
  }

  .hk-reset-filters {
    min-height: 40px;
    margin-top: -5px;
  }

  .hk-filter-fab {
    position: fixed;
    right: max(14px, env(safe-area-inset-right));
    bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 70;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    border: 1px solid #763520;
    border-radius: 999px;
    background: var(--terra, #a84d32);
    color: #fff;
    padding: 11px 15px;
    font-family: var(--font-utility, sans-serif);
    font-size: .8rem;
    font-weight: 800;
    box-shadow: 0 8px 24px #35231445;
    transition: opacity .18s ease, transform .18s ease;
  }

  .hk-filter-fab.is-visible {
    display: inline-flex;
  }

  .hk-detail-quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 12px 0 0;
  }

  .hk-detail-quick-actions a {
    padding-inline: 10px;
    text-align: center;
  }

  .hk-card-new {
    top: 14px;
    right: 14px;
  }

  .hk-experience-section {
    margin-top: 20px;
    border-radius: 18px;
    padding: 22px 18px;
  }

  .hk-experience-heading {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hk-experience-heading time {
    white-space: normal;
  }

  .hk-experience-lead {
    font-size: .94rem;
  }

  .hk-experience-points li {
    padding: 15px 15px 15px 40px;
  }

  .hk-experience-points li::before {
    top: 15px;
    left: 14px;
  }

  .hk-new-spot-points {
    padding: 23px 19px;
  }

  .hk-static-mark {
    width: 82px;
    height: 82px;
  }
}

@media (max-width: 420px) {
  .inner-header .brand {
    font-size: 1.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hk-skip-link,
  .venue-card,
  .quick-card {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
