/* ========================================================================== 
   PORTAL V8 — commerce-first navigation, discovery and retention layer.
   Loaded after portal-v7.css. The palette deliberately stays restrained:
   sacred imagery remains the focus and controls do not imitate a marketplace.
   ========================================================================== */

:root {
  --v8-forest: #12382f;
  --v8-forest-2: #0c2d26;
  --v8-gold: #d8bb6d;
  --v8-gold-soft: #f6ecd2;
  --v8-ivory: #fbf8f0;
  --v8-ink: #202b27;
  --v8-muted: #65716d;
  --v8-line: #ded6c6;
  --v8-shadow: 0 20px 55px rgba(22, 45, 38, .16);
}

/* Commerce-first desktop navigation. */
.topbar--portal .topbar__inner { max-width: 1540px; }
.topbar--portal .topbar__nav { margin-left: auto; }
.topbar--portal .topbar__nav ul { display: flex; align-items: center; gap: 7px; }
.topbar--portal .topbar__nav li + li { margin-left: 0 !important; }
.topbar--portal .topbar__nav a,
.topbar--portal .topbar__nav button {
  min-height: 39px;
  padding: 0 12px;
  color: #25342f;
  font: inherit;
  font-size: 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.topbar--portal .topbar__nav .topbar__catalog {
  display: inline-flex;
  align-items: center;
  padding: 0 17px;
  color: #263019 !important;
  font-weight: 750;
  background: var(--v8-gold) !important;
  border: 1px solid #ecd793;
  border-radius: 999px;
}
.topbar--portal .topbar__nav .v8-nav-search {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--v8-forest);
  border: 1px solid rgba(18,56,47,.26);
  border-radius: 999px;
}
.v8-nav-search svg { width: 16px; height: 16px; }
.v8-nav-help { color: #765a18 !important; }
.v8-nav-more { position: relative; }
.v8-nav-more > button::after { content: "⌄"; margin-left: 6px; color: #d8bb6d; }
.v8-nav-more__menu {
  position: absolute;
  z-index: 80;
  top: calc(100% + 8px);
  right: 0;
  display: none;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  width: 390px;
  padding: 13px;
  background: #fff;
  border: 1px solid #dcd5c7;
  border-radius: 13px;
  box-shadow: var(--v8-shadow);
}
.v8-nav-more.is-open .v8-nav-more__menu { display: grid; }
.topbar--portal .topbar__nav .v8-nav-more__menu a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 10px;
  color: #24342f;
  border-radius: 8px;
}
.topbar--portal .topbar__nav .v8-nav-more__menu a:hover { background: #f5f0e4; }
.v8-nav-saved {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 39px;
  height: 39px;
  padding: 0 !important;
  color: var(--v8-forest) !important;
  border: 1px solid rgba(18,56,47,.22) !important;
  border-radius: 50%;
}
.v8-nav-saved span { font-size: 17px; line-height: 1; }
.v8-nav-saved b {
  position: absolute;
  top: -4px;
  right: -4px;
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  color: #253016;
  font-size: 9px;
  background: var(--v8-gold);
  border-radius: 999px;
}
.v8-nav-cart { position: relative; display: inline-flex; align-items: center; gap: 6px; color: var(--v8-forest) !important; border: 1px solid rgba(18,56,47,.22) !important; border-radius: 999px; }
.v8-nav-cart svg { width: 17px; height: 17px; }
.v8-nav-cart b { display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; color: #fff; font-size: 9px; background: #7b8581; border-radius: 999px; }
.v8-nav-cart.has-items { color: #263019 !important; font-weight: 750 !important; background: var(--v8-gold) !important; border-color: #d2b35e !important; }
.v8-nav-cart.has-items b { color: #fff; background: var(--v8-forest); }

/* Universal search modal. */
.v8-overlay {
  position: fixed;
  z-index: 10010;
  inset: 0;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 8vh 18px 24px;
  background: rgba(8, 28, 23, .76);
  backdrop-filter: blur(7px);
}
.v8-overlay.is-open { display: flex; }
.v8-dialog {
  position: relative;
  width: min(880px, 100%);
  max-height: 84vh;
  overflow: auto;
  background: #fff;
  border: 1px solid rgba(216,187,109,.6);
  border-radius: 18px;
  box-shadow: 0 34px 90px rgba(0,0,0,.32);
}
.v8-dialog__head { padding: 25px 27px 18px; color: #fff; background: var(--v8-forest); }
.v8-dialog__head p { margin: 0 0 5px; color: #e6cc84; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }
.v8-dialog__head h2 { margin: 0; font-size: clamp(23px, 3vw, 35px); font-weight: 560; }
.v8-dialog__close {
  position: absolute;
  top: 17px;
  right: 17px;
  width: 38px;
  height: 38px;
  color: #fff;
  font-size: 22px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 50%;
  cursor: pointer;
}
.v8-search { padding: 20px 27px 27px; }
.v8-search__field { position: relative; display: grid; grid-template-columns: 25px 1fr auto; align-items: center; gap: 10px; padding: 8px 10px 8px 16px; border: 2px solid #b99a4e; border-radius: 12px; }
.v8-search__field svg { width: 22px; height: 22px; color: #8d722f; }
.v8-search__field input { min-width: 0; height: 45px; font: inherit; font-size: 17px; border: 0; outline: 0; }
.v8-search__field button { min-height: 43px; padding: 0 20px; color: #fff; font-weight: 700; background: var(--v8-forest); border: 0; border-radius: 8px; cursor: pointer; }
.v8-search__tabs { display: flex; gap: 7px; margin: 14px 0; overflow-x: auto; }
.v8-search__tabs button { flex: 0 0 auto; padding: 8px 12px; color: #4e5b56; background: #f5f1e8; border: 1px solid #e1d9c9; border-radius: 999px; cursor: pointer; }
.v8-search__tabs button.is-active { color: #fff; background: var(--v8-forest); border-color: var(--v8-forest); }
.v8-search__hint { margin: 8px 0 0; color: var(--v8-muted); font-size: 12px; }
.v8-search__results { display: grid; gap: 8px; margin-top: 17px; }
.v8-search-result { display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 13px; min-height: 72px; padding: 8px 11px; color: var(--v8-ink); border: 1px solid #e7e0d2; border-radius: 10px; }
.v8-search-result:hover { border-color: #c4a756; background: #fffcf5; }
.v8-search-result img { width: 58px; height: 58px; object-fit: cover; border-radius: 7px; }
.v8-search-result__mark { display: grid; place-items: center; width: 48px; height: 48px; color: #8f7330; font-size: 20px; background: #f5ecd3; border-radius: 50%; }
.v8-search-result strong { display: block; font-size: 15px; }
.v8-search-result small { display: block; margin-top: 4px; color: var(--v8-muted); font-size: 11px; }
.v8-search-result > b { color: #987a32; font-size: 12px; }
.v8-search-empty { padding: 25px; text-align: center; color: var(--v8-muted); background: #f8f5ed; border-radius: 10px; }
.v8-search-empty button { margin-top: 12px; color: var(--v8-forest); font-weight: 700; background: none; border: 0; border-bottom: 1px solid; cursor: pointer; }

/* Catalog load-more, favourites and comparison. */
.card, .home-product { position: relative; }
.v8-card-tools { position: static; display: block; margin-top: 10px; }
.v8-card-tools button,
.v8-product-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  padding: 8px 13px;
  color: #304039;
  font-size: 13px;
  font-weight: 700;
  background: #f8f3e8;
  border: 1px solid rgba(29,58,49,.18);
  border-radius: 9px;
  box-shadow: none;
  cursor: pointer;
}
.home-product > .v8-card-tools { margin: 0 16px 16px; }
.v8-card-tools button > span:first-child,
.v8-product-save > span:first-child { font-size: 19px; line-height: 1; }
.v8-card-tools button.is-active,
.v8-product-save.is-active { color: #fff; background: #9b7830; border-color: #9b7830; }
.v8-loadmore { display: grid; justify-items: center; gap: 9px; margin: 32px auto 6px; }
.v8-loadmore button { min-width: 260px; min-height: 54px; padding: 0 24px; color: #fff; font-weight: 740; background: var(--v8-forest); border: 1px solid var(--v8-forest); border-radius: 8px; cursor: pointer; }
.v8-loadmore small { color: var(--v8-muted); }
.v8-saved-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 13px; padding: 21px; }
.v8-saved-card { position: relative; padding: 9px; color: var(--v8-ink); border: 1px solid #e1dacb; border-radius: 10px; }
.v8-saved-card > a { display: block; color: inherit; text-decoration: none; }
.v8-saved-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 7px; }
.v8-saved-card strong { display: block; margin-top: 8px; font-size: 13px; line-height: 1.35; }
.v8-saved-card button { position: absolute; top: 13px; right: 13px; width: 30px; height: 30px; background: #fff; border: 1px solid #ddd3c1; border-radius: 50%; cursor: pointer; }
.v8-saved-empty { padding: 40px 24px; text-align: center; color: var(--v8-muted); }
.v8-product-actions { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 10px; margin: 16px 0 0; }
.v8-product-actions button { width: 100%; min-width: 0; min-height: 48px; padding: 10px 16px; border-radius: 10px; }
.v8-product-help { color: #173f35; font: 700 14px/1.2 inherit; background: #f8f3e8; border: 1px solid rgba(29,58,49,.2); cursor: pointer; }
.v8-product-help:hover,.v8-product-save:hover { border-color: #9b7830; background: #fffaf0; }
.v8-hero-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 9px; }
.v8-hero-thumbs a { border: 1px solid #ddd4c4; border-radius: 6px; overflow: hidden; }
.v8-hero-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.v8-recent { margin: 36px 0; padding: 27px; background: #faf6ec; border: 1px solid #e5dcc8; border-radius: 12px; }
.v8-recent h2 { margin: 0 0 18px; font-size: 24px; }
.v8-recent__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.v8-recent__grid a { color: #263530; }
.v8-recent__grid img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 7px; }
.v8-recent__grid strong { display: block; margin-top: 7px; font-size: 12px; line-height: 1.35; }

/* Guided catalog chooser. */
.v8-chooser { padding: 76px 0; background: linear-gradient(140deg, #f7f0df, #fff); }
.v8-chooser__box { display: grid; grid-template-columns: minmax(0,.8fr) minmax(420px,1.2fr); gap: 55px; align-items: center; }
.v8-chooser__copy h2 { margin: 8px 0 16px; color: var(--v8-forest); font-size: clamp(32px,4vw,50px); font-weight: 540; line-height: 1.06; }
.v8-chooser__copy p { color: #56635f; line-height: 1.7; }
.v8-chooser__panel { padding: 24px; background: #fff; border: 1px solid #ded4be; border-radius: 15px; box-shadow: var(--v8-shadow); }
.v8-chooser__question { margin: 0 0 14px; font-size: 19px; }
.v8-chooser__options { display: grid; grid-template-columns: repeat(2,1fr); gap: 9px; }
.v8-chooser__options button { min-height: 58px; padding: 10px 13px; color: #283833; text-align: left; background: #f8f4eb; border: 1px solid #e3dac8; border-radius: 9px; cursor: pointer; }
.v8-chooser__options button:hover { border-color: #b89b4e; background: #fffaf0; }
.v8-chooser__result { padding: 16px; color: #fff; background: var(--v8-forest); border-radius: 10px; }
.v8-chooser__result p { color: rgba(255,255,255,.76); }
.v8-chooser__result a { display: inline-flex; min-height: 46px; align-items: center; padding: 0 18px; color: #2f351e; font-weight: 750; background: var(--v8-gold); border-radius: 7px; }
.v8-chooser__restart { margin-left: 12px; color: #fff; background: none; border: 0; border-bottom: 1px solid rgba(255,255,255,.45); cursor: pointer; }

/* Prayer rosette and church-year navigation. */
.v8-rosette { margin: 34px 0 42px; padding: 31px; background: radial-gradient(circle at center, #fff 0 25%, #f7f0dd 26% 100%); border: 1px solid #ded3ba; border-radius: 24px; }
.v8-rosette__title { text-align: center; }
.v8-rosette__title p { margin: 0; color: #98762c; font-size: 11px; letter-spacing: .11em; text-transform: uppercase; }
.v8-rosette__title h2 { margin: 7px 0 24px; color: var(--v8-forest); font-size: 31px; }
.v8-rosette__petals { position: relative; display: grid; grid-template-columns: repeat(4,1fr); gap: 11px; }
.v8-rosette__petals a { display: grid; place-items: center; min-height: 105px; padding: 15px; color: #243631; text-align: center; font-weight: 690; line-height: 1.35; background: rgba(255,255,255,.88); border: 1px solid #d9c99f; border-radius: 52% 52% 18px 18px; box-shadow: 0 7px 19px rgba(85,65,19,.07); }
.v8-rosette__petals a:nth-child(even) { border-radius: 18px 18px 52% 52%; }
.v8-rosette__petals a span { display: block; margin-bottom: 6px; color: #a48230; font-size: 18px; }
.v8-yearwheel { margin: 32px 0 42px; padding: 28px; color: #fff; background: var(--v8-forest); border: 1px solid #d0b25f; border-radius: 18px; }
.v8-yearwheel h2 { margin: 0 0 7px; color: #f3dfaa; font-size: 29px; }
.v8-yearwheel > p { margin: 0 0 20px; color: rgba(255,255,255,.7); }
.v8-yearwheel__months { display: grid; grid-template-columns: repeat(6,1fr); gap: 7px; }
.v8-yearwheel__months a { display: grid; place-items: center; min-height: 48px; padding: 5px; color: #fff; font-size: 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; }
.v8-yearwheel__months a:hover { color: #243019; background: var(--v8-gold); }
.v8-calendar-tools { display: flex; flex-wrap: wrap; gap: 9px; margin: 18px 0 28px; }
.v8-calendar-tools button,
.v8-calendar-tools a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 15px; color: var(--v8-forest); font-weight: 700; background: #f6edda; border: 1px solid #d8c591; border-radius: 8px; cursor: pointer; }
.v8-reader-tools { position: sticky; z-index: 15; top: 66px; display: flex; justify-content: flex-end; gap: 6px; margin: 0 0 14px; pointer-events: none; }
.v8-reader-tools button { width: 38px; height: 38px; color: #fff; background: var(--v8-forest); border: 1px solid rgba(255,255,255,.24); border-radius: 50%; pointer-events: auto; cursor: pointer; }
body.v8-reading-large .article .container--narrow > p,
body.v8-reading-large .article .prayer,
body.v8-reading-large .article li { font-size: 1.17em; line-height: 1.8; }
body.v8-reading-dark { color: #e8e2d4; background: #15221e; }
body.v8-reading-dark .article,
body.v8-reading-dark main { color: #e8e2d4; background: #15221e; }
body.v8-reading-dark .article h1,
body.v8-reading-dark .article h2,
body.v8-reading-dark .article h3 { color: #f1d995; }
body.v8-reading-dark .article a { color: #ebcf80; }

/* Editorial trust and contextual subscriptions. */
.v8-editorial { margin: 35px 0; padding: 18px 20px; color: #4e5c57; font-size: 12px; line-height: 1.65; background: #f7f3e9; border-left: 3px solid #b99846; }
.v8-editorial strong { display: block; color: #253630; font-size: 13px; }
.v8-editorial dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px 20px; margin: 12px 0; }
.v8-editorial dl div { display: grid; grid-template-columns: 110px 1fr; gap: 8px; }
.v8-editorial dt { color: #6c7773; }
.v8-editorial dd { margin: 0; color: #263630; font-weight: 650; }
.v8-editorial p { margin: 9px 0 0; }
.v8-subscribe { position: relative; overflow: hidden; padding: 67px 0; color: #fff; background: var(--v8-forest-2); }
.v8-subscribe::after { content: "☦"; position: absolute; right: 5%; bottom: -80px; color: rgba(216,187,109,.06); font-size: 270px; }
.v8-subscribe__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,.9fr) minmax(420px,1.1fr); gap: 65px; align-items: center; }
.v8-subscribe h2 { margin: 8px 0 17px; color: #f3e4b9; font-size: clamp(32px,4vw,49px); font-weight: 540; line-height: 1.08; }
.v8-subscribe__lead { color: rgba(255,255,255,.72); font-size: 16px; line-height: 1.7; }
.v8-subscribe__benefits { display: grid; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.v8-subscribe__benefits li::before { content: "✦"; margin-right: 9px; color: var(--v8-gold); }
.v8-subscribe form { padding: 23px; color: var(--v8-ink); background: #fff; border: 1px solid #dac47e; border-radius: 14px; }
.v8-subscribe form > label { display: block; margin-bottom: 12px; }
.v8-subscribe form > label > span { display: block; margin-bottom: 5px; font-size: 12px; font-weight: 700; }
.v8-subscribe input[type="email"],
.v8-subscribe input[type="text"] { width: 100%; height: 50px; padding: 0 13px; font: inherit; border: 1px solid #cfc7b8; border-radius: 8px; }
.v8-subscribe__chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.v8-subscribe__chips label { position: relative; }
.v8-subscribe__chips input { position: absolute; opacity: 0; }
.v8-subscribe__chips span { display: inline-flex; padding: 8px 10px; font-size: 11px; background: #f5f1e8; border: 1px solid #ddd4c3; border-radius: 999px; cursor: pointer; }
.v8-subscribe__chips input:checked + span { color: #fff; background: var(--v8-forest); border-color: var(--v8-forest); }
.v8-subscribe__consent { display: flex !important; align-items: flex-start; gap: 8px; color: #626d69; font-size: 10px; line-height: 1.45; }
.v8-subscribe__consent input { margin-top: 2px; }
.v8-subscribe__consent span { margin: 0 !important; font-weight: 400 !important; }
.v8-subscribe__submit { width: 100%; min-height: 50px; color: #2c331d; font-weight: 760; background: var(--v8-gold); border: 1px solid #c9aa56; border-radius: 8px; cursor: pointer; }
.v8-subscribe__status { min-height: 18px; margin: 11px 0 0; color: #52605b; font-size: 11px; }
.v8-subscribe__success { padding: 18px; color: #fff; background: var(--v8-forest); border-radius: 9px; }
.v8-subscribe__success a { display: inline-flex; margin: 10px 7px 0 0; padding: 9px 12px; color: #fff; background: #0876a8; border-radius: 7px; }

/* Four real checkout stages. Fields stay in the DOM, so rerenders and browser
   autofill retain entered data while only the current stage is visible. */
.v8-checkout-steps { position: sticky; z-index: 3; top: -1px; display: grid; grid-template-columns: repeat(4,1fr); margin: 0 0 18px; padding: 7px; background: #fff; border: 1px solid #e1d8c7; border-radius: 10px; }
.v8-checkout-steps button { min-height: 35px; padding: 7px 4px; color: #7b8581; text-align: center; font: inherit; font-size: 9px; background: transparent; border: 0; border-radius: 7px; }
.v8-checkout-steps button.is-active { color: #fff; background: var(--v8-forest); }
.v8-checkout-steps button.is-done { color: var(--v8-forest); cursor: pointer; }
.v8-checkout-steps button.is-done::before { content: "✓ "; color: #9c7a28; }
.v8-checkout-pane[hidden] { display: none !important; }
.v8-checkout-nav { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; margin-top: 18px; }
.v8-checkout-nav > button { min-height: 47px; padding: 0 18px; font: inherit; font-weight: 720; border-radius: 8px; cursor: pointer; }
.v8-checkout-back { color: #43524d; background: #fff; border: 1px solid #ccc2b1; }
.v8-checkout-next { justify-self: end; color: #fff; background: var(--v8-forest); border: 1px solid var(--v8-forest); }
.v8-checkout-nav p { grid-column: 1 / -1; min-height: 18px; margin: 0; color: #a32020; font-size: 12px; }
.v8-checkout-review { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; margin-bottom: 16px; padding: 16px; color: #fff; background: var(--v8-forest); border-radius: 10px; }
.v8-checkout-review strong { grid-column: 1 / -1; color: #ecd795; }
.v8-checkout-review p { margin: 0; font-size: 12px; opacity: .78; }
.v8-checkout-review b { font-size: 17px; }

/* Full catalog facets. */
.v9-catalog-filters { margin: 22px 0 26px; padding: 20px; background: #f8f4ea; border: 1px solid #ded3be; border-radius: 13px; }
.v9-catalog-filters__top { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)) auto; gap: 11px; align-items: end; }
.v9-catalog-filters__top label:not(.v9-filter-check) > span { display: block; margin-bottom: 5px; color: #5d6a65; font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.v9-catalog-filters select { width: 100%; min-height: 46px; padding: 0 34px 0 11px; color: #263630; font: inherit; font-size: 12px; background: #fff; border: 1px solid #cfc5b2; border-radius: 8px; }
.v9-filter-check { display: flex; align-items: center; min-height: 46px; padding: 0 12px; color: #2a3b35; font-size: 11px; font-weight: 700; background: #fff; border: 1px solid #cfc5b2; border-radius: 8px; }
.v9-filter-check input { margin-right: 7px; }
.v9-catalog-filters__purpose { margin-top: 17px; }
.v9-catalog-filters__purpose > strong { display: block; margin-bottom: 8px; color: #5d6a65; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.v9-catalog-filters__purpose > div { display: flex; flex-wrap: wrap; gap: 7px; }
.v9-catalog-filters__purpose label { position: relative; }
.v9-catalog-filters__purpose input { position: absolute; opacity: 0; }
.v9-catalog-filters__purpose span { display: inline-flex; padding: 8px 10px; color: #45534e; font-size: 10px; background: #fff; border: 1px solid #d4cab8; border-radius: 999px; cursor: pointer; }
.v9-catalog-filters__purpose input:checked + span { color: #fff; background: var(--v8-forest); border-color: var(--v8-forest); }
.v9-catalog-filters__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 13px; border-top: 1px solid #ddd3c1; }
.v9-catalog-filters__foot span { color: #233831; font-weight: 760; }
.v9-catalog-filters__foot button { padding: 7px 10px; color: #6f5d2e; font: inherit; font-size: 11px; background: transparent; border: 0; text-decoration: underline; cursor: pointer; }
.card__price small { color: #68736f; font-size: 9px; font-weight: 600; }

/* Behaviour-based recommendations, computed locally in the browser. */
.v9-personal { margin: 42px auto; padding: 25px; background: #eef3ef; border: 1px solid #cfdacf; border-radius: 14px; }
.v9-personal__head { display: grid; grid-template-columns: 1fr minmax(220px,.65fr); gap: 25px; align-items: end; margin-bottom: 19px; }
.v9-personal__head p { margin: 0 0 4px; color: #8b702b; font-size: 10px; font-weight: 780; text-transform: uppercase; letter-spacing: .1em; }
.v9-personal__head h2 { margin: 0; color: #1c352d; font-size: 28px; }
.v9-personal__head small { color: #65716d; font-size: 10px; line-height: 1.55; }
.v9-personal__grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 10px; }
.v9-personal__grid .card { min-width: 0; }
.v9-personal__grid .card__title { font-size: 11px; }
.v9-personal__grid .card__btn { min-height: 35px; font-size: 10px; }

/* Static semantic bridge: article/prayer/feast/name ↔ relevant icons. */
.v9-context { width: min(1180px,calc(100% - 34px)); margin: 54px auto; padding: 27px; background: #fbf7ed; border-top: 3px solid var(--v8-gold); border-radius: 4px 4px 13px 13px; }
.v9-context > p { margin: 0 0 5px; color: #9a7927; font-size: 10px; font-weight: 780; text-transform: uppercase; letter-spacing: .12em; }
.v9-context > h2 { margin: 0 0 20px; color: #1d352d; font-size: clamp(23px,3vw,34px); }
.v9-context__grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.v9-context__grid > a { min-width: 0; color: #263832; background: #fff; border: 1px solid #ded5c3; border-radius: 10px; transition: transform .2s ease,border-color .2s ease; }
.v9-context__grid > a:hover { transform: translateY(-2px); border-color: #b99a4b; }
.v9-context__article { display: flex; flex-direction: column; min-height: 145px; padding: 17px; }
.v9-context__article span { color: #8b702b; font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.v9-context__article strong { margin-top: 9px; font-size: 14px; line-height: 1.38; }
.v9-context__article small { margin-top: auto; padding-top: 12px; color: #567168; }
.v9-context__icon { display: grid; grid-template-columns: 82px 1fr; gap: 12px; align-items: center; padding: 8px; }
.v9-context__icon img { width: 82px; height: 108px; object-fit: cover; border-radius: 6px; }
.v9-context__icon span { min-width: 0; }
.v9-context__icon small,.v9-context__icon strong,.v9-context__icon b { display: block; }
.v9-context__icon small { color: #8b702b; font-size: 8px; text-transform: uppercase; }
.v9-context__icon strong { margin: 6px 0; font-size: 11px; line-height: 1.35; }
.v9-context__icon b { color: #29473e; font-size: 10px; }
.v9-sources-policy { margin: 45px auto; padding: 25px; background: #f6f1e6; border: 1px solid #ddd2bd; border-radius: 12px; }
.v9-sources-policy h2 { margin-top: 0; }

/* Mobile contextual bar replaces the two messenger-only buttons. */
.v8-mobile-actions { display: none; }
.v8-mobile-head-actions { display: none; }

@media (max-width: 1180px) {
  .topbar--portal .topbar__nav a,
  .topbar--portal .topbar__nav button { padding-left: 8px; padding-right: 8px; font-size: 10px; }
  .topbar--portal .topbar__nav .topbar__catalog { padding: 0 12px; }
  .v8-nav-cart span { display: none; }
  .v9-personal__grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 900px) {
  body { padding-bottom: 70px; }
  .msgbar { display: none !important; }
  .cartbtn { display: none !important; }
  .v8-mobile-head-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; margin-right: 7px; }
  .v8-mobile-head-actions button { display: grid; place-items: center; width: 39px; height: 39px; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
  .v8-mobile-head-actions svg { width: 19px; height: 19px; }
  .v8-mobile-actions { position: fixed; z-index: 9000; inset: auto 0 0; display: grid; grid-template-columns: repeat(3,1fr); min-height: 66px; padding: 5px max(6px, env(safe-area-inset-left)) calc(5px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #d6cebe; box-shadow: 0 -10px 28px rgba(25,46,39,.13); }
  .v8-mobile-actions button,
  .v8-mobile-actions a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; padding: 5px 3px; color: #34413c; font-size: 9px; font-weight: 680; background: transparent; border: 0; border-radius: 7px; }
  .v8-mobile-actions svg { width: 20px; height: 20px; }
  .v8-mobile-actions .is-primary { color: #fff; background: var(--v8-forest); }
  .v8-mobile-actions strong { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .v8-dialog { max-height: 91vh; border-radius: 14px; }
  .v8-saved-grid { grid-template-columns: repeat(2,1fr); }
  .v8-chooser__box,
  .v8-subscribe__grid { grid-template-columns: 1fr; gap: 29px; }
  .v8-yearwheel__months { grid-template-columns: repeat(4,1fr); }
  .v8-rosette__petals { grid-template-columns: repeat(2,1fr); }
  .v8-recent__grid { grid-template-columns: repeat(2,1fr); }
  .v9-catalog-filters__top { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .v9-personal__head { grid-template-columns: 1fr; gap: 8px; }
  .v9-context__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 600px) {
  .mobilebar__logo { max-width: 205px; font-size: 14px !important; white-space: nowrap; }
  .v8-overlay { padding: 0; }
  .v8-dialog { width: 100%; max-height: 100vh; min-height: 100vh; border: 0; border-radius: 0; }
  .v8-dialog__head { padding: 21px 18px 16px; }
  .v8-search { padding: 15px 13px 24px; }
  .v8-search__field { grid-template-columns: 22px 1fr; }
  .v8-search__field button { grid-column: 1 / -1; }
  .v8-search-result { grid-template-columns: 48px 1fr; }
  .v8-search-result > b { display: none; }
  .v8-search-result img { width: 48px; height: 54px; }
  .v8-chooser { padding: 48px 0; }
  .v8-chooser__panel { padding: 16px; }
  .v8-chooser__options { grid-template-columns: 1fr; }
  .v8-rosette { padding: 21px 13px; border-radius: 14px; }
  .v8-rosette__petals { gap: 7px; }
  .v8-rosette__petals a { min-height: 92px; padding: 10px 6px; font-size: 12px; }
  .v8-yearwheel { padding: 20px 13px; }
  .v8-yearwheel__months { grid-template-columns: repeat(3,1fr); }
  .v8-subscribe { padding: 47px 0; }
  .v8-subscribe form { padding: 16px; }
  .v8-saved-grid { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 13px; gap: 8px; }
  .v8-product-actions { flex-wrap: wrap; }
  .v8-hero-thumbs { grid-template-columns: repeat(3,1fr); }
  .v8-checkout-steps button { font-size: 7px; }
  .v9-catalog-filters { padding: 13px; }
  .v9-catalog-filters__top { grid-template-columns: 1fr; }
  .v9-personal { margin: 28px 0; padding: 14px; }
  .v9-personal__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .v8-editorial dl { grid-template-columns: 1fr; }
  .v9-context { width: calc(100% - 20px); margin: 34px auto; padding: 15px; }
  .v9-context__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .v8-overlay, .v8-dialog, .v8-mobile-actions { scroll-behavior: auto; }
}
