/* teas.co.uk — header + shop mega menu (desktop base)
   Load FIRST. Touch layer (teas-header-touch.css) loads after.
   Tokens: paper #fff · mist #eff7f6 · ink #0E0F12 · body #2a3a37 · muted #4b5551
           teal #0b8b7a · deep #042220 · pine #0a4444 · mint #5eead4
   Type:   Instrument Serif (display) · DM Sans (everything) · JetBrains Mono (labels: 12/11/10 only) */

/* ── motion, copied verbatim from the locked recipes + wiki pages.
      THE TIMINGS ARE THE DESIGN — do not "tidy" them. ── */
@keyframes teasMarquee { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }
@keyframes teasHue     { from { filter: hue-rotate(0deg); } to { filter: hue-rotate(360deg); } }
@keyframes teasBlobA { 0% { transform: translate3d(0,0,0) scale(1); } 33% { transform: translate3d(90px,40px,0) scale(1.18); } 66% { transform: translate3d(30px,-52px,0) scale(.92); } 100% { transform: translate3d(0,0,0) scale(1); } }
@keyframes teasBlobB { 0% { transform: translate3d(0,0,0) scale(1.05); } 40% { transform: translate3d(-110px,54px,0) scale(.88); } 75% { transform: translate3d(-40px,-36px,0) scale(1.22); } 100% { transform: translate3d(0,0,0) scale(1.05); } }
@keyframes teasBlobC { 0% { transform: translate3d(0,0,0) scale(.95); } 50% { transform: translate3d(64px,-70px,0) scale(1.3); } 100% { transform: translate3d(0,0,0) scale(.95); } }
@keyframes teasPip   { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(1.35); } }
@keyframes teasPulse { 0%,100% { opacity: .40; } 50% { opacity: .95; } }
@keyframes teasGrid  { from { background-position: 0 0; } to { background-position: 44px 44px; } }

/* ── announcement marquee (existing chrome) ── */
.tmp-marquee { position: relative; height: 32px; overflow: hidden; background: #0E0F12; color: #FAF3DF; }
.tmp-marquee-track { position: absolute; inset: 0 auto 0 0; display: flex; align-items: center; width: max-content; animation: teasMarquee 52s linear infinite; will-change: transform; }
.tmp-marquee-run { display: inline-flex; align-items: center; gap: 28px; flex: 0 0 auto; padding-right: 28px; white-space: nowrap; font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; }
.tmp-marquee-run a { color: inherit; text-decoration: none; }
.tmp-marquee-run a:hover { text-decoration: underline; }
.tmp-marquee-run i { font-style: normal; color: rgba(250,243,223,.34); }

/* ── shell + top bar ── */
.tmp-shell { max-width: 1240px; margin: 0 auto; padding: 24px 28px 0; }
.tmp-headwrap { position: relative; z-index: 40; }
.tmp-topbar {
  position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 8px; font-size: 13.5px;
  border-radius: 999px; border: 1px solid rgba(208,214,224,.6); background: rgba(242,244,248,.88);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 2px 8px rgba(14,20,40,.06), 0 12px 32px rgba(14,20,40,.04);
}
.tmp-brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 1 auto; padding: 8px 16px 8px 8px; border-radius: 999px; border: 1.5px solid rgba(14,15,18,.08); background: #fff; color: #042220; font-weight: 600; font-size: 14px; text-decoration: none; }
.tmp-brand-mark { width: 34px; height: 34px; border-radius: 50%; background: #1faa9c; color: #042220; display: inline-flex; align-items: center; justify-content: center; font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-size: 19px; line-height: 1; }
.tmp-brand-word { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-size: 20px; letter-spacing: -.005em; }
.tmp-nav { display: flex; align-items: center; flex: 1; justify-content: center; flex-wrap: wrap; }
.tmp-nav > a { padding: 10px 18px; border-radius: 999px; color: #5C6270; font-weight: 500; text-decoration: none; }
.tmp-nav > a:hover { color: #042220; background: rgba(255,255,255,.7); }
.tmp-nav > a[aria-current="page"] { background: #0a4444; color: #fff; font-weight: 600; }

.tmp-shop { display: inline-flex; align-items: center; align-self: center; min-height: 38px; margin: 0 6px; border: 1px solid rgba(14,15,18,.08); border-radius: 999px; background: #fff; overflow: hidden; transition: background .18s ease, border-color .18s ease; }
.tmp-shop > a { padding: 10px 16px; color: #5C6270; font-weight: 500; text-decoration: none; transition: color .18s ease; }
.tmp-shop-caret { border: 0; border-left: 1px solid rgba(14,15,18,.08); background: none; padding: 10px 11px 8px; color: #5C6270; cursor: pointer; display: flex; align-items: center; transition: color .18s ease; }
.tmp-shop-caret svg { transition: transform .22s ease; }
.tmp-shop.is-open { background: #0a4444; border-color: #0a4444; }
.tmp-shop.is-open > a, .tmp-shop.is-open .tmp-shop-caret { color: #fff; }
.tmp-shop.is-open .tmp-shop-caret { border-left-color: rgba(255,255,255,.22); }
.tmp-shop.is-open .tmp-shop-caret svg { transform: rotate(180deg); }

.tmp-icon { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; color: #042220; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.tmp-icon:hover { background: rgba(255,255,255,.8); }
.tmp-bag { display: inline-flex; align-items: center; gap: 8px; height: 42px; flex: 0 0 auto; padding: 0 14px 0 8px; border-radius: 999px; background: #042220; border: 1px solid rgba(31,170,156,.2); color: #fff; font-weight: 600; font-size: 13px; text-decoration: none; }
.tmp-bag-count { width: 26px; height: 26px; border-radius: 50%; background: #30d8c8; color: #042220; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 11px; }
.tmp-bag-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.tmp-bag-rule { width: 1px; height: 14px; background: rgba(255,255,255,.22); }
.tmp-bag-total { font-family: 'Instrument Serif', Georgia, serif; font-size: 15px; }
.tmp-burger { display: none; width: 44px; height: 44px; flex: 0 0 44px; margin-left: auto; align-items: center; justify-content: center; border: 1px solid rgba(4,34,32,.10); border-radius: 999px; background: #fff; color: #042220; cursor: pointer; }
.tmp-burger.is-open { background: #042220; color: #fff; }

/* ── mega panel ──
   INSET 54px from each end of the top bar so there is a strip of page to click out on.
   NO open animation and NO max-height/overflow on the body: the panel is sized to fit
   as-is (~654px). If you add links, cut links — do not reintroduce a scrollbar. */
.tmp-mega { display: none; position: absolute; top: calc(100% + 12px); left: 54px; right: 54px; z-index: 1; background: #fff; border: 1px solid rgba(4,34,32,.10); border-radius: 28px; overflow: hidden; box-shadow: 0 50px 110px -50px rgba(4,34,32,.55), 0 2px 0 rgba(255,255,255,.8) inset; }
.tmp-mega.is-open { display: block; }
.tmp-mega-edge { height: 4px; animation: teasHue 26s linear infinite; background: linear-gradient(90deg,#5eead4,#8cc4ff,#ffbe84,#f0a8c8,#5eead4); }
.tmp-mega-body { position: relative; padding: 24px 26px 20px; }
.tmp-mega-body::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(4,34,32,.055) 1px, transparent 1px); background-size: 22px 22px; animation: teasGrid 7s linear infinite, teasPulse 8s ease-in-out infinite; }
.tmp-cols { position: relative; display: grid; grid-template-columns: minmax(0,1fr) 272px; gap: 22px 28px; align-items: start; }
.tmp-h { margin: 0 0 12px; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8a938f; }
.tmp-count { font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700; letter-spacing: .04em; color: #0b6b5f; background: #eff7f6; border-radius: 999px; padding: 2px 7px; flex: none; }

/* jump-in row */
.tmp-jump { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid rgba(4,34,32,.09); }
.tmp-jump .tmp-h { margin: 0 4px 0 0; }

/* chips (jump in, caffeine, moment) */
.tmp-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px; background: #fff; border: 1px solid rgba(4,34,32,.12); border-radius: 999px; color: #2a3a37; font-size: 13.5px; font-weight: 600; white-space: nowrap; text-decoration: none; transition: background .16s ease, border-color .16s ease; }
.tmp-chip:hover { background: #eff7f6; border-color: rgba(11,139,122,.5); }
.tmp-chips { display: flex; flex-wrap: wrap; gap: 7px; }

/* family tiles — 3 across. Four across is too narrow for "Fruit & herbal" + its count. */
.tmp-fams { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; }
.tmp-fam { display: flex; align-items: center; gap: 9px; min-height: 46px; padding: 7px 12px 7px 11px; background: #fff; border: 1px solid rgba(4,34,32,.10); border-left: 3px solid rgba(4,34,32,.10); border-radius: 14px; color: #0E0F12; text-decoration: none; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.tmp-fam:hover { border-color: rgba(11,139,122,.55); border-left-color: #0b8b7a; background: #eff7f6; transform: translateY(-2px); }
.tmp-fam-ico { flex: none; width: 27px; height: 27px; border-radius: 50%; background: #eff7f6; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.tmp-fam-label { flex: 1; min-width: 0; font-weight: 700; font-size: 14px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tmp-fam-sub { display: none; }                 /* the descriptive line is drawer-only */

/* the three sub-columns under the tiles */
.tmp-sub { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,.82fr) minmax(0,.86fr); gap: 18px 24px; align-content: start; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(4,34,32,.09); }
.tmp-types { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 6px; }
.tmp-type { display: flex; align-items: center; min-height: 36px; padding: 0 10px; border-radius: 10px; color: #2a3a37; font-size: 14px; font-weight: 600; white-space: nowrap; text-decoration: none; transition: background .14s ease, color .14s ease; }
.tmp-type:hover { background: #eff7f6; color: #0b6b5f; }

/* rail */
.tmp-feat { display: block; padding: 9px 13px; background: #fff; border: 1px solid rgba(4,34,32,.10); border-radius: 13px; color: #0E0F12; text-decoration: none; transition: border-color .16s ease, background .16s ease; }
.tmp-feat:hover { border-color: rgba(11,139,122,.55); background: #eff7f6; }
.tmp-feat-label { display: block; font-weight: 700; font-size: 14px; line-height: 1.3; }
.tmp-feat-sub { display: block; font-size: 12.5px; color: #4b5551; }
.tmp-feat-list { display: grid; grid-template-columns: 1fr; gap: 7px; }
.tmp-brands { display: flex; flex-direction: column; gap: 4px; }
.tmp-brandrow { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 11px; border: 1px solid rgba(4,34,32,.10); border-radius: 10px; color: #2a3a37; font-size: 13.5px; font-weight: 600; white-space: nowrap; text-decoration: none; transition: background .14s ease, border-color .14s ease; }
.tmp-brandrow:hover { background: #eff7f6; border-color: rgba(11,139,122,.45); }
.tmp-brandrow .tmp-spacer { flex: 1; }
.tmp-allbrands { display: flex; align-items: center; gap: 8px; min-height: 38px; margin-top: 6px; padding: 0 10px; border-radius: 10px; background: #eff7f6; color: #0b6b5f; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700; letter-spacing: .10em; text-transform: uppercase; text-decoration: none; }

/* brand of the month — the approved animated band, small */
.tmp-bom { position: relative; isolation: isolate; overflow: hidden; display: block; margin-bottom: 9px; padding: 13px 16px; border-radius: 16px; color: #fff; text-decoration: none; background: linear-gradient(150deg,#042220,#0a4444); }
.tmp-bom-blobs { position: absolute; inset: 0; pointer-events: none; opacity: .55; animation: teasHue 26s linear infinite; }
.tmp-bom-blobs i { position: absolute; border-radius: 50%; display: block; }
.tmp-bom-blobs i:nth-child(1) { width: 220px; height: 220px; left: -60px; top: -90px; animation: teasBlobA 19s ease-in-out infinite; background: radial-gradient(circle at 40% 40%, rgba(94,234,212,.85), rgba(94,234,212,0) 68%); }
.tmp-bom-blobs i:nth-child(2) { width: 200px; height: 200px; right: -70px; top: -50px; animation: teasBlobB 23s ease-in-out infinite; background: radial-gradient(circle at 50% 50%, rgba(255,190,132,.5), rgba(255,190,132,0) 66%); }
.tmp-bom-blobs i:nth-child(3) { width: 240px; height: 240px; left: 30%; bottom: -160px; animation: teasBlobC 29s ease-in-out infinite; background: radial-gradient(circle at 50% 50%, rgba(140,196,255,.5), rgba(140,196,255,0) 68%); }
.tmp-bom-kicker { position: relative; display: flex; align-items: center; gap: 9px; font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #5eead4; }
.tmp-bom-kicker b { width: 7px; height: 7px; border-radius: 50%; background: #5eead4; box-shadow: 0 0 12px rgba(94,234,212,.6); animation: teasPip 1.9s ease-in-out infinite; }
.tmp-bom-name { position: relative; display: block; margin-top: 5px; font-family: 'Instrument Serif', Georgia, serif; font-size: 26px; line-height: 1.1; }

/* panel footer bar */
.tmp-mega-foot { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 16px 28px; border-top: 1px solid rgba(4,34,32,.10); background: #eff7f6; }
.tmp-allshop { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 22px; border-radius: 999px; background: #042220; color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; transition: background .16s ease; }
.tmp-allshop:hover { background: #0a4444; }
.tmp-spacer { flex: 1; }
.tmp-note { display: inline-flex; align-items: center; gap: 8px; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700; letter-spacing: .10em; text-transform: uppercase; color: #0b6b5f; }
.tmp-note b { width: 6px; height: 6px; border-radius: 50%; background: #0b8b7a; box-shadow: 0 0 0 4px rgba(11,139,122,.13); }
.tmp-close { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: #fff; border: 1px solid rgba(4,34,32,.12); color: #4b5551; cursor: pointer; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

/* focus + reduced motion */
.tmp-topbar a:focus-visible, .tmp-topbar button:focus-visible,
.tmp-mega a:focus-visible, .tmp-mega button:focus-visible { outline: 2px solid #0b8b7a; outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  .tmp-marquee-track, .tmp-mega-edge, .tmp-mega-body::before, .tmp-bom-blobs, .tmp-bom-blobs i, .tmp-bom-kicker b { animation: none !important; }
}

/* ── search overlay (all viewports) ──
   Opened by .tmp-searchbtn in the top bar and by the drawer's search button.
   It is a real GET form to / with name="s" — Enter submits with no JS at all. */
.tmp-searchwrap { display: none; position: fixed; inset: 0; z-index: 2100; }
.tmp-searchwrap.is-open { display: block; }
.tmp-search-scrim { position: absolute; inset: 0; background: rgba(4,34,32,.46); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: teasFade .22s ease both; }
.tmp-searchsheet { position: absolute; top: 12%; left: 50%; transform: translateX(-50%); width: min(680px, 92%); background: #fff; border: 1px solid rgba(4,34,32,.10); border-radius: 26px; overflow: hidden; box-shadow: 0 50px 110px -50px rgba(4,34,32,.55); }
.tmp-search-edge { height: 4px; animation: teasHue 26s linear infinite; background: linear-gradient(90deg,#5eead4,#8cc4ff,#ffbe84,#f0a8c8,#5eead4); }
.tmp-search-body { position: relative; padding: 26px 26px 20px; }
.tmp-search-body::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(4,34,32,.055) 1px, transparent 1px); background-size: 22px 22px; animation: teasGrid 7s linear infinite, teasPulse 8s ease-in-out infinite; }
.tmp-search-title { position: relative; margin: 0; font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: 38px; line-height: 1.05; letter-spacing: -.01em; color: #0E0F12; }
.tmp-search-title em { font-style: italic; color: #0b8b7a; }
.tmp-search-sub { position: relative; margin: 8px 0 0; max-width: 52ch; font-size: 15px; line-height: 1.5; color: #4b5551; }
.tmp-search-form { position: relative; display: flex; gap: 8px; margin-top: 18px; }
.tmp-search-form input { flex: 1; min-width: 0; min-height: 52px; padding: 0 18px; border: 1px solid rgba(4,34,32,.16); border-radius: 999px; background: #fff; color: #0E0F12; font-family: inherit; font-size: 16px; }
.tmp-search-form input:focus { outline: none; border-color: #0b8b7a; box-shadow: 0 0 0 3px rgba(11,139,122,.18); }
.tmp-search-go { flex: none; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border: 0; border-radius: 999px; background: #042220; color: #fff; font-family: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.tmp-search-go:hover { background: #0a4444; }
.tmp-search-pop { position: relative; display: flex; flex-wrap: wrap; gap: 8px; }
.tmp-search-pop a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 15px; background: #fff; border: 1px solid rgba(4,34,32,.12); border-radius: 999px; color: #2a3a37; font-size: 14.5px; font-weight: 600; text-decoration: none; }
.tmp-search-pop a:hover { background: #eff7f6; border-color: rgba(11,139,122,.5); }
.tmp-search-foot { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 26px; border-top: 1px solid rgba(4,34,32,.10); background: #eff7f6; }
.tmp-search-quiz { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: #fff; border: 1px solid rgba(4,34,32,.12); color: #042220; font-weight: 600; font-size: 14.5px; text-decoration: none; }
.tmp-searchbtn { width: 42px; height: 42px; flex: 0 0 42px; border: 0; border-radius: 50%; background: none; color: #042220; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.tmp-searchbtn:hover, .tmp-searchbtn[aria-expanded="true"] { background: rgba(255,255,255,.8); }
.tmp-sheet-search { font-family: inherit; text-align: left; cursor: pointer; width: 100%; }
@media (max-width: 560px) {
  .tmp-searchsheet { top: 0; left: 0; right: 0; bottom: 0; width: 100%; max-width: 100%; transform: none; border-radius: 0; display: flex; flex-direction: column; }
  .tmp-search-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .tmp-search-title { font-size: 32px; }
  .tmp-search-form { position: sticky; top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tmp-search-edge, .tmp-search-body::before, .tmp-search-scrim { animation: none !important; }
}
