/* POLARIS production UI CSS v0.2.8 — approved staging v12 cards plus production-wide nav and archive layout fixes. Loaded only after approved 219-post switch. */
/* polaris_outdoor_blog | Staging /ui-test/ | Step 1: common brand styling
 * Bundled from verified staging CSS v12. Load only after the production launch gate.
 * Does not modify theme files or the Additional CSS field.
 * Green #193C37 / Blue #21658F / Pale #EAF4FA
 */
:root {
  --pob-forest: #193C37;
  --pob-blue: #21658F;
  --pob-pale-blue: #EAF4FA;
  --pob-text: #203B35;
  --pob-border: #DCE6DF;
  /* Same outer width as POLARIS Compact Footer v0.6.1. */
  --pob-canvas-max: 1256px;
  --pob-canvas-width: min(var(--pob-canvas-max), calc(100vw - 32px));
}

/* General site background and readable text. */
body { background-color: #F5F7F3; color: var(--pob-text); }
#main, .main { background-color: #FFFFFF; }

/* Shared light header. Nav details and icons are owned here; no new plugin is added. */
#header-container, .header-container, #header, .header {
  background-color: #FBFDFC !important;
  color: #21453F !important;
}
#header-container .site-name-text,
#header-container .site-description,
#header-container .logo-text,
#header-container a,
.header-container .site-name-text,
.header-container .site-description,
.header-container .logo-text,
.header-container a { color:#21453F !important; }

/* Article list: visual boundaries only. Image sizing follows in Step 2. */
.entry-card-wrap { border: 1px solid var(--pob-border); border-radius: 6px; overflow: hidden; }
.entry-card-wrap:hover { border-color: #9EBECF; }
.entry-card-title { color: var(--pob-forest); }
.entry-card-wrap:hover .entry-card-title { color: var(--pob-blue); }

/* Keyboard visibility. */
a:focus-visible, button:focus-visible { outline: 3px solid var(--pob-blue); outline-offset: 2px; }



/* The six named menu classes determine the icon (WordPress CSS class field). */
.pob-nav-hiking { --pob-nav-icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0OCIgaGVpZ2h0PSI0OCIgdmlld0JveD0iMCAwIDQ4IDQ4IiBmaWxsPSJub25lIiBzdHJva2U9ImJsYWNrIiBzdHJva2Utd2lkdGg9IjIuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48cGF0aCBkPSJNNSAzOCAxOSAxNWw3IDEwIDUtNyAxMiAyMEg1WiIvPjxwYXRoIGQ9Im0xNCAyNCA1LTkgNiA5Ii8+PHBhdGggZD0ibTI2IDI3IDUtOSA1IDkiLz48L3N2Zz4="); }
.pob-nav-trail { --pob-nav-icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0OCIgaGVpZ2h0PSI0OCIgdmlld0JveD0iMCAwIDQ4IDQ4IiBmaWxsPSJub25lIiBzdHJva2U9ImJsYWNrIiBzdHJva2Utd2lkdGg9IjIuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48cGF0aCBkPSJNMTUgMTFjLTMtMS02IDEtNyA0bC0zIDhjLTEgNCAxIDcgNCA4bDQgMSA1LTQtMS02IDQtNS02LTZaIi8+PHBhdGggZD0iTTMzIDE4YzMtMSA2IDEgNyA0bDIgOWMxIDQtMSA3LTQgOGwtNCAxLTUtNCAxLTYtNC01IDctN1oiLz48cGF0aCBkPSJtMTAgMzUgNiAybTE2IDUgNiAxIi8+PC9zdmc+"); }
.pob-nav-orienteering { --pob-nav-icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0OCIgaGVpZ2h0PSI0OCIgdmlld0JveD0iMCAwIDQ4IDQ4IiBmaWxsPSJub25lIiBzdHJva2U9ImJsYWNrIiBzdHJva2Utd2lkdGg9IjIuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48Y2lyY2xlIGN4PSIyNCIgY3k9IjI0IiByPSIxOCIvPjxjaXJjbGUgY3g9IjI0IiBjeT0iMjQiIHI9IjMiLz48cGF0aCBkPSJ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ob-nav-portfolio,
#navi .navi-in > ul > li.menu-item > a[href$="/portfolio/"] { --pob-nav-icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0OCIgaGVpZ2h0PSI0OCIgdmlld0JveD0iMCAwIDQ4IDQ4IiBmaWxsPSJub25lIiBzdHJva2U9ImJsYWNrIiBzdHJva2Utd2lkdGg9IjIuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48cGF0aCBkPSJNMTQgOGgyMHYxM2ExMCAxMCAwIDAgMS0yMCAwVjhaIi8+PHBhdGggZD0iTTE0IDExSDd2NWMwIDYgMyA5IDkgOW0xOC0xNGg3djVjMCA2LTMgOS05IDkiLz48cGF0aCBkPSJNMjQgMzF2N20tOCA0aDE2bS0xMi00aDgiLz48L3N2Zz4="); }

/* One icon registry for Cocoon header and copied menu contexts. */
.menu-item[class*="pob-nav-"] > a::before,
#navi .navi-in > ul > li.menu-item > a[href$="/portfolio/"]::before {
  content: "";
  display: inline-block;
  vertical-align: -0.23em;
  width: 1.1em;
  height: 1.1em;
  flex: 0 0 1.1em;
  margin-inline-end: .45em;
  background: currentColor;
  -webkit-mask-image: var(--pob-nav-icon);
  mask-image: var(--pob-nav-icon);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

/* ==========================================================================
 * Canonical Cocoon desktop header menu (production v0.2)
 * This replaces the contradictory old green/blue navigation blocks.
 * Auto-added .pob-nav-* classes are used for icons, not for spacing.
 * All top-level items have the same appearance, including the map link.
 * ========================================================================== */
@media (min-width: 835px) {
  #navi, #navi.navi, #navi .navi-in,
  #navi .navi-in > ul, #navi .navi-in > ul > li.menu-item {
    background: #FBFDFC !important;
    box-shadow: none !important;
    color: #21453F !important;
  }
  #navi .navi-in > ul {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 5px !important;
    padding: 8px 12px !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 1366px !important;
  }
  #navi .navi-in > ul > li.menu-item {
    width: auto !important;
    min-width: 0 !important;
    flex: 0 1 auto !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  #navi .navi-in > ul > li.menu-item > a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-sizing: border-box !important;
    min-height: 51px !important;
    height: auto !important;
    width: auto !important;
    padding: 10px 13px !important;
    margin: 0 !important;
    border: 1px solid #D9E5E1 !important;
    border-radius: 7px !important;
    background: #F7FAF8 !important;
    color: #21453F !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: none !important;
  }
  #navi .navi-in > ul > li.menu-item > a:hover,
  #navi .navi-in > ul > li.menu-item > a:focus-visible,
  #navi .navi-in > ul > li.menu-item.current-menu-item > a,
  #navi .navi-in > ul > li.menu-item.current-menu-ancestor > a,
  #navi .navi-in > ul > li.menu-item.current-category-ancestor > a {
    background: #21658F !important;
    border-color: #21658F !important;
    color: #FFFFFF !important;
  }
  #navi .navi-in > ul > li.menu-item[class*="pob-nav-"] > a::before,
  #navi .navi-in > ul > li.menu-item > a[href$="/portfolio/"]::before {
    content: "";
    display: block !important;
    position: static !important;
    width: 20px !important;
    height: 20px !important;
    flex: 0 0 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: currentColor !important;
    -webkit-mask: var(--pob-nav-icon) center / contain no-repeat;
    mask: var(--pob-nav-icon) center / contain no-repeat;
  }
  /* The map plugin owns this one item. Style it like the six navigation tabs. */
  #navi .navi-in > ul > li.pob-map-nav-item > a { box-shadow: none !important; }
  #navi .navi-in > ul li ul.sub-menu {
    border: 1px solid #D9E5E1 !important;
    border-radius: 6px;
    box-shadow: 0 10px 24px rgba(15,50,55,.12) !important;
    background: #FFFFFF !important;
    z-index: 1000;
  }
  #navi .navi-in ul.sub-menu a {color:#21453F !important; background:#fff !important;}
  #navi .navi-in ul.sub-menu a:hover,
  #navi .navi-in ul.sub-menu a:focus-visible {color:#21658F !important;background:#EAF4FA !important;}
}
@media (min-width: 835px) and (max-width: 1150px) {
  #navi .navi-in > ul > li.menu-item > a {padding: 9px 10px !important; font-size: 13px !important;}
}

/*
 * 2026-11-19: The page-width rules formerly here (1120px Home and Portfolio,
 * 1256px categories) were moved to the single footer-aligned canvas stylesheet.
 * Keep this file focused on typography/navigation and other component styles.
 */

/* Portfolio V5 is a purpose-built fixed-page layout, not a blog post.
 * Hide Cocoon auto TOC and its sidebar ONLY for a page containing the
 * [pob_portfolio_v5] shortcode. The portfolio's own <details> lists stay.
 * The same full-width canvas is used for homepage, categories and portfolio.
 */
body.pob-ui-portfolio #sidebar,
body.pob-ui-portfolio .toc,
body.pob-ui-portfolio .toc-wrap,
body.pob-ui-portfolio #toc {
  display: none !important;
}
/* The portfolio shortcode and Cocoon's static-page article wrapper must
 * fill the SAME available interior width as the home hero. The v0.2.4
 * outer-canvas rule alone did not address the inherited entry-content width.
 * Scope every selector to the shortcode page; ordinary posts are unaffected. */
body.pob-ui-portfolio #main > article,
body.pob-ui-portfolio #main > .article,
body.pob-ui-portfolio #main .entry-content,
body.pob-ui-portfolio #main .pobpf-root {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
body.pob-ui-portfolio #main .entry-content {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
body.pob-ui-portfolio .pobpf-root .site {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
}


/* Version 0.2.4 — Portfolio V5 supplies its own semantic H1 and content.
 * Suppress ONLY Cocoon's surrounding page heading/date/SNS components.
 * The site's post titles, article sharing and custom portfolio hero remain.
 */
body.pob-ui-portfolio #main .article-header,
body.pob-ui-portfolio #main .entry-title,
body.pob-ui-portfolio #main .sns-share,
body.pob-ui-portfolio #main .sns-follow {
  display: none !important;
}
body.pob-ui-portfolio #main .entry-content {
  margin-top: 0 !important;
}

/* ========================================================================
 * POB / Staging UI Test | Category Suite compact cards v12
 * 2026-11-18
 * This is the ONLY Category Suite thumbnail override in this consolidated CSS.
 * Approved homepage Selected Stories v10 is untouched.
 * Hiking Step7 uses a separate template; its card is intentionally NOT changed.
 * ======================================================================== */

/* All screen widths: frame proportions and uncropped images. */
.pob-suite .pob-suite-card .pob-suite-cover {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  background: #edf3ef;
  box-sizing: border-box;
}
.pob-suite .pob-suite-card .pob-suite-cover img.pob-suite-card-image {
  display: block !important;
  position: static !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Mobile only: 16:9 thumbnail | title, group label directly below thumbnail. */
@media screen and (max-width: 767px) {
  .pob-suite .pob-suite-card-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
  }
  .pob-suite .pob-suite-card {
    min-width: 0 !important;
  }
  .pob-suite .pob-suite-card .pob-suite-card-link {
    display: grid !important;
    grid-template-columns: min(124px, 37%) minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    column-gap: 10px !important;
    row-gap: 4px !important;
    align-items: start !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 9px 10px !important;
  }
  .pob-suite .pob-suite-card .pob-suite-cover {
    grid-column: 1 !important;
    grid-row: 1 !important;
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 6px !important;
    align-self: start !important;
  }
  /* Existing markup nests type/title/date in this span. Flatten for 2D layout. */
  .pob-suite .pob-suite-card .pob-suite-card-copy {
    display: contents !important;
  }
  .pob-suite .pob-suite-card .pob-suite-card-type {
    grid-column: 1 !important;
    grid-row: 2 !important;
    position: static !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 3px 5px !important;
    box-sizing: border-box !important;
    border: 0 !important;
    border-radius: 4px !important;
    background: #eaf4fa !important;
    color: #21658f !important;
    font-size: 11px !important;
    font-weight: 650 !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: left !important;
  }
  .pob-suite .pob-suite-card .pob-suite-card-title {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-height: 4.5em !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    overflow-wrap: anywhere;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    text-align: left !important;
    align-self: start !important;
  }
  .pob-suite .pob-suite-card .pob-suite-card-bottom {
    grid-column: 2 !important;
    grid-row: 2 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    align-self: end !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    gap: 4px !important;
  }
  .pob-suite .pob-suite-card .pob-suite-card-bottom time {
    font-size: 11px !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
  }
  .pob-suite .pob-suite-card .pob-suite-card-cta {
    font-size: 0 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }
  .pob-suite .pob-suite-card .pob-suite-card-cta::after {
    content: "↗";
    font-size: 17px;
    color: #21658f;
  }
}
