/*
Theme Name: Lonely Punter
Theme URI: https://lonelypunter.com/
Author: Lonely Punter
Description: Custom block theme for LonelyPunter.com, a travel guide with a dedicated punter layer.
Version: 2.8.0
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: lonelypunter
*/

:root {
  --lp-navy: #063254;
  --lp-coral: #DD3A30;
  --lp-paper: #FBF8F3;
  --lp-ivory: #F3EBDD;
  --lp-ink: #101820;
  --lp-muted: #66717A;
  --lp-radius: 12px;
  --lp-radius-sm: 8px;
  --lp-shadow: 0 14px 34px rgba(6, 50, 84, 0.11);
  --lp-border: rgba(6, 50, 84, 0.14);
}

html { scroll-behavior: smooth; }
body { text-rendering: optimizeLegibility; }
a { text-underline-offset: 0.16em; }

/* Header + brand */
.lp-site-header {
  border-bottom: 1px solid var(--lp-border);
  background: rgba(251, 248, 243, 0.96) !important;
  backdrop-filter: blur(14px);
  z-index: 20;
}

.lp-header-inner { min-height: 62px; }
.lp-header-actions { gap: 16px; }

.lp-brand { margin: 0; white-space: nowrap; line-height: 1; }
.lp-brand a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--lp-navy);
  text-decoration: none;
}
.lp-brand__symbol {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: block;
  background: url("assets/images/lonely-punter-symbol-128.png") center / contain no-repeat;
}
.lp-brand__name {
  display: inline-flex;
  align-items: baseline;
  gap: .18em;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.44rem;
  font-weight: 700;
  letter-spacing: -.035em;
}
.lp-brand__lonely { color: var(--lp-navy); }
.lp-brand__punter { color: var(--lp-coral); }

.lp-header-actions .wp-block-navigation-item__content { color: var(--lp-navy); }
.lp-header-actions .wp-block-navigation-item__content:hover,
.lp-header-actions .wp-block-navigation-item__content:focus { color: var(--lp-coral); }

.lp-header-search { margin: 0; }
.lp-header-search .wp-block-search__button {
  background: transparent;
  color: var(--lp-navy);
  padding: 8px;
  min-width: 38px;
  min-height: 38px;
}
.lp-header-search .wp-block-search__button:hover { background: var(--lp-ivory); }

/* Homepage hero */
.lp-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(50px, 7vw, 88px) 18px;
  background:
    radial-gradient(circle at 83% 26%, rgba(221, 58, 48, .10), transparent 28%),
    linear-gradient(135deg, #FBF8F3 0%, #F8F1E7 100%);
  border-bottom: 1px solid var(--lp-border);
}
.lp-hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--lp-navy) 0 55%, var(--lp-coral) 55% 100%);
}
.lp-hero__layout {
  position: relative;
  z-index: 1;
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}
.lp-hero__intro { max-width: 680px; margin: 0; }
.lp-hero__intro h1 { margin: .1em 0 .28em; max-width: 720px; }
.lp-hero__intro > p:not(.lp-kicker) { max-width: 650px; }
.lp-hero__kicker { margin-bottom: 10px; }
.lp-hero__mark {
  width: clamp(280px, 31vw, 410px);
  aspect-ratio: 1;
  flex: 0 0 auto;
  background: url("assets/images/lonely-punter-symbol-512.png") center / contain no-repeat;
  filter: drop-shadow(0 18px 34px rgba(6, 50, 84, .12));
}

.lp-hero .wp-block-search { max-width: 650px; margin-inline: 0; }
.lp-hero .wp-block-search__inside-wrapper,
.lp-destination-search .wp-block-search__inside-wrapper {
  border: 1px solid rgba(6, 50, 84, .19);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.98);
  padding: 5px;
  box-shadow: 0 10px 30px rgba(6, 50, 84, .09);
}
.lp-hero .wp-block-search__input,
.lp-destination-search .wp-block-search__input {
  border: 0;
  padding: 13px 18px;
  background: transparent;
  color: var(--lp-ink);
}
.lp-hero .wp-block-search__button,
.lp-destination-search .wp-block-search__button {
  border-radius: 999px;
  margin-left: 6px;
  padding-inline: 22px;
  background: var(--lp-coral);
  color: #fff;
}
.lp-hero .wp-block-search__button:hover,
.lp-destination-search .wp-block-search__button:hover { background: #C93229; }

.lp-section { padding-block: clamp(46px, 6vw, 76px); }
.lp-section--tight { padding-block: clamp(30px, 4vw, 48px); }
.lp-section-heading { margin-bottom: 24px; }

.lp-kicker {
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .73rem;
  font-weight: 800;
}

.lp-region-links,
.lp-topic-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.lp-region-links a,
.lp-topic-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--lp-border);
  border-radius: 999px;
  color: var(--lp-navy);
  background: #fff;
  font-size: .94rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.lp-region-links a:hover,
.lp-topic-links a:hover {
  border-color: var(--lp-coral);
  color: var(--lp-coral);
  background: #fff;
}

/* After Dark gets a distinct but still branded treatment. */
.lp-after-dark {
  background: var(--lp-navy);
  color: #fff;
  position: relative;
}
.lp-after-dark::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--lp-coral);
}
.lp-after-dark .lp-after-dark__intro { color: rgba(255,255,255,.76); max-width: 880px; }
.lp-after-dark .lp-card,
.lp-after-dark .lp-php-card { color: var(--lp-ink); }

/* Destination */
.lp-destination-hero { padding-block: clamp(44px, 6vw, 72px); }
.lp-destination-hero .wp-block-post-title { margin-bottom: 18px; }
.lp-destination-intro { max-width: 820px; margin-bottom: 30px; }
.lp-destination-intro p { font-size: clamp(1.08rem, 1.5vw, 1.28rem); line-height: 1.62; color: var(--lp-muted); }
.lp-destination-intro > :first-child { margin-top: 0; }
.lp-destination-intro > :last-child { margin-bottom: 0; }
.lp-destination-hero .wp-block-post-featured-image { margin-top: 28px; }
.lp-destination-hero .wp-block-post-featured-image img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  border-radius: var(--lp-radius);
}

.lp-quick-facts {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 1px;
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  overflow: hidden;
  background: var(--lp-border);
}
.lp-quick-fact { background: #fff; padding: 16px 18px; min-height: 78px; }
.lp-quick-fact__label { display:block; font-size:.69rem; font-weight:800; letter-spacing:.09em; text-transform:uppercase; color:var(--lp-muted); margin-bottom:5px; }
.lp-quick-fact__value { display:block; font-weight:700; line-height:1.35; }

/* Cards and grids */
.lp-card,
.lp-php-card {
  overflow: hidden;
  border-radius: var(--lp-radius);
  background: #fff;
  border: 1px solid var(--lp-border);
  height: 100%;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.lp-card:hover,
.lp-php-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--lp-shadow);
  border-color: rgba(221, 58, 48, .28);
}

.lp-card .wp-block-post-featured-image { margin: 0; }
.lp-card .wp-block-post-featured-image img,
.lp-php-card__image img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; display:block; }
.lp-php-card__image { display:block; aspect-ratio:3/2; overflow:hidden; background:#e7e4dd; }

.lp-card__body,
.lp-php-card__body { padding: 17px 18px 19px; }
.lp-card__title a,
.lp-php-card__title a { color:inherit; text-decoration:none; }
.lp-card__meta { color: var(--lp-muted); font-size: .9rem; }
.lp-php-card__eyebrow { font-size:.69rem; text-transform:uppercase; letter-spacing:.10em; font-weight:800; color:var(--lp-coral); margin-bottom:7px; }
.lp-php-card__title { margin:0 0 8px; font-family: Georgia, "Times New Roman", serif; font-size:1.2rem; line-height:1.2; }
.lp-php-card__excerpt { margin:0; color:var(--lp-muted); font-size:.93rem; line-height:1.5; }

.lp-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }
/* WordPress flow-layout block spacing can otherwise push every Query Loop item
   except the first one down slightly. The grid gap already owns the spacing. */
.wp-block-post-template.lp-grid > li { margin-block-start: 0 !important; }
.lp-grid--4 { grid-template-columns:repeat(4,minmax(0,1fr)); }

.lp-topic-section { margin-block: 48px; }
.lp-topic-section:first-child { margin-top: 10px; }
.lp-topic-section__header { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:18px; }
.lp-topic-section__header h2 { margin:0; }
.lp-empty-state { color: var(--lp-muted); }


/* Guides index ----------------------------------------------------------
   Keep a dense editorial grid without letting long titles or excerpts make
   individual rows feel ragged. After Dark is excluded from this query in
   functions.php and remains a separate vertical. */
.lp-guides-page .lp-topic-links { margin-bottom: 22px; }
.lp-guides-grid .lp-card {
  display: flex;
  flex-direction: column;
}
.lp-guides-grid .lp-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.lp-guides-grid .wp-block-post-title {
  margin: 0 0 10px;
  line-height: 1.08;
}
.lp-guides-grid .wp-block-post-excerpt {
  margin: auto 0 0;
}
.lp-guides-grid .wp-block-post-excerpt__excerpt {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  margin: 0;
}
.lp-guides-pagination {
  gap: 8px;
  margin-top: 38px;
}
.lp-guides-pagination .wp-block-query-pagination-numbers {
  display: inline-flex;
  gap: 7px;
  margin: 0;
}
.lp-guides-pagination .page-numbers,
.lp-guides-pagination .wp-block-query-pagination-previous,
.lp-guides-pagination .wp-block-query-pagination-next {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 6px 11px;
  border: 1px solid var(--lp-border);
  border-radius: 999px;
  background: #fff;
  color: var(--lp-navy);
  text-decoration: none;
  font-weight: 700;
}
.lp-guides-pagination .page-numbers {
  min-width: 36px;
}
.lp-guides-pagination .page-numbers.current {
  border-color: var(--lp-navy);
  background: var(--lp-navy);
  color: #fff;
}
.lp-guides-pagination a:hover {
  border-color: rgba(6, 50, 84, .35);
}

/* Destination guide index: use the full editorial width instead of stacking
   narrow card grids down the left side of the page. Each category gets its
   own horizontal row: section title at left, related guides at right. */
.lp-destination-guides-zone {
  padding-top: clamp(34px, 4.5vw, 56px);
  padding-bottom: clamp(48px, 6vw, 76px);
}
.lp-destination-guides-zone .lp-topic-section {
  display: grid;
  grid-template-columns: minmax(150px, 205px) minmax(0, 1fr);
  column-gap: clamp(22px, 3vw, 38px);
  align-items: start;
  margin: 0;
  padding: 34px 0;
  border-top: 1px solid var(--lp-border);
}
.lp-destination-guides-zone .lp-topic-section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.lp-destination-guides-zone .lp-topic-section__header {
  display: block;
  margin: 0;
  padding-top: 2px;
}
.lp-destination-guides-zone .lp-topic-section__header h2 {
  color: var(--lp-navy);
  font-size: clamp(1.55rem, 2.1vw, 2.05rem);
  line-height: 1.08;
}
.lp-destination-guides-zone .lp-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.lp-destination-guides-zone .lp-card__body,
.lp-destination-guides-zone .lp-php-card__body {
  padding: 15px 16px 17px;
}
.lp-destination-guides-zone .lp-php-card__title {
  font-size: 1.1rem;
}


/* Geography archives */
.lp-geo-archive { padding-bottom: clamp(46px, 6vw, 76px); }
.lp-geo-archive__section {
  margin-top: clamp(40px, 5vw, 62px);
  padding-top: clamp(30px, 4vw, 44px);
  border-top: 1px solid var(--lp-border);
}
.lp-geo-archive__section:first-child { margin-top: 28px; }
.lp-geo-archive__heading { margin-bottom: 20px; }
.lp-geo-archive__heading .lp-kicker { margin-bottom: 7px; color: var(--lp-coral); }
.lp-geo-archive__heading h2 {
  color: var(--lp-navy);
  margin: 0;
  font-size: clamp(1.85rem, 3vw, 2.55rem);
}
.lp-geo-pagination { margin-top: 30px; }
.lp-geo-pagination .page-numbers {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
}
.lp-geo-pagination .page-numbers a,
.lp-geo-pagination .page-numbers span {
  display: inline-flex;
  min-width: 38px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border: 1px solid var(--lp-border);
  border-radius: 999px;
  background: #fff;
  text-decoration: none;
  font-weight: 700;
}
.lp-geo-pagination .page-numbers .current {
  background: var(--lp-navy);
  border-color: var(--lp-navy);
  color: #fff;
}

/* Articles */
.lp-single { overflow: clip; }
.lp-article-header {
  padding-top: clamp(48px, 6vw, 78px);
  padding-bottom: 26px;
}
.lp-article-header .wp-block-post-terms { margin-bottom: 10px; }
.lp-article-header .wp-block-post-title {
  max-width: 960px;
  margin-top: 0;
  margin-bottom: 18px;
}
.lp-article-header .wp-block-post-excerpt {
  max-width: 820px;
  margin-top: 0;
  margin-bottom: 14px;
}
.lp-article-header .wp-block-post-excerpt p {
  line-height: 1.48;
}
.lp-article-meta {
  color: var(--lp-muted);
  font-size: .9rem;
  gap: 8px;
}
.lp-article-meta p { margin: 0; }
.lp-article-featured { margin-top: 0; margin-bottom: 0; }
.lp-article-featured img {
  display: block;
  width: 100%;
  max-height: 680px;
  object-fit: cover;
  box-shadow: 0 16px 38px rgba(6, 50, 84, .08);
}

.lp-article-shell {
  max-width: 820px;
  margin-inline: auto;
  padding-bottom: clamp(20px, 2.4vw, 34px);
}
.lp-article-shell > * + * { margin-block-start: 1.28em; }
.lp-article-shell p {
  font-size: 1.075rem;
  line-height: 1.78;
}
.lp-article-shell h2 {
  color: var(--lp-navy);
  font-size: clamp(1.78rem, 3vw, 2.32rem);
  line-height: 1.1;
  margin-top: 2.55em;
  margin-bottom: .68em;
}
.lp-article-shell h3 {
  color: var(--lp-ink);
  font-size: clamp(1.36rem, 2.2vw, 1.65rem);
  line-height: 1.16;
  margin-top: 2.05em;
  margin-bottom: .62em;
}
.lp-article-shell h4 {
  color: var(--lp-navy);
  font-size: 1.1rem;
  margin-top: 1.8em;
  margin-bottom: .5em;
}
.lp-article-shell ul,
.lp-article-shell ol {
  padding-left: 1.45em;
  margin-block: 1.15em 1.45em;
}
.lp-article-shell li {
  line-height: 1.72;
  margin-bottom: .56em;
  padding-left: .18em;
}
.lp-article-shell li::marker { color: var(--lp-coral); font-weight: 700; }
.lp-article-shell a:not(.wp-element-button) {
  color: var(--lp-navy);
  text-decoration: underline;
  text-decoration-color: rgba(221, 58, 48, .46);
  text-decoration-thickness: 1px;
  text-underline-offset: .17em;
}
.lp-article-shell a:not(.wp-element-button):hover {
  color: var(--lp-coral);
  text-decoration-color: currentColor;
}
.lp-article-shell strong { color: var(--lp-ink); }
.lp-article-shell hr,
.lp-article-shell .wp-block-separator {
  border: 0;
  border-top: 1px solid var(--lp-border);
  margin-block: 2.35rem;
}

.lp-article-shell .wp-block-image,
.lp-article-shell .wp-block-gallery { margin-block: 1.8rem; }
.lp-article-shell .wp-block-image img { border-radius: var(--lp-radius-sm); }
.lp-article-shell .wp-block-image.alignwide,
.lp-article-shell .wp-block-gallery.alignwide {
  margin-left: 50%;
  transform: translateX(-50%);
  width: min(1080px, 94vw);
}
.lp-article-shell figcaption {
  color: var(--lp-muted);
  font-size: .82rem;
  line-height: 1.45;
  margin-top: 8px;
}

.lp-article-shell blockquote,
.lp-article-shell .wp-block-quote {
  margin: 2rem 0;
  padding: 18px 22px;
  border-left: 4px solid var(--lp-coral);
  background: rgba(243, 235, 221, .62);
  border-radius: 0 var(--lp-radius-sm) var(--lp-radius-sm) 0;
}
.lp-article-shell blockquote p,
.lp-article-shell .wp-block-quote p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.14rem;
  line-height: 1.58;
}
.lp-article-shell blockquote cite,
.lp-article-shell .wp-block-quote cite {
  color: var(--lp-muted);
  font-size: .82rem;
}

.lp-article-shell .wp-block-table {
  margin-block: 2rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.lp-article-shell table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
  line-height: 1.5;
  background: #fff;
  border: 1px solid var(--lp-border);
}
.lp-article-shell th,
.lp-article-shell td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--lp-border);
  text-align: left;
  vertical-align: top;
}
.lp-article-shell th {
  color: var(--lp-navy);
  background: var(--lp-ivory);
  font-weight: 800;
}
.lp-article-shell tr:last-child td { border-bottom: 0; }

.lp-related-wrap {
  margin-top: clamp(34px, 5vw, 58px);
  padding-top: clamp(30px, 4vw, 46px);
  border-top: 1px solid var(--lp-border);
}
.lp-related-guides { padding-block: 0 8px; }
.lp-related-guides h2 {
  color: var(--lp-navy);
  margin-bottom: 22px;
}
.lp-related-guides .lp-grid { gap: 20px; }

/* Generic blocks */
.lp-callout {
  border-left: 4px solid var(--lp-coral);
  background: var(--lp-ivory);
  padding: 20px 22px;
  border-radius: 0 var(--lp-radius-sm) var(--lp-radius-sm) 0;
}
.lp-callout > :first-child { margin-top:0; }
.lp-callout > :last-child { margin-bottom:0; }

/* Footer */
.lp-site-footer { border-top:1px solid var(--lp-border); margin-top:64px; }
.home .lp-site-footer { margin-top:0; }
.lp-footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr; gap:36px; }
.lp-brand--footer .lp-brand__symbol { width: 54px; height: 54px; flex-basis:54px; }
.lp-brand--footer .lp-brand__name { font-size:1.46rem; }
.lp-site-footer h3 { color: var(--lp-navy); }
.lp-site-footer a:hover { color: var(--lp-coral); }

@media (max-width: 960px) {
  .lp-hero__mark { width: clamp(230px, 31vw, 320px); }
  .lp-grid, .lp-grid--4 { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .lp-quick-facts { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .lp-quick-fact:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .lp-footer-grid { grid-template-columns:1fr 1fr; }
  .lp-footer-grid > :first-child { grid-column:1 / -1; }
  .lp-destination-guides-zone .lp-topic-section {
    grid-template-columns: 145px minmax(0, 1fr);
    column-gap: 20px;
  }
  .lp-destination-guides-zone .lp-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  /* Consistent mobile gutters across content sections.
     The hero already has its own balanced inset, so it is intentionally excluded. */
  .lp-section,
  .lp-section--tight {
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box;
  }

  /* Keep the WordPress mobile navigation overlay attached to the viewport.
     backdrop-filter can create a containing block for fixed descendants on
     mobile browsers, which can push the responsive menu outside the screen. */
  .lp-site-header {
    position: relative !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .lp-header-actions { gap: 8px; }

  .lp-site-header .wp-block-navigation__responsive-container.is-menu-open {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    max-width: none !important;
    height: 100vh !important;
    height: 100dvh !important;
    margin: 0 !important;
    padding: 22px !important;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--lp-paper) !important;
    z-index: 100000 !important;
  }

  .lp-site-header .wp-block-navigation__responsive-dialog,
  .lp-site-header .wp-block-navigation__responsive-container-content {
    width: 100%;
    max-width: none;
  }

  .lp-site-header .wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation__responsive-container-content {
    padding-top: 64px !important;
    align-items: stretch;
  }

  .lp-site-header .wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation__container {
    width: 100%;
    gap: 0;
    align-items: stretch;
  }

  .lp-site-header .wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation-item {
    width: 100%;
  }

  .lp-site-header .wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation-item__content {
    display: block;
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--lp-border);
    font-size: 1.25rem;
  }

  .lp-site-header .wp-block-navigation__responsive-container-close {
    top: 20px;
    right: 20px;
  }
  .lp-brand__symbol { width: 40px; height: 40px; flex-basis:40px; }
  .lp-brand__name { font-size: 1.18rem; }
  .lp-hero { padding-block: 48px; }
  .lp-hero__layout { display:block !important; }
  .lp-hero__intro { max-width:100%; }
  .lp-hero__mark { display:none; }
  .lp-hero .wp-block-search { max-width:100%; }
  .lp-hero .wp-block-search__inside-wrapper { border-radius: 18px; }
  .lp-hero .wp-block-search__button { padding-inline: 16px; }
  .lp-grid, .lp-grid--4, .lp-footer-grid { grid-template-columns:1fr; }
  .lp-quick-facts { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .lp-topic-section { margin-block:38px; }
  .lp-topic-section__header { align-items:flex-start; flex-direction:column; gap:8px; }
  .lp-article-shell p { font-size:1.02rem; line-height:1.72; }
  .lp-article-shell { padding-left: 16px !important; padding-right: 16px !important; }
  .lp-related-wrap { padding-left: 16px; padding-right: 16px; }
  .lp-section { padding-block: 42px; }
  .lp-section--tight { padding-block: 28px; }
  .lp-destination-guides-zone { padding-top: 26px; padding-bottom: 46px; }
  .lp-destination-guides-zone .lp-topic-section {
    display: block;
    padding: 30px 0;
  }
  .lp-destination-guides-zone .lp-topic-section__header { margin-bottom: 16px; }
  .lp-destination-guides-zone .lp-grid { grid-template-columns:1fr; }
}

@media (max-width: 520px) {
  .lp-brand__name { display:none; }
  .lp-brand__symbol { width:44px; height:44px; flex-basis:44px; }
}

@media (max-width: 430px) {
  .lp-quick-facts { grid-template-columns:1fr; }
  .lp-quick-fact:last-child:nth-child(odd) { grid-column:auto; }
  .lp-region-links a, .lp-topic-links a { min-height: 38px; padding: 7px 12px; font-size: .9rem; }
}


/* After Dark archive -----------------------------------------------------
   A dedicated editorial landing treatment for the After Dark category.
   The regular category template remains unchanged for all other categories. */
.lp-after-dark-archive-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(54px, 7vw, 92px) 18px clamp(48px, 6vw, 78px);
  background:
    radial-gradient(circle at 82% 28%, rgba(221, 58, 48, .22), transparent 30%),
    linear-gradient(135deg, #063254 0%, #082d49 64%, #102338 100%);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.lp-after-dark-archive-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: var(--lp-coral);
}
.lp-after-dark-archive-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 940px;
  margin-inline: auto;
}
.lp-after-dark-archive-hero .lp-kicker {
  margin-bottom: 12px;
  color: #ff655d;
}
.lp-after-dark-archive-hero .wp-block-query-title {
  margin: 0 0 18px;
  color: #fff;
  max-width: 850px;
}
.lp-after-dark-archive-hero__intro {
  max-width: 780px;
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.58;
}
.lp-after-dark-archive-hero .wp-block-term-description {
  max-width: 780px;
  margin-top: 18px;
  color: rgba(255,255,255,.68);
}
.lp-after-dark-archive-hero .wp-block-term-description p { margin: 0; }

.lp-after-dark-archive-main {
  padding-block: clamp(46px, 6vw, 78px);
}
.lp-after-dark-archive-main .lp-after-dark-archive-heading {
  margin-bottom: 24px;
}
.lp-after-dark-archive-main .lp-after-dark-archive-heading h2 {
  margin: 0;
  color: var(--lp-navy);
}
.lp-after-dark-archive-main .lp-grid {
  gap: 24px;
}
.lp-after-dark-archive-main .lp-card {
  border-top: 3px solid var(--lp-coral);
}
.lp-after-dark-archive-main .lp-card .wp-block-post-terms a {
  color: var(--lp-coral);
}
.lp-after-dark-archive-main .wp-block-query-pagination {
  margin-top: 42px;
}

@media (max-width: 781px) {
  .lp-after-dark-archive-hero {
    padding: 46px 20px 42px;
  }
  .lp-after-dark-archive-main {
    padding-left: 20px;
    padding-right: 20px;
  }
}


/* Secondary pages -------------------------------------------------------
   Search, generic information pages and 404 share the same restrained
   editorial language as the rest of the theme without becoming mini
   landing pages of their own. */
.lp-page {
  padding: 0 18px clamp(58px, 7vw, 92px);
}
.lp-page-header {
  padding-top: clamp(48px, 6vw, 78px);
  padding-bottom: clamp(24px, 3vw, 36px);
  border-bottom: 1px solid var(--lp-border);
}
.lp-page-header .wp-block-post-title {
  margin: 0;
  max-width: 860px;
  color: var(--lp-navy);
}
.lp-page-body {
  padding-top: clamp(30px, 4vw, 46px);
}
.lp-page-body > :first-child { margin-top: 0; }
.lp-page-body > :last-child { margin-bottom: 0; }
.lp-page-body p,
.lp-page-body li {
  font-size: 1.04rem;
  line-height: 1.74;
}
.lp-page-body h2 {
  color: var(--lp-navy);
  margin-top: 2.15em;
  margin-bottom: .62em;
}
.lp-page-body h3 {
  margin-top: 1.8em;
  margin-bottom: .55em;
}
.lp-page-body a:not(.wp-element-button) {
  text-decoration: underline;
  text-decoration-color: rgba(221,58,48,.42);
  text-underline-offset: .17em;
}
.lp-page-body input:not([type="submit"]):not([type="button"]),
.lp-page-body textarea,
.lp-page-body select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius-sm);
  background: #fff;
  color: var(--lp-ink);
  padding: 12px 14px;
  font: inherit;
}
.lp-page-body textarea { min-height: 150px; resize: vertical; }
.lp-page-body input:focus,
.lp-page-body textarea:focus,
.lp-page-body select:focus {
  outline: 2px solid rgba(221,58,48,.18);
  border-color: var(--lp-coral);
}

/* Search */
.lp-search-page {
  padding: 0 18px clamp(58px, 7vw, 92px);
}
.lp-search-page__header {
  padding-top: clamp(48px, 6vw, 78px);
  padding-bottom: clamp(34px, 4vw, 48px);
  border-bottom: 1px solid var(--lp-border);
}
.lp-search-page__header .wp-block-query-title {
  margin: .08em 0 .5em;
  color: var(--lp-navy);
}
.lp-search-page__form { max-width: 720px; margin: 22px 0 0; }
.lp-search-page__form .wp-block-search__inside-wrapper,
.lp-404__search .wp-block-search__inside-wrapper {
  border: 1px solid rgba(6,50,84,.18);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  padding: 5px;
  box-shadow: 0 10px 28px rgba(6,50,84,.07);
}
.lp-search-page__form .wp-block-search__input,
.lp-404__search .wp-block-search__input {
  border: 0;
  background: transparent;
  padding: 12px 16px;
}
.lp-search-page__form .wp-block-search__button,
.lp-404__search .wp-block-search__button {
  border-radius: 999px;
  background: var(--lp-coral);
  color: #fff;
  margin-left: 6px;
  padding-inline: 20px;
}
.lp-search-page__results { padding-top: 10px; }
.lp-search-result {
  padding: 28px 0;
  border-bottom: 1px solid var(--lp-border);
}
.lp-search-result:first-child { padding-top: 30px; }
.lp-search-result .wp-block-post-title { margin: 0 0 8px; }
.lp-search-result .wp-block-post-title a { color: var(--lp-navy); text-decoration: none; }
.lp-search-result .wp-block-post-title a:hover { color: var(--lp-coral); }
.lp-search-result .wp-block-post-excerpt { color: var(--lp-muted); max-width: 760px; }
.lp-search-result .wp-block-post-excerpt p { margin: 0; }
.lp-search-empty {
  margin-top: 34px;
  padding: 28px 30px;
  background: rgba(243,235,221,.56);
  border-radius: var(--lp-radius);
}
.lp-search-page .wp-block-query-pagination { margin-top: 36px; }

/* 404 */
.lp-404 {
  min-height: 62vh;
  padding: clamp(58px, 8vw, 110px) 18px clamp(70px, 9vw, 120px);
  background:
    radial-gradient(circle at 82% 28%, rgba(221,58,48,.09), transparent 28%),
    linear-gradient(135deg, #FBF8F3 0%, #F8F1E7 100%);
}
.lp-404__panel {
  position: relative;
  padding-left: clamp(0px, 2vw, 18px);
}
.lp-404__panel h1 { color: var(--lp-navy); margin: .08em 0 .28em; }
.lp-404__panel > p:not(.lp-kicker) { max-width: 680px; }
.lp-404__search { max-width: 650px; margin: 26px 0 24px; }
.lp-404 .is-style-outline .wp-block-button__link {
  color: var(--lp-navy);
  border-color: var(--lp-border);
  background: transparent;
}
.lp-404 .is-style-outline .wp-block-button__link:hover {
  color: var(--lp-coral);
  border-color: var(--lp-coral);
}

@media (max-width: 760px) {
  .lp-page,
  .lp-search-page,
  .lp-404 {
    padding-left: 20px;
    padding-right: 20px;
  }
  .lp-page-header { padding-top: 42px; }
  .lp-page-body { padding-top: 28px; }
  .lp-page-body p,
  .lp-page-body li { font-size: 1rem; line-height: 1.7; }
  .lp-search-page__header { padding-top: 42px; }
  .lp-search-page__form .wp-block-search__inside-wrapper,
  .lp-404__search .wp-block-search__inside-wrapper { border-radius: 18px; }
  .lp-search-page__form .wp-block-search__button,
  .lp-404__search .wp-block-search__button { padding-inline: 16px; }
  .lp-search-result { padding-block: 24px; }
  .lp-404 { min-height: 56vh; padding-top: 58px; }
}

.lp-php-card__eyebrow a { color: inherit; text-decoration: none; }
.lp-php-card__eyebrow a:hover { color: var(--lp-navy); }
