/*
Theme Name: GT TT24
Theme URI: https://gtnevada.com/
Description: Green Therapeutics brand on top of Twenty Twenty-Four. Brand tokens and editorial typography registered via theme.json + a CSS layer that wins specificity wars against the parent theme.
Author: Green Therapeutics
Author URI: https://gtnevada.com/
Template: twentytwentyfour
Version: 1.17.1
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gt-tt24
Tags: editorial, cannabis, brand, block-theme, custom-colors, custom-fonts
*/

/* Belt-and-suspenders font load — in case functions.php enqueue fails or is delayed.
   Using @import so it works the moment style.css loads. */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@400;700&family=Cormorant+Garamond:ital,wght@0,400;1,300;1,400&family=DM+Serif+Display:ital@1&family=Inter:wght@300;400;500&display=swap');

/* ============================================================
   Brand foundation — anchor font-family + base type
   ============================================================ */

:root {
  --gt-bg: #F5F2EC;
  --gt-ink: #1A1A1A;
  --gt-forest: #2E4636;
  --gt-tsunami: #0A1628;
  --gt-teal: #0E436A;
  --gt-copper: #9C6B3F;
  --gt-gold: #D4A857;
  --gt-rule: rgba(26, 26, 26, 0.15);
  --gt-rule-dark: rgba(245, 242, 236, 0.18);
}

/* Body base — Inter, light weight, on the off-white. */
body,
.wp-site-blocks,
.editor-styles-wrapper {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-weight: 300;
  background-color: var(--gt-bg) !important;
  color: var(--gt-ink) !important;
  -webkit-font-smoothing: antialiased;
}

/* Default paragraph and list typography */
p, li {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ============================================================
   Headings — Cormorant Garamond italic, our specific scale
   These !important rules win over TT24's parent heading styles.
   ============================================================ */

h1, h2, h3, h4,
.wp-block-heading {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-style: italic !important;
  font-weight: 300 !important;
  letter-spacing: -0.02em;
}

h1, .wp-block-heading.has-display-font-size {
  font-size: clamp(56px, 9vw, 132px) !important;
  line-height: 0.95 !important;
  letter-spacing: -0.03em !important;
}

h2 {
  font-size: clamp(48px, 6vw, 88px) !important;
  line-height: 1.05 !important;
}

h3 {
  font-size: clamp(36px, 4.5vw, 64px) !important;
  line-height: 1.1 !important;
}

h4 {
  font-size: clamp(22px, 2.4vw, 28px) !important;
  line-height: 1.2 !important;
  font-weight: 400 !important;
}

h5 {
  font-family: 'Inter', sans-serif !important;
  font-style: normal !important;
  font-weight: 500 !important;
  font-size: 11px !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
}

h6 {
  font-family: 'Inter', sans-serif !important;
  font-style: normal !important;
  font-weight: 500 !important;
  font-size: 11px !important;
  letter-spacing: 0.20em !important;
  text-transform: uppercase !important;
}

/* Italic <em> inside headings — colored copper for visual contrast against italic-on-italic */
h1 em, h2 em, h3 em, h4 em {
  font-style: italic;
  color: var(--gt-copper);
}

/* Form fields on dark brand-color sections — force readable contrast.
   Without this, <select> elements inherit the section's off-white text color
   while keeping the browser default white background = invisible. Affects all
   four dark-banded sections (gt-ink, gt-tsunami, gt-forest, gt-teal). */
.has-gt-ink-background-color input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
.has-gt-ink-background-color select,
.has-gt-ink-background-color textarea,
.has-gt-tsunami-background-color input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
.has-gt-tsunami-background-color select,
.has-gt-tsunami-background-color textarea,
.has-gt-forest-background-color input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
.has-gt-forest-background-color select,
.has-gt-forest-background-color textarea,
.has-gt-teal-background-color input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
.has-gt-teal-background-color select,
.has-gt-teal-background-color textarea {
  color: var(--gt-ink) !important;
  background-color: #ffffff !important;
}
.has-gt-ink-background-color select option,
.has-gt-tsunami-background-color select option,
.has-gt-forest-background-color select option,
.has-gt-teal-background-color select option {
  color: var(--gt-ink);
  background-color: #ffffff;
}

/* Section divider — hairline between adjacent sections in the post content area.
   Uses adjacent-sibling combinator so the rule applies between sections, not at
   the very top or very bottom. Sections rendered with backgroundColor (e.g. the
   full-bleed CTA bands) keep their own visual separation so no extra hairline
   needed there. */
section.wp-block-group + section.wp-block-group {
  border-top: 0.5px solid var(--gt-rule);
}
/* When the following section has its own background fill (cta-band etc.), suppress
   the hairline — the color change is the divider. */
section.wp-block-group + section.wp-block-group.has-background {
  border-top: 0 !important;
}

/* Narrow cover card — used on Home sub-brand cards. Cover normally fills its column;
   this constrains and centers it for the 520-wide design slot. */
.wp-block-cover.gt-cover-narrow {
  max-width: 520px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}


/* ============================================================
   Fresh drops list — recent product drops by dispensary
   Each row is a wp:columns block with className gt-drop-row;
   columns inside carry gt-drop-dispensary / -location / -products / -date.
   Fully editable in Gutenberg: click any text to retype.
   ============================================================ */
.wp-block-columns.gt-drop-row {
  border-top: 0.5px solid var(--gt-rule);
  padding-top: 20px !important;
  padding-bottom: 20px !important;
  margin-bottom: 0 !important;
  align-items: baseline;
}
.wp-block-columns.gt-drop-row:last-child {
  border-bottom: 0.5px solid var(--gt-rule);
}
.wp-block-column.gt-drop-dispensary p {
  font-family: 'Inter', sans-serif !important;
  font-style: normal !important;
  font-weight: 500 !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
}
.wp-block-column.gt-drop-location p {
  font-family: 'Inter', sans-serif !important;
  font-style: normal !important;
  font-weight: 400 !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  opacity: 0.65;
}
.wp-block-column.gt-drop-products p {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-style: italic !important;
  font-weight: 400 !important;
  font-size: 19px !important;
  line-height: 1.3 !important;
}
.wp-block-column.gt-drop-date p {
  font-family: 'Inter', sans-serif !important;
  font-style: normal !important;
  font-weight: 500 !important;
  font-size: 12px !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  opacity: 0.65;
  text-align: right;
}
@media (max-width: 800px) {
  .wp-block-columns.gt-drop-row {
    gap: 4px 16px !important;
  }
  .wp-block-column.gt-drop-date p { text-align: left; }
}

/* ============================================================
   Custom utility classes used across the homepage
   ============================================================ */

.gt-eyebrow {
  font-family: 'Inter', sans-serif !important;
  font-style: normal !important;
  font-weight: 500 !important;
  font-size: 11px !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  opacity: 0.6;
}

.gt-rule {
  border-top: 0.5px solid var(--gt-rule);
}

.gt-age-pill {
  font-size: 11px !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  font-style: normal !important;
}

/* ============================================================
   Sub-brand specific typography overrides
   These blocks need their OWN font-family per brand identity.
   ============================================================ */

.gt-nav-tsunami,
.gt-nav-tsunami a,
.subbrand-name-tsunami,
.wp-block-cover.is-style-tsunami h2,
h2.is-tsunami,
h2[style*="bricolage"] {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif !important;
  font-style: normal !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  text-transform: uppercase !important;
}

.gt-nav-provisions,
.gt-nav-provisions a,
.subbrand-name-provisions,
.wp-block-cover.is-style-provisions h2,
h2.is-provisions,
h2[style*="dm-serif"] {
  font-family: 'DM Serif Display', Georgia, serif !important;
  font-style: normal !important;
  font-weight: 400 !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
}

/* ============================================================
   Cover block tweaks — sub-brand cards on the homepage
   ============================================================ */

.wp-block-cover {
  overflow: hidden;
}

.wp-block-cover a.wp-block-cover {
  text-decoration: none;
}

.wp-block-cover .wp-block-cover__inner-container > * {
  color: inherit;
}

/* ============================================================
   Image bands — full-bleed photography
   ============================================================ */

.wp-block-image.alignfull img {
  width: 100%;
  display: block;
}

/* Force alignfull / brand-colored sections to reach the true viewport edge.
   Anything that's an alignfull cover, OR any wp:group with a GT brand
   background color (tsunami / teal / forest / ink), gets pulled out to
   100vw via the classic margin-calc trick so it doesn't get clamped by
   the constrained post-content max-width.
   The inner content stays centered/constrained because the group's own
   `layout: constrained` still applies inside this full-width band. */
.wp-block-post-content .wp-block-cover.alignfull,
main .wp-block-cover.alignfull,
.wp-block-post-content .wp-block-group.has-gt-tsunami-background-color,
.wp-block-post-content .wp-block-group.has-gt-teal-background-color,
.wp-block-post-content .wp-block-group.has-gt-forest-background-color,
.wp-block-post-content .wp-block-group.has-gt-ink-background-color,
main .wp-block-group.has-gt-tsunami-background-color,
main .wp-block-group.has-gt-teal-background-color,
main .wp-block-group.has-gt-forest-background-color,
main .wp-block-group.has-gt-ink-background-color {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

/* Clickable cover cards — wrap the whole cover in a transparent link overlay.
   The link is inside the cover's inner container, absolutely positioned to
   fill the entire cover. Inner content (headings, eyebrow, body, CTA) stays
   clickable via pointer-events: auto on links, and reads normally for screen
   readers via the link's aria-label. */
.wp-block-cover a.gt-cover-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  text-decoration: none;
  cursor: pointer;
}
.wp-block-cover .wp-block-cover__inner-container {
  position: relative;
  z-index: 2;
  pointer-events: none;
}
.wp-block-cover .wp-block-cover__inner-container a,
.wp-block-cover .wp-block-cover__inner-container button {
  pointer-events: auto;
}

/* Full-bleed photography band.
   No forced aspect ratio — let the image render at its natural shape.
   Portrait images (like the Provisions products) would be cropped to a
   thin letterbox under a fixed 21:9 ratio, which made them look broken.
   Width is 100% via .wp-block-image.alignfull img; height is intrinsic. */
.gt-hero-band img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 80vh;
  object-fit: cover;
  object-position: center;
}
.gt-hero-band {
  margin: 0 !important;
}

/* ============================================================
   Buttons + CTA links
   ============================================================ */

.wp-block-button__link,
.wp-element-button {
  border-radius: 0 !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  font-weight: 500 !important;
  padding: 18px 32px !important;
  transition: background 0.2s, color 0.2s, border-color 0.2s !important;
}

/* Filled button — default style. Dark ink bg, off-white text. */
.wp-block-button:not(.is-style-outline) .wp-block-button__link,
.wp-block-button:not(.is-style-outline) .wp-element-button {
  background-color: var(--gt-ink) !important;
  color: var(--gt-bg) !important;
  border: 0.5px solid var(--gt-ink) !important;
}
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
.wp-block-button:not(.is-style-outline) .wp-element-button:hover {
  background-color: var(--gt-forest) !important;
  border-color: var(--gt-forest) !important;
  color: var(--gt-bg) !important;
}

/* Outline button — transparent bg, dark text, dark border. Inverts on hover. */
.wp-block-button.is-style-outline .wp-block-button__link,
.wp-block-button.is-style-outline .wp-element-button {
  background-color: transparent !important;
  color: var(--gt-ink) !important;
  border: 0.5px solid var(--gt-ink) !important;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-element-button:hover {
  background-color: var(--gt-ink) !important;
  color: var(--gt-bg) !important;
  border-color: var(--gt-ink) !important;
}

/* Outline buttons on dark sections — invert so they stay readable.
   Targets any block whose ancestor has gt-tsunami or gt-ink as background. */
.has-gt-tsunami-background-color .wp-block-button.is-style-outline .wp-block-button__link,
.has-gt-tsunami-background-color .wp-block-button.is-style-outline .wp-element-button,
.has-gt-ink-background-color .wp-block-button.is-style-outline .wp-block-button__link,
.has-gt-ink-background-color .wp-block-button.is-style-outline .wp-element-button,
.has-gt-forest-background-color .wp-block-button.is-style-outline .wp-block-button__link,
.has-gt-forest-background-color .wp-block-button.is-style-outline .wp-element-button {
  background-color: transparent !important;
  color: var(--gt-bg) !important;
  border: 0.5px solid var(--gt-bg) !important;
}

.has-gt-tsunami-background-color .wp-block-button.is-style-outline .wp-block-button__link:hover,
.has-gt-tsunami-background-color .wp-block-button.is-style-outline .wp-element-button:hover,
.has-gt-ink-background-color .wp-block-button.is-style-outline .wp-block-button__link:hover,
.has-gt-ink-background-color .wp-block-button.is-style-outline .wp-element-button:hover,
.has-gt-forest-background-color .wp-block-button.is-style-outline .wp-block-button__link:hover,
.has-gt-forest-background-color .wp-block-button.is-style-outline .wp-element-button:hover {
  background-color: var(--gt-bg) !important;
  color: var(--gt-ink) !important;
  border-color: var(--gt-bg) !important;
}

/* ============================================================
   Links (inline)
   ============================================================ */

.wp-block-post-content a {
  color: var(--gt-ink);
  text-decoration: none;
  transition: color 0.2s;
}
.wp-block-post-content a:hover {
  color: var(--gt-forest);
}

/* ============================================================
   Container — match the editorial 1320px max-width
   ============================================================ */

.wp-site-blocks .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: 1320px;
}

/* ============================================================
   Header overrides — make sure nav looks right even before pattern customization
   ============================================================ */

header.wp-block-group {
  background: var(--gt-bg) !important;
  border-bottom: 0.5px solid var(--gt-rule);
  position: sticky;
  top: 0;
  z-index: 10;
}

.wp-block-navigation .wp-block-navigation-item__content {
  font-family: 'Inter', sans-serif !important;
  font-style: normal !important;
  text-transform: uppercase !important;
  font-size: 13px !important;
  letter-spacing: 0.04em !important;
  font-weight: 400 !important;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.wp-block-navigation .wp-block-navigation-item__content:hover {
  opacity: 1;
}

/* Sub-brand typography on nav links — give Tsunami and Provisions their own typeface
   in the top nav so the brand identity reads even before clicking through.
   Higher-specificity wins over the generic .wp-block-navigation rule above. */
.wp-block-navigation .gt-nav-tsunami a.wp-block-navigation-item__content,
.wp-block-navigation .gt-nav-tsunami .wp-block-navigation-item__content {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  text-transform: uppercase !important;
}
.wp-block-navigation .gt-nav-provisions a.wp-block-navigation-item__content,
.wp-block-navigation .gt-nav-provisions .wp-block-navigation-item__content {
  font-family: 'DM Serif Display', Georgia, serif !important;
  font-style: italic !important;
  font-weight: 400 !important;
  font-size: 16px !important;
  text-transform: none !important;
  letter-spacing: -0.01em !important;
}

/* Grid item alignment fix — Gutenberg adds default top margin to subsequent block
   children, breaking visual alignment in CSS-grid containers where the first item
   has no margin (per the :first-child reset). Zero out margins on grid item children
   so all items in a grid row share the same top baseline. */
.gt-products-grid > *,
.gt-strains-grid > *,
.gt-awards-list > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* ============================================================
   Tsunami page patterns — strain library, products grid, awards rows
   These are referenced from wp:html blocks on the Tsunami page.
   ============================================================ */

.gt-strains-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 0.5px solid var(--gt-rule);
}
.gt-strain-cell {
  padding: 18px 16px;
  border-right: 0.5px solid var(--gt-rule);
  border-bottom: 0.5px solid var(--gt-rule);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.gt-strain-cell:nth-child(4n) { border-right: 0; }
.gt-strain-name {
  font-family: 'Inter', sans-serif !important;
  font-style: normal !important;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.3;
}
.gt-strain-type {
  font-family: 'Inter', sans-serif !important;
  font-style: normal !important;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  opacity: 0.85;
  flex-shrink: 0;
  font-weight: 500;
}
.gt-strain-type.indica {
  color: var(--gt-gold);
  border: 0.5px solid var(--gt-gold);
}
.gt-strain-type.sativa {
  color: #B5D4F4;
  border: 0.5px solid #B5D4F4;
}

/* Block-style equivalents — selected from the Styles panel in the editor sidebar.
   Either selector path works; the block-style classes win when present because the
   `.gt-strain-type.is-style-*` form has class+class specificity matching the legacy
   selectors and lands later in the cascade. */
.is-style-gt-strain-indica,
.gt-strain-type.is-style-gt-strain-indica {
  color: var(--gt-gold) !important;
  border: 0.5px solid var(--gt-gold) !important;
}
.is-style-gt-strain-sativa,
.gt-strain-type.is-style-gt-strain-sativa {
  color: #B5D4F4 !important;
  border: 0.5px solid #B5D4F4 !important;
}
/* Pill base styling for paragraphs that ONLY have the block-style class (no .gt-strain-type) */
.is-style-gt-strain-indica:not(.gt-strain-type),
.is-style-gt-strain-sativa:not(.gt-strain-type) {
  font-family: 'Inter', sans-serif !important;
  font-style: normal !important;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  opacity: 0.85;
  font-weight: 500;
  display: inline-block;
}

.gt-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.gt-product {
  border-top: 0.5px solid var(--gt-rule);
  padding-top: 20px;
}
.gt-product-name {
  font-family: 'Bricolage Grotesque', sans-serif !important;
  font-style: normal !important;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.gt-product-formats {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-top: 6px;
}
.gt-product-desc {
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.75;
  margin-top: 14px;
}

.gt-awards-list {
  border-top: 0.5px solid var(--gt-rule);
}
.gt-award-row {
  display: grid;
  grid-template-columns: 200px 1fr 1.6fr;
  padding: 24px 0;
  border-bottom: 0.5px solid var(--gt-rule);
  gap: 32px;
  align-items: baseline;
}
.gt-award-year {
  font-family: 'Bricolage Grotesque', sans-serif !important;
  font-style: normal !important;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.65;
}
.gt-award-place {
  font-family: 'Cormorant Garamond', serif !important;
  font-style: normal !important;
  font-weight: 400;
  font-size: 22px !important;
  line-height: 1.2;
}
.gt-award-strain {
  font-family: 'Inter', sans-serif !important;
  font-style: normal !important;
  font-size: 14px;
  opacity: 0.75;
  line-height: 1.5;
}

.gt-copper-rule {
  width: 80px;
  height: 1px;
  background: var(--gt-copper);
  display: inline-block;
  vertical-align: middle;
  margin-right: 16px;
}

/* Mobile collapse */
@media (max-width: 1000px) {
  .gt-strains-grid { grid-template-columns: repeat(2, 1fr); }
  .gt-strain-cell:nth-child(4n) { border-right: 0.5px solid var(--gt-rule); }
  .gt-strain-cell:nth-child(2n) { border-right: 0; }
  .gt-products-grid { grid-template-columns: repeat(2, 1fr); }
  .gt-award-row { grid-template-columns: 1fr; gap: 8px; }
}

/* ============================================================
   Phone-specific polish — v1.15.0 mobile audit fixes
   Targets ≤600px (phones, narrow tablets in portrait).
   Tablet ≥601px keeps the medium-width 2-column layouts.
   ============================================================ */
@media (max-width: 600px) {

  /* Strain grid: 2-col → 1-col. Strain names like
     "Sour G × Marshmallow OG" wrap to 3 lines in a 2-col layout
     at phone widths and the type pill gets pinched. */
  .gt-strains-grid {
    grid-template-columns: 1fr;
  }
  .gt-strain-cell {
    border-right: 0 !important;
  }

  /* Products grid: 2-col → 1-col. At 195px a column the body copy
     wraps too tightly to read. Single column is calmer and still scans fast. */
  .gt-products-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .gt-product {
    padding-top: 24px;
    padding-bottom: 4px;
  }

  /* Cover cards on the homepage are locked at 600px min-height.
     At 342px viewport-width that's a 0.57 aspect ratio — too narrow
     and the background image gets weirdly cropped. Loosen for phones.
     Also reposition the inner image so the subject is visible rather than
     cropped to the edge. */
  .wp-block-cover.gt-cover-narrow {
    min-height: 480px !important;
    height: auto !important;
  }
  .wp-block-cover.gt-cover-narrow .wp-block-cover__image-background {
    object-position: center top;
  }

  /* Section padding: 72px top/bottom on desktop is too generous on phones.
     Tighten to 56px so scrolling doesn't feel like wading through whitespace.
     Scoped to constrained sections; full-bleed bands keep their own padding. */
  .wp-block-post-content > section.wp-block-group:not(.has-background) {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }

  /* Full-bleed image band on phones: cap height so portrait product photos
     don't push 1400px tall on a narrow viewport. */
  .gt-hero-band img {
    max-height: 70vh;
  }

  /* Provisions vape carts / disposables / RSO row uses wp:group flex layout
     that doesn't auto-stack like wp:columns. Force stack at phone widths. */
  .wp-block-post-content .wp-block-group.is-layout-flex {
    flex-direction: column !important;
  }
  .wp-block-post-content .wp-block-group.is-layout-flex > .wp-block-group,
  .wp-block-post-content .wp-block-group.is-layout-flex > .wp-block-column {
    flex-basis: auto !important;
    width: 100% !important;
  }

  /* Hamburger button and 21+ pill: bump tap targets toward the 44×44 minimum.
     Default Gutenberg overlay-open button is ~24px; pad it out. */
  .wp-block-navigation__responsive-container-open,
  .wp-block-navigation__responsive-container-close {
    padding: 10px !important;
    min-width: 44px;
    min-height: 44px;
  }
  .gt-age-pill {
    min-height: 32px;
    min-width: 44px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  /* Footer compliance line: license numbers are 20+ digits and break ugly
     across two lines. Use word-break to break at natural points. */
  footer .has-text-color p {
    word-break: break-word;
    overflow-wrap: anywhere;
  }
}

/* ============================================================
   Footer list bullets — remove sitewide, not phone-specific.
   TT24 parent shows default disc bullets on wp-block-list inside
   the footer. Strip them — our footer style is the link itself. */
footer.wp-block-group .wp-block-list,
footer .wp-block-list {
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}
footer .wp-block-list li {
  list-style: none !important;
}

/* ============================================================
   Fluent Forms submit button — brand to match the site CTAs.
   Default .ff-btn-submit ships as bright blue (#1A7EFB); paint it
   GT-ink with the same shape and type as our wp-block-buttons.
   Targets all known Fluent Forms button hooks for robustness across versions. */
.frm-fluent-form .ff-btn,
.frm-fluent-form .ff-btn-submit,
.frm-fluent-form button[type="submit"],
.fluentform .ff-btn,
.fluentform .ff-btn-submit,
.fluentform button[type="submit"],
form.frm-fluent-form button {
  background-color: var(--gt-ink) !important;
  color: var(--gt-bg) !important;
  border: 0.5px solid var(--gt-ink) !important;
  border-radius: 0 !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  padding: 16px 32px !important;
  width: 100%;
  max-width: 100%;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s !important;
}
.frm-fluent-form .ff-btn:hover,
.frm-fluent-form .ff-btn-submit:hover,
.frm-fluent-form button[type="submit"]:hover,
.fluentform .ff-btn:hover,
.fluentform button[type="submit"]:hover {
  background-color: var(--gt-forest) !important;
  border-color: var(--gt-forest) !important;
  color: var(--gt-bg) !important;
}

/* Form labels and required-asterisk readable on every dark section.
   Without this the * is invisible against the gt-ink form section. */
.has-gt-ink-background-color .frm-fluent-form label,
.has-gt-tsunami-background-color .frm-fluent-form label,
.has-gt-forest-background-color .frm-fluent-form label,
.has-gt-teal-background-color .frm-fluent-form label,
.has-gt-ink-background-color .frm-fluent-form .ff-el-input--label label,
.has-gt-tsunami-background-color .frm-fluent-form .ff-el-input--label label,
.has-gt-forest-background-color .frm-fluent-form .ff-el-input--label label,
.has-gt-teal-background-color .frm-fluent-form .ff-el-input--label label {
  color: var(--gt-bg) !important;
}
.has-gt-ink-background-color .frm-fluent-form .ff-el-is-required .ff-el-input--label label:after,
.has-gt-tsunami-background-color .frm-fluent-form .ff-el-is-required .ff-el-input--label label:after,
.has-gt-forest-background-color .frm-fluent-form .ff-el-is-required .ff-el-input--label label:after,
.has-gt-teal-background-color .frm-fluent-form .ff-el-is-required .ff-el-input--label label:after {
  color: var(--gt-copper) !important;
}
