/* Homepage only. Reuse the installed typefaces, color tokens and Core wallet. */
#tc-page-home.th-home {
  --inset: max(56px, calc((100% - 1480px)/2));
  --gap: 20px;
  --ink: var(--tc-ch-ink, #1b2430);
  --muted: var(--tc-ch-muted, #465364);
  --teal: var(--tc-ch-blue, #007d8d);
  --deep: var(--tc-ch-link, #006673);
  --line: var(--tc-ch-line, #ccd3d8);
  --tint: color-mix(in srgb, var(--teal) 9%, white);
  --shadow: var(--tc-ch-card-shadow, 0 1px 5px #1b243014);
  width: 100%; max-width: none; margin: 0; padding: 0;
  background: white; color: var(--ink); line-height: 1.48;
  font-family: var(--tc-font-copy, Inter, sans-serif);
}
.th-home *, .th-home *::before, .th-home *::after { box-sizing: border-box; }
.th-home :is(h1,h2,h3,p,figure,ol) { margin: 0; }
.th-home :is(h1,h2,h3) { font-family: var(--tc-font-heading,Inter,sans-serif); line-height: 1.1; letter-spacing: -.04em; }
.th-home h2 { font-size: clamp(26px,2.65vw,40px); }
.th-home p { color: var(--muted); }
#tc-page-home.th-home :is(.th-where,.th-hero-copy,.th-service-copy,.th-combined-copy,.th-section-top) p { line-height: 1.45; }
.th-home a { color: inherit; text-decoration: none; }
.th-home :is(a,summary,button,select,input):focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.th-symbols { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.th-i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; pointer-events: none; }
.th-hero {
  display: grid; grid-template-columns: minmax(0,2fr) minmax(0,3fr);
  grid-template-areas: "copy art"; align-items: center; gap: clamp(18px,2vw,32px);
  padding: clamp(12px,1.25vw,18px) var(--inset);
  background: linear-gradient(100deg,#fafcfd,var(--tc-ch-nav,#edf1f6) 76%);
}
/* The shared theme specifies an important page-title size on every main element. */
html body.tryycart-global-theme main#tc-page-home.th-home #headline { font-size: clamp(42px,4vw,64px)!important; line-height: 1.02!important; letter-spacing: -.055em!important; }
.th-hero h1 span { display: block; color: var(--teal); }
.th-hero-banner { border-radius: 12px; overflow: hidden; background: var(--tc-ch-nav,#edf1f6); }
.th-hero-copy { grid-area: copy; min-width: 0; text-align: start; }
.th-hero-copy p { max-width: 48ch; font-size: clamp(15px,1.15vw,18px); margin-top: 8px; }
.th-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.th-home .th-hero-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 96px; padding: 7px 14px; font-weight: 700; font-size: .94rem; line-height: 1.25; border-radius: 8px; border: 1px solid var(--deep); color: var(--deep); background: white; }
.th-home .th-hero-actions a:first-child { color: white; background: var(--deep); }
.th-home .th-hero-actions a:hover { text-decoration: underline; text-underline-offset: 3px; }
.th-hero-art { grid-area: art; min-width: 0; text-align: center; }
.th-hero-art img { display: block; width: 100%; height: auto; }
.th-hero-choices { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: start; margin-top: 5px; }
.th-hero-choices span { padding-inline: 2px; color: var(--ink); font-size: clamp(13px,1vw,16px); line-height: 1.25; font-weight: 650; }
.th-hero-total { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 6px; color: var(--deep); font-size: .875rem; line-height: 1.35; }
.th-hero-total .th-i { width: 16px; height: 16px; }
.th-delivery-band {
  margin-block-start: clamp(12px, 1.7vw, 24px);
  padding: 16px var(--inset);
  border-block-start: 1px solid var(--line);
  background: var(--tint);
}
.th-destination,.th-service,.th-department,.th-section-top { border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: var(--shadow); }
.th-destination { min-height: 96px; padding: 16px 22px; border-inline-start: 4px solid var(--teal); display: grid; grid-template-columns: minmax(230px,2fr) minmax(0,3fr); gap: 20px; align-items: center; }
.th-where { display: flex; align-items: center; gap: 12px; }
.th-where img { width: 58px; height: 48px; object-fit: contain; }
.th-where h2 { font-size: clamp(17px,1.4vw,22px); }
.th-where p { font-size: .82rem; margin-top: 4px; }
.th-destination-fallback { justify-self: start; color: var(--deep); text-decoration: underline; }
@media (max-width: 900px) and (scripting: enabled) {
  /* The two rows of destination fields take this link's place when Core starts. */
  .tcw-wallet-enabled .th-destination-fallback { min-block-size: 8.5rem; align-content: center; }
}
.th-destination [hidden] { display: none!important; }
.th-saved-place { display: flex; align-items: center; gap: 16px; }
.th-saved-place button { min-height: 44px; border: 0; padding: 5px 10px; color: var(--deep); background: transparent; text-decoration: underline; cursor: pointer; }
.th-destination .tcw-destination-form { grid-template-columns: minmax(0,1.2fr) minmax(0,1.1fr) minmax(0,.85fr) auto; }
.th-destination .tcw-destination-form :is(select,input,button) { min-height: 44px; font-size: .88rem; font-family: inherit; }
.th-destination .tcw-destination-form label>span { font-size: .77rem; text-transform: none; letter-spacing: 0; }
.th-home .th-block { padding: 36px var(--inset) 0; }
.th-heading,.th-section-top { margin-bottom: 15px!important; }
.th-services { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--gap); position: relative; container-type: inline-size; --service-art-height: max(clamp(50px,16.6cqw,74px),calc((100cqw - 2px)*156/1166)); }
.th-joined { position: absolute; inset: 1px 1px auto; z-index: 1; height: var(--service-art-height); background: url(../home/ribbon.webp) center/cover no-repeat; pointer-events: none; border-radius: 13px 13px 0 0; }
.th-service,.th-department { display: block; overflow: hidden; }
.th-service:hover,.th-department:hover { border-color: var(--teal); }
.th-service-img { height: var(--service-art-height); background: var(--tint); }
.th-service-copy,.th-dept-label { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.th-service-copy { padding: 18px 21px; }
.th-service h3 { font-size: clamp(22px,2.2vw,34px); }
.th-service-copy p { font-size: .96rem; margin-top: 4px; }
.th-round { flex: none; display: grid; place-items: center; width: 43px; height: 43px; border-radius: 50%; background: var(--teal); color: white; }
.th-combined-cart { display: grid; align-items: center; grid-template-columns: auto minmax(0,1fr) auto; gap: 16px; background: var(--tint); padding: 17px var(--inset); margin: 14px calc(-1 * var(--inset)) 0; }
.th-combine-art { width: 82px; height: auto; color: var(--deep); }
.th-combined-copy h3 { font-size: clamp(17px,1.55vw,23px); }
.th-combined-copy p { font-size: .92rem; margin-top: 3px; }
.th-home :is(.th-browse-link,.th-inline,.th-retailer-action) { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; color: var(--deep); font-weight: 650; }
.th-home :is(.th-browse-link,.th-inline):hover,.th-department:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.th-department-band { padding: 30px var(--inset) 36px; background: var(--tc-ch-grey,#f3f4f5); }
.th-section-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0!important; padding: 15px 20px; border-radius: 13px 13px 0 0; border-bottom: 0; }
.th-section-top p { font-size: .94rem; margin-top: 4px; }
.th-inline { white-space: nowrap; }
.th-retailer-row { display: grid; grid-template-columns: 25px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 9px 16px; margin-bottom: 16px; border-radius: 0 0 13px 13px; background: var(--deep); color: white; }
.th-retailer-row .th-i { vertical-align: middle; }
html body.home.tryycart-global-theme main#tc-page-home #th-retailer-heading,
html body.home.tryycart-global-theme main#tc-page-home .th-retailer-row .th-retailer-copy :is(p,span) { color: white!important; -webkit-text-fill-color: white!important; }
.th-retailer-copy h3 { font-size: clamp(17px,1.35vw,21px); }
.th-retailer-copy p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 3px 0 0; color: white; font-size: .92rem; }
.th-retailer-status { font-size: .82rem; }
.th-home .th-retailer-action { padding: 8px 15px; border-radius: 7px; background: white; font-size: .88rem; }
.th-catalog { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--gap); }
.th-department img { display: block; width: 100%; height: auto; aspect-ratio: 2.42; object-fit: cover; }
.th-dept-label { padding: 11px 16px; min-height: 66px; }
.th-dept-label :is(strong,small) { display: block; }
.th-dept-label strong { font-size: 1.04rem; line-height: 1.24; }
.th-dept-label small { margin-top: 3px; color: var(--muted); font-size: .85rem; line-height: 1.3; }
.th-dept-label .th-i { width: 17px; color: var(--deep); }
.th-home .th-journey { display: grid; grid-template-columns: 1fr 3fr; gap: 30px; align-items: center; padding-block: 28px; border-bottom: 1px solid var(--line); }
.th-journey ol { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.th-journey .th-i { color: var(--teal); }
.th-journey h3 { font-size: 1.03rem; margin-top: 6px; }
.th-journey p,.th-faq details p { font-size: .91rem; margin-top: 5px; }
.th-home .th-faq { display: grid; grid-template-columns: 1fr 1.5fr; gap: 30px; padding-block: 34px; }
.th-faq details { border-bottom: 1px solid var(--line); }
.th-faq details:first-child { border-top: 1px solid var(--line); }
.th-faq summary { display: flex; justify-content: space-between; gap: 10px; align-items: center; min-height: 52px; cursor: pointer; list-style: none; font-weight: 600; }
.th-faq summary::-webkit-details-marker { display: none; }
.th-faq summary::after { content: '+'; color: var(--deep); font-size: 22px; }
.th-faq details[open] summary::after { content: '−'; }
.th-faq details p { padding-bottom: 14px; }
.th-faq details a { text-decoration: underline; }
.th-footer { background: var(--tc-ch-nav,#edf1f6); border-top: 1px solid var(--tc-ch-line,#ccd3d8); padding: 20px max(16px,4vw); font-family: var(--tc-font-copy,Inter,sans-serif); }
.th-footer-top,.th-legal,.th-footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }
.th-footer nav { justify-content: flex-start; }
.th-footer a,.th-footer summary { display: inline-flex; align-items: center; min-height: 44px; font-size: .88rem; color: var(--tc-ch-link,#006673); text-decoration: none; cursor: pointer; }
.th-footer a:hover,.th-footer summary:hover { text-decoration: underline; }
.th-footer img { width: 124px; height: auto; }
.th-footer details { position: relative; }
.th-footer summary { display: list-item; align-content: center; }
.th-footer details div { position: absolute; bottom: 100%; right: 0; z-index: 2; width: 200px; background: white; padding: 8px 12px; border: 1px solid var(--tc-ch-line); border-radius: 10px; }
.th-footer details a { display: flex; }
.th-legal { margin-top: 12px; border-top: 1px solid var(--tc-ch-line); }
@media (max-width: 700px) {
  .th-footer details[open] { flex-basis: 100%; }
  .th-footer details div { position: static; width: 100%; }
}
@media (max-width: 1150px) {
  #tc-page-home.th-home { --gap: 16px; }
  .th-destination { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 1024px), (max-width: 1366px) and (hover: none) and (pointer: coarse) {
  .th-hero { grid-template-columns: minmax(0,1fr); grid-template-areas: "art" "copy"; row-gap: clamp(12px,1.7vw,18px); }
  .th-hero-key { padding-block: 4px 9px; border-bottom: 1px solid var(--line); }
  .th-hero h1 span { display: inline; }
  html body.tryycart-global-theme main#tc-page-home.th-home #headline { font-size: clamp(26px,4.5vw,44px)!important; }
  .th-hero-copy p { max-width: 62ch; }
}
@media (max-width: 900px) {
  #tc-page-home.th-home { --inset: 28px; }
  .th-joined { background-image: url(../home/ribbon-small.webp); }
  .th-destination .tcw-destination-form { grid-template-columns: 1fr 1fr; }
  .th-home .th-journey { grid-template-columns: 1fr; gap: 18px; }
  .th-journey br { display: none; }
  /* Core owns the full-height desktop rail. Round only the compact bottom dock. */
  .home .tcw-wallet .tcw-rail-frame { background: transparent; border: 0; box-shadow: none; padding: 3px 4px; }
  .home .tcw-wallet .tcw-rail { border-radius: 13px; border: 1px solid var(--tc-ch-blue,#007d8d); box-shadow: var(--tc-ch-card-shadow); }
}
@media (max-width: 700px) {
  #tc-page-home.th-home { --inset: 16px; --gap: 12px; }
  .th-hero { padding-block: 10px; }
  .th-hero-actions { margin-top: 8px; }
  html body.tryycart-global-theme main#tc-page-home.th-home #headline { font-size: clamp(22px,6.35vw,34px)!important; }
  .th-desk-br { display: none; }
  .th-hero-copy p { font-size: .81rem; max-width: none; margin-top: 4px; }
  #tc-page-home .th-hero-copy p, #tc-page-home .th-where p { font-size: .82rem; }
  .th-delivery-band { padding-block: 10px; }
  .th-destination { padding: 10px 12px; }
  .th-where img { width: 38px; height: 36px; }
  .th-where p { font-size: .75rem; }
  .th-home .th-block { padding-top: 20px; }
  .th-heading { margin-bottom: 10px!important; }
  .th-services { gap: 8px; }
  .th-service-copy { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 5px; padding: 10px; }
  .th-service-copy > div { display: contents; }
  .th-service h3 { grid-area: 1 / 1; font-size: clamp(1.05rem,4vw,1.32rem); text-wrap: balance; }
  .th-service-copy p { grid-column: 1 / -1; grid-row: 2; margin-top: 0; }
  .th-service-copy .th-round { grid-area: 1 / 2; }
  .th-service p,.th-combined-copy p { font-size: .82rem; line-height: 1.35; }
  .th-round { width: 29px; height: 29px; }
  .th-round .th-i { width: 15px; }
  .th-combined-cart { grid-template-columns: 45px minmax(0,1fr); gap: 2px 9px; padding-block: 10px; }
  .th-combine-art { width: 45px; }
  .th-browse-link { grid-column: 2; justify-self: start; }
  .th-department-band { padding-block: 20px; }
  .th-section-top { padding: 12px; }
  .th-section-top h2 { font-size: clamp(21px,5.7vw,28px); }
  .th-section-top p,.th-inline { font-size: .82rem; }
  .th-retailer-row { grid-template-columns: 24px 1fr; gap: 3px 8px; padding: 8px 10px; }
  .th-retailer-action { grid-column: 2; justify-self: start; }
  .th-catalog { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .th-department img { aspect-ratio: 1.73; }
  .th-dept-label { padding: 9px; }
  .th-dept-label strong { font-size: .9rem; }.th-dept-label small { font-size: .77rem; }
  .th-home .th-faq,.th-journey ol { grid-template-columns: 1fr; gap: 12px; }
  .th-faq>div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .th-faq h2 { font-size: 1.4rem; }
  .th-journey li { padding-left: 35px; position: relative; }
  .th-journey li>.th-i { position: absolute; left: 0; }
}
