/*
Theme Name: Compass
Theme URI: https://example.com/compass
Author: Your Name
Author URI: https://example.com
Description: A widget-rich travel journal theme. An edge-to-edge three-across carousel bleeds off both sides of the viewport, a row of bordered icon feature boxes sits beneath it, and a centred article column runs beside a deep sidebar holding an author card, social count boxes, a static weather panel, an advertisement slot, popular articles, recent comments and category counts. Self-hosted Roboto Condensed and Work Sans, light and dark modes, and one-click demo content with original artwork.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: compass
Tags: blog, travel, news, magazine, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, full-width-template
*/

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #fafafa;
  --text: #111111;
  --text-2: #444444;
  --muted: #767676;
  --line: #ededed;
  --accent: #008ca8;
  --accent-ink: #ffffff;
  --accent-hover: #006f86;
  --accent-hover-ink: #ffffff;

  --font-display: "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ui: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --w-display: 700;
  --lh-display: 1.2;
  --track-display: 0em;

  --radius: 0px;
  --radius-ui: 2px;
  --wrap: 1108px;
  --gap: 26px;
  --sticky-top: 20px;

  --footer-bg: #222222;
  --footer-text: #ffffff;
  --footer-muted: #a9adb0;
  --footer-line: rgba(255,255,255,.1);
  --footer-bar: #111111;
  --overlay: linear-gradient(180deg, rgba(5,14,18,0) 40%, rgba(5,14,18,.8) 100%);
}
:root[data-theme="dark"] {
  --bg: #11161a;
  --surface: #171d22;
  --surface-2: #1c2429;
  --text: #eef3f5;
  --text-2: #c2cbd0;
  --muted: #8d989e;
  --line: #28323a;
  --accent: #2eb3cd;
  --accent-ink: #0a0f12;
  --accent-hover: #63cbdf;
  --accent-hover-ink: #0a0f12;
  --footer-bg: #0d1215;
  --footer-text: #eef3f5;
  --footer-muted: #8d989e;
  --footer-bar: #080c0e;
}

body { font-size: 15px; line-height: 1.6; }
h1, h2, h3, h4, h5, h6,
.card__title, .mini__title, .entry-title, .section-title, .page-title { font-family: var(--font-display); }
.meta, .btn, .section-link { font-family: var(--font-body); }

/* ============================================================
 * Header: logo + tagline left, utility row over the menu right
 * ========================================================== */
.cp-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.cp-header__inner { display: flex; align-items: center; gap: clamp(18px, 3vw, 38px); min-height: 0; padding-block: clamp(14px, 2vw, 24px); }
.cp-header__brand { flex: 0 0 auto; padding: 0; }
.cp-header__right { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.cp-header .brand__link { display: inline-flex; align-items: center; gap: .7rem; }
.cp-header .brand__mark { color: var(--text); }
.brand__text { display: flex; flex-direction: column; gap: .1rem; }
.cp-header .brand__name { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.05rem); font-weight: 400; letter-spacing: -.01em; line-height: 1.05; color: var(--text); }
.brand__tagline { font-family: var(--font-body); font-size: .72rem; font-style: italic; color: var(--muted); letter-spacing: .01em; }

.cp-utility { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-bottom: .62rem; border-bottom: 1px solid var(--line); }
.cp-utility__left { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); flex-wrap: wrap; }
.cp-utility__weather { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--font-body); font-size: .76rem; color: var(--text-2); }
.cp-utility__weather .icon { color: var(--text-2); }
.cp-utility__temp { font-weight: 600; color: var(--text); }
.cp-utility__temp sup { font-size: .62em; }
.cp-utility__place { color: var(--muted); }
.cp-utility__account { font-family: var(--font-body); font-size: .76rem; color: var(--text-2); }
.cp-utility__account:hover { color: var(--accent); }
.cp-utility__social { display: flex; align-items: center; gap: .85rem; }
.cp-utility__social a { display: inline-flex; color: var(--text-2); }
.cp-utility__social a:hover { color: var(--accent); }
.cp-utility__social svg { width: 15px; height: 15px; }

.cp-navrow { display: flex; align-items: center; gap: 1rem; padding-top: .2rem; }
.primary-menu > li > a {
  font-family: var(--font-display); font-size: .96rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .035em; color: var(--text);
  padding: .68rem .8rem; border-radius: 0; background: none;
}
.primary-menu > li > a:hover { color: var(--accent); background: none; }
.primary-menu .current-menu-item > a,
.primary-menu .current-menu-parent > a,
.primary-menu .current-menu-ancestor > a { color: var(--accent); background: none; }
.primary-menu .sub-menu { border-radius: 0; border-color: var(--line); padding: .2rem; }
.primary-menu .sub-menu a { text-transform: none; font-family: var(--font-body); font-size: .82rem; }
.site-header__actions .icon-btn { border-radius: 0; }
@media (max-width: 860px) {
  .cp-header__inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cp-header__right { width: 100%; }
}

/* ============================================================
 * Hero: three across, outer slides bleeding off both edges
 * ========================================================== */
.cp-hero { position: relative; overflow: hidden; background: #09151a; --cp-slide: 50vw; }
.cp-hero__viewport { overflow: hidden; }
.cp-hero__track {
  display: flex;
  padding-left: calc(50vw - (var(--cp-slide) / 2));
  transform: translateX(calc(var(--cp-i, 0) * var(--cp-slide) * -1));
  transition: transform .55s cubic-bezier(.4, 0, .2, 1);
}
@media (prefers-reduced-motion: reduce) { .cp-hero__track { transition: none; } }
.cp-slide { position: relative; flex: 0 0 var(--cp-slide); aspect-ratio: 720 / 405; overflow: hidden; }
.cp-slide__media { position: absolute; inset: 0; display: block; }
.cp-slide__img { width: 100%; height: 100%; object-fit: cover; }
.cp-slide__ph { position: absolute; inset: 0; background: linear-gradient(150deg, hsl(var(--cat-hue,196) 52% 44%), hsl(calc(var(--cat-hue,196) + 26) 46% 22%)); }
.cp-slide__shade { position: absolute; inset: 0; background: rgba(6,16,20,.46); transition: background .45s; }
.cp-slide.is-active .cp-slide__shade { background: rgba(6,16,20,.22); }
.cp-slide__body { position: absolute; inset: 0; display: grid; place-items: center; padding: 0 clamp(18px, 4vw, 62px); text-align: center; z-index: 2; }
.cp-slide__title { margin: 0; font-size: clamp(1.5rem, 3.2vw, 2.95rem); font-weight: 400; line-height: 1.16; color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.4); }
.cp-slide__title a { color: #fff; }
.cp-slide__title a:hover { color: #fff; text-decoration: underline; text-underline-offset: .18em; }
.cp-slide__foot { position: absolute; left: 0; right: 0; bottom: clamp(12px, 1.8vw, 24px); z-index: 2; }
.cp-slide .cp-byline { color: rgba(255,255,255,.92); }
.cp-slide .cp-byline__author, .cp-slide .cp-byline__date, .cp-slide .cp-byline__sep { color: rgba(255,255,255,.92); }
.cp-hero__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  display: grid; place-items: center; width: 54px; height: 54px; color: #fff;
  opacity: .85; transition: opacity .2s;
}
.cp-hero__nav:hover { opacity: 1; }
.cp-hero__nav--prev { left: 10px; }
.cp-hero__nav--next { right: 10px; }
.cp-hero__nav .icon { width: 40px; height: 40px; stroke-width: 1.2; filter: drop-shadow(0 1px 6px rgba(0,0,0,.45)); }
@media (max-width: 760px) { .cp-hero { --cp-slide: 86vw; } .cp-hero__nav { width: 40px; height: 40px; } .cp-hero__nav .icon { width: 28px; height: 28px; } }

/* shared byline -------------------------------------------------- */
.cp-byline {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem;
  font-family: var(--font-body); font-size: .78rem; color: var(--muted); margin: 0;
}
.cp-byline__author { color: var(--text); font-weight: 600; }
.cp-byline__author:hover { color: var(--accent); }

/* comment badge -------------------------------------------------- */
.cp-cbadge {
  display: inline-grid; place-items: center; min-width: 20px; height: 18px; padding: 0 .28rem;
  background: var(--text); color: var(--bg); border-radius: 2px;
  font-family: var(--font-body); font-size: .62rem; font-weight: 700; line-height: 1;
}

/* section / widget heading --------------------------------------- */
.cp-head { border-bottom: 1px solid var(--line); margin-bottom: clamp(16px, 2.2vw, 26px); }
.cp-head__title {
  display: inline-block; margin: 0 0 -1px; padding-bottom: .55rem;
  border-bottom: 2px solid var(--accent);
  font-family: var(--font-display); font-size: .84rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .09em; color: var(--text);
}
.cp-head--wide .cp-head__title { font-size: .88rem; }

/* category chips -------------------------------------------------- */
.cp-cat {
  display: inline-block; background: none; padding: 0;
  font-family: var(--font-display); font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: var(--accent);
}
.cp-cat:hover { color: var(--accent-hover); }
.cp-cat--solid { background: var(--accent); color: #fff; padding: .18rem .4rem; font-size: .6rem; letter-spacing: .07em; }
.cp-cat--solid:hover { color: #fff; filter: brightness(1.1); }

/* ============================================================
 * Feature boxes
 * ========================================================== */
.cp-features { padding-block: clamp(30px, 4.6vw, 70px) clamp(24px, 3.4vw, 48px); }
.cp-features__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 3vw, 46px); }
.cp-feature {
  display: grid; justify-items: center; align-content: center; gap: 1rem;
  min-height: 170px; padding: 1.6rem 1rem; border: 1px solid var(--line); color: var(--text);
  transition: border-color .2s, color .2s;
}
.cp-feature:hover { border-color: var(--accent); }
.cp-feature__icon { color: var(--accent); display: grid; place-items: center; }
.cp-feature__label { font-family: var(--font-display); font-size: clamp(1.05rem, 1.8vw, 1.5rem); font-weight: 400; text-transform: uppercase; letter-spacing: .1em; color: var(--text-2); }
.cp-feature:hover .cp-feature__label { color: var(--accent); }
@media (max-width: 620px) { .cp-features__row { grid-template-columns: minmax(0, 1fr); } .cp-feature { min-height: 128px; } }

/* ============================================================
 * Body: centred article column + deep sidebar
 * ========================================================== */
.cp-body { padding-bottom: clamp(32px, 4.4vw, 60px); }
.cp-layout { display: grid; gap: clamp(26px, 4vw, 56px); align-items: start; }
@media (min-width: 1000px) { .cp-layout { grid-template-columns: minmax(0, 1fr) 324px; } }
.cp-main { min-width: 0; }
.cp-side { display: grid; gap: clamp(24px, 3vw, 36px); min-width: 0; }

.cp-articles { display: grid; gap: clamp(26px, 3.6vw, 44px); }
.cp-article { text-align: center; padding-bottom: clamp(24px, 3.2vw, 40px); border-bottom: 1px solid var(--line); }
.cp-article:last-child { border-bottom: 0; padding-bottom: 0; }
.cp-article__head { display: grid; justify-items: center; gap: .5rem; }
.cp-article__title { margin: 0; font-size: clamp(1.35rem, 2.2vw, 1.78rem); line-height: 1.22; }
.cp-article__title a:hover { color: var(--accent); }
.cp-article__meta { position: relative; width: 100%; display: flex; align-items: center; justify-content: center; gap: .6rem; margin-bottom: 1.15rem; }
.cp-article__meta .cp-cbadge { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
.cp-article__media { display: block; }
.cp-article .media { aspect-ratio: 16 / 10; border-radius: 0; }
.cp-article__excerpt { color: var(--text-2); font-size: .88rem; line-height: 1.85; max-width: 60ch; margin: 1.15rem auto .9rem; }
.cp-article__more { margin: 0; }
.cp-article__more a { font-family: var(--font-display); font-size: .88rem; font-weight: 700; color: var(--text); letter-spacing: .01em; }
.cp-article__more a:hover { color: var(--accent); }

/* pagination ------------------------------------------------------ */
.cp-pagenav { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: clamp(24px, 3vw, 38px); }
.cp-pages { display: flex; flex-wrap: wrap; gap: 5px; }
.cp-pages .page-numbers {
  display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 .42rem;
  border: 1px solid var(--line); border-radius: 2px; background: var(--surface);
  font-family: var(--font-body); font-size: .74rem; font-weight: 600; color: var(--text-2);
}
.cp-pages .page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.cp-pages .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.cp-pages .page-numbers.dots { border-color: transparent; }
.cp-pagenav__count { font-family: var(--font-body); font-size: .74rem; color: var(--muted); }
.pagination .page-numbers { border-radius: 2px; }
.pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ============================================================
 * Sidebar widgets
 * ========================================================== */
.cp-widget { display: block; }
.cp-note { margin-top: .6rem; font-family: var(--font-body); font-size: .7rem; line-height: 1.5; color: var(--muted); }

.cp-about__img, .cp-about__ph { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.cp-about__ph { background: linear-gradient(140deg, var(--surface-2), var(--line)); }
.cp-about__text { text-align: center; color: var(--text-2); font-size: .82rem; line-height: 1.8; margin-top: 1rem; }
.cp-about__name { text-align: center; margin-top: .7rem; font-family: var(--font-display); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .11em; color: var(--text); }

.cp-follow__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cp-follow__box { display: grid; justify-items: center; gap: .3rem; padding: .95rem .35rem .85rem; border: 1px solid var(--line); color: var(--text); }
.cp-follow__box:hover { border-color: var(--accent); }
.cp-follow__icon { color: var(--accent); display: grid; place-items: center; margin-bottom: .2rem; }
.cp-follow__count { font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; line-height: 1; }
.cp-follow__label { font-family: var(--font-body); font-size: .64rem; color: var(--muted); }

.cp-weather__card { border: 1px solid var(--line); padding: 1rem 1.05rem 0; }
.cp-weather__top { display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem; }
.cp-weather__city { margin: 0; font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text); }
.cp-weather__summary { margin: .15rem 0 0; font-family: var(--font-body); font-size: .74rem; color: var(--muted); }
.cp-weather__pin { color: var(--muted); }
.cp-weather__now { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: .8rem; padding: .9rem 0 1rem; }
.cp-weather__glyph { color: var(--text-2); display: grid; place-items: center; }
.cp-weather__temp { margin: 0; font-family: var(--font-display); font-size: 2.3rem; font-weight: 400; line-height: 1; color: var(--text); }
.cp-weather__unit { font-size: .95rem; vertical-align: super; color: var(--muted); margin-left: .12rem; }
.cp-weather__range { justify-self: end; display: grid; gap: .3rem; }
.cp-weather__range li { display: flex; align-items: center; gap: .25rem; font-family: var(--font-body); font-size: .74rem; color: var(--muted); }
.cp-weather__stats { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .62rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cp-weather__stats li { display: flex; align-items: center; gap: .3rem; font-family: var(--font-body); font-size: .7rem; color: var(--muted); }
.cp-weather__days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .3rem; padding: .75rem 0 .95rem; }
.cp-weather__days li { display: grid; justify-items: center; gap: .3rem; }
.cp-weather__days .icon { color: var(--text-2); }
.cp-weather__day { font-family: var(--font-display); font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.cp-weather__dtemp { font-family: var(--font-display); font-size: .95rem; font-weight: 700; color: var(--text); }

.cp-ad__label { text-align: center; margin: 0 0 .55rem; font-family: var(--font-body); font-size: .64rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.cp-ad__slot { aspect-ratio: 300 / 250; display: grid; place-content: center; justify-items: center; gap: .35rem; border: 1px dashed var(--line); background: var(--surface-2); }
.cp-ad__size { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.cp-ad__hint { font-family: var(--font-body); font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }

.cp-poplist { display: grid; }
.cp-poplist__item { position: relative; display: grid; gap: .35rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.cp-poplist__item:last-child { border-bottom: 0; }
.cp-poplist__title { font-family: var(--font-display); font-size: .96rem; font-weight: 700; line-height: 1.26; color: var(--text); padding-right: 28px; }
.cp-poplist__title:hover { color: var(--accent); }
.cp-poplist__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-family: var(--font-body); font-size: .7rem; color: var(--muted); }
.cp-poplist__meta .cp-byline__author { font-size: .7rem; }
.cp-poplist__item .cp-cbadge { position: absolute; right: 0; top: .85rem; }

.cp-commentlist { display: grid; }
.cp-commentlist li { padding: .62rem 0; border-bottom: 1px solid var(--line); font-family: var(--font-body); font-size: .78rem; line-height: 1.6; color: var(--muted); }
.cp-commentlist li:last-child { border-bottom: 0; }
.cp-commentlist__who { color: var(--text); font-weight: 600; }
.cp-commentlist__post { color: var(--accent); font-style: italic; }
.cp-commentlist__post:hover { text-decoration: underline; }

.cp-catlist { display: grid; }
.cp-catlist a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .52rem 0; border-bottom: 1px solid var(--line); font-family: var(--font-body); font-size: .8rem; color: var(--text-2); }
.cp-catlist li:last-child a { border-bottom: 0; }
.cp-catlist a:hover { color: var(--accent); }
.cp-catlist__count { font-variant-numeric: tabular-nums; color: var(--muted); }

/* ============================================================
 * Instagram strip
 * ========================================================== */
.cp-insta { padding-top: clamp(20px, 3vw, 34px); }
.cp-insta__head { text-align: center; margin: 0 0 1rem; font-family: var(--font-display); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--text); }
.cp-insta__handle { color: var(--accent); }
.cp-insta__row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; }
.cp-insta__tile { position: relative; display: block; overflow: hidden; }
.cp-insta__tile .media { aspect-ratio: 1; border-radius: 0; }
.cp-insta__tile::after { content: ""; position: absolute; inset: 0; background: rgba(0,140,168,0); transition: background .2s; }
.cp-insta__tile:hover::after { background: rgba(0,140,168,.3); }
@media (max-width: 700px) { .cp-insta__row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ============================================================
 * Footer: dark, three columns, with a darker bottom bar
 * ========================================================== */
.cp-footer { background: var(--footer-bg); color: var(--footer-text); margin-top: 0; padding-block: clamp(30px, 4.2vw, 50px) 0; }
.cp-footer__cols { display: grid; grid-template-columns: 1.5fr 1.15fr 1fr; gap: clamp(26px, 4vw, 54px); padding-bottom: clamp(26px, 4vw, 44px); }
.cp-footer .brand__link { display: inline-flex; align-items: center; gap: .7rem; }
.cp-footer .brand__mark { color: #fff; }
.cp-footer .brand__name { font-family: var(--font-display); font-size: 1.6rem; font-weight: 400; color: var(--footer-text); }
.cp-footer .brand__tagline { color: var(--footer-muted); }
.cp-footer__desc { margin: 1rem 0 .8rem; font-family: var(--font-body); font-size: .82rem; line-height: 1.8; color: var(--footer-muted); max-width: 40ch; }
.cp-footer__contact { font-family: var(--font-body); font-size: .82rem; color: var(--footer-muted); }
.cp-footer__contact a { color: var(--accent); }
.cp-footer__contact a:hover { color: var(--footer-text); }
.cp-footer__social { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 1.1rem; }
.cp-footer__social a { display: inline-grid; place-items: center; width: 34px; height: 34px; background: rgba(255,255,255,.07); color: var(--footer-text); }
.cp-footer__social a:hover { background: var(--accent); color: #fff; }
.cp-footer__social svg { width: 15px; height: 15px; }
.cp-footer__heading { margin: 0 0 1.1rem; font-family: var(--font-display); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .11em; color: var(--footer-text); }

.cp-footlist { display: grid; gap: .9rem; }
.cp-footlist__item { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: .75rem; align-items: start; }
.cp-footlist__thumb { display: block; }
.cp-footlist__thumb .media { aspect-ratio: 1; border-radius: 0; }
.cp-footer .cp-footlist__title { display: block; font-family: var(--font-display); font-size: .88rem; font-weight: 700; line-height: 1.3; color: var(--footer-text); }
.cp-footer .cp-footlist__title:hover { color: var(--accent); }
.cp-footlist__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .4rem; font-family: var(--font-body); font-size: .68rem; color: var(--footer-muted); }

.cp-catlist--foot a { color: var(--footer-muted); border-bottom-color: var(--footer-line); font-size: .82rem; }
.cp-catlist--foot li:last-child a { border-bottom: 0; }
.cp-catlist--foot a:hover { color: var(--accent); }
.cp-catlist--foot .cp-catlist__count { color: var(--footer-muted); }

.cp-footer__bar { background: var(--footer-bar); padding-block: .85rem; }
.cp-footer__barrow { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .8rem; }
.cp-footer__copy { margin: 0; font-family: var(--font-body); font-size: .72rem; color: var(--footer-muted); }
.cp-footer__nav .footer-menu { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.cp-footer__nav a { font-family: var(--font-body); font-size: .72rem; color: var(--footer-muted); }
.cp-footer__nav a:hover { color: var(--accent); }
@media (max-width: 900px) { .cp-footer__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .cp-footer__cols { grid-template-columns: 1fr; } }

/* ============================================================
 * Shared pieces on inner pages
 * ========================================================== */
.media { border-radius: 0; }
.cat { background: none; padding: 0; font-family: var(--font-display); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
[data-theme="dark"] .cat { color: var(--accent); }
.flag { background: var(--accent); border-radius: 0; }
.card__title { line-height: 1.26; }
.card__title a:hover { color: var(--accent); }
.widget-title { font-family: var(--font-display); font-size: .84rem; text-transform: uppercase; letter-spacing: .09em; border-bottom: 1px solid var(--line); padding-bottom: .55rem; }
.section-title { font-size: clamp(1.3rem, 2.2vw, 1.7rem); text-transform: uppercase; letter-spacing: .04em; }
.btn { border-radius: 2px; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.entry-content { font-size: 1.02rem; line-height: 1.85; }
.entry-content blockquote { border-left: 3px solid var(--accent); font-style: italic; }
.author-box { border-radius: 0; }
.layout__sidebar .widget { display: grid; gap: .8rem; }

/* ==================================================================
 * Trip planner card — four practical rows in a bordered panel. Built
 * from post meta, so it is absent until an article carries the values.
 * ================================================================ */
.cp-trip { margin-bottom: clamp(22px, 3vw, 34px); }
.cp-trip--entry { margin: clamp(20px, 2.6vw, 30px) 0; }
.cp-trip__card {
  margin: 0; border: 1px solid var(--line); background: var(--surface-2);
  border-radius: var(--radius-ui); overflow: hidden;
}
.cp-trip__row {
  display: grid; grid-template-columns: 112px minmax(0, 1fr);
  gap: 0 16px; align-items: baseline;
  padding: .72rem .95rem; border-top: 1px solid var(--line);
}
.cp-trip__row:first-of-type { border-top: 0; }
.cp-trip__label {
  margin: 0; font-family: var(--font-display); font-size: .68rem; font-weight: 700;
  line-height: 1.35; text-transform: uppercase; letter-spacing: .1em; color: var(--accent);
}
.cp-trip__value {
  margin: 0; font-family: var(--font-body); font-size: .84rem;
  line-height: 1.6; color: var(--text);
}
.cp-trip__post {
  display: block; margin: -6px 0 12px; font-family: var(--font-display);
  font-size: 1rem; font-weight: 700; line-height: 1.3; color: var(--text);
}
.cp-trip__post:hover { color: var(--accent); }

/* In the deep sidebar the rows stack, so the labels sit over the values. */
.cp-trip--side .cp-trip__row { grid-template-columns: minmax(0, 1fr); gap: .22rem; }
.cp-trip--side .cp-trip__label { font-size: .62rem; }
.cp-trip--side .cp-trip__value { font-size: .8rem; line-height: 1.55; color: var(--text-2); }

@media (max-width: 560px) {
  .cp-trip__row { grid-template-columns: minmax(0, 1fr); gap: .22rem; }
}
