/* =========================
   Tokens, Resets, Base
   ========================= */ 
:root {
  --ink-900: #0f2a3a;
  --ink-700: #2e4b59;
  --ink-500: #476c7c;
  --chip: #e7f3f8;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .06);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, .10);
  --header-glass: rgba(255, 255, 255, .85);
  --page-gradient: linear-gradient(to bottom, #dff4f8 0%, #bfefff 100%);
  --ocean-height: clamp(110px, 14vw, 200px);
  --barH: 68px;
  --card-border: rgba(16, 42, 67, .10);
  --card-border-hover: rgba(16, 42, 67, .16);
}
@media (max-width:768px) {
  :root {
    --barH: 62px;
  }
}
html, body {
  margin: 0;
  background: var(--page-gradient);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
/* Font stack */
html {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
/* Ensure headings keep Poppins, even if Foundation sets a different family */
h1, h2, h3, h4, h5, h6 {
  font-family: inherit !important;
}
/* If you want everything to be Poppins across the UI */
body, h1, h2, h3, h4, h5, h6, p, a, li, blockquote, figcaption, button, input, textarea, select, label, small, time {
  font-family: inherit !important;
}
body, button, input, textarea, select {
  font-family: inherit;
}
body {
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
}
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .2px;
}
strong, b {
  font-weight: 600;
}
.btn, .hero-link, .sticky-link, .chip {
  font-weight: 500;
}
/* Reserve space when sticky bar is active */
body.header--active {
  padding-top: var(--barH);
}
@supports(padding:max(0px)) {
  body.header--active {
    padding-top: max(var(--barH), env(safe-area-inset-top));
  }
}
/* =========================
   Layout helpers & cards
   ========================= */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width:900px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width:540px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
/* Card */
.post-card {
  --card-radius: 12px;
  position: relative;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: 0 1px 2px rgba(16, 42, 67, .04), 0 8px 24px rgba(16, 42, 67, .08);
  transform: translateZ(0);
  transition: border-color .2s ease, transform .28s ease, box-shadow .28s ease, opacity .5s ease;
}
.post-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(16, 42, 67, .18), rgba(16, 42, 67, 0) 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .25s ease;
}
.post-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(16, 42, 67, .08);
  pointer-events: none;
}
.post-card:hover, .post-card:focus-within {
  transform: translateY(-6px);
  border-color: var(--card-border-hover);
  box-shadow: 0 2px 6px rgba(16, 42, 67, .06), 0 18px 44px rgba(16, 42, 67, .14);
}
.post-card:hover::before, .post-card:focus-within::before {
  opacity: .9;
}
@media (hover:none) {
  .post-card:active {
    transform: translateY(-2px) scale(.995);
  }
}


.post-card:hover .post-cover, .post-card:focus-within .post-cover {
  transform: scale(1.03);
}
.post-content {
  padding: 14px;
}
.post-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.chip {
  background: #e6f6ff;
  color: #334e68;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  box-shadow: 0 0 0 0 rgba(16, 42, 67, 0);
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
}
.chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 42, 67, .10);
}
.chip:focus-visible {
  outline: 2px solid rgba(46, 75, 89, .35);
  outline-offset: 2px;
}
.post-title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
}
.post-title a {
  color: #102a43;
  text-decoration: none;
}
.post-excerpt {
  color: #486581;
  margin: 0 0 8px;
}
.post-meta {
  color: #627d98;
  font-size: 14px;
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}
.post-content a {
  color: var(--ink-500);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 95%;
  transition: background-size .22s ease, color .2s ease;
}
.post-content a:hover, .post-content a:focus {
  background-size: 90% 2px;
  color: var(--ink-500);
}

/* ==== CTA palette (ocean-inspired) ==== */
:root{
  --cta-700:#0a5a86;
  --cta-600:#0d6fa6;
  --cta-500:#1282c4;
  --cta-gloss:rgba(255,255,255,.22);
}

/* Make primary CTA look great on <a> and <button> */
a.btn-primary,
button.btn-primary{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.08);
  background: linear-gradient(135deg, var(--cta-600), var(--cta-500));
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: 0 8px 22px rgba(16,42,67,.22);
  transition: transform .14s ease, box-shadow .2s ease, filter .2s ease, background-position .25s ease;
  cursor: pointer;
  overflow: hidden; /* for shine sweep */
}

/* Inner gloss edge for a “finished” look */
a.btn-primary::before,
button.btn-primary::before{
  content:"";
  position:absolute; inset:0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 var(--cta-gloss);
  pointer-events:none;
}

/* Shine sweep on hover/focus */
a.btn-primary::after,
button.btn-primary::after{
  content:"";
  position:absolute; inset:0;
  pointer-events:none;
  background: linear-gradient(115deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.38) 50%, rgba(255,255,255,0) 70%);
  transform: translateX(-120%);
  opacity: 0;
}
a.btn-primary:hover::after,
a.btn-primary:focus::after,
button.btn-primary:hover::after,
button.btn-primary:focus::after{
  opacity: 1;
  animation: ctaShine .9s ease;
}
@keyframes ctaShine { to { transform: translateX(120%); } }

a.btn-primary:hover,
button.btn-primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(16,42,67,.28);
  filter: saturate(1.05);
}
a.btn-primary:active,
button.btn-primary:active{
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(16,42,67,.22);
}
a.btn-primary:focus-visible,
button.btn-primary:focus-visible{
  outline: 2px solid rgba(46,75,89,.35);
  outline-offset: 2px;
}

/* Cart icon inside the CTA */
.btn-primary .icon{
  width: 1.1em; height: 1.1em;
  display: inline-block;
  flex: 0 0 auto;
  stroke: currentColor; fill: none; stroke-width: 2;
}

/* Optional full-width on mobile if desired */
@media (max-width:520px){
  .btn-primary.btn-block{ width: 100%; justify-content: center; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion:reduce){
  a.btn-primary, button.btn-primary{ transition: none !important; }
  a.btn-primary::after, button.btn-primary::after{ animation: none !important; }
}

/* ==== Outline CTA (pairs with .btn-primary) ==== */
a.btn-outline,
button.btn-outline{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--cta-600);
  background: transparent;
  color: var(--cta-600);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: 0 2px 8px rgba(16,42,67,.06);
  transition: transform .14s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
  cursor: pointer;
}

a.btn-outline:hover,
button.btn-outline:hover{
  transform: translateY(-1px);
  background: rgba(18,130,196,.08); /* faint tint of --cta-500 */
  border-color: var(--cta-700);
  box-shadow: 0 10px 22px rgba(16,42,67,.14);
}

a.btn-outline:active,
button.btn-outline:active{
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(16,42,67,.12);
}

a.btn-outline:focus-visible,
button.btn-outline:focus-visible{
  outline: 2px solid rgba(46,75,89,.35);
  outline-offset: 2px;
}

/* icon inside outline button */
.btn-outline .icon{
  width: 1.1em; height: 1.1em;
  display: inline-block; flex: 0 0 auto;
  stroke: currentColor; fill: none; stroke-width: 2;
}

/* Back button tweaks (keeps icon snug) */
.btn-back { gap: 8px; }
.btn-back .icon { width: 1.05em; height: 1.05em; transform: translateX(-2px); }

/* Neutral outline variant for secondary actions like Back */
a.btn-outline.neutral,
button.btn-outline.neutral{
  border-color: rgba(16,42,67,.28);
  color: var(--ink-700);
}
a.btn-outline.neutral:hover,
button.btn-outline.neutral:hover{
  background: rgba(16,42,67,.06);
  border-color: var(--ink-900);
}


/* Optional full-width on small screens (matches primary) */
@media (max-width:520px){
  .btn-outline.btn-block{ width: 100%; justify-content: center; }
}

/* On dark backgrounds (optional utility) */
.btn-outline.on-dark{
  border-color: rgba(255,255,255,.75);
  color: #fff;
}
.btn-outline.on-dark:hover{
  background: rgba(255,255,255,.12);
  border-color: #fff;
}


/* Make .btn look identical on <a> and <button> */
a.btn,
button.btn {
  display: inline-block;
  padding: 10px 14px;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 10px;
  background: #fff;
  color: #102a43;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
  box-shadow: 0 2px 10px rgba(16, 42, 67, .08);
  cursor: pointer;
  font: inherit;
  line-height: 1.2;
  vertical-align: middle;
  white-space: nowrap;
}

/* Native button reset so it matches anchors on all browsers */
button.btn {
  -webkit-appearance: none;
  appearance: none;
  background: #fff; /* ensure same background as <a>.btn */
  border: 1px solid rgba(0, 0, 0, .08);
}
button.btn::-moz-focus-inner { border: 0; padding: 0; } /* old Firefox quirk */

/* States */
a.btn:hover,
button.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(16, 42, 67, .14);
}
a.btn:active,
button.btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(16, 42, 67, .12);
}
a.btn:focus-visible,
button.btn:focus-visible {
  outline: 2px solid rgba(46, 75, 89, .35);
  outline-offset: 2px;
}


.pager {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 30px 0;
}
.hr-soft {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16, 42, 67, .18), transparent);
  border: 0;
  margin: 28px 0;
}

.hr-soft + .text-center { margin-top: 12px; }


/* =========================
   Ocean / footer layering
   ========================= */
.off-canvas-content {
  background: transparent !important;
  position: relative;
  z-index: 5;
}
main[role="main"], #post-grid {
  position: relative;
  z-index: 5;
}
.ocean-mountains {
  z-index: 0;
}
.ocean-footer {
  z-index: 1;
}
main[role="main"] {
  min-height: 50vh;
}
#post-grid {
  padding-bottom: calc(var(--ocean-height) + 140px);
}
@media (max-width:600px) {
  #post-grid {
    padding-bottom: calc(var(--ocean-height) + 160px);
  }
}
body {
  padding-bottom: 0 !important;
} /* kill any legacy include */
/* =========================
   Header – Hero (home only)
   ========================= */
.site-header {
  position: relative;
}
.header-hero {
  background: transparent;
  text-align: center;
  padding: clamp(40px, 8vw, 80px) 16px 32px;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.hero-logo img {
  width: clamp(96px, 14vw, 140px);
  margin-inline: auto;
  display: block;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}
.hero-title {
  font-size: clamp(22px, 3.2vw, 36px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink-900);
  margin: 18px 0 12px;
}
.hero-nav {
  display: inline-flex;
  gap: 10px;
  background: var(--chip);
  padding: 6px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}
.hero-link {
  text-decoration: none;
  color: var(--ink-700);
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 8px;
  transition: transform .15s ease, background-color .15s ease;
}
.hero-link:hover {
  background: #d7eaf2;
  transform: translateY(-1px);
}
/* =========================
   Sticky header — final
   ========================= */
/* Visuals */
.header-sticky {
  left: 0;
  right: 0;
  margin-top: 0 !important;
  background: var(--header-glass);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  box-shadow: var(--shadow-sm);
  z-index: 9999 !important;
}
.sticky-inner {
  max-width: 103.313rem;
  height: var(--barH);
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
}
/* Brand + nav */
.brand {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 10px;
  align-items: center;
  text-decoration: none;
}
.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: block;
  box-shadow: var(--shadow-sm);
}
.brand-name {
  color: var(--ink-900);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .2px;
}
.sticky-nav {
  display: inline-flex;
  gap: 6px;
  background: var(--chip);
  padding: 6px;
  border-radius: 10px;
}
.sticky-link {
  text-decoration: none;
  color: var(--ink-700);
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 8px;
}
.sticky-link:hover {
  background: #d7eaf2;
}
/* Foundation shouldn’t reserve spacer height */
[data-sticky-container] {
  height: 0 !important;
  min-height: 0 !important;
}
/* Inside pages (no hero): fixed & visible from first paint */
body.is-inside {
  padding-top: calc(var(--barH) + env(safe-area-inset-top)) !important;
}
body.is-inside .header-sticky {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  height: calc(var(--barH) + env(safe-area-inset-top)) !important;
  padding-top: env(safe-area-inset-top) !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  margin-top: 0 !important;
}
/* Home (with hero): collapse until stuck */
body:not(.is-inside) .header-sticky:not(.is-stuck) {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  height: 0 !important;
  padding-top: 0 !important;
  overflow: hidden;
  margin-top: 0 !important;
}
body:not(.is-inside) .header-sticky.is-stuck {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .22s ease, transform .22s ease;
}
/* Mobile tweaks */
@media (max-width:768px) {
  .brand-name {
    font-size: 15px;
  }
  .sticky-nav {
    gap: 4px;
  }
  .sticky-link {
    padding: 9px 12px;
    font-weight: 500;
  }
  .hero-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
}
/* Reduced motion */
@media (prefers-reduced-motion:reduce) {
  .hero-link, .sticky-link, .header-sticky, body:not(.is-inside) .header-sticky.is-stuck, .post-card, .post-cover, .chip {
    transition: none !important;
    transform: none !important;
  }
}
/* =========================
   Post hero + post page
   ========================= */
.post-hero-wrap {
  margin: 0 auto;
}
.post-hero {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 675; /* 16:9 */
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}
.post-hero.focal-top {
  object-position: 50% 20%;
}
.post-hero.focal-bottom {
  object-position: 50% 80%;
}
@supports not (aspect-ratio:1 / 1) {
  .post-hero-wrap {
    position: relative;
  }
  .post-hero-wrap::before {
    content: "";
    display: block;
    padding-top: 56.25%;
  }
  .post-hero {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
}

/* Hero frame + vignette + subtle shine */
.post-hero-wrap{
  position: relative; display:block;
  border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-md);
}
.post-hero-wrap::before{
  content:""; position:absolute; inset:0; pointer-events:none;
  background: linear-gradient(to bottom, rgba(0,0,0,.08), rgba(0,0,0,0) 28%, rgba(0,0,0,0) 72%, rgba(0,0,0,.06));
}
.post-hero-wrap::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background: linear-gradient(115deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.28) 50%, rgba(255,255,255,0) 70%);
  transform: translateX(-120%); opacity:0;
}
.post-hero-wrap:hover::after, .post-hero-wrap:focus::after{
  opacity:1; animation: heroShine .9s ease;
}
@keyframes heroShine { to { transform: translateX(120%); } }

/* glassy action bar */
.action-bar{
  background: var(--header-glass);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  backdrop-filter: saturate(160%) blur(8px);
  border: 1px solid rgba(16,42,67,.10);
  box-shadow: var(--shadow-sm);
  border-radius: 12px;
  padding: 10px 12px;
  margin: .75rem 0 1rem;
}

/* Keep your existing .share-cta / .buy-box rules; these tweak flow slightly */
.buy-box{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.buy-note{ color:#627d98; font-size:.95rem; }

.post-head h1 {
  font-weight: 600;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.15;
  margin: 8px 0 6px;
  color: var(--ink-900);
}
.post-body {
  font-size: 1.05rem;
  line-height: 1.75;
}
.post-body > * + * {
  margin-top: 1.05em;
}
.post-body h2 {
  font-size: clamp(20px, 2.2vw, 28px);
  margin-top: 1.6em;
  margin-bottom: .5em;
}
.post-body h3 {
  font-size: clamp(18px, 1.9vw, 22px);
  margin-top: 1.4em;
  margin-bottom: .4em;
}
.post-body blockquote {
  margin: 1.2em 0;
  padding: .8em 1em;
  border-left: 4px solid rgba(16, 42, 67, .18);
  background: rgba(231, 243, 248, .5);
  border-radius: 8px;
}
.post-body ul, .post-body ol {
  padding-left: 1.25em;
}
.post-body img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
}
/* Post page sits above waves & has extra bottom room */
.post-page {
  position: relative;
  z-index: 5;
  padding-bottom: 160px;
}
@media (max-width:600px) {
  .post-page {
    padding-bottom: 180px;
  }
}
/* =========================
   Utilities
   ========================= */
.uppercase, .h-caps {
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
}
h1.more_space_top_little, h2.more_space_top_little, h3.more_space_top_little, h4.more_space_top_little, h5.more_space_top_little, h6.more_space_top_little, p.more_space_top_little {
  padding-top: .25em;
}

h1.more_space_top_medium, h2.more_space_top_medium, h3.more_space_top_medium, h4.more_space_top_medium, h5.more_space_top_medium, h6.more_space_top_medium, p.more_space_top_medium {
  padding-top: .875em;
}


li.more_space_top_little {
  margin-top: .625rem;
}
div.more_space_top_little, span.more_space_top_little {
  margin-top: 1.125em;
}
h1.more_space_top, h2.more_space_top, h3.more_space_top, h4.more_space_top, h5.more_space_top, h6.more_space_top, p.more_space_top {
  padding-top: 2em;
}
div.more_space_top, span.more_space_top {
  margin-top: 2em;
}


/* Selection */ ::selection {
  background: #cfe3ec;
  color: #0f2a3a;
}
/* Keep header above everything */
.header-sticky, .title-bar, .top-bar {
  z-index: 9999 !important;
}

/* Hero logo: make it a bit larger without overpowering on small screens */
.header-hero .hero-logo img{
  width: clamp(120px, 18vw, 180px); /* was ~140px; now tops out ~180px on large */
  height: auto;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.25));
  will-change: transform;
}

/* Gentle bob (home hero only). Keep sticky brand logo static. */
.hero-logo--float {
  animation: logoFloat 4.8s ease-in-out infinite;
}

/* Slight vertical drift + tiny rotation to feel like water */
@keyframes logoFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-6px) rotate(1.5deg); }
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero-logo--float { animation: none; }
}
/* Sticky: keep brand (logo + text) on the left, nav on the right */
.header-sticky .sticky-inner{
  display: grid;
  grid-template-columns: auto 1fr; /* brand takes natural width; nav uses remaining */
  align-items: center;
}

.header-sticky .brand{
  display: flex;            /* override earlier inline-grid */
  align-items: center;
  gap: 10px;
  text-align: left;         /* belt-and-suspenders vs. any inherited centering */
}

.header-sticky .sticky-nav{
  justify-self: end;        /* push nav to the right edge */
}

/* Optional: if anything still looks centered, force it */
.header-sticky{ text-align: left; }

.post-card { position: relative; }

.post-card .tab_card_full{
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0; /* use explicit edges (wider support than inset) */
  display: block;
  z-index: 10; /* ensure it's above the image/content */
  outline: none;
}

/* optional: visible focus */
.post-card .tab_card_full:focus { box-shadow: 0 0 0 3px rgba(0,0,0,.15) inset; }

/* image sizing only — no transform */
.post-cover {
  width: 100%;
  height: 200px;           /* keep your card image height */
  object-fit: cover;
  display: block;
}

/* wrapper for the image so we can host a pseudo-element */
.post-media {
  position: relative;
  overflow: hidden;
  border-top-left-radius: var(--card-radius);
  border-top-right-radius: var(--card-radius);
}

/* subtle shine that slides across the image */
.post-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg,
      rgba(255,255,255,0) 20%,
      rgba(255,255,255,.35) 35%,
      rgba(255,255,255,0) 50%);
  transform: translateX(-120%);   /* start off left */
  opacity: 0;                      /* invisible until hover (prevents “stuck” on load) */
}

.post-card:hover .post-media::after,
.post-card:focus-within .post-media::after {
  opacity: 1;
  animation: cardShine .9s ease;
}

/* one quick pass from left to right */
@keyframes cardShine {
  to { transform: translateX(120%); }
}

/* ---------- Post page polish ---------- */
.post-hero-wrap{
  position: relative; display:block;
  border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-md);
}
.post-hero-wrap::before{
  /* soft vignette top/bottom */
  content:""; position:absolute; inset:0; pointer-events:none;
  background: linear-gradient(to bottom, rgba(0,0,0,.10), rgba(0,0,0,0) 28%, rgba(0,0,0,0) 72%, rgba(0,0,0,.08));
}
.post-hero-wrap::after{
  /* subtle shine sweep on hover */
  content:""; position:absolute; inset:0; pointer-events:none;
  background: linear-gradient(115deg, rgba(255,255,255,0) 20%, rgba(255,255,255,.28) 35%, rgba(255,255,255,0) 50%);
  transform: translateX(-120%); opacity:0;
}
.post-hero-wrap:hover::after, .post-hero-wrap:focus::after{ opacity:1; animation: heroShine .9s ease; }
@keyframes heroShine { to { transform: translateX(120%); } }

/* Tag chips on post page */
.post-tags { display:flex; flex-wrap:wrap; gap:8px; margin:.35rem 0 0; }
.post-tags .chip { text-decoration:none; }
.post-tags .chip:hover { background:#d7eaf2; }

.post-tags{ display:flex; flex-wrap:wrap; gap:8px; margin:.35rem 0 0; }
.post-tags .chip{ text-decoration:none; background:#e6f6ff; color:#334e68; padding:4px 8px; border-radius:999px; font-size:12px; box-shadow:0 0 0 0 rgba(16,42,67,0); transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease; }
.post-tags .chip:hover{ transform: translateY(-1px); box-shadow: 0 6px 16px rgba(16,42,67,.10); background:#d7eaf2; }

/* Share + Buy action bar */
.action-bar{
  position: relative;
  background: var(--header-glass);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  backdrop-filter: saturate(160%) blur(8px);
  border: 1px solid rgba(16,42,67,.10);
  box-shadow: var(--shadow-sm);
  border-radius: 12px;
  padding: 10px 12px;
  margin: .75rem 0 1rem;
}
.action-bar.sticky{
  position: sticky;
  top: calc(var(--barH) + 8px);
  z-index: 50;
}

/* Gallery hover polish */
.gallery-grid a{ transition: transform .18s ease, box-shadow .18s ease; }
.gallery-grid a:hover{ transform: translateY(-2px); box-shadow: 0 10px 24px rgba(16,42,67,.14); }

/* “No image” placeholder a touch softer */
.no-photo-hero{
  background: linear-gradient(135deg, #eef7fb, #dfeff7);
}

/* Optional small meta row */
.meta-row{
  color:#627d98; font-size:.95rem; display:flex; gap:10px; align-items:center; margin:.35rem 0 .25rem;
}
.meta-dot::before{ content:"•"; margin:0 .25rem; opacity:.6; }

/* ----- Extra top space for headings inside posts only ----- */
.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4,
.post-body h5,
.post-body h6 {
  margin-top: 1.75em;   /* more space ABOVE */
  margin-bottom: .5em;  /* keep a tidy gap BELOW */
  line-height: 1.2;
}

/* Slightly larger bumps for higher-level headings */
.post-body h1 { margin-top: 2.0em; }
.post-body h2 { margin-top: 1.9em; }
.post-body h3 { margin-top: 1.8em; }

/* Don’t push the very first heading down if it starts the post */
.post-body > h1:first-child,
.post-body > h2:first-child,
.post-body > h3:first-child,
.post-body > h4:first-child,
.post-body > h5:first-child,
.post-body > h6:first-child {
  margin-top: 0;
}

/* Keep general rhythm for non-heading elements */
.post-body > * + * { margin-top: 1.05em; }

/* Post container tuned to match card aesthetic */
.callout.post-shell{
  --shell-pad: clamp(14px, 3vw, 28px);
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(16,42,67,.04), 0 12px 30px rgba(16,42,67,.10);
  padding: var(--shell-pad);
  overflow: visible; /* lets sticky children & focus rings show cleanly */
}
.callout.post-shell.large{
  padding: calc(var(--shell-pad) + 2px);
}

/* Let the hero image “bleed” to the shell edges to avoid double frames */
.post-shell .post-hero-wrap{
  margin-top: calc(-1 * var(--shell-pad));
  margin-left: calc(-1 * var(--shell-pad));
  margin-right: calc(-1 * var(--shell-pad));
  border-radius: 12px 12px 0 0; /* align with shell corners */
  box-shadow: none; /* we already have the shell shadow */
}

/* Keep gallery and separators aligned with the shell */
.post-shell .gallery-grid{ margin-top: 12px; }
.post-shell .hr-soft{ margin-left: 0; margin-right: 0; }

/* Sticky action bar plays nicely inside the shell */
.post-shell .action-bar.sticky{
  top: calc(var(--barH) + 8px);
  z-index: 50;
}
.post-shell .action-bar{ margin-top: .85rem; }

/* Tighten back button spacing under divider */
.hr-soft + .text-center{ margin-top: 12px; }

/* Responsive tweaks so the hero still bleeds at small sizes */
@media (max-width:540px){
  .callout.post-shell{ border-radius: 10px; }
  .post-shell .post-hero-wrap{ border-radius: 10px 10px 0 0; }
}

.wider_row {
  max-width: 103.313rem;
  padding-top: 0em;
}

.tagbar {
  display: flex;
  justify-content: center;   /* centers the links horizontally */
  flex-wrap: wrap;           /* allows wrapping on smaller screens */
  gap: 0.5rem;               /* optional spacing between buttons */
  margin: 1rem 0;            /* add vertical breathing room */
}

/* =========================
Comox Bay Art — Coastal Theme
Drop-in replacement for theme-lite.css
Palette draws from: Tide Pool Blue, Seaweed Green, Sandy Shore, Saltmarsh Green
========================= */


:root {
/* ---- Coastal brand palette ---- */
--tide-900: #23485e; /* deep tide */
--tide-800: #2c5870;
--tide-700: #356889; /* Tide Pool Blue */
--tide-600: #457a96; /* between #356889 and #50849c */
--tide-500: #50849c; /* Tide Pool Blue Alt */
--tide-300: #7aa2b3;
--tide-200: #a8c1cd;
--tide-100: #d3e3ea;


--seaweed-700: #38584b; /* Saltmarsh Green (darker use) */
--seaweed-600: #2f4b40;
--seaweed-500: #38584b; /* anchor */
--seaweed-400: #4c6f61;
--seaweed-300: #5f8776;
--seaweed-200: #6f9982; /* Seaweed Green */


--sandy-600: #8f9a8d;
--sandy-500: #a1ac9f; /* Sandy Shore */
--sandy-300: #c7cfc7;
--sandy-200: #e0e5df;
--sandy-100: #f3f5f2;


/* ---- Ink (text) remap to coastal hues ---- */
--ink-900: var(--tide-900);
--ink-700: var(--tide-700);
--ink-500: var(--tide-500);


/* ---- Surfaces / effects ---- */
--chip: rgba(168, 193, 205, .25); /* was #e7f3f8 — now tide-tinted */
--shadow-sm: 0 2px 10px rgba(0, 0, 0, .06);
--shadow-md: 0 10px 30px rgba(0, 0, 0, .10);
--header-glass: rgba(56, 88, 75, .08); /* saltmarsh-tinted glass */


/* Page background evokes horizon → sea → shore */
--page-gradient: linear-gradient(to bottom, var(--tide-700) 0%, var(--tide-500) 48%, var(--sandy-200) 100%);


--ocean-height: clamp(110px, 14vw, 200px);
--barH: 68px;
--card-border: rgba(35, 72, 94, .14);
--card-border-hover: rgba(35, 72, 94, .22);


/* CTA palette tuned to coastal blues */
--cta-700: var(--tide-700);
--cta-600: var(--tide-600);
--cta-500: var(--tide-500);
--cta-gloss: rgba(255,255,255,.22);
}


@media (max-width:768px) { :root { --barH: 62px; } }


/* Base */
html, body { margin: 0; background: var(--page-gradient); }
html {
font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }


body { font-weight: 400; line-height: 1.6; letter-spacing: 0; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.2; letter-spacing: .2px; }
strong, b { font-weight: 600; }


/* Reserve space when sticky bar is active */
