/**
 * 台灣潛水網 — 品牌首頁設計系統
 * 旅遊 / 海洋品牌 · 全寬區塊 · 雜誌風卡片
 */

:root {
  --hp-deep: #050d18;
  --hp-navy: #0a1f35;
  --hp-ocean: #134e6f;
  --hp-sea: #1a7a9e;
  --hp-accent: #2ee8f0;
  --hp-accent-dim: rgba(46, 232, 240, 0.15);
  --hp-white: #ffffff;
  --hp-cream: #f8fafc;
  --hp-muted: #94a3b8;
  --hp-header: 5rem;
  --hp-header-bg-solid: rgba(5, 13, 24, 0.55);
  --hp-header-blur: 12px;
  --hp-header-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
  --hp-font: 'Noto Sans TC', system-ui, sans-serif;
  --hp-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hp-section-y: clamp(5rem, 12vw, 8rem);
  --hp-max: 1280px;
  --hp-gutter: clamp(1rem, 3vw, 1.5rem);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body.hp {
  margin: 0;
  min-width: 320px;
}

.hp {
  font-family: var(--hp-font);
  color: var(--hp-deep);
  background: var(--hp-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

.hp ::selection {
  background: var(--hp-accent-dim);
  color: var(--hp-deep);
}

.hp-container {
  width: 100%;
  max-width: var(--hp-max);
  margin-inline: auto;
  padding-inline: var(--hp-gutter);
}

/* 與 .hp-container 左緣對齊的全寬滑軌起點 */
.hp-bleed-start {
  padding-inline-start: var(--hp-gutter);
  padding-inline-end: var(--hp-gutter);
}

@media (min-width: 1320px) {
  .hp-bleed-start {
    padding-inline-start: calc((100vw - var(--hp-max)) / 2 + var(--hp-gutter));
    padding-inline-end: var(--hp-gutter);
  }
}

/* ── Header ── */
.hp-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--hp-header);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: var(--hp-gutter);
  transition: background 0.5s var(--hp-ease), box-shadow 0.5s var(--hp-ease);
}

.hp-header.is-solid,
.hp-page--inner .hp-header {
  background: var(--hp-header-bg-solid);
  backdrop-filter: blur(var(--hp-header-blur));
  -webkit-backdrop-filter: blur(var(--hp-header-blur));
  box-shadow: var(--hp-header-shadow);
}

.hp-header__inner {
  width: 100%;
  max-width: var(--hp-max);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
}

.hp-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
  min-width: 0;
}

.hp-logo__mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--hp-sea), var(--hp-accent));
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.hp-logo__text {
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.hp-logo__img {
  display: block;
  height: 5rem;
  width: auto;
  max-width: min(100%, 19rem);
  object-fit: contain;
  object-position: left center;
}

@media (min-width: 640px) {
  .hp-logo__img {
    height: 5rem;
    max-width: 21rem;
  }
}

.hp-nav {
  display: none;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  flex-shrink: 1;
  min-width: 0;
}

@media (min-width: 900px) {
  .hp-nav {
    display: flex;
    flex: 1;
    justify-content: center;
    margin-inline: 1rem;
  }
}

@media (min-width: 900px) and (max-width: 1024px) {
  .hp-nav a {
    font-size: 0.8125rem;
  }
}

.hp-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.hp-nav a:hover {
  color: var(--hp-accent);
}

.hp-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.hp-header__actions .hp-btn--ghost {
  display: none;
}

@media (min-width: 640px) {
  .hp-header__actions .hp-btn--ghost {
    display: inline-flex;
  }
}

.hp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s var(--hp-ease), box-shadow 0.25s, background 0.25s;
}

.hp-btn:active {
  transform: scale(0.97);
}

.hp-btn--primary {
  background: var(--hp-accent);
  color: var(--hp-deep);
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  box-shadow: 0 0 40px rgba(46, 232, 240, 0.35);
}

.hp-btn--primary:hover {
  box-shadow: 0 0 56px rgba(46, 232, 240, 0.5);
}

.hp-btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
}

.hp-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
}

.hp-menu-toggle {
  display: flex;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 0.5rem;
  color: #fff;
  cursor: pointer;
}

@media (min-width: 900px) {
  .hp-menu-toggle { display: none; }
}

/* Mobile nav overlay */
.hp-mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: var(--hp-deep);
  padding: 6rem 2rem 2rem;
  transform: translateX(100%);
  transition: transform 0.45s var(--hp-ease);
}

.hp-mobile-nav.is-open {
  transform: translateX(0);
}

.hp-mobile-nav a {
  display: block;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

/* ── Section 1: Full-screen Hero ── */
.hp-hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: clamp(3rem, 8vh, 6rem);
  padding-inline: var(--hp-gutter);
  overflow: hidden;
}

.hp-hero__media {
  position: absolute;
  inset: 0;
}

.hp-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
}

/* 手機直向：右側潛水員易被裁切，焦點右移讓人物完整進入畫面 */
@media (max-width: 899px) {
  .hp-hero__img {
    object-position: 72% 40%;
    transform-origin: 72% 40%;
  }
}

/* 緩慢推進，增加沉浸感（非純色靜態底） */
@keyframes hp-hero-kenburns {
  0% { transform: scale(1.05); }
  100% { transform: scale(1.12); }
}

.hp-hero__img {
  animation: hp-hero-kenburns 24s ease-in-out infinite alternate;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .hp-hero__img {
    animation: none;
    transform: scale(1.05);
  }
}

.hp-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(5, 13, 24, 0.78) 0%, rgba(5, 13, 24, 0.35) 42%, rgba(5, 13, 24, 0.15) 100%),
    linear-gradient(0deg, rgba(5, 13, 24, 0.88) 0%, transparent 45%);
  pointer-events: none;
}

.hp-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--hp-max);
  margin-inline: auto;
  padding-top: var(--hp-header);
  min-width: 0;
}

.hp-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hp-accent);
  margin-bottom: 1.25rem;
}

.hp-hero__eyebrow::before {
  content: '';
  width: 2rem;
  height: 1px;
  background: var(--hp-accent);
}

.hp-hero__title {
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #fff;
  max-width: 12em;
  margin-bottom: 1rem;
  word-break: keep-all;
}

.hp-hero__lead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.78);
  max-width: 32rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hp-hero__search {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 36rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .hp-hero__search {
    flex-direction: row;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 0.35rem;
    backdrop-filter: blur(12px);
  }
}

.hp-hero__search input {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 999px;
  outline: none;
}

@media (min-width: 640px) {
  .hp-hero__search input {
    background: transparent;
    border-radius: 999px 0 0 999px;
  }
}

.hp-hero__search input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.hp-hero__search .hp-btn--primary {
  white-space: nowrap;
  padding: 1rem 1.5rem;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .hp-hero__search .hp-btn--primary {
    padding: 0.85rem 1.75rem;
  }
}

.hp-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hp-hero__scroll {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 2;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .hp-hero__scroll { display: flex; }
}

.hp-hero__scroll span {
  width: 1px;
  height: 3rem;
  background: linear-gradient(180deg, var(--hp-accent), transparent);
  animation: hp-scroll-pulse 2s ease infinite;
}

@keyframes hp-scroll-pulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ── Section typography ── */
.hp-section {
  padding-block: var(--hp-section-y);
}

.hp-section--cream {
  background: var(--hp-cream);
}

.hp-section--dark {
  background: var(--hp-deep);
  color: #fff;
}

.hp-section__head {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.hp-section__head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.hp-section__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hp-sea);
  margin-bottom: 0.75rem;
}

.hp-section--dark .hp-section__label {
  color: var(--hp-accent);
}

.hp-section__title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hp-section__desc {
  margin-top: 1rem;
  font-size: 1.0625rem;
  color: var(--hp-muted);
  max-width: 28rem;
  line-height: 1.7;
}

.hp-section--dark .hp-section__desc {
  color: rgba(255, 255, 255, 0.55);
}

.hp-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--hp-ocean);
  text-decoration: none;
  transition: gap 0.25s;
}

.hp-link-arrow:hover {
  gap: 0.75rem;
}

.hp-link-arrow__icon {
  flex-shrink: 0;
  transition: transform 0.25s var(--hp-ease);
}

.hp-link-arrow:hover .hp-link-arrow__icon {
  transform: translateX(2px);
}

.hp-link-arrow--on-dark {
  color: var(--hp-accent);
}

.hp-link-arrow--on-dark:hover {
  color: #fff;
}

/* ── Section 2: Hot spots — horizontal magazine strip ── */
.hp-spots {
  overflow: hidden;
  width: 100%;
}

/* 搭配 .hp-container：與 header logo / 登入同寬對齊 */
.hp-spots__shell {
  position: relative;
}

@media (max-width: 1023px) {
  .hp-spots__shell.hp-container {
    max-width: none;
    padding-inline: 0;
  }
}

.hp-spots__carousel {
  position: relative;
  width: 100%;
}

/* PC：右側漸層 + 箭頭提示可滑動 */
.hp-spots__carousel::after {
  content: '';
  display: none;
}

@media (min-width: 1024px) {
  .hp-spots__carousel::before {
    content: '';
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 5rem;
    height: calc(100% - 1rem);
    background: linear-gradient(270deg, transparent 0%, var(--hp-cream) 80%);
    pointer-events: none;
    z-index: 2;
  }

  .hp-spots__carousel.has-prev::before {
    display: block;
  }

  .hp-spots__carousel::after {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    width: 5rem;
    height: calc(100% - 1rem);
    background: linear-gradient(90deg, transparent 0%, var(--hp-cream) 80%);
    pointer-events: none;
    z-index: 2;
  }

  .hp-spots__track {
    padding-inline: 0;
    scroll-padding-inline: 0;
  }

  .hp-spot-card {
    flex: 0 0 calc((100% - 2.5rem) / 3);
    max-width: 380px;
    min-width: 260px;
  }
}

.hp-spots__arrow {
  display: none;
}

@media (min-width: 1024px) {
  .hp-spots__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 1px solid var(--hp-border);
    background: var(--hp-white);
    color: var(--hp-navy);
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(5, 13, 24, 0.12);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, opacity 0.2s, transform 0.2s;
  }

  .hp-spots__arrow:hover:not(:disabled) {
    background: var(--hp-navy);
    color: #fff;
    box-shadow: 0 8px 28px rgba(5, 13, 24, 0.18);
    transform: translateY(-50%) scale(1.05);
  }

  .hp-spots__arrow:disabled,
  .hp-spots__arrow.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  /* 貼齊 container 左右緣（與 logo、登入對齊） */
  .hp-spots__arrow--prev {
    left: 0;
  }

  .hp-spots__arrow--next {
    right: 0;
  }

  .hp-spots__arrow svg {
    width: 1.25rem;
    height: 1.25rem;
  }
}

.hp-spots__track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline-start: var(--hp-gutter);
  padding-inline-start: var(--hp-gutter);
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  width: 100%;
  max-width: 100%;
}

.hp-spots__track::-webkit-scrollbar {
  display: none;
}

.hp-spots__track::after {
  content: '';
  flex: 0 0 var(--hp-gutter);
  min-width: var(--hp-gutter);
}

.hp-spot-card {
  flex: 0 0 min(380px, 85vw);
  scroll-snap-align: start;
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 1.25rem;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  isolation: isolate;
}

.hp-spot-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--hp-ease);
  background: linear-gradient(145deg, #0f2d4a 0%, #1a6b8a 100%);
}

.hp-spot-card__img.hp-img--fallback,
.hp-shop-card__cover img.hp-img--fallback {
  object-fit: cover;
}

.hp-shop-card__cover img {
  background: linear-gradient(145deg, #0f2d4a 0%, #1a6b8a 100%);
}

.hp-spot-card:hover .hp-spot-card__img {
  transform: scale(1.08);
}

.hp-spot-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 13, 24, 0.9) 0%, transparent 55%);
  transition: opacity 0.4s;
}

.hp-spot-card:hover .hp-spot-card__shade {
  background: linear-gradient(0deg, rgba(5, 13, 24, 0.95) 0%, rgba(5, 13, 24, 0.2) 60%);
}

.hp-spot-card__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.75rem;
  z-index: 1;
  transform: translateY(0.5rem);
  transition: transform 0.4s var(--hp-ease);
}

.hp-spot-card:hover .hp-spot-card__body {
  transform: translateY(0);
}

.hp-spot-card__region {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hp-accent);
  margin-bottom: 0.5rem;
}

.hp-spot-card__name {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.hp-spot-card__meta {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.hp-spot-card__count {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 1;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.hp-spots__hint {
  text-align: center;
  margin-top: 1.5rem;
  padding-inline: var(--hp-gutter);
  font-size: 0.8125rem;
  color: var(--hp-muted);
}

@media (min-width: 1024px) {
  .hp-spots__hint--touch {
    display: none;
  }
}

/* ── Section 3: Shop grid — magazine cards ── */
.hp-shops__grid {
  display: grid;
  gap: 1.5rem;
  width: 100%;
}

@media (min-width: 640px) {
  .hp-shops__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .hp-shops__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    align-items: stretch;
  }
}

.hp-shop-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  text-decoration: none;
  color: inherit;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--hp-white);
  box-shadow: 0 2px 24px rgba(5, 13, 24, 0.06);
  transition: transform 0.45s var(--hp-ease), box-shadow 0.45s;
}

.hp-shop-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(5, 13, 24, 0.12);
}

.hp-shop-card__cover {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
}

.hp-shop-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--hp-ease);
}

.hp-shop-card:hover .hp-shop-card__cover img {
  transform: scale(1.06);
}

.hp-shop-card__tags {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.hp-shop-card__tag {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: rgba(5, 13, 24, 0.65);
  color: #fff;
  backdrop-filter: blur(4px);
}

.hp-shop-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.75rem;
}

.hp-shop-card__rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--hp-ocean);
}

.hp-shop-card__stars {
  color: #f59e0b;
  letter-spacing: -0.05em;
}

.hp-shop-card__title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  word-break: break-word;
}

.hp-shop-card__loc {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: var(--hp-muted);
}

.hp-shop-card__desc {
  font-size: 0.875rem;
  color: var(--hp-muted);
  line-height: 1.6;
  flex: 1;
}

.hp-shop-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--hp-sea);
}

/* ── Section 4: Courses — dark alternating ── */
.hp-courses__list {
  display: flex;
  flex-direction: column;
  gap: clamp(4rem, 8vw, 7rem);
}

.hp-course-row {
  display: grid;
  gap: 2rem;
  align-items: center;
  width: 100%;
}

@media (min-width: 900px) {
  .hp-course-row {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(2rem, 4vw, 4rem);
  }

  .hp-course-row--reverse .hp-course-row__visual {
    order: 2;
  }

  .hp-course-row--reverse .hp-course-row__copy {
    order: 1;
  }
}

.hp-course-row__visual {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  min-width: 0;
  width: 100%;
}

.hp-course-row__copy {
  min-width: 0;
}

.hp-course-row__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hp-course-row__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(46, 232, 240, 0.12) 100%);
  pointer-events: none;
}

.hp-course-row__num {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--hp-accent);
  margin-bottom: 1rem;
}

.hp-course-row__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hp-course-row__text {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.75;
  margin-bottom: 1.75rem;
  max-width: 28rem;
}

/* CTA band between sections */
.hp-cta-band {
  position: relative;
  padding-block: clamp(4rem, 10vw, 6rem);
  overflow: hidden;
}

.hp-cta-band__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hp-cta-band__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 13, 24, 0.92), rgba(19, 78, 111, 0.75));
}

.hp-cta-band__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--hp-max);
  margin-inline: auto;
  padding-inline: var(--hp-gutter);
  text-align: center;
  color: #fff;
}

.hp-cta-band__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hp-cta-band__text {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 32rem;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hp-cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ── Section 5: Footer sitemap ── */
.hp-footer {
  background: var(--hp-deep);
  color: rgba(255, 255, 255, 0.75);
  padding-top: clamp(4rem, 8vw, 6rem);
}

.hp-footer__top {
  width: 100%;
  max-width: var(--hp-max);
  margin-inline: auto;
  padding-inline: var(--hp-gutter);
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hp-footer__brand {
  margin-bottom: 3rem;
}

.hp-footer__brand-title {
  font-size: 1.75rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.hp-footer__sitemap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 1.5rem;
}

@media (min-width: 640px) {
  .hp-footer__sitemap {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .hp-footer__sitemap {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2rem;
  }
}

.hp-footer__col h4 {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hp-accent);
  margin-bottom: 1.25rem;
}

.hp-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hp-footer__col a {
  display: block;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 0.9375rem;
  padding: 0.35rem 0;
  transition: color 0.2s;
}

.hp-footer__col a:hover {
  color: #fff;
}

.hp-footer__bottom {
  width: 100%;
  max-width: var(--hp-max);
  margin-inline: auto;
  padding: 2rem var(--hp-gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.35);
}

/* Reveal on scroll */
.hp-reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.8s var(--hp-ease), transform 0.8s var(--hp-ease);
}

.hp-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hide legacy sidebar layout if present */
.hp .td-layout,
.hp .td-sidebar,
.hp .td-main .td-panel {
  display: none !important;
}

/* ── Inner pages (regions, etc.) ── */
.hp-page-hero {
  padding-top: calc(var(--hp-header) + clamp(2.5rem, 6vw, 4rem));
  padding-bottom: clamp(2rem, 5vw, 3rem);
  background: linear-gradient(180deg, var(--hp-deep) 0%, var(--hp-navy) 55%, var(--hp-cream) 100%);
  color: #fff;
}

/* 內頁 banner 圖片背景（先於 knowledge 試用） */
.hp-page-hero--photo {
  position: relative;
  overflow: hidden;
  background: var(--hp-deep);
}

.hp-page-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hp-page-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 28% 42%;
  display: block;
}

.hp-page-hero--photo .hp-page-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(5, 13, 24, 0.82) 0%, rgba(5, 13, 24, 0.4) 45%, rgba(5, 13, 24, 0.15) 100%),
    linear-gradient(0deg, rgba(5, 13, 24, 0.78) 0%, transparent 50%),
    linear-gradient(180deg, transparent 60%, var(--hp-cream) 100%);
  pointer-events: none;
}

.hp-page-hero--photo > .hp-container {
  position: relative;
  z-index: 1;
}

@media (max-width: 899px) {
  .hp-page-hero--photo .hp-page-hero__img {
    object-position: 40% 40%;
  }
}

.hp-page-hero--regions .hp-page-hero__img {
  object-position: center 35%;
}

@media (max-width: 899px) {
  .hp-page-hero--regions .hp-page-hero__img {
    object-position: center 30%;
  }
}

.hp-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1.5rem;
}

.hp-breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s;
}

.hp-breadcrumb a:hover {
  color: var(--hp-accent);
}

.hp-page-hero .hp-section__label {
  color: var(--hp-accent);
}

.hp-page-hero__title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 16ch;
}

.hp-page-hero__desc {
  margin-top: 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.65);
  max-width: 36rem;
}

.hp-regions {
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

.hp-regions__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.hp-regions__count {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

.hp-regions__hint {
  margin: 0.35rem 0 0;
  font-size: 0.9375rem;
  color: var(--hp-muted);
}

.hp-view-toggle {
  display: inline-flex;
  padding: 0.25rem;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(5, 13, 24, 0.08);
  border: 1px solid rgba(5, 13, 24, 0.06);
}

.hp-view-toggle__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--hp-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.hp-view-toggle__btn:hover {
  color: var(--hp-ocean);
}

.hp-view-toggle__btn.is-active {
  background: var(--hp-deep);
  color: #fff;
}

.hp-regions__panel {
  display: none;
}

.hp-regions__panel.is-active {
  display: block;
}

.hp-regions__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

.hp-spot-card--grid {
  flex: none;
  max-width: none;
  min-width: 0;
  width: 100%;
  aspect-ratio: 4 / 5;
}

.hp-regions__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hp-region-row {
  display: grid;
  grid-template-columns: 7rem 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1rem 1.25rem;
  background: #fff;
  border-radius: 1rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(5, 13, 24, 0.06);
  transition: box-shadow 0.25s var(--hp-ease), transform 0.25s var(--hp-ease);
}

.hp-region-row:hover {
  box-shadow: 0 12px 40px rgba(5, 13, 24, 0.1);
  transform: translateY(-2px);
}

.hp-region-row__thumb {
  aspect-ratio: 4 / 3;
  border-radius: 0.65rem;
  overflow: hidden;
  background: var(--hp-cream);
}

.hp-region-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--hp-ease);
}

.hp-region-row:hover .hp-region-row__thumb img {
  transform: scale(1.05);
}

.hp-region-row__main {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.hp-region-row__region {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hp-sea);
}

.hp-region-row__name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hp-region-row__meta {
  font-size: 0.9375rem;
  color: var(--hp-muted);
}

.hp-region-row__desc {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--hp-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hp-region-row__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}

.hp-region-row__count {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--hp-ocean);
  white-space: nowrap;
  padding: 0.35rem 0.65rem;
  background: var(--hp-accent-dim);
  border-radius: 999px;
}

.hp-region-row__arrow {
  font-size: 1.25rem;
  color: var(--hp-sea);
  transition: transform 0.2s;
}

.hp-region-row:hover .hp-region-row__arrow {
  transform: translateX(4px);
}

.hp-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid rgba(5, 13, 24, 0.08);
}

.hp-pagination__summary {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--hp-muted);
}

.hp-pagination__controls {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hp-pagination__btn,
.hp-pagination__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.65rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--hp-ocean);
  background: #fff;
  border: 1px solid rgba(5, 13, 24, 0.1);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.hp-pagination__btn:hover:not(.is-disabled),
.hp-pagination__page:hover:not(.is-current) {
  border-color: var(--hp-ocean);
  background: rgba(14, 116, 144, 0.06);
}

.hp-pagination__page.is-current {
  background: var(--hp-deep);
  border-color: var(--hp-deep);
  color: #fff;
  pointer-events: none;
}

.hp-pagination__btn.is-disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
}

.hp-regions__footer-note {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 2rem;
  border-top: 1px solid rgba(5, 13, 24, 0.08);
  font-size: 0.9375rem;
  color: var(--hp-muted);
  text-align: center;
}

.hp-regions__footer-note a {
  color: var(--hp-ocean);
  font-weight: 600;
  text-decoration: none;
}

.hp-regions__footer-note a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .hp-region-row {
    grid-template-columns: 5.5rem 1fr;
    grid-template-rows: auto auto;
  }

  .hp-region-row__aside {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .hp-region-row__arrow {
    display: none;
  }
}

/* —— 潛水裝備商家（/equipment-stores） —— */
.hp-equipment-stores__toolbar {
  align-items: flex-start;
}

.hp-equipment-stores__toolbar .hp-view-toggle {
  flex-wrap: wrap;
  max-width: 100%;
}

.hp-view-toggle__btn {
  text-decoration: none;
}

@media (max-width: 720px) {
  .hp-equipment-stores__toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .hp-equipment-stores__toolbar .hp-view-toggle {
    width: 100%;
    justify-content: flex-start;
  }
}

/* —— 地區潛點列表（/diving-shops/{region}） —— */
.hp-locations {
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

.hp-locations__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
  align-items: stretch;
}

.hp-locations__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hp-loc-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  background: #fff;
  border-radius: 1rem;
  border: 1px solid rgba(5, 13, 24, 0.06);
  box-shadow: 0 4px 24px rgba(5, 13, 24, 0.06);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.hp-loc-card:hover {
  box-shadow: 0 16px 40px rgba(5, 13, 24, 0.12);
  transform: translateY(-6px);
}

.hp-loc-card__cover {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  flex-shrink: 0;
}

.hp-loc-card__cover .hp-loc-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--hp-ease, ease);
}

.hp-loc-card:hover .hp-loc-card__cover .hp-loc-card__img {
  transform: scale(1.05);
}

.hp-loc-card__cover-tags {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-width: calc(100% - 1.5rem);
}

.hp-loc-card__cover-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(5, 13, 24, 0.72);
  color: #fff;
  backdrop-filter: blur(4px);
}

.hp-loc-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.4rem;
  padding: 1.15rem 1.25rem 1.25rem;
}

.hp-loc-card__name {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--hp-deep);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.hp-loc-card__line {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--hp-muted);
}

.hp-loc-card__line a {
  color: var(--hp-ocean);
  text-decoration: none;
  font-weight: 600;
}

.hp-loc-card__line a:hover {
  text-decoration: underline;
}

.hp-loc-card__footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: auto;
  padding-top: 0.75rem;
}

.hp-loc-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(5, 13, 24, 0.06);
}

.hp-loc-card__links--footer {
  border-top: none;
  padding-top: 0;
}

.hp-loc-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  color: var(--hp-deep);
  background: #fff;
  border: 1px solid rgba(5, 13, 24, 0.08);
  border-radius: 50%;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hp-loc-card__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(5, 13, 24, 0.12);
}

.hp-social-icon {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
}

.hp-social-icon--brand {
  width: 1.375rem;
  height: 1.375rem;
  object-fit: contain;
}

.hp-loc-card__link--fb {
  color: #1877f2;
  border-color: rgba(24, 119, 242, 0.25);
}

.hp-loc-card__link--fb:hover {
  background: #1877f2;
  color: #fff;
  border-color: #1877f2;
}

.hp-loc-card__link--ig {
  position: relative;
  padding: 0;
  overflow: hidden;
  border: none;
  background: transparent;
}

.hp-loc-card__link--ig .hp-social-icon--brand {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.hp-loc-card__link--ig .hp-social-icon--ig-active {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.hp-loc-card__link--ig:hover,
.hp-loc-card__link--ig:focus-visible,
.hp-loc-card__link--ig:active {
  border-color: transparent;
  background: transparent;
  box-shadow: 0 6px 16px rgba(5, 13, 24, 0.14);
}

.hp-loc-card__link--ig:hover .hp-social-icon--ig-default,
.hp-loc-card__link--ig:focus-visible .hp-social-icon--ig-default,
.hp-loc-card__link--ig:active .hp-social-icon--ig-default {
  opacity: 0;
}

.hp-loc-card__link--ig:hover .hp-social-icon--ig-active,
.hp-loc-card__link--ig:focus-visible .hp-social-icon--ig-active,
.hp-loc-card__link--ig:active .hp-social-icon--ig-active {
  opacity: 1;
}

.hp-loc-card__link--line {
  position: relative;
  padding: 0;
  overflow: hidden;
  border: none;
  background: transparent;
}

.hp-loc-card__link--line .hp-social-icon--brand {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.hp-loc-card__link--line .hp-social-icon--line-active {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.hp-loc-card__link--line:hover,
.hp-loc-card__link--line:focus-visible,
.hp-loc-card__link--line:active {
  border-color: transparent;
  background: transparent;
  box-shadow: 0 6px 16px rgba(5, 13, 24, 0.14);
}

.hp-loc-card__link--line:hover .hp-social-icon--line-default,
.hp-loc-card__link--line:focus-visible .hp-social-icon--line-default,
.hp-loc-card__link--line:active .hp-social-icon--line-default {
  opacity: 0;
}

.hp-loc-card__link--line:hover .hp-social-icon--line-active,
.hp-loc-card__link--line:focus-visible .hp-social-icon--line-active,
.hp-loc-card__link--line:active .hp-social-icon--line-active {
  opacity: 1;
}

.hp-loc-card__link--web {
  color: var(--hp-ocean);
  border-color: rgba(14, 116, 144, 0.25);
}

.hp-loc-card__link--web:hover {
  background: var(--hp-ocean);
  color: #fff;
  border-color: var(--hp-ocean);
}

.hp-loc-row {
  display: grid;
  grid-template-columns: 7rem 1fr auto;
  gap: 1.25rem 1.5rem;
  align-items: center;
  padding: clamp(1rem, 2vw, 1.25rem);
  background: #fff;
  border-radius: 1rem;
  border: 1px solid rgba(5, 13, 24, 0.06);
  box-shadow: 0 4px 24px rgba(5, 13, 24, 0.06);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.hp-loc-row__thumb {
  aspect-ratio: 4 / 3;
  border-radius: 0.65rem;
  overflow: hidden;
  flex-shrink: 0;
}

.hp-loc-row__thumb .hp-loc-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.hp-loc-row:hover .hp-loc-row__thumb .hp-loc-card__img {
  transform: scale(1.05);
}

.hp-loc-row:hover {
  box-shadow: 0 12px 40px rgba(5, 13, 24, 0.1);
  transform: translateY(-2px);
}

.hp-loc-row__main {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.hp-loc-row .hp-loc-card__links {
  flex-direction: column;
  align-items: flex-end;
  border-top: none;
  padding-top: 0;
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .hp-loc-row {
    grid-template-columns: 5.5rem 1fr;
    grid-template-rows: auto auto;
    align-items: start;
  }

  .hp-loc-row .hp-loc-card__links {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
  }
}

/* ── Course categories grid (mint cards) ── */
.hp-section--mint {
  background: linear-gradient(180deg, var(--hp-cream) 0%, rgba(46, 232, 240, 0.06) 100%);
}

.hp-course-cats {
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

.hp-course-cats__toolbar {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.hp-course-cats__count {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

.hp-course-cats__hint {
  margin: 0.35rem 0 0;
  font-size: 0.9375rem;
  color: var(--hp-muted);
}

.hp-course-cats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.25rem);
}

@media (max-width: 1024px) {
  .hp-course-cats__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .hp-course-cats__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hp-course-cats__grid {
    grid-template-columns: 1fr;
  }
}

.hp-cat-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 5.5rem;
  padding: 1rem 1rem 1rem 1.25rem;
  background: #fff;
  border-radius: 0.75rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 12px rgba(5, 13, 24, 0.06);
  border: 1px solid rgba(5, 13, 24, 0.04);
  transition: box-shadow 0.25s var(--hp-ease), transform 0.25s var(--hp-ease);
}

.hp-cat-card:hover {
  box-shadow: 0 8px 28px rgba(5, 13, 24, 0.1);
  transform: translateY(-2px);
}

.hp-cat-card__text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1;
}

.hp-cat-card__name {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.hp-cat-card__hint {
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--hp-muted);
}

.hp-cat-card__art {
  flex-shrink: 0;
  width: 4.5rem;
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 0.5rem;
  overflow: hidden;
}

.hp-cat-icon {
  width: 100%;
  height: 100%;
}

.hp-cat-icon__guides {
  opacity: 0.85;
}

.hp-cat-icon--img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hp-cat-icon--flag {
  object-fit: cover;
  border-radius: 0.25rem;
}

.hp-spot-card--flag .hp-spot-card__img {
  object-fit: cover;
  object-position: center;
}

.hp-course-cats__footer-note {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
  font-size: 0.9375rem;
  color: var(--hp-muted);
  line-height: 1.7;
}

.hp-course-cats__footer-note a {
  color: var(--hp-ocean);
  font-weight: 600;
  text-decoration: none;
}

.hp-course-cats__footer-note a:hover {
  text-decoration: underline;
}

/* —— 潛水知識分享（/knowledge） —— */
.hp-knowledge {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

/* 內容寬度由 .hp-container 控制，與 header logo／登入同寬對齊 */
.hp-knowledge__count {
  margin: 0;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--hp-deep);
}

.hp-knowledge__hint {
  margin: 0.35rem 0 0;
  font-size: 0.9375rem;
  color: var(--hp-muted);
  line-height: 1.6;
}

.hp-knowledge__toolbar {
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.hp-knowledge__featured-head {
  text-align: center;
  margin-bottom: clamp(1.5rem, 4vw, 2rem);
}

.hp-knowledge__section-title {
  margin: 0;
  font-size: clamp(1.375rem, 4vw, 1.625rem);
  font-weight: 800;
  color: var(--hp-sea);
  letter-spacing: 0.02em;
}

.hp-knowledge__section-desc {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: var(--hp-muted);
}

.hp-knowledge-featured {
  position: relative;
  margin-bottom: clamp(2rem, 5vw, 2.75rem);
}

.hp-knowledge-featured__track {
  position: relative;
  min-height: 1px;
}

.hp-knowledge-featured__slide {
  display: none;
  flex-direction: column;
  gap: 0;
}

.hp-knowledge-featured__slide.is-active {
  display: flex;
}

.hp-knowledge-featured__aside {
  display: flex;
  flex-direction: column;
}

.hp-knowledge-featured__nav {
  display: none;
}

.hp-knowledge-featured__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.hp-knowledge-featured__dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: #e2e8f0;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.hp-knowledge-featured__dot.is-active {
  background: var(--hp-sea);
  transform: scale(1.15);
}

/* 左欄：主精選（大圖在上） */
.hp-knowledge-featured-hero {
  position: relative;
  background: var(--hp-white);
  border-bottom: 1px solid rgba(5, 13, 24, 0.08);
}

.hp-knowledge-feed-card {
  position: relative;
}

.hp-knowledge-featured-hero__link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.hp-knowledge-featured-hero__cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--hp-cream);
}

.hp-knowledge-featured-hero__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hp-knowledge-featured-hero__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem 2.5rem 1.1rem var(--hp-gutter);
  min-height: 0;
}

.hp-knowledge-featured-hero__title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.45;
  color: var(--hp-deep);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hp-knowledge-featured-hero__excerpt {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--hp-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hp-knowledge-featured-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  margin-top: auto;
  padding-top: 0.75rem;
}

.hp-knowledge-featured-hero__author {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--hp-ocean);
}

.hp-knowledge-featured-hero .hp-knowledge-bookmark {
  right: 0;
  bottom: 1rem;
}

/* 右欄：三篇列表 */
.hp-knowledge-featured-side {
  --hp-side-thumb-w: 7.5rem;
  --hp-side-thumb-h: calc(var(--hp-side-thumb-w) * 0.75);
  position: relative;
  flex: 1;
  border-bottom: 1px solid rgba(5, 13, 24, 0.08);
  background: var(--hp-white);
}

.hp-knowledge-featured-side:last-child {
  border-bottom: none;
}

.hp-knowledge-featured-side__link {
  display: grid;
  grid-template-columns: 1fr 7.5rem;
  gap: 0.85rem 1rem;
  align-items: stretch;
  min-height: 100%;
  padding: 1rem 2.5rem 1rem var(--hp-gutter);
  text-decoration: none;
  color: inherit;
}

.hp-knowledge-featured-side__content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
}

.hp-knowledge-featured-side__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 1.45;
  color: var(--hp-deep);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hp-knowledge-featured-side__excerpt {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--hp-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hp-knowledge-featured-side__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  margin-top: auto;
  padding-top: 0.55rem;
}

.hp-knowledge-featured-side__author {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--hp-ocean);
}

.hp-knowledge-featured-side__thumb {
  border-radius: 0.65rem;
  overflow: hidden;
  align-self: start;
  aspect-ratio: 4 / 3;
  background: var(--hp-cream);
}

.hp-knowledge-featured-side__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hp-knowledge-featured-side .hp-knowledge-bookmark {
  right: 2.5rem;
  top: calc(1rem + var(--hp-side-thumb-h) + 0.35rem);
  bottom: auto;
}

.hp-knowledge-topics {
  position: relative;
  margin-bottom: clamp(2rem, 5vw, 2.75rem);
  padding: 1.35rem 1.25rem 1.5rem;
  border-radius: 1rem;
  background: var(--hp-white);
  border: 1px solid rgba(5, 13, 24, 0.06);
  box-shadow: 0 4px 24px rgba(5, 13, 24, 0.04);
  overflow: hidden;
}

.hp-knowledge-topics::before,
.hp-knowledge-topics::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hp-knowledge-topics::before {
  width: 7rem;
  height: 7rem;
  top: -2rem;
  right: -1.5rem;
  background: var(--hp-accent-dim);
}

.hp-knowledge-topics::after {
  width: 5rem;
  height: 5rem;
  bottom: -1.25rem;
  left: -1rem;
  background: rgba(26, 122, 158, 0.12);
}

.hp-knowledge-topics__title {
  position: relative;
  z-index: 1;
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--hp-deep);
}

.hp-knowledge-topics__tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.45rem;
}

.hp-knowledge-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.hp-knowledge-tag--topic {
  padding: 0.45rem 0.85rem;
  background: var(--hp-white);
  color: var(--hp-ocean);
  border: 1px solid rgba(19, 78, 111, 0.2);
}

.hp-knowledge-tag--topic:hover {
  background: var(--hp-accent-dim);
  color: var(--hp-sea);
  border-color: rgba(26, 122, 158, 0.35);
}

.hp-knowledge-tag--article {
  padding: 0.35rem 0.7rem;
  background: var(--hp-accent-dim);
  color: var(--hp-ocean);
}

.hp-knowledge-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--hp-white);
  margin-inline: calc(-1 * var(--hp-gutter));
  padding: clamp(1.25rem, 3vw, 2rem) var(--hp-gutter);
  border-radius: 1rem 1rem 0 0;
  box-shadow: 0 -1px 0 rgba(5, 13, 24, 0.04);
}

.hp-knowledge-feed-card {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(5, 13, 24, 0.08);
}

.hp-knowledge-feed-card:first-child {
  padding-top: 0;
}

.hp-knowledge-feed-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hp-knowledge-feed-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  margin-bottom: 0.75rem;
}

.hp-knowledge-feed-card__authors {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--hp-ocean);
  flex: 1;
  min-width: 0;
}

.hp-knowledge-feed-card__main {
  --hp-feed-title-lh: 1.4;
  --hp-feed-excerpt-lh: 1.55;
  display: grid;
  grid-template-columns: 1fr 8.75rem;
  gap: 0.65rem 1rem;
  align-items: start;
  text-decoration: none;
  color: inherit;
}

.hp-knowledge-feed-card__body {
  min-width: 0;
}

.hp-knowledge-feed-card__title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: var(--hp-feed-title-lh);
  color: var(--hp-deep);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hp-knowledge-feed-card__excerpt {
  margin: 0.4rem 0 0;
  font-size: 0.8125rem;
  line-height: var(--hp-feed-excerpt-lh);
  color: var(--hp-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(0.8125rem * var(--hp-feed-excerpt-lh) * 2);
}

.hp-knowledge-feed-card__thumb {
  border-radius: 0.65rem;
  overflow: hidden;
  align-self: start;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--hp-cream);
}

.hp-knowledge-feed-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hp-knowledge-feed-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.hp-knowledge-feed-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.hp-knowledge-avatar {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  display: block;
  background: var(--hp-cream);
  border: 1px solid rgba(5, 13, 24, 0.06);
}

.hp-knowledge-avatar--sm {
  width: 1.25rem;
  height: 1.25rem;
}

.hp-knowledge-meta-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.6875rem;
  color: var(--hp-muted);
}

.hp-knowledge-meta-stat svg {
  flex-shrink: 0;
  opacity: 0.75;
}

.hp-knowledge-bookmark {
  position: absolute;
  right: 0;
  bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  background: transparent;
  color: #d4dae2;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.hp-knowledge-feed-card .hp-knowledge-bookmark {
  position: static;
  flex-shrink: 0;
}

.hp-knowledge-bookmark.is-active,
.hp-knowledge-bookmark[aria-pressed='true'] {
  color: var(--hp-ocean);
}

.hp-knowledge-bookmark.is-active svg path,
.hp-knowledge-bookmark[aria-pressed='true'] svg path {
  fill: currentColor;
}

.hp-knowledge-bookmark:hover {
  color: var(--hp-sea);
}

.hp-knowledge-bookmark.is-active:hover,
.hp-knowledge-bookmark[aria-pressed='true']:hover {
  color: var(--hp-navy);
}

@media (max-width: 1023px) {
  .hp-knowledge-featured__track {
    margin-inline: calc(-1 * var(--hp-gutter));
    border-radius: 1rem;
    overflow: hidden;
    background: var(--hp-white);
    box-shadow: 0 4px 24px rgba(5, 13, 24, 0.06);
  }
}

@media (min-width: 720px) {
  .hp-knowledge-featured-side {
    --hp-side-thumb-w: 9rem;
  }

  .hp-knowledge-featured-side__link {
    grid-template-columns: 1fr 9rem;
  }

  .hp-knowledge-feed-card__main {
    grid-template-columns: 1fr 9.5rem;
    gap: 0.65rem 1.1rem;
  }
}

@media (min-width: 1024px) {
  .hp-knowledge-featured {
    position: relative;
    padding-inline: 3.5rem;
    margin-bottom: clamp(2.25rem, 5vw, 3rem);
  }

  .hp-knowledge-featured::before,
  .hp-knowledge-featured::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
  }

  .hp-knowledge-featured::before {
    width: clamp(12rem, 22vw, 18rem);
    height: clamp(12rem, 22vw, 18rem);
    top: -3rem;
    left: -2rem;
    background: radial-gradient(circle, rgba(46, 232, 240, 0.22) 0%, transparent 68%);
  }

  .hp-knowledge-featured::after {
    width: clamp(10rem, 18vw, 14rem);
    height: clamp(10rem, 18vw, 14rem);
    bottom: -2.5rem;
    right: -1rem;
    background: radial-gradient(circle, rgba(26, 122, 158, 0.14) 0%, transparent 70%);
  }

  .hp-knowledge-featured__track {
    position: relative;
    z-index: 1;
    background: var(--hp-white);
    border-radius: 1rem;
    border: 1px solid rgba(5, 13, 24, 0.06);
    box-shadow: 0 10px 40px rgba(5, 13, 24, 0.08);
    overflow: hidden;
  }

  .hp-knowledge-featured__slide.is-active {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
  }

  .hp-knowledge-featured-hero {
    border-bottom: none;
    border-right: 1px solid rgba(5, 13, 24, 0.08);
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    min-height: 100%;
  }

  .hp-knowledge-featured-hero__link {
    flex: 1;
    min-height: 0;
  }

  .hp-knowledge-featured-hero__cover {
    aspect-ratio: 16 / 10;
    flex-shrink: 0;
  }

  .hp-knowledge-featured-hero__body {
    flex: 1;
    padding: 1.25rem 3rem 1.35rem 1.25rem;
  }

  .hp-knowledge-featured-hero__title {
    font-size: clamp(1.2rem, 1.65vw, 1.5rem);
    line-height: 1.4;
    -webkit-line-clamp: 2;
  }

  .hp-knowledge-featured-hero__excerpt {
    font-size: 0.875rem;
    margin-top: 0.65rem;
  }

  .hp-knowledge-featured-hero__meta {
    padding-top: 1rem;
  }

  .hp-knowledge-featured-hero .hp-knowledge-bookmark {
    right: 1rem;
    bottom: 1.15rem;
  }

  .hp-knowledge-featured__aside {
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    min-height: 100%;
    display: flex;
    flex-direction: column;
  }

  .hp-knowledge-featured-side {
    --hp-side-thumb-w: clamp(6.5rem, 9vw, 8.75rem);
    --hp-side-thumb-h: min(calc(var(--hp-side-thumb-w) * 0.75), 5.25rem);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .hp-knowledge-featured-side__link {
    flex: 1;
    grid-template-columns: minmax(0, 1fr) var(--hp-side-thumb-w);
    gap: 1rem 1.15rem;
    padding: 1.15rem 2.5rem 1.15rem 1.15rem;
  }

  .hp-knowledge-featured-side__title {
    font-size: 1rem;
    -webkit-line-clamp: 2;
  }

  .hp-knowledge-featured-side__excerpt {
    font-size: 0.8125rem;
    -webkit-line-clamp: 2;
  }

  .hp-knowledge-featured-side__thumb {
    align-self: start;
    aspect-ratio: 4 / 3;
    width: 100%;
    max-height: 5.25rem;
    min-height: unset;
    border-radius: 0.5rem;
  }

  .hp-knowledge-featured-side__thumb img {
    min-height: unset;
    height: 100%;
  }

  .hp-knowledge-featured-side .hp-knowledge-bookmark {
    right: 2.5rem;
    top: calc(1.15rem + var(--hp-side-thumb-h) + 0.35rem);
    bottom: auto;
  }

  .hp-knowledge-featured__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 2.75rem;
    height: 2.75rem;
    margin-top: -1.375rem;
    padding: 0;
    border: 1px solid rgba(5, 13, 24, 0.08);
    border-radius: 50%;
    background: var(--hp-white);
    color: var(--hp-ocean);
    box-shadow: 0 4px 16px rgba(5, 13, 24, 0.1);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  }

  .hp-knowledge-featured__nav:hover {
    background: var(--hp-accent-dim);
    color: var(--hp-sea);
    box-shadow: 0 6px 20px rgba(5, 13, 24, 0.12);
  }

  .hp-knowledge-featured__nav--prev {
    left: 0;
  }

  .hp-knowledge-featured__nav--next {
    right: 0;
  }

  .hp-knowledge-featured__dots {
    display: none;
  }

  .hp-knowledge-feed-card__main {
    grid-template-columns: minmax(0, 1fr) 11.5rem;
    gap: 0.5rem 1.25rem;
    align-items: stretch;
  }

  .hp-knowledge-feed-card__body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .hp-knowledge-feed-card__thumb {
    align-self: stretch;
    aspect-ratio: unset;
    height: 100%;
    min-height: calc(
      (1.0625rem * var(--hp-feed-title-lh) * 2) + 0.4rem +
        (0.8125rem * var(--hp-feed-excerpt-lh) * 2)
    );
    max-height: calc(
      (1.0625rem * var(--hp-feed-title-lh) * 2) + 0.4rem +
        (0.8125rem * var(--hp-feed-excerpt-lh) * 2)
    );
  }

  .hp-knowledge-feed-card__thumb img {
    min-height: 100%;
  }
}

/* —— 潛水知識文章詳情（/knowledge/{slug}） —— */
.hp-page--article .hp-page-hero--compact {
  padding-top: clamp(1.25rem, 3vw, 2rem);
  padding-bottom: 0.5rem;
}

.hp-knowledge-article-page {
  padding-top: clamp(1rem, 3vw, 2rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.hp-knowledge-article {
  max-width: 44rem;
  margin-inline: auto;
}

.hp-knowledge-article__header {
  margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
}

.hp-knowledge-article__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hp-knowledge-article__meta-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.hp-knowledge-article__author {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--hp-deep);
  text-decoration: none;
}

.hp-knowledge-article__author:hover {
  color: var(--hp-sea);
}

.hp-knowledge-article__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hp-knowledge-article__title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 5vw, 2.375rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--hp-deep);
}

.hp-knowledge-article__lead {
  margin: 0 0 1rem;
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  line-height: 1.75;
  color: var(--hp-muted);
}

.hp-knowledge-article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hp-knowledge-article__cover {
  margin-bottom: clamp(2rem, 5vw, 2.75rem);
  border-radius: var(--hp-radius-lg, 12px);
  overflow: hidden;
  background: var(--hp-cream, #f5f3ef);
  box-shadow: 0 4px 24px rgba(15, 45, 58, 0.08);
}

.hp-knowledge-article__cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hp-knowledge-article__content {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--hp-deep);
}

.hp-knowledge-article__content p {
  margin: 0 0 1.25rem;
}

.hp-knowledge-article__divider {
  border: 0;
  border-top: 1px solid rgba(15, 45, 58, 0.1);
  margin: clamp(2rem, 5vw, 2.75rem) 0;
}

.hp-knowledge-article__heading {
  margin: 0 0 1rem;
  font-size: clamp(1.25rem, 3.5vw, 1.5rem);
  font-weight: 800;
  line-height: 1.35;
  color: var(--hp-sea);
}

.hp-knowledge-article__footer {
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  padding-top: clamp(2rem, 5vw, 2.5rem);
  border-top: 1px solid rgba(15, 45, 58, 0.1);
}

.hp-knowledge-article__clap {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 2.5rem);
}

.hp-knowledge-article__clap-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 5.5rem;
  padding: 0.65rem 1.25rem;
  border: 1px solid rgba(15, 45, 58, 0.15);
  border-radius: 999px;
  background: #fff;
  color: var(--hp-deep);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.15s;
}

.hp-knowledge-article__clap-btn:hover {
  border-color: var(--hp-sea);
  color: var(--hp-sea);
}

.hp-knowledge-article__clap-btn[aria-pressed='true'] {
  background: var(--hp-mint, #e8f6f3);
  border-color: var(--hp-sea);
  color: var(--hp-sea);
}

.hp-knowledge-article__clap-btn:active {
  transform: scale(0.97);
}

.hp-knowledge-article__clap-hint {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: var(--hp-muted);
}

.hp-knowledge-article__author-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
  border-radius: var(--hp-radius-lg, 12px);
  background: var(--hp-mint, #e8f6f3);
}

.hp-knowledge-article__author-card .hp-knowledge-avatar {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
}

.hp-knowledge-article__author-card-name {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--hp-deep);
}

.hp-knowledge-article__author-card-bio {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--hp-muted);
}

.hp-knowledge-article-related {
  margin-top: clamp(3rem, 8vw, 4.5rem);
  padding-top: clamp(2rem, 5vw, 3rem);
  border-top: 1px solid rgba(15, 45, 58, 0.1);
  max-width: 56rem;
  margin-inline: auto;
}

.hp-knowledge-article-related__title {
  margin: 0 0 clamp(1.25rem, 4vw, 1.75rem);
  font-size: clamp(1.25rem, 3.5vw, 1.5rem);
  font-weight: 800;
  color: var(--hp-deep);
}

.hp-knowledge-article-related__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 1.5rem);
}

.hp-knowledge-article-related__card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  border-radius: var(--hp-radius-lg, 12px);
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15, 45, 58, 0.08);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.hp-knowledge-article-related__card:hover {
  border-color: rgba(0, 120, 140, 0.25);
  box-shadow: 0 8px 24px rgba(15, 45, 58, 0.1);
}

.hp-knowledge-article-related__thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--hp-cream, #f5f3ef);
}

.hp-knowledge-article-related__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hp-knowledge-article-related__card-title {
  margin: 0;
  padding: 0 1rem;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--hp-deep);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hp-knowledge-article-related__card-meta {
  margin: 0 0 1rem;
  padding: 0 1rem;
  font-size: 0.8125rem;
  color: var(--hp-muted);
}

@media (min-width: 768px) {
  .hp-knowledge-article-related__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 479px) {
  .hp-knowledge-article-related__grid {
    grid-template-columns: 1fr;
  }
}
