/* ==========================================================================
   TarkMart blocks — shared by the site and the block editor.
   Part 1 is generated from style.css §15 (sub-page components) without the
   .tm-subpage scope, so every card style also works on the homepage and in
   the editor. Part 2 adds block-specific rules.
   ========================================================================== */

/* ---- Part 1: sub-page components (unscoped copies) ---- */
.tm-page-hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(24px, 4vw, 48px);
  text-align: center;
}
.tm-page-title {
  font-family: var(--tm-font-display);
  font-size: clamp(2rem, 5vw, 3.75rem);
  line-height: 1.05; margin: 0 0 16px;
}
.tm-page-lead { max-width: 640px; margin: 0 auto; font-size: clamp(1rem, 1.4vw, 1.125rem); color: rgba(11,31,77,0.72); line-height: 1.6; }
.tm-narrow { max-width: 760px; margin-inline: auto; }
.tm-sub-eyebrow {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--tm-teal); font-weight: 700; margin: 0 0 8px;
}
.tm-link-arrow { font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.tm-link-arrow:hover { color: var(--tm-teal); }
.tm-muted { color: rgba(11,31,77,0.6); }
.tm-section.tm-bg-card { background: var(--tm-card); }
.tm-about-story-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
@media (min-width: 800px) {
  .tm-about-story-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; }
}
.tm-about-story-text h2 { font-family: var(--tm-font-display); font-size: clamp(1.75rem, 3vw, 2.5rem); margin: 0 0 16px; }
.tm-about-story-text p { line-height: 1.7; margin: 0 0 14px; }
.tm-about-story-image img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--tm-radius-lg); border: 1px solid var(--tm-border); }
.tm-about-values-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 700px) {
  .tm-about-values-grid { grid-template-columns: repeat(3, 1fr); }
}
.tm-value-card { border-radius: var(--tm-radius-lg); padding: 32px 28px; border: 1px solid var(--tm-border); }
.tm-value-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.7); font-size: 20px; margin-bottom: 16px; }
.tm-value-card h3 { font-family: var(--tm-font-display); font-size: 1.5rem; margin: 0 0 8px; }
.tm-value-card p { margin: 0; line-height: 1.55; color: rgba(11, 31, 77, 0.78); }
.tm-about-quote { text-align: center; }
.tm-about-quote blockquote { max-width: 720px; margin: 0 auto; font-family: var(--tm-font-display); font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.3; color: var(--tm-navy); }
.tm-about-quote cite { display: block; margin-top: 20px; font-size: 14px; font-style: normal; color: rgba(11,31,77,0.6); }
.tm-about-cta { text-align: center; background: var(--tm-cream); }
.tm-about-cta h2 { font-family: var(--tm-font-display); font-size: clamp(1.5rem, 3vw, 2.25rem); margin: 0 0 24px; }
.tm-contact-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 900px) {
  .tm-contact-grid { grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
}
.tm-contact-info { display: grid; gap: 16px; }
.tm-info-card { background: var(--tm-cream); border-radius: var(--tm-radius); padding: 20px 22px; border: 1px solid var(--tm-border); }
.tm-info-card h3 { font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(11,31,77,0.6); margin: 0 0 6px; }
.tm-info-card p { margin: 0; font-size: 1rem; line-height: 1.5; }
.tm-info-card p span { display: block; font-size: 13px; color: rgba(11,31,77,0.6); }
.tm-info-card a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.tm-info-socials { display: flex; gap: 8px; margin-top: 4px; }
.tm-info-socials a { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; font-size: 11px; font-weight: 700; text-decoration: none; color: var(--tm-navy); }
.tm-trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 700px) {
  .tm-trust-grid { grid-template-columns: repeat(4, 1fr); }
}
.tm-trust-grid > div { background: #fff; border: 1px solid var(--tm-border); border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; }
.tm-trust-grid strong { font-size: 14px; }
.tm-trust-grid span { font-size: 12px; color: rgba(11,31,77,0.6); margin-top: 2px; }
.tm-ship-options { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 800px) {
  .tm-ship-options { grid-template-columns: repeat(3, 1fr); }
}
.tm-ship-card { position: relative; background: #fff; border: 1px solid var(--tm-border); border-radius: var(--tm-radius-lg); padding: 28px; }
.tm-ship-badge { position: absolute; top: 16px; right: 16px; background: var(--tm-navy); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.tm-ship-card h3 { font-family: var(--tm-font-display); font-size: 1.5rem; margin: 0 0 4px; }
.tm-ship-eta { margin: 0 0 12px; color: rgba(11,31,77,0.65); font-size: 14px; }
.tm-ship-price { margin: 0 0 16px; font-size: 1rem; }
.tm-ship-price strong { font-size: 1.25rem; }
.tm-ship-card ul { margin: 0; padding: 0; list-style: none; }
.tm-ship-card li { position: relative; padding-left: 22px; margin-bottom: 8px; font-size: 14px; line-height: 1.5; }
.tm-ship-card li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--tm-teal); font-weight: 700; }
.tm-ship-regions { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 700px) {
  .tm-ship-regions { grid-template-columns: repeat(2, 1fr); }
}
.tm-ship-regions > div { padding: 20px 22px; background: #fff; border: 1px solid var(--tm-border); border-radius: 18px; }
.tm-ship-regions h3 { font-family: var(--tm-font-display); font-size: 1.25rem; margin: 0 0 6px; }
.tm-ship-regions p { margin: 0; color: rgba(11,31,77,0.7); font-size: 14px; }
.tm-mini-faq { border-top: 1px solid rgba(11,31,77,0.1); padding: 16px 0; }
.tm-mini-faq summary { cursor: pointer; font-weight: 600; font-size: 0.85rem; color: var(--tm-ink); margin-bottom: 0.4rem; letter-spacing: 0.02em; }
.tm-mini-faq input[type="text"],
.tm-mini-faq input[type="email"],
.tm-mini-faq input[type="number"],
.tm-mini-faq input[type="tel"],
.tm-mini-faq textarea,
.tm-mini-faq select {
  width: 100%; padding: 0.65rem 0.85rem;
  border: 1px solid var(--tm-border); border-radius: 0.5rem;
  background: #fff; font-size: 0.95rem; font-family: inherit;
  color: var(--tm-ink); transition: border-color 0.15s, box-shadow 0.15s;
}
.tm-mini-faq input:focus,
.tm-mini-faq textarea:focus,
.tm-mini-faq select:focus {
  outline: none; border-color: var(--tm-ink);
  box-shadow: 0 0 0 3px rgba(15,27,61,0.1);
}
.tm-mini-faq .wc-pao-addon,
.tm-mini-faq .product-addon { margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px dashed var(--tm-border); }
.tm-mini-faq .wc-pao-addon:last-of-type,
.tm-mini-faq .product-addon:last-of-type { border-bottom: none; margin-bottom: 0.5rem; padding-bottom: 0; }
.tm-mini-faq form.cart { display: flex; flex-direction: column; gap: 1rem; margin: 0; }
.tm-mini-faq .quantity { display: inline-flex; align-items: center; border: 1px solid var(--tm-border); border-radius: 0.5rem; overflow: hidden; background: #fff; width: fit-content; }
.tm-mini-faq .quantity input.qty { width: 4rem; border: none; text-align: center; padding: 0.65rem 0.5rem; font-size: 0.95rem; background: transparent; }
.tm-mini-faq .single_add_to_cart_button {
  flex: 1 1 14rem;
  background: var(--tm-ink) !important; color: #fff !important;
  border: none !important; border-radius: 0.5rem !important;
  padding: 0.9rem 1.5rem !important; font-size: 0.95rem !important; font-weight: 600 !important;
  letter-spacing: 0.04em; text-transform: uppercase; white-space: normal;
  min-width: 0; width: 100%; transition: transform 0.15s, opacity 0.15s;
}
.tm-mini-faq .single_add_to_cart_button:hover { opacity: 0.92; transform: translateY(-1px); }
@media (min-width: 480px) {
  .tm-mini-faq form.cart { flex-direction: row; align-items: stretch; flex-wrap: wrap; }
  .tm-mini-faq form.cart .quantity { flex-shrink: 0; }
}

/* ---- Part 2: block layout ---- */

/* Plain blocks placed directly on a block page get the normal content width */
.tm-blocks > :not(section):not(.tm-hero):not(.alignfull) {
  max-width: var(--tm-container);
  margin-left: auto; margin-right: auto;
  padding-left: 1.75rem; padding-right: 1.75rem;
  box-sizing: border-box;
}
.tm-blocks.tm-page { padding-top: 0; }
.tm-blocks > .tm-page-hero:first-child { padding-top: clamp(48px, 8vw, 96px); }

/* Section options */
.tm-section-cream { background: var(--tm-teal-soft); }
.tm-section-tight { padding: 2.5rem 0; }
@media (min-width: 768px) { .tm-section-tight { padding: 3.5rem 0; } }
.tm-section-flush { padding-top: 0 !important; }
.tm-align-center { text-align: center; }
.tm-section-head.tm-section-center { justify-content: center; text-align: center; margin-left: auto; margin-right: auto; }
.tm-subpage .tm-section-head.tm-section-center { align-items: center !important; }
.tm-section-intro { color: var(--tm-muted); margin-top: 0.75rem; max-width: 40rem; line-height: 1.6; }
.tm-section-center .tm-section-intro { margin-left: auto; margin-right: auto; }
.tm-section-body > * + * { margin-top: 1.25rem; }
.tm-section-body > .tm-cards + .tm-cards { margin-top: 2.5rem; }
.tm-section-body > .tm-cards:first-child.tm-steps,
.tm-section-body > .tm-cards:first-child.tm-benefits { margin-top: 0; }
.tm-align-center .tm-cards { text-align: left; }
.tm-block-section .tm-section-body > p,
.tm-block-section .tm-section-body > ul,
.tm-block-section .tm-section-body > ol { line-height: 1.7; }
.tm-block-section .tm-section-body > p + p { margin-top: 0.9rem; }

/* Cards: automatic colours (coral → mint → butter → lilac) */
.tm-cards > .tm-auto-bg:nth-child(4n+1) { background: var(--tm-coral-soft); }
.tm-cards > .tm-auto-bg:nth-child(4n+2) { background: var(--tm-mint-soft); }
.tm-cards > .tm-auto-bg:nth-child(4n+3) { background: var(--tm-butter); }
.tm-cards > .tm-auto-bg:nth-child(4n+4) { background: var(--tm-lilac); }
.tm-card-white { background: #fff; border: 1px solid var(--tm-border); }

/* Cards: automatic step numbers when the number is left empty */
.tm-cards-steps { counter-reset: tmstep; }
.tm-cards-steps > .tm-step { counter-increment: tmstep; }
.tm-cards-steps .num:empty::before { content: counter(tmstep, decimal-leading-zero); }

/* Cards: fixed column counts */
@media (min-width: 768px) {
  .tm-cards.tm-cols-1 { grid-template-columns: 1fr; }
  .tm-cards.tm-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .tm-cards.tm-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .tm-cards.tm-cols-4 { grid-template-columns: repeat(4, 1fr); }
}
.tm-faq-grid.tm-cols-2, .tm-faq-grid.tm-cols-3 { gap: 0.75rem; }

/* Cards: extra content (lists, more paragraphs, buttons) */
.tm-card-extra > * { margin: 0.5rem 0 0; }
.tm-card-extra > *:first-child { margin-top: 0.35rem; }
.tm-step .tm-card-extra, .tm-value-card .tm-card-extra { font-size: 0.9rem; color: rgba(27, 34, 64, 0.7); }
.tm-info-card .tm-card-extra p { font-size: 13px; color: rgba(11,31,77,0.6); margin-top: 2px; }
.tm-region-card > p { margin: 0; color: rgba(11,31,77,0.7); font-size: 14px; }
.tm-region-card .tm-card-extra ul { margin: 0.6rem 0 0; padding-left: 1.15rem; color: rgba(11,31,77,0.78); }
.tm-faq-card .tm-card-extra p { margin: 0.5rem 0 0; font-size: .95rem; color: rgba(11,31,77,.75); line-height: 1.65; }
.tm-trust-card span { display: block; }

/* Hero badge link */
a.tm-hero-badge { color: inherit; text-decoration: none; }

/* ---- Core blocks inside TarkMart pages ---- */
.tm-blocks .wp-block-buttons, .tm-prose .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.tm-align-center .wp-block-buttons { justify-content: center; }
.tm-blocks .wp-block-button__link, .tm-prose .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; line-height: 1.2;
  background: var(--tm-navy); color: #fff; border: 1px solid transparent;
  text-decoration: none; transition: transform .15s ease, background .2s ease;
}
.tm-blocks .wp-block-button__link:hover, .tm-prose .wp-block-button__link:hover { background: var(--tm-navy-700); transform: translateY(-1px); }
.tm-blocks .is-style-outline > .wp-block-button__link, .tm-prose .is-style-outline > .wp-block-button__link {
  background: #fff; color: var(--tm-navy); border-color: var(--tm-border);
}
.tm-blocks .is-style-outline > .wp-block-button__link:hover { border-color: var(--tm-navy); }

/* Details block = accordion (same look as the old FAQ/shipping accordions) */
.tm-blocks .wp-block-details { border-top: 1px solid var(--tm-border); margin: 0; }
.tm-blocks .wp-block-details:last-of-type { border-bottom: 1px solid var(--tm-border); }
.tm-blocks .wp-block-details + .wp-block-details { margin-top: 0; }
.tm-blocks .wp-block-details summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 0; font-weight: 600; font-size: 1rem;
}
.tm-blocks .wp-block-details summary::-webkit-details-marker { display: none; }
.tm-blocks .wp-block-details summary::after { content: "+"; font-size: 1.25rem; font-weight: 300; line-height: 1; transition: transform .2s ease; }
.tm-blocks .wp-block-details[open] summary::after { transform: rotate(45deg); }
.tm-blocks .wp-block-details > :not(summary) { padding: 0 0 1.25rem; margin: 0; font-size: 0.95rem; color: rgba(11,31,77,0.75); line-height: 1.7; }

.tm-blocks .wp-block-image img { border-radius: var(--tm-radius-lg); }
.tm-blocks .has-text-align-center { text-align: center; }
.tm-blocks .tm-section-body a:not(.wp-block-button__link):not(.tm-btn) { text-decoration: underline; text-underline-offset: 3px; }
.tm-blocks .tm-section-body > h3, .tm-blocks .tm-section-body > .wp-block-heading { font-family: var(--tm-font-display); font-size: 1.35rem; margin: 1.5rem 0 0.5rem; }
.tm-blocks .tm-section-body > ul.wp-block-list { padding-left: 1.2rem; }
.tm-blocks .tm-section-body > ul.wp-block-list li + li { margin-top: 0.35rem; }

/* Editor-only notices (only rendered in the editor preview) */
.tm-editor-notice {
  max-width: var(--tm-container); margin: 1rem auto; padding: 1rem 1.25rem;
  border: 1px dashed rgba(11,31,77,.3); border-radius: 14px; background: #fff;
  font-size: 14px; color: rgba(11,31,77,.7);
}

/* Category / shop intro built in the editor (above the product grid) */
.tm-archive-intro > .tm-section:last-child { padding-bottom: 2rem; }
.tm-archive-intro > .tm-page-hero:first-child { padding-top: clamp(48px, 8vw, 96px); }

/* ==========================================================================
   1.5.0 — new look: light panel colour (teal / lilac / coral, picked per
   visit by a small script in <head>), hero card, photo category tiles,
   white product cards, numbered steps + fact pills, panel-coloured footer.
   ========================================================================== */
:root {
  --tm-panel: #D6F3F7;           /* soft teal (default, also used in the editor) */
  --tm-panel-accent: #13B5C7;
  --tm-panel-sub: #3E4A68;
  --tm-panel-line: rgba(11, 31, 77, 0.18);
  --tm-teal-text: #0B7380;       /* teal that passes contrast on white */
}
html[data-tm-panel="lilac"] { --tm-panel: #E6DCFA; --tm-panel-accent: #A58BE8; }
html[data-tm-panel="coral"] { --tm-panel: #FFE1D6; --tm-panel-accent: #F2967A; }

/* Buttons */
.tm-pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 28px; border-radius: 999px;
  font-weight: 700; font-size: 17px; line-height: 1.2; text-decoration: none;
  border: 2px solid transparent; transition: background .2s ease, border-color .2s ease;
}
.tm-pill-solid { background: var(--tm-navy); color: #fff; }
.tm-pill-solid:hover { background: var(--tm-navy-700); color: #fff; }
.tm-pill-line { border-color: rgba(11, 31, 77, 0.25); color: var(--tm-navy); }
.tm-pill-line:hover { border-color: var(--tm-navy); color: var(--tm-navy); }
.tm-pill:focus-visible { outline: 3px solid var(--tm-panel-accent); outline-offset: 3px; }

/* Hero card */
.tm-hero2 { padding: 8px 0 0; }
.tm-hero2-card {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  background: var(--tm-panel); color: var(--tm-navy);
  border-radius: 36px; overflow: hidden;
}
.tm-hero2-text { padding: clamp(40px, 6vw, 72px) clamp(24px, 4.5vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.tm-hero2-eyebrow { margin: 0 0 14px; font-weight: 600; font-size: 15px; color: var(--tm-panel-sub); }
.tm-hero2 h1 { margin: 0; font-size: clamp(40px, 5vw, 64px); line-height: 1.08; color: var(--tm-navy); }
.tm-hero2-sub { font-size: 19px; line-height: 1.6; max-width: 32ch; margin: 22px 0 0; color: var(--tm-panel-sub); }
.tm-hero2-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.tm-hero2-media { position: relative; min-height: 520px; }
.tm-hero2-media > img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; }
.tm-hero2-badge {
  position: absolute; left: 28px; bottom: 28px; z-index: 2;
  display: flex; align-items: center; gap: 14px;
  background: #fff; color: var(--tm-navy); border-radius: 20px;
  padding: 12px 18px 12px 12px; text-decoration: none; max-width: calc(100% - 56px);
}
.tm-hero2-badge-img img { width: 56px !important; height: 56px !important; border-radius: 12px; object-fit: cover; }
.tm-hero2-badge-txt { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.tm-hero2-badge small { font-size: 13px; font-weight: 600; color: var(--tm-panel-sub); }
.tm-hero2-badge strong { font-size: 17px; }
.tm-hero2-badge-price { font-weight: 700; color: var(--tm-teal-text); }
.tm-hero2-badge-price del { opacity: .6; font-weight: 500; }
@media (max-width: 900px) {
  .tm-hero2-card { grid-template-columns: 1fr; }
  .tm-hero2-media { min-height: 340px; }
}
@media (max-width: 767px) {
  .tm-hero2-card { border-radius: 26px; }
  .tm-hero2-badge { left: 14px; bottom: 14px; max-width: calc(100% - 28px); }
}

/* Section heads in the new look: left-aligned, Fraunces */
.tm-block-categories .tm-section-head, .tm-block-products .tm-section-head { margin-bottom: 28px; }
.tm-section-mint { background: var(--tm-mint-soft); }
.tm-section-panel { background: var(--tm-panel); }

/* Category tiles */
.tm-cat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.tm-cat-tile {
  position: relative; display: flex; align-items: flex-end; height: 220px; padding: 20px;
  border-radius: 28px; overflow: hidden; text-decoration: none; color: var(--tm-navy);
}
.tm-cat-tile.has-img > img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; transition: transform .4s ease; }
.tm-cat-tile.has-img:hover > img { transform: scale(1.04); }
.tm-cat-label { position: relative; z-index: 1; display: flex; flex-direction: column; background: #fff; border-radius: 16px; padding: 12px 18px; line-height: 1.3; }
.tm-cat-label strong { font-family: var(--tm-font-display); font-size: 24px; font-weight: 600; }
.tm-cat-label span { font-size: 15px; color: var(--tm-panel-sub); }
.tm-tile-lilac { background: var(--tm-lilac); } .tm-tile-mint { background: var(--tm-mint-soft); }
.tm-tile-butter { background: var(--tm-butter); } .tm-tile-coral { background: var(--tm-coral-soft); }
.tm-cat-tile:focus-visible { outline: 3px solid var(--tm-panel-accent); outline-offset: 3px; }

/* Product cards: homepage block + shop/category pages */
.tm-block-products .tm-product,
.woocommerce ul.products li.product {
  background: #fff; border: 1px solid var(--tm-border); border-radius: 26px; padding: 12px 12px 18px;
  transition: border-color .2s ease;
}
.tm-block-products .tm-product:hover,
.woocommerce ul.products li.product:hover { border-color: var(--tm-navy); }
.tm-block-products .tm-product .tm-product-image { border: 0; border-radius: 18px; background: var(--tm-lilac); }
.tm-block-products .tm-product:hover .tm-product-image { transform: none; box-shadow: none; }
.tm-block-products .tm-product .tm-product-meta { padding: 14px 6px 0; flex-direction: column; gap: 4px; }
.tm-block-products .tm-product .tm-product-name { font-family: var(--tm-font-body); font-weight: 700; font-size: 17px; line-height: 1.3; margin: 0; }
.tm-block-products .tm-product .tm-product-price { font-weight: 700; color: var(--tm-teal-text); }
.woocommerce ul.products li.product a img { border: 0 !important; border-radius: 18px !important; }
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .tm-product-title { font-family: var(--tm-font-body) !important; font-weight: 700 !important; font-size: 17px !important; padding: 0 6px !important; }
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .tm-product-price { color: var(--tm-teal-text) !important; font-weight: 700 !important; padding: 0 6px; }

/* Numbered steps (sequence) */
.tm-numbered { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; text-align: left; }
.tm-numbered.tm-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tm-numbered.tm-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tm-cards-numbered { counter-reset: tmnum; }
.tm-numbered-item { display: flex; gap: 18px; align-items: flex-start; counter-increment: tmnum; }
.tm-num {
  flex: none; width: 52px; height: 52px; border-radius: 50%;
  background: var(--tm-panel-accent); color: var(--tm-navy);
  display: grid; place-items: center; font-weight: 700; font-size: 22px;
}
.tm-num:empty::before { content: counter(tmnum); }
.tm-numbered-item h3 { font-family: var(--tm-font-display); font-size: 24px; margin: 8px 0 6px; line-height: 1.15; }
.tm-numbered-item p { margin: 0; color: var(--tm-panel-sub); }
@media (max-width: 767px) { .tm-numbered, .tm-numbered.tm-cols-2, .tm-numbered.tm-cols-4 { grid-template-columns: 1fr; } }

/* Fact pills */
.tm-pills { display: flex; flex-wrap: wrap; gap: 12px; }
.tm-section-body > .tm-cards + .tm-pills { margin-top: 40px; }
.tm-pill-fact { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; background: #fff; font-weight: 600; font-size: 15px; color: var(--tm-navy); }
.tm-pill-fact svg { color: var(--tm-teal-text); flex: none; }
.tm-pill-fact span { font-weight: 400; }

/* Header cart pill */
.tm-header .tm-cart-pill {
  width: auto; height: 44px; padding: 0 18px; gap: 8px; display: inline-flex; align-items: center;
  background: var(--tm-navy); color: #fff; font-weight: 700; font-size: 15px;
}
.tm-header .tm-cart-pill:hover { background: var(--tm-navy-700); }
.tm-header .tm-cart-pill .tm-cart-count { position: static; transform: none; margin-left: 2px; }
@media (max-width: 767px) { .tm-header .tm-cart-pill { width: 44px; min-width: 44px; padding: 0; justify-content: center; } .tm-cart-word { display: none; } }

/* Footer in the panel colour */
.tm-footer { background: var(--tm-panel); border-top: 0; margin-top: 88px; color: var(--tm-navy); }
.tm-footer p.tag, .tm-footer ul li { color: var(--tm-panel-sub); }
.tm-footer ul li a:hover, .tm-footer-bottom .links a:hover { color: var(--tm-navy); text-decoration: underline; }
.tm-footer-bottom { border-top-color: var(--tm-panel-line); color: var(--tm-panel-sub); }
/* the "How it works" band sits right above the footer: no gap between them */
.tm-blocks > .tm-section:last-child.tm-section-mint { margin-bottom: -88px; }
