/* Card grids and sliders. Phase 2 adds the home sliders (scoped in .tpl, designed on the 1904px canvas).
   Later phases add the inner-page listing styles below the marker at the end of this file. */

/* ===== HOME SLIDERS (Blog, Case Studies) ===== */
.tpl .sl-section{padding:60px 0 70px}
.tpl .sl-tint{background:var(--tint)}
.tpl .sl-top{display:flex;justify-content:space-between;align-items:flex-start;gap:30px}
.tpl .sl-top .head{margin-bottom:40px}
.tpl .sl-top .tnav{margin-top:70px;flex:none}
.tpl .sl-top .tnav button:disabled{opacity:.35;cursor:default}
.tpl .sl-top .tnav button:focus-visible{outline:3px solid var(--g2);outline-offset:2px}
.tpl .sl-track{display:flex;gap:48px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:6px 2px 24px}
.tpl .sl-track::-webkit-scrollbar{display:none}
.tpl .sl-track:focus-visible{outline:3px solid var(--g2);outline-offset:4px}
.tpl .sl-more{margin:18px 0 0}
.tpl .learn-more{display:inline-block;color:var(--accent);font-weight:700;font-size:15px;text-transform:uppercase}
.tpl .learn-more:hover{color:var(--d1)}
.tpl .learn-more:focus-visible{outline:3px solid var(--g2);outline-offset:3px}
.tpl .prod .info .learn-more.has-gap{margin-bottom:22px}

.tpl .scard{flex:0 0 calc((100% - 96px) / 3);scroll-snap-align:start;position:relative;display:flex;flex-direction:column;background:#fff;border:1px solid var(--line,rgba(0,128,136,.2));border-radius:12px;overflow:hidden;transition:box-shadow .2s,transform .2s}
.tpl .scard:hover,.tpl .scard:focus-within{box-shadow:0 14px 36px rgba(0,95,102,.16);transform:translateY(-3px)}
.tpl .scard .sc-img{aspect-ratio:16/9;width:100%}
.tpl .sc-body{display:flex;flex-direction:column;flex:1;padding:30px 34px 34px}
.tpl .sc-date{font-size:17px;font-weight:500;color:var(--accent);margin-bottom:12px}
.tpl .scard h3{font-size:28px;line-height:1.35;font-weight:600;margin:0 0 14px}
.tpl .sc-link::after{content:"";position:absolute;inset:0}
.tpl .sc-link:focus-visible{outline:none}
.tpl .scard:focus-within{outline:3px solid var(--g2);outline-offset:2px}
.tpl .sc-text{margin:0 0 24px;font-size:18px;line-height:1.6;color:var(--mute)}
.tpl .sc-meta{display:flex;gap:30px;margin:auto 0 0;padding-top:20px;border-top:1px solid #dfe5e4}
.tpl .sc-meta div{min-width:0}
.tpl .sc-meta dt{font-size:14px;font-weight:600;color:var(--accent);margin-bottom:4px}
.tpl .sc-meta dd{margin:0;font-size:17px;font-weight:500;color:#222}

@media(max-width:1100px){
  .tpl .sl-section{padding:44px 0 50px}
  .tpl .sl-top{flex-direction:column;gap:0}
  .tpl .sl-top .head{margin-bottom:20px}
  .tpl .sl-top .tnav{margin-top:0;margin-bottom:18px;gap:16px}
  .tpl .sl-track{gap:16px;padding-right:20px;-webkit-overflow-scrolling:touch}
  .tpl .scard{flex:0 0 84%}
  .tpl .sc-body{padding:22px 22px 24px}
  .tpl .sc-date{font-size:14px}
  .tpl .scard h3{font-size:21px}
  .tpl .sc-text{font-size:15px}
  .tpl .sc-meta{gap:20px}
  .tpl .sc-meta dt{font-size:12px}
  .tpl .sc-meta dd{font-size:15px}
}
@media(max-width:480px){.tpl .scard{flex-basis:90%}}
@media(prefers-reduced-motion:reduce){.tpl .scard{transition:none}.tpl .scard:hover,.tpl .scard:focus-within{transform:none}}

/* ===== INNER-PAGE LISTINGS: added from Phase 3 onward ===== */

/* Filter tabs (products listing; reused by later listings) */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.filter-tab { display: inline-block; padding: 9px 22px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-size: 15px; font-weight: 600; color: var(--brand-dark); transition: background-color .2s, color .2s, border-color .2s; }
.filter-tab:hover { background: var(--brand-light); }
.filter-tab.is-on, .filter-tab.is-on:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.filter-count { margin-bottom: 26px; font-size: 14px; }

/* Grid cell wrapper: makes every card in a row the same height */
.pitem { display: flex; min-width: 0; }
.pitem > .pcard { flex: 1; width: 100%; }

/* Product card (includes/components/card-product.php) */
.pcard { position: relative; display: flex; flex-direction: column; }
.pcard-img { aspect-ratio: 16 / 9; overflow: hidden; background: #eef7f8; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; }
.pcard-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.pcard-cat { margin-bottom: 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.pcard-model { font-weight: 600; letter-spacing: .02em; color: var(--ink-70); }
.pcard-title { margin-bottom: 14px; font-family: var(--font-heading); font-size: 21px; line-height: 1.3; }
.pcard-link::after { content: ""; position: absolute; inset: 0; }
.pcard-link:focus-visible { outline: none; }
.pcard:focus-within { outline: 3px solid var(--brand); outline-offset: 2px; }
.pcard-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.pcard-tags .pill { padding: 4px 12px; font-size: 13px; }
.pcard-text { margin-bottom: 18px; font-size: 15px; line-height: 1.6; color: var(--ink-70); }
.pcard-price { margin-bottom: 14px; font-weight: 700; }
.price-old { margin-left: 6px; font-weight: 500; color: var(--ink-70); }
.pcard-foot { margin-top: auto; padding-top: 4px; }

/* Card reached through an anchor link (for example the navbar item Vape and Smoke Sense) */
.pitem:target > .pcard { outline: 3px solid var(--g2); outline-offset: 2px; }

/* Small button and text link used on cards */
.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-link { font-size: 15px; font-weight: 700; color: var(--brand); }
.pcard:hover .btn-link { color: var(--brand-dark); }

@media (max-width: 640px) {
  .filter-tabs { flex-wrap: nowrap; overflow-x: auto; margin-right: -20px; padding-right: 20px; padding-bottom: 4px; scrollbar-width: none; }
  .filter-tabs::-webkit-scrollbar { display: none; }
  .filter-tab { flex: none; padding: 8px 18px; }
  .pcard-body { padding: 18px 20px 20px; }
}
@media (prefers-reduced-motion: reduce) { .pcard, .filter-tab { transition: none; } .pcard:hover { transform: none; } }

/* ===== Phase 4: solution card and grid (includes/components/card-solution.php) ===== */
.sol-intro { max-width: 820px; margin: 0 0 40px; font-size: 18px; line-height: 1.75; color: var(--ink-70); }
.solcard { position: relative; display: flex; flex-direction: column; width: 100%; }
.solcard-img { aspect-ratio: 16 / 9; overflow: hidden; background: #eef7f8; }
.solcard-img img { width: 100%; height: 100%; object-fit: cover; }
.solcard-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.solcard-title { margin-bottom: 12px; font-family: var(--font-heading); font-size: 21px; line-height: 1.3; }
.solcard-link::after { content: ""; position: absolute; inset: 0; }
.solcard-link:focus-visible { outline: none; }
.solcard:focus-within { outline: 3px solid var(--brand); outline-offset: 2px; }
.solcard-text { margin-bottom: 18px; font-size: 15px; line-height: 1.6; color: var(--ink-70); }
.solcard-more { margin-top: auto; }
.solcard:hover .btn-link { color: var(--brand-dark); }

/* ===== Phase 4: case study card on inner pages (includes/components/card-case-study.php) =====
   The home sliders style the same markup under .tpl (1904px canvas). On inner pages, put the cards in a
   container with the class "inner-cards"; these rules are ordinary responsive CSS and are reused by Phase 6. */
.inner-cards .case-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.inner-cards .scard { position: relative; display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.inner-cards .scard:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.inner-cards .scard .sc-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #eef7f8; }
.inner-cards .scard .sc-img img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.inner-cards .sc-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.inner-cards .scard h3 { margin: 0 0 10px; font-family: var(--font-heading); font-size: 20px; line-height: 1.35; }
.inner-cards .sc-link::after { content: ""; position: absolute; inset: 0; }
.inner-cards .sc-link:focus-visible { outline: none; }
.inner-cards .scard:focus-within { outline: 3px solid var(--brand); outline-offset: 2px; }
.inner-cards .sc-text { margin: 0 0 18px; font-size: 15px; line-height: 1.6; color: var(--ink-70); }
.inner-cards .sc-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: auto 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.inner-cards .sc-meta div { min-width: 0; }
.inner-cards .sc-meta dt { margin-bottom: 2px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); }
.inner-cards .sc-meta dd { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
@media (max-width: 1023px) { .inner-cards .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .inner-cards .case-grid { grid-template-columns: 1fr; } .solcard-body, .inner-cards .sc-body { padding: 18px 20px 20px; } }
@media (prefers-reduced-motion: reduce) { .inner-cards .scard { transition: none; } .inner-cards .scard:hover { transform: none; } }

/* ===== Phase 5: blog listing, sidebar widgets and blog cards on inner pages =====
   Ordinary responsive CSS (no .tpl zoom). The home sliders keep their own styles under .tpl. */
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.blog-main { min-width: 0; }
.blog-side { display: grid; gap: 22px; min-width: 0; }

/* Search result line and empty states */
.blog-found { margin-bottom: 22px; padding: 12px 18px; border-radius: var(--radius); background: var(--brand-light); font-size: 15px; line-height: 1.6; color: var(--ink-70); }
.blog-found strong { color: var(--ink); }
.blog-found a { margin-left: 8px; font-weight: 700; color: var(--brand); text-decoration: underline; }
.blog-empty { padding: 48px 24px; border: 1px dashed var(--line); border-radius: var(--radius); background: #fff; text-align: center; color: var(--ink-70); }
.blog-empty a { font-weight: 700; color: var(--brand); text-decoration: underline; }

/* Post row (includes/components/card-blog-row.php) */
.blog-rows { display: grid; gap: 26px; }
.brow { position: relative; display: grid; grid-template-columns: 290px minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s; }
.brow:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.brow:focus-within { outline: 3px solid var(--brand); outline-offset: 2px; }
.brow-img { position: relative; min-height: 170px; background: #eef7f8; }
.brow-img img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.brow-body { display: flex; flex-direction: column; min-width: 0; padding: 24px 28px 26px; }
.brow-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 10px; font-size: 14px; font-weight: 600; color: var(--ink-70); }
.brow-meta time { color: var(--brand); }
.brow-title { margin-bottom: 10px; font-family: var(--font-heading); font-size: 22px; line-height: 1.3; }
.brow-link::after { content: ""; position: absolute; inset: 0; }
.brow-link:focus-visible { outline: none; }
.brow-text { margin-bottom: 16px; font-size: 15px; line-height: 1.65; color: var(--ink-70); }
.brow .btn-link { margin-top: auto; }
.brow:hover .btn-link { color: var(--brand-dark); }

/* Pagination */
.pager { margin-top: 36px; }
.pager ul { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; padding: 0; list-style: none; }
.pager-num, .pager-step { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 42px; height: 42px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-weight: 600; color: var(--brand-dark); transition: background-color .2s, color .2s, border-color .2s; }
a.pager-num:hover, a.pager-step:hover { background: var(--brand-light); }
.pager-num.is-on { border-color: var(--brand); background: var(--brand); color: #fff; }
.pager-gap { padding: 0 4px; color: var(--ink-70); }

/* Sidebar widgets (blog listing and article) */
.bw { position: relative; padding: 22px 24px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.bw-title { margin-bottom: 12px; font-family: var(--font-heading); font-size: 19px; }
.bw-text { margin-bottom: 14px; font-size: 14.5px; line-height: 1.6; color: var(--ink-70); }
.bw-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.bw-status { min-height: 1.4em; margin-top: 10px; font-size: 14px; color: var(--ink-70); }
.bw-status:empty { min-height: 0; margin-top: 0; }
.bw [aria-disabled="true"] { opacity: .7; pointer-events: none; }
.bw-gt { margin-top: 12px; font-size: 13px; color: var(--ink-70); }
.bw-gt:empty { display: none; }
.bw-gt select { width: 100%; margin-top: 6px; padding: 9px 10px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; font: inherit; color: var(--ink); }
.bw-gt a { color: var(--brand); }
/* Google Translate adds a banner and moves the page down; the sticky header would sit under it */
html.translated-ltr body, html.translated-rtl body { top: 0 !important; }
iframe.goog-te-banner-frame, .skiptranslate > iframe.skiptranslate { display: none !important; }

/* Top Reads */
.bw-top { margin: 0; padding: 0; list-style: none; counter-reset: top; }
.bw-top li { counter-increment: top; border-top: 1px solid var(--line); }
.bw-top li:first-child { border-top: 0; }
.bw-top a { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 10px; padding: 12px 0; }
.bw-top a::before { content: counter(top); grid-row: 1 / span 2; font-family: var(--font-heading); font-size: 22px; font-weight: 700; line-height: 1.2; color: var(--g2); }
.bw-top-title { font-weight: 600; line-height: 1.4; }
.bw-top a:hover .bw-top-title { color: var(--brand); }
.bw-top-date { font-size: 13px; color: var(--ink-70); }

/* Search box with live suggestions */
.bsearch { position: relative; display: flex; }
.bsearch-input { flex: 1; min-width: 0; height: 46px; padding: 0 52px 0 18px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 15px; color: var(--ink); }
.bsearch-input:focus { border-color: var(--brand); }
.bsearch-btn { position: absolute; top: 4px; right: 4px; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: var(--brand); color: #fff; cursor: pointer; transition: background-color .2s; }
.bsearch-btn:hover { background: var(--brand-dark); }
.bsearch-list { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0; max-height: 340px; margin: 0; padding: 6px; overflow-y: auto; list-style: none; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-hover); }
.bsearch-list[hidden] { display: none; }
.bsearch-list li a { display: block; padding: 10px 12px; border-radius: 8px; }
.bsearch-list li.is-on a, .bsearch-list li a:hover { background: var(--brand-light); }
.bsearch-title { display: block; font-size: 15px; font-weight: 600; line-height: 1.35; }
.bsearch-date { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-70); }
.bsearch-none { padding: 10px 12px; font-size: 14px; color: var(--ink-70); }
.bsearch-more a { padding: 10px 12px; font-size: 14px; font-weight: 700; color: var(--brand); }

/* Blog cards on inner pages (related posts): the same card as the home slider, inside .inner-cards */
.inner-cards .blog-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.inner-cards .sc-date { margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--brand); }
.inner-cards .scard-blog h3 { margin-bottom: 0; }

@media (max-width: 1100px) {
  .blog-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
  .brow { grid-template-columns: 220px minmax(0, 1fr); }
  .brow-body { padding: 20px 22px 22px; }
}
@media (max-width: 1023px) { .inner-cards .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-side { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@media (max-width: 640px) {
  .brow { grid-template-columns: 1fr; }
  .brow-img { min-height: 0; aspect-ratio: 16 / 9; }
  .brow-body { padding: 18px 20px 20px; }
  .brow-title { font-size: 20px; }
  .blog-side { grid-template-columns: 1fr; }
  .inner-cards .blog-grid { grid-template-columns: 1fr; }
  .pager-step { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) { .brow, .pager-num, .pager-step, .bsearch-btn { transition: none; } .brow:hover { transform: none; } }

/* ===== Phase 6: case studies listing (case-studies/index.php) =====
   Search box, category jump links and the category bands with sliders. The cards inside use the Phase 4
   "inner-cards" rules above. The slider arrows are driven by js/slider.js. */
.cs-top { padding-bottom: 36px; }
.cs-search { max-width: 640px; margin-bottom: 26px; }
.cs-search-label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); }
.cs-search-row { display: flex; gap: 10px; }
.cs-search-input { flex: 1; min-width: 0; padding: 13px 18px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; font: inherit; font-size: 16px; color: var(--ink); }
.cs-search-input:focus { outline: 3px solid var(--g2); outline-offset: 1px; border-color: var(--brand); }
.cs-search-btn { flex: none; cursor: pointer; }
.cs-jump { margin-bottom: 8px; }
.cs-jump[hidden], .cs-nav[hidden] { display: none; }
.cs-status { min-height: 1.4em; margin: 10px 0 0; font-size: 15px; }
.cs-results { padding-top: 14px; }
.cs-results[hidden] { display: none; }
.cs-clear { margin-top: 26px; }

.cs-band { padding: 56px 0 60px; scroll-margin-top: 70px; }
.cs-band-tint { background: #f4fafa; }
.cs-band-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.cs-band-head .section-title { margin-bottom: 26px; }
.cs-nav { display: flex; flex: none; gap: 10px; }
.cs-nav button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1.5px solid var(--brand); border-radius: 50%; background: #fff; font-size: 26px; line-height: 1; color: var(--brand); cursor: pointer; transition: background-color .2s, color .2s; }
.cs-nav button:hover:not(:disabled) { background: var(--brand); color: #fff; }
.cs-nav button:disabled { opacity: .35; cursor: default; }
.cs-nav button:focus-visible { outline: 3px solid var(--g2); outline-offset: 2px; }

/* The track scrolls sideways; each card is one third of it on desktop. The padding keeps card shadows from being cut off. */
.cs-track { scroll-padding: 0 8px; display: flex; gap: 24px; margin: -8px -8px -24px; padding: 8px 8px 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.cs-track::-webkit-scrollbar { display: none; }
.cs-track:focus-visible { outline: 3px solid var(--g2); outline-offset: 2px; }
.inner-cards .cs-track > .scard { flex: 0 0 calc((100% - 48px) / 3); scroll-snap-align: start; }
@media (max-width: 1023px) { .inner-cards .cs-track > .scard { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 640px) {
  .cs-band { padding: 40px 0 44px; }
  .cs-search-row { flex-direction: column; }
  .cs-search-btn { width: 100%; }
  .inner-cards .cs-track > .scard { flex-basis: 86%; }
  .cs-nav button { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .cs-nav button { transition: none; } .cs-track { scroll-behavior: auto; } }

/* ==========================================================================
   Phase 7: Tutorials (tutorials/index.php, includes/components/card-tutorial.php, video modal)
   The search box reuses the .cs-search rules from Phase 6. Ordinary responsive CSS, no .tpl zoom.
   The video dialog styles (.vmodal) live here too (D-053).
   ========================================================================== */
.tut-search { margin-bottom: 22px; }
.tut-empty { margin: 0 0 30px; padding: 22px 24px; border: 1px dashed var(--line); border-radius: var(--radius); background: #f4fafa; color: var(--ink-70); }
.tut-empty[hidden] { display: none; }
.tut-empty a { font-weight: 700; color: var(--brand); text-decoration: underline; }

.tgroup { margin-top: 18px; padding-bottom: 26px; }
.tgroup[hidden] { display: none; }
.tgroup-title { position: relative; margin-bottom: 24px; padding-bottom: 12px; font-family: var(--font-heading); font-size: clamp(22px, 3vw, 28px); color: var(--ink); }
.tgroup-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; border-radius: 2px; background: var(--gradient-strip); }

/* Card: the whole thumbnail and text block is one button; the tag pills sit below it */
.tcard { display: flex; flex-direction: column; }
.tcard:focus-within { outline: 3px solid var(--brand); outline-offset: 2px; }
.tcard-open { display: flex; flex-direction: column; flex: 1; width: 100%; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.tcard-open:focus-visible { outline: none; }
.tcard-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #eef7f8; }
.tcard-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tcard-play { position: absolute; left: 50%; top: 50%; display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; padding-left: 4px; border-radius: 50%; background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(0, 40, 44, .28); transform: translate(-50%, -50%); transition: background-color .2s, transform .2s; }
.tcard:hover .tcard-play, .tcard:focus-within .tcard-play { background: var(--brand-dark); transform: translate(-50%, -50%) scale(1.08); }
.tcard-body { display: flex; flex-direction: column; flex: 1; padding: 20px 24px 12px; }
.tcard-title { margin-bottom: 10px; font-family: var(--font-heading); font-size: 19px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.tcard-text { font-size: 15px; line-height: 1.6; color: var(--ink-70); }
.tcard-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0 24px 22px; list-style: none; }
.tcard-tags .pill { padding: 4px 12px; font-size: 13px; }

/* Video dialog (js/video-modal.js, includes/components/video-modal.php) */
.vmodal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 28, 31, .78); }
.vmodal[hidden] { display: none; }
.vmodal-box { width: 100%; max-width: 960px; max-height: calc(100vh - 32px); overflow: auto; border-radius: var(--radius); background: #fff; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.vmodal-box:focus { outline: none; }
.vmodal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px 14px 24px; border-bottom: 1px solid var(--line); }
.vmodal-title { margin: 0; font-family: var(--font-heading); font-size: clamp(16px, 2.4vw, 20px); line-height: 1.3; }
.vmodal-stage { position: relative; aspect-ratio: 16 / 9; background: #00282c; }
.vmodal-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vmodal-stage.is-soon { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #dff3f4, #c4e6e9); }
.vmodal-soon { margin: 0; padding: 0 20px; font-family: var(--font-heading); font-size: clamp(20px, 3.4vw, 30px); font-weight: 600; text-align: center; color: var(--d1, #00474d); }
body.vmodal-open { overflow: hidden; }

@media (max-width: 640px) {
  .tcard-body { padding: 16px 20px 10px; }
  .tcard-tags { padding: 0 20px 18px; }
  .tcard-play { width: 52px; height: 52px; }
  .vmodal { padding: 8px; }
  .vmodal-head { padding: 10px 12px 10px 16px; }
}
@media (prefers-reduced-motion: reduce) { .tcard-play { transition: none; } .tcard:hover .tcard-play, .tcard:focus-within .tcard-play { transform: translate(-50%, -50%); } }

/* Phase 11: the "Learn more" links on the home page were 23px high; touch targets should be at least 24px (WCAG 2.2, 2.5.8) */
.tpl .learn-more { min-height: 24px; }
/* Phase 11: the store badges sit inside ".prod a", which colours links with the accent; keep their text white on black */
.tpl .prod .store, .tpl .prod .store span, .tpl .prod .store small { color: #fff; text-transform: none; }

/* Brochure button (teal, download icon). Used on the home products tabs, the listing cards and the product detail page. */
.btn-brochure { display: inline-flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 6px 16px rgba(0, 128, 136, .25); }
.btn-brochure svg { flex: none; }
.tpl .prod .info .prod-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin: 0 0 4px; }
.tpl .prod .info .prod-actions.has-gap { margin-bottom: 22px; }
.tpl .prod .info a.btn-brochure { color: #fff; font-size: 16px; font-weight: 700; text-transform: none; padding: 14px 26px; }
.tpl .prod .info a.btn-brochure:hover { color: #fff; }
.pcard-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.pcard-foot .btn-brochure { position: relative; z-index: 2; padding: 10px 16px; font-size: 13px; letter-spacing: .03em; text-transform: uppercase; box-shadow: none; }
.pd-summary .btn-row .btn-brochure { padding: 12px 22px; }
@media (max-width: 760px) { .tpl .prod .info a.btn-brochure { width: 100%; } }
