/* Trawa Romero / Atelier. Shared layout system, progressively enhanced.
   Native scroll, intrinsic card heights, no WebGL or animation framework. */
:root {
  --atelier-ink: #111013;
  --atelier-paper: #f4eee7;
  --atelier-muted: #b8acb3;
  --atelier-rose: #e8a1c0;
  --atelier-line: rgba(244,238,231,.14);
  --atelier-panel: #1b171c;
  --pink: #e8a1c0;
  --tr-interface-accent: #e8a1c0;
}
html { scroll-padding-top: 96px; }
body {
  background: var(--atelier-ink) !important;
  color: var(--atelier-paper);
  accent-color: var(--atelier-rose);
}
body :is(.wrap,.rx-wrap,.compare-wrap,.guide-wrap,.ep-wrap) {
  width: min(1320px, calc(100% - 64px));
  max-width: 1320px;
  margin-inline: auto;
}
body :is(main,section,article,form,fieldset) { min-width: 0; }
body :is(h1,h2,h3,h4) { text-wrap: balance; }
body :is(p,li,dd) { text-wrap: pretty; }
body :is(input,select,textarea) { max-width: 100%; }
body :is(button,a,input,select,textarea,summary):focus-visible {
  outline: 2px solid var(--atelier-rose); outline-offset: 4px;
}
body > header {
  background: rgba(17,16,19,.97) !important;
  border-bottom: 1px solid var(--atelier-line) !important;
  box-shadow: none !important;
}
body .tr-nav-shell { min-height: 76px !important; }
body .tr-nav-toggle { border-radius: 999px !important; }
body :is(.tr-kick,.eyebrow) {
  font-size: 12px !important;
  letter-spacing: .14em !important;
  line-height: 1.65;
  color: var(--atelier-rose);
}
body .tr-marquee { border: 0; background: #21181e; }
body .tr-marquee-in { animation: none !important; transform: none !important; }
body .tr-marquee-in > span + span { display: none; }
body .tr-marquee-in > span { white-space: normal; text-align: center; font-size: 12px; }

/* A framed campaign image and a working search surface share the first screen. */
body.tr-home-v3 .tr-hero#hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr);
  align-items: stretch;
  gap: clamp(24px,4vw,64px);
  width: min(1320px, calc(100% - 64px));
  margin: 28px auto 0;
  padding: 0 0 36px !important;
  min-height: 0 !important;
  background: transparent !important;
  overflow: visible;
}
body.tr-home-v3 .tr-hero#hero::before,
body.tr-home-v3 .tr-hero#hero::after,
body.tr-home-v3 .tr-hero-grain { display: none !important; }
body.tr-home-v3 #hero .tr-hero-media[data-hero-rotation] {
  position: relative !important;
  inset: auto !important;
  grid-column: 2;
  grid-row: 1;
  min-height: 420px;
  border-radius: 24px 24px 100px 24px;
  border: 1px solid var(--atelier-line);
  overflow: hidden;
  background: #23191f;
  isolation: isolate;
}
body.tr-home-v3 #hero .tr-hero-media::after {
  background: linear-gradient(0deg,rgba(17,16,19,.45),transparent 45%) !important;
}
body.tr-home-v3 #hero .tr-hero-person {
  object-position: 64% center !important;
  filter: none !important;
}
body.tr-home-v3 #hero .tr-hero-in.wrap {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  padding: 20px 0 !important;
  margin: 0 !important;
  gap: 0;
}
body.tr-home-v3 #hero h1 {
  font-size: clamp(40px,4.6vw,68px) !important;
  line-height: 1.04 !important;
  letter-spacing: -.045em !important;
  max-width: 11ch;
  margin: 14px 0 18px !important;
  text-shadow: none !important;
}
body.tr-home-v3 #hero h1 em { color: var(--atelier-rose); }
body.tr-home-v3 #hero .tr-lede {
  font-size: 17px !important;
  line-height: 1.6;
  color: var(--atelier-muted);
  max-width: 38ch;
  margin-bottom: 18px;
}
body.tr-home-v3 #hero .tr-hero-cta { order: 5; margin: 16px 0 0; }
body.tr-home-v3 #hero .tr-hero-cta .tr-btn {
  min-height: 44px; padding: 8px 0;
  border: 0; background: none; box-shadow: none;
  color: var(--atelier-rose); text-decoration: underline; text-underline-offset: 5px;
}
body.tr-home-v3 #hero .tr-search {
  max-width: none !important; width: 100%; margin: 6px 0 22px !important;
}
body.tr-home-v3 #hero .tr-search label {
  font-size: 12px; letter-spacing: .015em; text-transform: none; margin-bottom: 8px;
}
body.tr-home-v3 #hero .tr-search-row {
  display: flex; gap: 8px; align-items: stretch;
}
body.tr-home-v3 #hero .tr-search-row input {
  min-width: 0; width: 100%; height: auto; min-height: 50px;
  background: #211b21; color: var(--atelier-paper); font-size: 15px;
  padding: 12px 14px; letter-spacing: 0;
}
body.tr-home-v3 #hero .tr-search-row button { padding-inline: 20px; border-radius: 12px; }
body.tr-home-v3 #hero .tr-quick {
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr));
  border: 0; border-top: 1px solid var(--atelier-line); background: transparent;
  margin: 0; max-width: none; gap: 12px;
}
body.tr-home-v3 #hero .tr-quick a {
  padding: 14px 0 0 !important; background: transparent !important;
  border: 0 !important; gap: 6px; min-height: 0;
}
body.tr-home-v3 #hero .tr-quick a::before { display: none; }
body.tr-home-v3 #hero .tr-quick b { font-size: 13px; line-height: 1.45; }
body.tr-home-v3 #hero .tr-quick span { font-size: 12px; line-height: 1.55; letter-spacing: 0; }

/* Editorial rhythm replaces oversized repeated panels. */
body.tr-home-v3 main > section:not(#hero) { padding-block: 44px !important; }
body.tr-home-v3 main > section { border-color: var(--atelier-line) !important; }
body.tr-home-v3 .tr-h2 { font-size: clamp(30px,3.5vw,46px) !important; letter-spacing: -.035em; }
body.tr-home-v3 #specimen .tr-spec-intro {
  display: grid !important; grid-template-columns: 1fr !important; gap: 22px !important;
}
body.tr-home-v3 #specimen .tr-spec-intro-copy .tr-h2 { max-width: none !important; }
body.tr-home-v3 #specimen .tr-spec-intro-copy { display: flex; flex-direction: column; gap: 8px; }
body.tr-home-v3 #specimen .tr-picks { width: 100%; min-width: 0; }
body.tr-home-v3 #specimen .tr-spec {
  border-radius: 22px !important;
  background: #1a171b !important;
  box-shadow: none !important;
}
body.tr-home-v3 :is(.tr-card,.tr-pick) {
  background: linear-gradient(145deg,#261c25,#18151a) !important;
  border: 1px solid var(--atelier-line) !important;
  border-radius: 18px !important;
  box-shadow: none !important;
}
body.tr-home-v3 .tr-card { padding: 22px !important; }
body.tr-home-v3 .tr-card:hover { border-color: rgba(232,161,192,.55) !important; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  body .tr-atelier-lit {
    background: radial-gradient(360px circle at var(--atelier-x,50%) var(--atelier-y,50%),rgba(232,161,192,.11),transparent 70%),linear-gradient(145deg,#261c25,#18151a) !important;
  }
}
body.tr-home-v3 :is(.tr-chip-terpene,.tr-chip-aroma,.tr-badge-gen,.tr-badge-potency) {
  font-size: 12px !important; line-height: 1.45 !important;
  letter-spacing: .015em !important; padding: 5px 8px !important; border-radius: 6px;
}

/* Shared route grammar: title, context, controls, result. */
body:not(.tr-home-v3) :is(.hero,.rx-hero,.compare-hero,.account-hero,.hub-hero) {
  padding-block: 42px 28px !important;
  min-height: 0 !important;
  background: radial-gradient(ellipse at 88% 0,rgba(177,79,125,.12),transparent 62%),#161217 !important;
  border-bottom: 1px solid var(--atelier-line);
}
body:not(.tr-home-v3) :is(.hero,.rx-hero,.compare-hero,.account-hero,.hub-hero) h1 {
  font-size: clamp(34px,4.2vw,56px) !important;
  line-height: 1.08 !important; letter-spacing: -.035em !important;
  margin-block: 12px 16px !important; max-width: 23ch;
}
body:not(.tr-home-v3) :is(.hero,.rx-hero,.compare-hero,.account-hero,.hub-hero) :is(.lede,.subtitle) {
  font-size: 16px !important; line-height: 1.65; max-width: 70ch;
}
body :is(.catalog-guide,.catalog-controls,.rx-explainer,.compare-search-panel,.panel,.hub-card,.producer-card) {
  border-radius: 18px !important;
  border-color: var(--atelier-line) !important;
  background-color: var(--atelier-panel) !important;
  box-shadow: none !important;
}
body .catalog-guide { padding: 24px !important; gap: 20px !important; }
body .catalog-guide .facts { gap: 16px; }
body .catalog-guide .fact { border-top: 1px solid var(--atelier-line); padding-top: 12px; }
body :is(.catalog-controls,.compare-search-panel) { padding: 20px !important; }
body :is(.catalog-search-row,.catalog-journey,.compare-toolbar) { gap: 12px; }
body :is(.catalog-search-row,.rx-filter-grid) :is(input,select),
body :is(input.control,select.control,.tr-map-search-input) {
  min-height: 48px; border: 1px solid rgba(232,161,192,.25);
  border-radius: 10px; background-color: #211b21; color: var(--atelier-paper);
}
body .tr-map-root { --tr-map-accent: #e8a1c0; }
body .tr-map-root .tr-map-pharm-card {
  border-radius: 12px; padding: 16px;
  background: #201a21; border-color: var(--atelier-line);
}
body .tr-map-root .tr-map-pharm-card[aria-pressed="true"] {
  border-color: var(--atelier-rose); background: #30212b;
}
body .tr-map-root .tr-map-pharm-name { font-size: 19px; line-height: 1.3; }
body .tr-map-root .tr-map-pharm-addr { font-size: 13px; line-height: 1.55; }
body .tr-map-root .tr-map-pharm-date { font-size: 12px; line-height: 1.5; }
body .tr-map-root .tr-map-pharm-price-row { gap: 10px; flex-wrap: wrap; }

/* Footer navigation must retain real spacing even when HTML links are adjacent. */
body footer { background: #141115 !important; border-top: 1px solid var(--atelier-line) !important; }
body footer :is(.foot-grid,.footer-grid) { gap: 28px !important; padding-block: 28px; }
body footer .foot-col {
  display: flex !important; flex-direction: column !important;
  align-items: flex-start !important; gap: 10px !important;
}
body footer :is(.journey-links,.legal-links,.footer-links,.foot-links),
body footer nav {
  display: flex !important; flex-wrap: wrap !important;
  align-items: center !important; gap: 10px 24px !important;
  padding-block: 12px; position: static !important;
}
body footer a {
  display: inline-flex; align-items: center; min-height: 36px;
  line-height: 1.5; font-size: 13px; letter-spacing: .015em;
  margin: 0 !important;
}
body footer :is(.foot-bottom,.footer-note) {
  padding-block: 18px; border-top: 1px solid var(--atelier-line); color: var(--atelier-muted);
}
@media (max-width: 900px) {
  body :is(.wrap,.rx-wrap,.compare-wrap,.guide-wrap,.ep-wrap) { width: calc(100% - 40px); }
  body.tr-home-v3 .tr-hero#hero { width: calc(100% - 40px); gap: 24px; }
  body.tr-home-v3 #hero .tr-hero-media[data-hero-rotation] { min-height: 380px; }
  body.tr-home-v3 #hero .tr-quick { grid-template-columns: 1fr; gap: 0; }
  body.tr-home-v3 #hero .tr-quick a { display: flex; flex-direction: row; justify-content: space-between; gap: 12px; }
  body.tr-home-v3 #hero .tr-quick span { max-width: 50%; text-align: right; }
}
@media (max-width: 640px) {
  body :is(.wrap,.rx-wrap,.compare-wrap,.guide-wrap,.ep-wrap) { width: calc(100% - 32px); }
  body.tr-home-v3 .tr-hero#hero {
    width: calc(100% - 32px); grid-template-columns: 1fr; margin-top: 16px; gap: 16px; padding-bottom: 24px !important;
  }
  body.tr-home-v3 #hero .tr-hero-in.wrap { grid-column: 1; grid-row: 1; padding: 12px 0 !important; }
  body.tr-home-v3 #hero .tr-hero-media[data-hero-rotation] {
    grid-column: 1; grid-row: 2; min-height: 220px; height: 220px;
    border-radius: 16px 16px 56px 16px;
  }
  body.tr-home-v3 #hero h1 { max-width: 13ch; font-size: clamp(38px,10.5vw,52px) !important; }
  body.tr-home-v3 #hero .tr-search-row button { padding-inline: 14px; }
  body.tr-home-v3 main > section:not(#hero) { padding-block: 30px !important; }
  body:not(.tr-home-v3) :is(.hero,.rx-hero,.compare-hero,.account-hero,.hub-hero) { padding-block: 28px 22px !important; }
  body .catalog-guide { padding: 18px !important; }
  body footer :is(.journey-links,.legal-links,.footer-links,.foot-links) { gap: 8px 18px !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  body :is(.tr-hero-person,.tr-card) { animation: none !important; transition: none !important; }
}

/* Full-width campaign photograph, with a readable overlay over the image. */
body.tr-home-v3 .tr-hero#hero {
  display: block; width: 100%; margin: 0; padding: 0 !important;
  min-height: 610px !important; overflow: hidden; isolation: isolate;
}
body.tr-home-v3 #hero .tr-hero-media[data-hero-rotation] {
  position: absolute !important; inset: 0 !important; width: 100%; height: 100%;
  min-height: 0; border: 0; border-radius: 0; z-index: 0;
}
body.tr-home-v3 #hero .tr-hero-media::after {
  position: absolute; inset: 0; content: ''; z-index: 1;
  background: linear-gradient(90deg,rgba(9,8,11,.9) 0%,rgba(9,8,11,.74) 36%,rgba(9,8,11,.2) 65%,rgba(9,8,11,.08)) !important;
}
body.tr-home-v3 #hero .tr-hero-person { width: 100%; height: 100%; object-fit: cover; object-position: center 48% !important; }
body.tr-home-v3 #hero .tr-hero-in.wrap {
  position: relative; z-index: 2; width: min(1320px,calc(100% - 80px)) !important;
  margin: 0 auto !important; padding: 52px 0 38px !important; min-height: 610px !important;
}
body.tr-home-v3 #hero .tr-hero-in.wrap > * { width: min(590px,100%); max-width: 590px !important; }
body.tr-home-v3 #hero h1 { max-width: 12ch !important; }
body.tr-home-v3 #hero .tr-lede { color: #e6dce1; }
body.tr-home-v3 #hero .tr-quick { background: rgba(17,13,17,.5); padding: 0 12px 12px; }
@media (max-width: 640px) {
  body.tr-home-v3 #hero .tr-hero-in.wrap { width: calc(100% - 32px) !important; padding: 36px 0 24px !important; min-height: 580px !important; }
  body.tr-home-v3 #hero .tr-hero-media::after { background: linear-gradient(90deg,rgba(9,8,11,.88),rgba(9,8,11,.5)) !important; }
  body.tr-home-v3 #hero .tr-hero-person { object-position: 65% center !important; }
}
