/*
Theme Name: MHPARK Plan
Theme URI: https://mhpark.co.kr
Description: Travel planning report theme for MHPARK.
Author: MHPARK
Version: 0.2.8
Text Domain: mhpark-plan
*/

:root {
  --mh-ink: #111827;
  --mh-muted: #5f6b76;
  --mh-field: #eef3f4;
  --mh-paper: #ffffff;
  --mh-line: #cfd8dc;
  --mh-line-dark: #24313a;
  --mh-route: #008c95;
  --mh-route-dark: #00666c;
  --mh-signal: #f4b63f;
  --mh-coral: #eb5a46;
  --mh-cta: #121b24;
  --mh-radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--mh-ink);
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.04) 1px, transparent 1px) 0 0 / 72px 72px,
    var(--mh-field);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  letter-spacing: 0;
}

a {
  color: var(--mh-route-dark);
  text-underline-offset: 0.18em;
}

img {
  max-width: 100%;
  height: auto;
}

.mh-site-header {
  border-top: 4px solid var(--mh-ink);
  border-bottom: 1px solid var(--mh-line);
  background: rgba(255, 255, 255, 0.96);
}

.mh-header-inner,
.mh-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.mh-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
}

.mh-logo {
  display: inline-grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  color: var(--mh-ink);
  font-weight: 900;
  text-decoration: none;
}

.mh-logo-mark {
  display: grid;
  width: 54px;
  height: 34px;
  place-items: center;
  border: 2px solid var(--mh-ink);
  border-radius: 0;
  background: var(--mh-signal);
  color: var(--mh-ink);
  font-size: 0.74rem;
  line-height: 1;
}

.mh-logo-text {
  display: grid;
  gap: 3px;
}

.mh-logo-text strong {
  font-size: 1.12rem;
  line-height: 1;
}

.mh-logo-text span {
  color: var(--mh-muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.mh-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
  font-weight: 850;
}

.mh-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid transparent;
  padding: 0 10px;
  color: var(--mh-ink);
  text-decoration: none;
}

.mh-nav a:hover {
  border-color: var(--mh-line-dark);
  background: #fff;
}

.mh-main {
  padding: 0 0 64px;
}

.mh-page-card,
.mh-article {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.mh-article {
  display: grid;
  grid-template-columns: 190px minmax(0, 840px);
  gap: 36px;
  padding-top: 34px;
}

.mh-article-header {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 190px minmax(0, 840px);
  gap: 36px;
  margin: 0;
  border-bottom: 2px solid var(--mh-ink);
  padding: 28px 0 30px;
}

.mh-article-header::before {
  content: "PLAN\\A ROUTE\\A HOTEL";
  white-space: pre;
  align-self: stretch;
  border-left: 6px solid var(--mh-signal);
  padding: 4px 0 0 14px;
  color: var(--mh-muted);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.75;
}

.mh-article-header > * {
  grid-column: 2;
}

.mh-kicker {
  margin: 0 0 12px;
  color: var(--mh-route-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.mh-article h1,
.mh-page-card h1 {
  margin: 0 0 14px;
  color: var(--mh-ink);
  font-size: clamp(2rem, 1.45rem + 2.1vw, 3.65rem);
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: break-word;
  word-break: keep-all;
}

.mh-excerpt {
  max-width: 760px;
  margin: 0;
  color: var(--mh-muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

.mh-content {
  grid-column: 2;
  min-width: 0;
  counter-reset: mh-section;
  font-size: 17px;
  line-height: 1.78;
}

.mh-content::before {
  content: "여행계획서 체크";
  position: sticky;
  top: 18px;
  float: left;
  width: 160px;
  margin-left: -226px;
  border-top: 2px solid var(--mh-ink);
  border-bottom: 1px solid var(--mh-line);
  padding: 12px 0;
  color: var(--mh-muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.mh-content > *:first-child {
  margin-top: 0;
}

.mh-content h2 {
  counter-increment: mh-section;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: start;
  margin: 2.35em 0 0.75em;
  border-top: 2px solid var(--mh-ink);
  padding-top: 14px;
  font-size: clamp(1.28rem, 1.08rem + 0.62vw, 1.78rem);
  line-height: 1.3;
  letter-spacing: 0;
}

.mh-content h2::before {
  content: counter(mh-section, decimal-leading-zero);
  color: var(--mh-coral);
  font-size: 0.92rem;
  font-weight: 950;
  line-height: 1.6;
}

.mh-content h3 {
  margin: 1.65em 0 0.5em;
  font-size: 1.08rem;
}

.mh-content p {
  margin: 0 0 1.05em;
}

.mh-content strong {
  color: var(--mh-ink);
  font-weight: 900;
}

.mh-content u,
.mh-underline {
  text-decoration: none;
  box-shadow: inset 0 -0.42em 0 rgba(244, 182, 63, 0.38);
  font-weight: 850;
}

.mh-content mark,
.mh-emphasis {
  border: 1px solid rgba(235, 90, 70, 0.34);
  background: rgba(235, 90, 70, 0.08);
  color: var(--mh-ink);
  padding: 0.05em 0.24em;
  font-weight: 850;
}

.mh-content table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  border-top: 2px solid var(--mh-ink);
  border-bottom: 1px solid var(--mh-line);
  background: var(--mh-paper);
  font-size: 0.94rem;
}

.mh-content th,
.mh-content td {
  border-bottom: 1px solid var(--mh-line);
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
}

.mh-content th {
  background: #18232d;
  color: #fff;
  font-weight: 850;
}

.mh-summary,
.mh-info-box,
.mh-route-box {
  position: relative;
  margin: 22px 0;
  border: 1px solid var(--mh-line);
  border-top: 3px solid var(--mh-route);
  background: var(--mh-paper);
  padding: 18px 20px;
}

.mh-summary::before,
.mh-route-box::before {
  content: "CHECK";
  position: absolute;
  top: -13px;
  left: 18px;
  background: var(--mh-paper);
  padding: 0 8px;
  color: var(--mh-route-dark);
  font-size: 0.72rem;
  font-weight: 950;
}

.mh-summary ul,
.mh-info-box ul,
.mh-route-box ul {
  margin: 0;
  padding-left: 1.1em;
}

.mh-summary li,
.mh-info-box li,
.mh-route-box li {
  margin: 0.35em 0;
}

.mh-hotel-grid {
  display: grid;
  gap: 14px;
  margin: 24px 0;
  counter-reset: mh-hotel;
}

.mh-hotel-card {
  counter-increment: mh-hotel;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--mh-line);
  border-left: 6px solid var(--mh-signal);
  background: var(--mh-paper);
}

.mh-hotel-card::before {
  content: counter(mh-hotel, decimal-leading-zero);
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.mh-hotel-card img {
  grid-column: 1;
  grid-row: 1;
  display: block;
  width: 100%;
  height: 190px;
  min-height: 190px;
  object-fit: cover;
  background: #dde6e8;
}

.mh-hotel-card > p:empty,
.mh-badges br {
  display: none;
}

.mh-hotel-card-body {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px 14px;
  align-items: start;
  min-height: 190px;
  padding: 16px;
}

.mh-hotel-card-body > p:has(.mh-card-button) {
  grid-column: 2;
  grid-row: 2 / 5;
  margin: 0;
  align-self: center;
}

.mh-hotel-card h3 {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.35;
}

.mh-hotel-card h3::before {
  content: "HOTEL";
  display: inline-flex;
  margin-right: 8px;
  border: 1px solid var(--mh-line-dark);
  padding: 2px 5px;
  color: var(--mh-muted);
  font-size: 0.66rem;
  font-weight: 950;
  vertical-align: 2px;
}

.mh-badges {
  grid-column: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mh-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid var(--mh-line);
  padding: 3px 8px;
  color: var(--mh-ink);
  background: #f7fafb;
  font-size: 0.78rem;
  font-weight: 850;
}

.mh-card-note {
  grid-column: 1;
  margin: 0;
  color: var(--mh-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.mh-price {
  grid-column: 1;
  display: inline-grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
  width: fit-content;
  border: 1px solid var(--mh-line);
  background: #f7fafb;
  padding: 5px 9px;
  color: var(--mh-ink);
  font-size: 0.84rem;
  font-weight: 850;
}

.mh-price span {
  color: var(--mh-muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.mh-button,
.mh-cta a,
.mh-hotel-card a.mh-card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 2px solid var(--mh-cta);
  border-radius: 0;
  padding: 10px 14px;
  color: #fff;
  background: var(--mh-cta);
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.mh-hotel-card a.mh-card-button {
  grid-column: 2;
  grid-row: 2 / 5;
  width: 100%;
  align-self: center;
}

.mh-button:hover,
.mh-cta a:hover,
.mh-hotel-card a.mh-card-button:hover {
  background: var(--mh-signal);
  color: var(--mh-ink);
}

.mh-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin: 32px 0;
  border: 2px solid var(--mh-ink);
  background:
    radial-gradient(circle at 0 50%, var(--mh-field) 0 11px, transparent 12px),
    radial-gradient(circle at 100% 50%, var(--mh-field) 0 11px, transparent 12px),
    var(--mh-paper);
  padding: 18px 22px;
}

.mh-cta strong {
  display: block;
  margin-bottom: 5px;
  color: var(--mh-coral);
}

.mh-cta p {
  margin: 0;
  color: var(--mh-muted);
}

.mh-cta a {
  min-width: 180px;
}

.mh-coupon {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr) 190px;
  gap: 0;
  align-items: stretch;
  margin: 32px 0;
  border: 2px solid var(--mh-ink);
  background:
    radial-gradient(circle at 0 50%, var(--mh-field) 0 11px, transparent 12px),
    radial-gradient(circle at 100% 50%, var(--mh-field) 0 11px, transparent 12px),
    var(--mh-paper);
  color: var(--mh-ink);
}

.mh-coupon__stamp {
  display: grid;
  place-items: center;
  border-right: 1px dashed var(--mh-line-dark);
  background: var(--mh-signal);
  padding: 16px 12px;
  text-align: center;
}

.mh-coupon__stamp strong {
  display: block;
  font-size: 1.72rem;
  font-weight: 950;
  line-height: 1;
}

.mh-coupon__stamp span {
  display: block;
  margin-top: 6px;
  font-size: 0.75rem;
  font-weight: 950;
}

.mh-coupon__body {
  padding: 18px 20px;
}

.mh-coupon__eyebrow {
  display: inline-flex;
  margin-bottom: 7px;
  border: 1px solid var(--mh-line-dark);
  padding: 2px 6px;
  color: var(--mh-route-dark);
  font-size: 0.7rem;
  font-weight: 950;
}

.mh-coupon__body strong {
  display: block;
  margin-bottom: 4px;
  color: var(--mh-coral);
  font-size: 1.04rem;
  line-height: 1.35;
}

.mh-coupon__body p {
  margin: 0;
  color: var(--mh-muted);
  font-size: 0.95rem;
}

.mh-coupon__code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  border: 1px solid var(--mh-line);
  background: #f7fafb;
  padding: 4px 8px;
  font-size: 0.78rem;
  font-weight: 900;
}

.mh-coupon__action {
  display: grid;
  place-items: center;
  margin: 16px 16px 16px 0;
  background: var(--mh-cta);
  color: #fff;
  padding: 10px 14px;
  font-weight: 950;
  text-align: center;
  line-height: 1.25;
  text-decoration: none;
}

.mh-coupon:hover .mh-coupon__action {
  background: var(--mh-coral);
}

.mh-post-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.mh-post-link {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: start;
  border-top: 1px solid var(--mh-line);
  background: var(--mh-paper);
  padding: 16px 0;
  text-decoration: none;
}

.mh-post-link::before {
  content: "PLAN NOTE";
  color: var(--mh-route-dark);
  font-size: 0.72rem;
  font-weight: 950;
}

.mh-post-link strong {
  color: var(--mh-ink);
}

.mh-post-link span {
  grid-column: 2;
  color: var(--mh-muted);
  font-size: 0.9rem;
}

.mh-footer {
  border-top: 2px solid var(--mh-ink);
  background: #fff;
  padding: 24px 0;
  color: var(--mh-muted);
  font-size: 0.88rem;
}

@media (max-width: 920px) {
  .mh-article,
  .mh-article-header {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .mh-article-header::before,
  .mh-content::before {
    display: none;
  }

  .mh-article-header > *,
  .mh-content {
    grid-column: 1;
  }

  .mh-content {
    padding-top: 26px;
  }

  .mh-hotel-card,
  .mh-hotel-card-body {
    grid-template-columns: 1fr;
  }

  .mh-hotel-card img {
    grid-column: 1;
    grid-row: auto;
    height: auto;
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .mh-hotel-card-body {
    grid-column: 1;
    grid-row: auto;
  }

  .mh-hotel-card-body > p:has(.mh-card-button) {
    grid-column: 1;
    grid-row: auto;
  }

  .mh-hotel-card a.mh-card-button,
  .mh-price,
  .mh-card-note {
    grid-column: 1;
  }
}

@media (max-width: 720px) {
  .mh-header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .mh-nav {
    justify-content: flex-start;
  }

  .mh-article {
    padding-top: 20px;
  }

  .mh-article-header {
    padding: 14px 0 24px;
  }

  .mh-kicker {
    margin-bottom: 9px;
    font-size: 0.7rem;
  }

  .mh-article h1,
  .mh-page-card h1 {
    margin-bottom: 12px;
    font-size: 1.66rem;
    line-height: 1.18;
  }

  .mh-excerpt {
    font-size: 0.94rem;
    line-height: 1.66;
  }

  .mh-content {
    font-size: 15.6px;
    line-height: 1.72;
  }

  .mh-content h2 {
    grid-template-columns: 38px 1fr;
    gap: 10px;
    margin-top: 2.05em;
    font-size: 1.23rem;
  }

  .mh-content h2::before {
    font-size: 0.78rem;
  }

  .mh-summary,
  .mh-info-box,
  .mh-route-box {
    margin: 18px 0;
    padding: 16px 16px 14px;
  }

  .mh-summary li,
  .mh-info-box li,
  .mh-route-box li {
    margin: 0.28em 0;
  }

  .mh-hotel-grid {
    gap: 12px;
    margin: 20px 0;
  }

  .mh-hotel-card-body {
    gap: 9px;
    padding: 14px;
  }

  .mh-hotel-card h3 {
    font-size: 0.98rem;
  }

  .mh-hotel-card h3::before {
    font-size: 0.58rem;
  }

  .mh-badge {
    min-height: 22px;
    padding: 2px 7px;
    font-size: 0.7rem;
  }

  .mh-card-note {
    font-size: 0.84rem;
    line-height: 1.54;
  }

  .mh-price {
    padding: 4px 8px;
    font-size: 0.78rem;
  }

  .mh-price span {
    font-size: 0.68rem;
  }

  .mh-hotel-card a.mh-card-button {
    min-height: 42px;
    font-size: 0.92rem;
  }

  .mh-cta,
  .mh-coupon,
  .mh-post-link {
    grid-template-columns: 1fr;
  }

  .mh-coupon__stamp {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    border-right: 0;
    border-bottom: 1px dashed var(--mh-line-dark);
    padding: 10px 14px;
    text-align: left;
  }

  .mh-coupon__stamp strong {
    font-size: 1.18rem;
  }

  .mh-coupon__stamp span {
    margin-top: 0;
    font-size: 0.68rem;
  }

  .mh-coupon__body {
    padding: 14px;
  }

  .mh-coupon__eyebrow {
    margin-bottom: 6px;
    font-size: 0.64rem;
  }

  .mh-coupon__body strong {
    font-size: 0.94rem;
  }

  .mh-coupon__body p {
    font-size: 0.86rem;
    line-height: 1.58;
  }

  .mh-coupon__code {
    font-size: 0.7rem;
  }

  .mh-coupon__action {
    margin: 0 16px 16px;
    min-height: 46px;
    font-size: 0.92rem;
  }

  .mh-post-link span {
    grid-column: 1;
  }
}
