/*
Theme Name: All Points West — Kadence Child
Theme URI: https://allpointswest.org/
Template: kadence
Text Domain: all-points-west-kadence-child
Description: Editorial overlanding and expedition journal built on Kadence. Staging preview.
Author: All Points West
Version: 0.1.2
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
WPVibe: yes
*/

/*
 * All Points West design system.
 * Narrow selectors preserve Kadence, legacy content, maps, forms and galleries.
 * Historical articles and URLs are not altered.
 */
:root{
  --apw-pine:#193834;
  --apw-deep:#172728;
  --apw-ink:#253b38;
  --apw-sand:#f4f0e7;
  --apw-canvas:#faf9f5;
  --apw-gold:#c5a36b;
  --apw-gold-dark:#a98148;
  --apw-muted:#63736c;
  --apw-hairline:#deded5;
  --apw-display:Georgia,"Iowan Old Style","Palatino Linotype",serif;
  --apw-body:ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
}
body.wp-theme-all-points-west-kadence-child-wpvibe-draft,
body.wp-theme-all-points-west-kadence-child{
  background:var(--apw-canvas);
  color:var(--apw-ink);
  font-family:var(--apw-body);
}
:where(.wp-site-blocks,.site,body) a{
  text-underline-offset:.16em;
}
:focus-visible{outline:3px solid var(--apw-gold)!important;outline-offset:3px}
::selection{background:#d9c59b;color:#152b28}

/* Shared site brand + navigation */
#masthead.site-header{
  background:var(--apw-sand);
  box-shadow:0 1px 0 var(--apw-hairline);
}
#masthead .site-main-header-wrap .site-header-row-container-inner{
  background:var(--apw-sand);
}
#masthead .site-header-row{min-height:76px;gap:12px;}
#masthead .site-branding .brand{
  display:block;
  width:clamp(165px,19vw,235px);
  height:72px;
  background-image:url("https://www.myfjcruiser.org/wp-content/uploads/2026/10/All-Points-West-—-Original-Compass-Logo-Transparent-500x250.png");
  background-position:left center;
  background-size:contain;
  background-repeat:no-repeat;
  position:relative;
  transition:opacity .2s ease;
}
#masthead .site-branding .brand:hover{opacity:.78}
#masthead .site-branding .site-title-wrap{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
}
#masthead .header-navigation .header-menu-container ul.menu>li>a{
  color:var(--apw-ink);
  font-size:12px;
  letter-spacing:.075em;
  text-transform:uppercase;
  font-weight:750;
  padding-left:.74em;
  padding-right:.74em;
  transition:color .2s ease;
}
#masthead .header-navigation .header-menu-container ul.menu>li>a:hover,
#masthead .header-navigation .header-menu-container ul.menu>li.current-menu-item>a{
  color:var(--apw-gold-dark);
}
#masthead .menu-toggle-open,
#masthead .mobile-toggle-open-container button{color:var(--apw-ink)}
#masthead .mobile-navigation ul li a{
  font-weight:650;
  letter-spacing:.035em;
}
#colophon.site-footer{border-top:1px solid var(--apw-hairline);}

/* Generous editorial typography and readable writing */
body.single-post .entry-content.single-content{
  max-width:790px;
  margin-inline:auto;
  color:#293936;
}
body.single-post .entry-content.single-content p{
  font-family:var(--apw-display);
  font-size:clamp(17px,1.5vw,19px);
  line-height:1.88;
  margin-block:0 1.45em;
}
body.single-post .entry-content.single-content>p:first-of-type{
  font-size:clamp(19px,1.8vw,22px);
  line-height:1.78;
  color:#1d3430;
}
body.single-post .entry-content.single-content h2,
body.single-post .entry-content.single-content h3,
body.single-post .entry-content.single-content h4,
body.single-post .entry-header .entry-title{
  font-family:var(--apw-display);
  color:var(--apw-pine);
  letter-spacing:-.025em;
}
body.single-post .entry-content.single-content h2{
  font-size:clamp(1.7rem,3vw,2.4rem);
  line-height:1.2;
  margin:1.7em 0 .55em;
}
body.single-post .entry-content.single-content a{color:#286257}
body.single-post .entry-content.single-content a:hover{color:#986c30}
body.single-post .entry-content.single-content blockquote{
  border-left:4px solid var(--apw-gold);
  padding:14px 0 14px 25px;
  background:transparent;
  margin:38px 0;
  color:var(--apw-pine);
  font-family:var(--apw-display);
}
body.single-post .entry-content.single-content blockquote p{
  font-style:italic;
  font-size:clamp(21px,2.6vw,29px);
  line-height:1.5;
}
body.single-post .entry-content.single-content figure,
body.single-post .entry-content.single-content .wp-caption{
  max-width:100%;
  margin:30px auto 35px;
}
body.single-post .entry-content.single-content img{
  border-radius:4px;
  max-width:100%;
  height:auto;
}
body.single-post .entry-content.single-content .wp-caption-text,
body.single-post .entry-content.single-content figcaption{
  font-family:var(--apw-body);
  font-size:12px;
  line-height:1.55;
  color:var(--apw-muted);
  margin-top:8px;
  text-align:center;
}
body.single-post .entry-content.single-content ul,
body.single-post .entry-content.single-content ol{
  line-height:1.75;
  margin-bottom:1.5em;
}
body.single-post .entry-content.single-content .leaflet-map{
  max-width:100%;
  box-sizing:border-box;
  border:1px solid #bcbdb1;
  border-radius:5px;
}


/* Most historical Kadence posts put the title INSIDE the entry instead
   of in .entry-hero. Turn that real title into the photo opening. */
body.single-post .single-entry .entry-content-wrap{
  display:flex;
  flex-direction:column;
  padding-top:0;
}
body.single-post .single-entry .entry-header.post-title{
  order:-3;
  background-color:var(--apw-deep);
  background-image:linear-gradient(0deg,rgba(11,28,27,.93),rgba(24,49,46,.39)),var(--apw-hero-image,linear-gradient(145deg,#355951,#172728));
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
  width:calc(100vw - 52px);
  max-width:1190px;
  position:relative;
  left:50%;
  transform:translateX(-50%);
  padding:clamp(27px,5vw,67px);
  min-height:clamp(320px,37vw,470px);
  margin:0 0 clamp(28px,4vw,48px);
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  align-items:flex-start;
  border-radius:5px;
  box-shadow:0 14px 40px rgba(21,41,37,.10);
}
body.single-post .single-entry .entry-header.post-title .entry-title{
  color:#fff!important;
  font-family:var(--apw-display);
  font-weight:600;
  letter-spacing:-.037em;
  line-height:1.09;
  font-size:clamp(2.3rem,5.4vw,4.6rem);
  max-width:950px;
  text-shadow:0 3px 22px rgba(0,0,0,.24);
}
body.single-post .single-entry .entry-header.post-title .entry-taxonomies a,
body.single-post .single-entry .entry-header.post-title .entry-taxonomies .category-links{
  color:#f3d5a2!important;
  font-family:var(--apw-body);
  font-size:11px;
  font-weight:800;
  letter-spacing:.13em;
  text-transform:uppercase;
}
body.single-post .single-entry .entry-header.post-title .entry-meta,
body.single-post .single-entry .entry-header.post-title .entry-meta a,
body.single-post .single-entry .entry-header.post-title .posted-on,
body.single-post .single-entry .entry-header.post-title .posted-by{
  color:#e6e4dd!important;
  font-size:13px;
  letter-spacing:.01em;
  line-height:1.5;
}
body.single-post .single-entry .apw-story-kicker{
  order:-2;
}
body.single-post .single-entry .entry-content.single-content{
  order:0;
  margin-left:auto;
  margin-right:auto;
  width:100%;
}
body.single-post .single-entry .apw-read-more{order:3;}
body.page-id-4220 .entry-hero,
body.page-id-4247 .entry-hero{display:none}

@media(max-width:767px){
  body.single-post .single-entry .entry-header.post-title{
    width:calc(100vw - 24px);
    min-height:335px;
    padding:27px 23px;
    margin-bottom:24px;
  }
  body.single-post .single-entry .entry-header.post-title .entry-title{font-size:clamp(2.15rem,9vw,3.4rem)}
}

/* Photographic story opener, works without a featured image too */
body.single-post .entry-hero{
  background-color:var(--apw-deep);
  background-image:linear-gradient(0deg,rgba(11,29,27,.91),rgba(20,48,44,.70)),var(--apw-hero-image,linear-gradient(150deg,#355c56,#172728));
  background-repeat:no-repeat;
  background-position:center;
  background-size:cover;
  min-height:clamp(290px,32vw,455px);
  display:flex;
  align-items:flex-end;
}
body.single-post .entry-hero .hero-container{width:100%;padding-top:50px;padding-bottom:46px}
body.single-post .entry-hero .entry-title,
body.single-post .entry-hero .entry-header .entry-title{
  color:#fff!important;
  font-family:var(--apw-display);
  font-weight:600;
  letter-spacing:-.035em;
  font-size:clamp(2.2rem,5vw,4.4rem);
  line-height:1.14;
  max-width:980px;
  text-shadow:0 2px 25px rgba(0,0,0,.25);
}
body.single-post .entry-hero .entry-meta,
body.single-post .entry-hero .entry-meta a,
body.single-post .entry-hero .posted-on,
body.single-post .entry-hero .posted-on a,
body.single-post .entry-hero .author,
body.single-post .entry-hero .author a{color:#e0dbc9!important}
body.single-post .entry-hero .hero-section-overlay{opacity:0!important}
body.single-post .entry-content-wrap{padding-top:clamp(28px,4.5vw,62px)}
body.single-post .single-entry{box-shadow:none;}
.apw-story-kicker{
  font-family:var(--apw-body);
  letter-spacing:.14em;
  font-weight:800;
  font-size:11px;
  color:var(--apw-gold-dark);
  text-transform:uppercase;
  margin:0 auto 22px;
  max-width:790px;
  padding-bottom:14px;
  border-bottom:1px solid var(--apw-hairline);
}
.apw-read-more{
  background:#e9eee8;
  padding:27px 31px;
  border-left:4px solid var(--apw-gold);
  margin:35px auto 15px;
  max-width:790px;
}
.apw-read-more h3{
  color:var(--apw-pine);
  font-family:var(--apw-display);
  font-size:22px;
  margin:0 0 6px;
}
.apw-read-more p{font-size:15px;margin:0 0 13px;line-height:1.65;}
.apw-read-more .apw-map-link{
  display:inline-block;
  font-family:var(--apw-body);
  font-weight:750;
  font-size:14px;
  padding:11px 16px;
  color:#fff;
  background:var(--apw-pine);
  border-radius:4px;
  text-decoration:none;
}
body.single-post .post-navigation-wrap,
body.single-post .entry-related{max-width:1110px;margin-inline:auto}
body.single-post .post-navigation-wrap a,
body.single-post .entry-related a{color:var(--apw-pine)}


/* Expedition article layout — story at left, trip context at right.
   The sidebar is generated dynamically without altering article content. */
body.single-post .content-container.site-container{
  width:calc(100% - 28px);
  max-width:1220px;
}
body.single-post .single-entry .entry-content-wrap{
  padding-inline:clamp(16px,2.8vw,34px);
}
body.single-post .single-entry .entry-content.single-content{
  display:grid;
  grid-template-columns:minmax(0,1fr) clamp(205px,27vw,285px);
  align-items:start;
  column-gap:clamp(16px,2.7vw,54px);
  max-width:1150px;
  margin-inline:auto;
  width:100%;
  overflow:visible;
}
body.single-post .entry-content.single-content .apw-article-body{
  min-width:0;
  max-width:750px;
}
body.single-post .entry-content.single-content .apw-article-body > p:first-of-type{
  font-size:clamp(19px,1.8vw,22px);
  line-height:1.78;
  color:#1d3430;
}
body.single-post .entry-content.single-content .apw-trip-summary{
  background:var(--apw-sand);
  padding:27px clamp(18px,2.2vw,27px) 29px;
  border-top:5px solid var(--apw-gold);
  box-shadow:0 12px 32px rgba(22,48,42,.055);
  color:var(--apw-ink);
  border-radius:0 0 4px 4px;
  position:sticky;
  top:28px;
  min-width:0;
}
body.single-post .entry-content.single-content .apw-trip-summary h2.apw-summary-heading{
  font-family:var(--apw-body);
  font-size:12px;
  line-height:1.5;
  text-transform:uppercase;
  letter-spacing:.17em;
  font-weight:800;
  color:#53675c;
  margin:0 0 22px;
}
body.single-post .entry-content.single-content .apw-trip-summary dl{
  display:block;
  margin:0 0 22px;
}
body.single-post .entry-content.single-content .apw-trip-summary dt{
  color:#66766b;
  font-family:var(--apw-body);
  font-size:11px;
  line-height:1.3;
  font-weight:800;
  letter-spacing:.10em;
  text-transform:uppercase;
  margin:18px 0 5px;
}
body.single-post .entry-content.single-content .apw-trip-summary dd{
  color:#29423c;
  font-family:var(--apw-body);
  font-size:14px;
  line-height:1.6;
  margin:0;
  overflow-wrap:anywhere;
}
body.single-post .entry-content.single-content .apw-trip-summary a.apw-summary-map{
  display:inline-block;
  padding-top:15px;
  width:100%;
  border-top:1px solid #d7d8cd;
  color:#246053;
  font-family:var(--apw-body);
  font-size:13px;
  line-height:1.6;
  font-weight:800;
  text-decoration:none;
}
body.single-post .entry-content.single-content .apw-trip-summary a.apw-summary-map:hover{
  color:var(--apw-gold-dark);
  text-decoration:underline;
}
@media(max-width:680px){
  body.single-post .single-entry .entry-content.single-content{
    display:flex;
    flex-direction:column;
    gap:27px;
    max-width:730px;
    width:100%;
  }
  body.single-post .entry-content.single-content .apw-article-body{width:100%;max-width:100%}
  body.single-post .entry-content.single-content .apw-trip-summary{
    position:static;
    width:100%;
    max-width:100%;
    padding:22px 24px;
  }
  body.single-post .entry-content.single-content .apw-trip-summary dl{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:0 20px;
  }
  body.single-post .entry-content.single-content .apw-trip-summary dt{grid-column:auto}
  body.single-post .entry-content.single-content .apw-trip-summary dd{grid-column:auto;margin-top:8px}
}
@media(max-width:500px){
  body.single-post .entry-content.single-content .apw-trip-summary dl{display:block}
  body.single-post .entry-content.single-content .apw-trip-summary dd{margin-top:0}
}


/* Ad-ready areas. Widgets can later contain responsive display ads,
   clearly disclosed sponsorship cards, or relevant affiliate features. */
body.single-post .entry-content.single-content .apw-article-rail{
  grid-column:2;
  min-width:0;
  align-self:start;
  display:flex;
  flex-direction:column;
  gap:22px;
  position:sticky;
  top:25px;
}
body.single-post .entry-content.single-content .apw-article-rail .apw-trip-summary{
  position:static;
  top:auto;
  width:100%;
}
.apw-partner-slot{
  box-sizing:border-box;
  font-family:var(--apw-body);
  width:100%;
  max-width:100%;
  overflow-wrap:anywhere;
}
.apw-partner-slot--rail{
  min-height:250px;
}
.apw-partner-slot--wide,
.apw-partner-slot--homepage{
  width:min(100%,970px);
  max-width:970px;
  margin:36px auto 35px;
}
.apw-partner-slot--homepage{
  margin-block:45px 30px;
  width:min(100%,1050px);
}
.apw-partner-slot .apw-partner-label{
  font-family:var(--apw-body);
  text-align:center;
  font-size:10px;
  letter-spacing:.11em;
  text-transform:uppercase;
  font-weight:750;
  color:#758078;
  margin-bottom:9px;
}
.apw-partner-slot--preview{
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  padding:21px;
  min-height:180px;
  border:2px dashed #a58e63;
  background:repeating-linear-gradient(-45deg,#eaf0e7 0,#eaf0e7 13px,#e0e9df 13px,#e0e9df 26px);
  border-radius:5px;
  text-align:center;
  color:#586760;
}
.apw-partner-slot--rail.apw-partner-slot--preview{min-height:250px}
.apw-partner-slot--homepage.apw-partner-slot--preview{min-height:165px}
.apw-partner-preview-text{
  font-family:var(--apw-body);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:9px;
  max-width:310px;
}
.apw-partner-preview-text strong{
  color:#254841;
  font-size:17px;
  line-height:1.35;
}
.apw-partner-preview-text span{
  font-size:12px;
  line-height:1.6;
}
.apw-partner-widget{max-width:100%}
.apw-partner-widget iframe,
.apw-partner-widget img{max-width:100%;height:auto}
.apw-partner-widget .apw-partner-title{
  font-family:var(--apw-body);
  font-size:17px;
  color:var(--apw-pine);
  margin:0 0 10px;
}
@media(max-width:680px){
  body.single-post .entry-content.single-content .apw-article-rail{
    position:static;
    align-self:stretch;
    width:100%;
    order:2;
    gap:18px;
  }
  .apw-partner-slot--rail{min-height:180px}
}
@media(max-width:500px){
  .apw-partner-slot--wide,
  .apw-partner-slot--homepage{margin-block:28px}
  .apw-partner-slot--preview{padding:18px;min-height:150px}
}


/* Less wasted space above stories and home hero. Kadence's post wrapper
   normally adds generous title-area margins, but our photo is the title. */
body.single-post #primary.content-area,
body.single-post #main.site-main,
body.single-post #main .content-wrap,
body.single-post article.single-entry,
body.page-id-4220 #primary.content-area,
body.page-id-4220 #main.site-main,
body.page-id-4220 #main .content-wrap,
body.page-id-4220 article.single-entry{
  margin-top:0!important;
  padding-top:0!important;
}
body.single-post .single-entry .entry-content-wrap,
body.page-id-4220 .single-entry .entry-content-wrap{
  padding-top:0!important;
}
body.single-post .single-entry .entry-header.post-title{
  margin-top:0!important;
}
body.page-id-4220 .entry-hero.page-hero-section{display:none!important}
body.page-id-4220 .entry-content.single-content{
  margin-top:0!important;
  padding-top:0!important;
}
/* Logo is already in the global All Points West navigation.
   Don't repeat the giant transparent 2:1 logo atop the sample homepage. */
body.page-id-4220 .entry-content.single-content>figure.wp-block-image:first-child{
  display:none!important;
}
body.page-id-4220 .entry-content.single-content>p:first-of-type{
  margin:0!important;
  padding:10px 15px!important;
  color:#74664d;
  background:var(--apw-sand);
  font-family:var(--apw-body);
  letter-spacing:.14em;
  font-size:11px;
  font-weight:750;
}
body.page-id-4220 .entry-content.single-content>.wp-block-cover{
  margin-top:0!important;
}
body.page-id-4220 .entry-content.single-content>.apw-partner-slot--homepage{
  margin-top:20px;
  margin-bottom:29px;
}
.apw-partner-slot--preview .apw-partner-label{
  color:#6b5737;
  font-weight:850;
  font-size:11px;
}
@media(min-width:681px) and (max-width:950px){
  body.single-post .single-entry .entry-content-wrap{
    padding-inline:clamp(10px,2vw,20px);
  }
  body.single-post .entry-content.single-content .apw-article-body{
    max-width:100%;
  }
  body.single-post .entry-content.single-content .apw-article-body p{
    font-size:clamp(16px,1.8vw,18px);
    line-height:1.72;
  }
  body.single-post .entry-content.single-content .apw-trip-summary{
    padding:18px 15px 20px;
  }
  body.single-post .entry-content.single-content .apw-trip-summary dd{
    font-size:13px;
  }
  body.single-post .entry-content.single-content .apw-article-rail{
    gap:16px;
    top:12px;
  }
  .apw-partner-slot--rail.apw-partner-slot--preview{
    min-height:230px;
    padding:16px 12px;
  }
}


/* Homepage story cards: Kadence's inherited alignwide margins pushed the
   two outside columns past the clipped content box on some tablet widths.
   Contain BOTH content rows inside the visible page and let cards reflow. */
body.page-id-4220 .content-container.site-container{
  width:100%;
  max-width:1240px;
}
body.page-id-4220 #main.site-main,
body.page-id-4220 #main .content-wrap,
body.page-id-4220 article.single-entry,
body.page-id-4220 .entry-content-wrap,
body.page-id-4220 .entry-content.single-content{
  width:100%;
  min-width:0;
  max-width:100%;
  box-sizing:border-box;
}
body.page-id-4220 .entry-content.single-content>.wp-block-group.alignwide,
body.page-id-4220 .entry-content.single-content>.wp-block-columns.alignwide{
  box-sizing:border-box;
  width:calc(100% - 48px)!important;
  max-width:1100px!important;
  min-width:0;
  margin-left:auto!important;
  margin-right:auto!important;
  left:auto!important;
  right:auto!important;
  transform:none!important;
}
body.page-id-4220 .entry-content.single-content>.wp-block-columns.alignwide{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(16px,2.5vw,30px);
  align-items:stretch;
}
body.page-id-4220 .entry-content.single-content>.wp-block-columns.alignwide>.wp-block-column{
  width:auto!important;
  min-width:0;
  max-width:100%;
  flex:initial!important;
  margin:0!important;
  box-sizing:border-box;
  overflow-wrap:break-word;
}
body.page-id-4220 .entry-content.single-content>.wp-block-columns.alignwide>.wp-block-column h3,
body.page-id-4220 .entry-content.single-content>.wp-block-columns.alignwide>.wp-block-column p,
body.page-id-4220 .entry-content.single-content>.wp-block-group.alignwide h2{
  max-width:100%;
  overflow-wrap:break-word;
}
@media(max-width:900px){
  body.page-id-4220 .entry-content.single-content>.wp-block-columns.alignwide{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:620px){
  body.page-id-4220 .entry-content.single-content>.wp-block-group.alignwide,
  body.page-id-4220 .entry-content.single-content>.wp-block-columns.alignwide{
    width:calc(100% - 28px)!important;
  }
  body.page-id-4220 .entry-content.single-content>.wp-block-columns.alignwide{
    grid-template-columns:minmax(0,1fr);
    gap:15px;
  }
}


/* -------------------------------------------------------------------------
 * Integrated expedition-section headers on top-level navigation pages.
 * These use the Kadence title hook + child-theme body class; no old page
 * markup or historical article URLs are replaced.
 * ------------------------------------------------------------------------- */
body.apw-section-page #masthead.site-header{
  box-shadow:none;
  border-bottom:1px solid rgba(174,150,102,.3);
}
body.apw-section-page .entry-hero.page-hero-section{
  margin:0!important;
  padding:0!important;
  min-height:0!important;
  position:relative;
  overflow:hidden;
  border:none;
  background-color:#18332e!important;
  background-image:
    radial-gradient(ellipse at 94% 12%,rgba(195,161,101,.17),transparent 52%),
    repeating-radial-gradient(circle at 103% -5%,transparent 0 30px,rgba(226,218,190,.055) 31px 32px,transparent 33px 65px),
    linear-gradient(108deg,#132a28 0%,#20453f 53%,#1a3331 100%)!important;
  color:#f8f4ec;
}
body.apw-section-page .entry-hero.page-hero-section::after{
  content:"";
  position:absolute;
  inset:auto 0 0;
  height:3px;
  background:linear-gradient(90deg,var(--apw-gold) 0%,var(--apw-gold) 18%,rgba(197,163,107,.35) 18%,transparent 65%);
  pointer-events:none;
}
body.apw-section-page .entry-hero.page-hero-section .entry-hero-container-inner{
  background:transparent!important;
  margin:0!important;
  padding:0!important;
  min-height:0!important;
}
body.apw-section-page .entry-hero.page-hero-section .hero-section-overlay{
  display:none!important;
}
body.apw-section-page .entry-hero.page-hero-section .hero-container.site-container{
  width:calc(100% - 52px)!important;
  max-width:1135px!important;
  margin:0 auto!important;
  padding:clamp(12px,1.6vw,17px) 0!important;
  min-height:0!important;
  box-sizing:border-box;
}
body.apw-section-page .entry-hero.page-hero-section .entry-header.page-title{
  display:grid;
  grid-template-columns:max-content minmax(0,1fr);
  grid-template-rows:auto auto;
  align-items:center;
  column-gap:clamp(22px,3.5vw,48px);
  padding:0!important;
  margin:0!important;
  max-width:100%;
  text-align:left;
}
body.apw-section-page .entry-hero .apw-section-eyebrow{
  grid-column:1 / -1;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  color:#edc990;
  font-family:var(--apw-body);
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.14em;
  font-size:10px;
  line-height:1.35;
}
body.apw-section-page .entry-hero .apw-section-eyebrow .apw-section-brand{
  color:#f4eee0;
}
body.apw-section-page .entry-hero .apw-section-separator{
  display:inline-block;
  flex:none;
  width:29px;
  height:1px;
  background:var(--apw-gold);
}
body.apw-section-page .entry-hero .entry-header .entry-title{
  grid-column:1;
  font-family:var(--apw-display);
  color:#fffaf0!important;
  font-size:clamp(29px,2.85vw,39px);
  line-height:1.13;
  letter-spacing:-.035em;
  font-weight:600;
  margin:4px 0 0!important;
  padding:0!important;
  max-width:100%;
  text-shadow:0 2px 15px rgba(10,28,25,.12);
}
body.apw-section-page .entry-hero .apw-section-subtitle{
  grid-column:2;
  color:#dce6d9;
  max-width:620px;
  font-family:var(--apw-body);
  font-size:13px;
  line-height:1.4;
  font-weight:400;
  margin:4px 0 0!important;
  padding:0 0 0 22px;
  border-left:1px solid rgba(197,163,107,.44);
}
body.apw-section-page #inner-wrap{
  background:var(--apw-canvas);
  padding-top:0!important;
}
body.apw-section-page #primary.content-area,
body.apw-section-page #main.site-main,
body.apw-section-page #main .content-wrap,
body.apw-section-page article.single-entry{
  margin-top:0!important;
  padding-top:0!important;
}
body.apw-section-page .content-container.site-container{
  width:calc(100% - 40px);
  max-width:1135px;
}
body.apw-section-page .single-entry{
  box-shadow:none;
  border-top:0;
  border-radius:0 0 5px 5px;
  background:#fffdf8;
}
body.apw-section-page .single-entry .entry-content-wrap{
  padding:clamp(18px,2.1vw,25px) clamp(18px,3.5vw,52px) clamp(35px,5vw,65px)!important;
}
body.apw-section-page .entry-content.single-content>p:first-child{
  font-size:clamp(16.5px,1.55vw,19px);
  line-height:1.72;
  color:#345048;
}
body.apw-section-page .entry-content.single-content a{
  color:#286358;
}
body.apw-section-page .entry-content.single-content a:hover{
  color:#8f6a34;
}
body.apw-section-page .entry-content.single-content .leaflet-map{
  max-width:100%;
  box-sizing:border-box;
  border-radius:4px;
  border:1px solid #d0d3c8;
}
body.apw-section-page #masthead .header-navigation .header-menu-container ul.menu>li.current-menu-item>a,
body.apw-section-page #masthead .header-navigation .header-menu-container ul.menu>li.current-menu-ancestor>a{
  color:var(--apw-pine);
  box-shadow:inset 0 -2px var(--apw-gold);
}
@media(max-width:1024px){
  body.apw-section-page .entry-hero.page-hero-section .entry-header.page-title{
    grid-template-columns:minmax(0,1fr);
  }
  body.apw-section-page .entry-hero .entry-header .entry-title{
    grid-column:1;
  }
  body.apw-section-page .entry-hero .apw-section-subtitle{
    display:none;
  }
}
@media(max-width:767px){
  body.apw-section-page .entry-hero.page-hero-section .hero-container.site-container{
    width:calc(100% - 32px)!important;
    padding:12px 0 15px!important;
  }
  body.apw-section-page .entry-hero .apw-section-eyebrow{
    font-size:9px;
    gap:7px;
    letter-spacing:.1em;
  }
  body.apw-section-page .entry-hero .apw-section-separator{width:17px}
  body.apw-section-page .entry-hero .entry-header .entry-title{
    font-size:clamp(27px,5.5vw,34px);
    margin:4px 0 0!important;
  }
  body.apw-section-page .content-container.site-container{
    width:calc(100% - 20px);
  }
  body.apw-section-page .single-entry .entry-content-wrap{
    padding:16px 17px 36px!important;
  }
}
@media(prefers-reduced-motion:reduce){
  body.apw-section-page .entry-hero *{scroll-behavior:auto!important}
}


/* Trip Reports category is a menu destination rather than a static page.
   When the archive route resolves, give it the same editorial masthead. */
body.apw-section-page.category-trip-reports .entry-hero{
  position:relative;
  min-height:0!important;
  background:
    radial-gradient(ellipse at 93% 10%,rgba(195,161,101,.17),transparent 52%),
    repeating-radial-gradient(circle at 103% -5%,transparent 0 30px,rgba(226,218,190,.055) 31px 32px,transparent 33px 65px),
    linear-gradient(108deg,#132a28,#20453f 53%,#1a3331)!important;
  padding:0!important;
  margin:0!important;
  color:#fffaf0;
  overflow:hidden;
}
body.apw-section-page.category-trip-reports .entry-hero .entry-hero-container-inner{
  background:transparent!important;
  min-height:0!important;
  padding:0!important;
}
body.apw-section-page.category-trip-reports .entry-hero .hero-section-overlay{
  display:none!important;
}
body.apw-section-page.category-trip-reports .entry-hero .hero-container.site-container{
  max-width:1135px!important;
  width:calc(100% - 52px)!important;
  margin:0 auto!important;
  padding:clamp(12px,1.6vw,17px) 0!important;
}
body.apw-section-page.category-trip-reports .entry-hero .entry-header{
  display:grid;
  grid-template-columns:max-content minmax(0,1fr);
  grid-template-rows:auto auto;
  align-items:center;
  column-gap:clamp(22px,3.5vw,48px);
  margin:0!important;
  padding:0!important;
  text-align:left;
}
body.apw-section-page.category-trip-reports .entry-hero .apw-section-eyebrow{
  grid-column:1 / -1;
  display:flex;
  align-items:center;
  gap:8px;
  color:#edc990;
  font-family:var(--apw-body);
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.14em;
}
body.apw-section-page.category-trip-reports .entry-hero .apw-section-brand{color:#f4eee0}
body.apw-section-page.category-trip-reports .entry-hero .apw-section-separator{display:inline-block;width:29px;height:1px;background:var(--apw-gold)}
body.apw-section-page.category-trip-reports .entry-hero .entry-title,
body.apw-section-page.category-trip-reports .entry-hero .page-title{
  grid-column:1;
  color:#fffaf0!important;
  font-family:var(--apw-display);
  font-size:clamp(29px,2.85vw,39px);
  line-height:1.13;
  letter-spacing:-.035em;
  font-weight:600;
  margin:4px 0 0!important;
}
body.apw-section-page.category-trip-reports .entry-hero .apw-section-subtitle{
  grid-column:2;
  color:#dce6d9;
  max-width:620px;
  font-size:13px;
  line-height:1.4;
  margin:4px 0 0!important;
  padding:0 0 0 22px;
  border-left:1px solid rgba(197,163,107,.44);
}
body.apw-section-page.category-trip-reports #primary.content-area{padding-top:16px}
@media(max-width:1024px){
  body.apw-section-page.category-trip-reports .entry-hero .entry-header{grid-template-columns:minmax(0,1fr)}
  body.apw-section-page.category-trip-reports .entry-hero .apw-section-subtitle{display:none}
}
@media(max-width:767px){
  body.apw-section-page.category-trip-reports .entry-hero .hero-container.site-container{width:calc(100% - 32px)!important;padding:12px 0 15px!important}
  body.apw-section-page.category-trip-reports .entry-hero .entry-title,
  body.apw-section-page.category-trip-reports .entry-hero .page-title{font-size:clamp(27px,5.5vw,34px)!important}
}


/* Homepage lead-story feature, populated from real published WordPress posts.
   The feature follows the photo hero and sponsor band, before section links. */
body.page-id-4220 .entry-content.single-content > .apw-home-featured{
  box-sizing:border-box;
  width:calc(100% - 48px);
  max-width:1100px;
  min-width:0;
  margin:clamp(24px,3vw,38px) auto 16px!important;
  position:relative;
  left:auto!important;
  right:auto!important;
  transform:none!important;
  clear:both;
}
.apw-home-featured *{box-sizing:border-box}
.apw-home-featured .apw-featured-section-label{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:0 1px 11px;
  font:800 11px/1.5 var(--apw-body);
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--apw-pine);
}
.apw-home-featured .apw-featured-section-label span:last-child{
  color:#777566;
  font-size:10px;
  font-weight:600;
  letter-spacing:.045em;
  text-transform:none;
}
body.page-id-4220 .entry-content.single-content .apw-featured-card{
  display:grid;
  grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);
  gap:0;
  width:100%;
  max-width:100%;
  min-height:320px;
  border:1px solid var(--apw-hairline);
  border-radius:5px;
  background:var(--apw-sand);
  box-shadow:0 12px 36px rgba(22,48,42,.075);
  overflow:hidden;
  text-decoration:none!important;
  color:var(--apw-ink);
  transition:box-shadow .2s ease;
}
body.page-id-4220 .entry-content.single-content .apw-featured-card:hover{
  box-shadow:0 16px 40px rgba(22,48,42,.14);
}
.apw-home-featured .apw-featured-visual{
  position:relative;
  width:100%;
  min-height:320px;
  overflow:hidden;
  display:flex;
  align-items:flex-end;
  background-color:#1c4038;
  background-image:
    radial-gradient(ellipse at 15% 95%,rgba(197,163,107,.42),transparent 52%),
    repeating-radial-gradient(circle at 65% 45%,transparent 0 29px,rgba(221,211,179,.12) 30px 31px,transparent 32px 61px),
    linear-gradient(130deg,#122725 0%,#30554b 65%,#5d6c57 100%);
}
.apw-home-featured .apw-featured-visual::after{
  content:"";
  pointer-events:none;
  position:absolute;
  inset:0;
  background:linear-gradient(0deg,rgba(9,28,26,.72),transparent 72%);
}
.apw-home-featured .apw-featured-visual img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .4s ease;
}
.apw-home-featured .apw-featured-card:hover .apw-featured-visual img{
  transform:scale(1.035);
}
.apw-home-featured .apw-featured-visual-mark{
  z-index:1;
  display:flex;
  flex-direction:column;
  gap:0;
  padding:25px;
  color:#fff5e1;
  font-family:var(--apw-display);
  font-size:clamp(45px,5vw,76px);
  font-weight:600;
  letter-spacing:-.045em;
  line-height:1;
  text-shadow:0 2px 15px rgba(0,0,0,.16);
}
.apw-home-featured .apw-featured-visual-mark span{
  padding-top:9px;
  font:750 10px/1.5 var(--apw-body);
  letter-spacing:.21em;
}
.apw-home-featured .apw-featured-visual--photo .apw-featured-visual-mark{
  font-size:30px;
}
.apw-home-featured .apw-featured-copy{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  min-width:0;
  padding:clamp(22px,3.2vw,42px);
}
.apw-home-featured .apw-featured-kicker{
  color:#8d733f;
  font:800 10px/1.6 var(--apw-body);
  letter-spacing:.14em;
  text-transform:uppercase;
  margin:0 0 13px;
}
body.page-id-4220 .entry-content.single-content .apw-home-featured h2{
  font-family:var(--apw-display);
  font-weight:600;
  font-size:clamp(26px,3vw,38px);
  line-height:1.2;
  letter-spacing:-.028em;
  color:var(--apw-pine);
  margin:0 0 15px;
  max-width:100%;
  overflow-wrap:break-word;
}
body.page-id-4220 .entry-content.single-content .apw-home-featured .apw-featured-excerpt{
  font:400 15px/1.65 var(--apw-body);
  color:#4b5e54;
  margin:0 0 19px;
  max-width:57ch;
}
.apw-home-featured .apw-featured-read{
  display:inline-block;
  margin-top:auto;
  color:#286358;
  font:800 12px/1.5 var(--apw-body);
  border-bottom:1px solid var(--apw-gold);
  padding-bottom:6px;
}
@media(max-width:780px){
  body.page-id-4220 .entry-content.single-content > .apw-home-featured{
    width:calc(100% - 36px);
  }
  body.page-id-4220 .entry-content.single-content .apw-featured-card{
    grid-template-columns:minmax(0,1fr);
  }
  .apw-home-featured .apw-featured-visual{
    min-height:215px;
  }
  .apw-home-featured .apw-featured-copy{
    padding:24px 26px 28px;
  }
}
@media(max-width:500px){
  body.page-id-4220 .entry-content.single-content > .apw-home-featured{
    width:calc(100% - 28px);
  }
  .apw-home-featured .apw-featured-section-label{
    gap:6px;
    flex-direction:column;
    align-items:flex-start;
  }
  .apw-home-featured .apw-featured-visual{min-height:195px}
  .apw-home-featured .apw-featured-copy{padding:22px 20px 25px}
  body.page-id-4220 .entry-content.single-content .apw-home-featured h2{
    font-size:27px;
  }
}
@media(prefers-reduced-motion:reduce){
  .apw-home-featured .apw-featured-visual img,
  body.page-id-4220 .entry-content.single-content .apw-featured-card{transition:none}
}


/* Section-page topographic background uses the lightweight SVG asset below. */

/* Indexes and other pages */
body.archive .entry-hero,
body.blog .entry-hero{background:#e9e8df}
body.archive .entry-hero .entry-title,
body.blog .entry-hero .entry-title{font-family:var(--apw-display);color:var(--apw-pine);font-size:clamp(2.2rem,4vw,3.7rem)}
body.archive article.entry,
body.blog article.entry{
  border:1px solid var(--apw-hairline);
  background:#fff;
  box-shadow:0 10px 35px rgba(25,56,52,.045);
  transition:box-shadow .2s ease,transform .2s ease;
}
body.archive article.entry:hover,
body.blog article.entry:hover{box-shadow:0 14px 40px rgba(25,56,52,.1);transform:translateY(-2px)}
body.archive article .entry-title,
body.blog article .entry-title{font-family:var(--apw-display);color:var(--apw-pine)}
body.page .entry-content.single-content h1,
body.page .entry-content.single-content h2{font-family:var(--apw-display)}
body.page .content-bg{background:var(--apw-canvas)}
body.page-id-2064 .leaflet-map{border-color:#abac9e}

/* One-off demonstration pages already carry their own CSS.
   Avoid making them look like nested blog articles. */
body.page-id-4220 .entry-title,
body.page-id-4247 .entry-title{font-family:var(--apw-display)}
body.page-id-4220 .entry-content-wrap,
body.page-id-4247 .entry-content-wrap{padding-inline:0}
body.page-id-4220 .single-content,
body.page-id-4247 .single-content{margin-top:0}

@media(max-width:1024px){
  #masthead .site-branding .brand{width:178px;height:78px}
  #masthead .header-navigation .header-menu-container ul.menu>li>a{font-size:11px;padding-left:.55em;padding-right:.55em}
}
@media(max-width:767px){
  /* Compact phone masthead: large enough for the logo and menu trigger. */
  #masthead .site-header-row{min-height:58px}
  #masthead .site-branding .brand{width:145px;height:48px}
  body.single-post .entry-hero{min-height:295px}
  body.single-post .entry-hero .hero-container{padding-top:28px;padding-bottom:34px}
  body.single-post .entry-content-wrap{padding:25px 18px}
  body.single-post .entry-content.single-content p{font-size:17px;line-height:1.76}
  .apw-read-more{padding:23px 21px}
}
/* Keep the off-canvas phone menu only as wide as its labels require. */
#mobile-drawer.popup-drawer .drawer-inner{
  width:min(272px,calc(100vw - 24px))!important;
  max-width:min(272px,calc(100vw - 24px))!important;
}
@media(prefers-reduced-motion:reduce){
  body.archive article.entry,body.blog article.entry,#masthead .site-branding .brand{transition:none}
}

/*
 * Topographic page-header revision.
 * Use a real, stand-alone SVG asset rather than data URI and radial shapes.
 * Winding elevation contours remain legible behind the short title bar.
 * This deliberately overrides the earlier experimental pattern above.
 */
body.apw-section-page .entry-hero.page-hero-section,
body.apw-section-page.category-trip-reports .entry-hero{
  background-color:#17372f!important;
  background-image:
    url("./assets/all-points-west-topographic.svg"),
    linear-gradient(108deg,#132a28 0%,#20453f 53%,#1a3331 100%)!important;
  background-size:100% 100%,cover!important;
  background-position:center center!important;
  background-repeat:no-repeat!important;
}

