/* E nav pill + F download card. Design: Design Diva, 25 Nov 2026.
   The hero browser line (A2) is removed so the buttons, note and app image stay clean.
   Promo elements show when any store status in extension-stores.js is "live".
   Add ?ext=1 to force-show them. Store buttons that are not live are faded
   and not clickable. */
html:not(.ext-launched) .ext-launch-only{display:none!important}

/* Hero Mac / Windows gap: 20px. Row grows by 8px so each button stays 214px.
   Note stays 16px under the buttons. */
.hero .cta-os{
  gap:20px;
  width:min(100%,448px);
}
.hero-in > .fine{margin-top:16px}

/* E: understated nav pill in the right cluster, 12px left of Agents.
   Kept out of the centered section links so those links do not shift. */
.nav-cta{align-items:center;gap:12px}
.nav-cta .nav-ext-pill{
  display:inline-flex;align-items:center;gap:8px;
  height:28px;margin:0;padding:0 10px 0 8px;
  border:1px solid var(--ui-line);
  border-radius:999px;
  background:var(--ui-panel);
  text-decoration:none;
  font:500 13px/1 var(--shell);
  color:var(--ui-soft);
  letter-spacing:-.005em;
  white-space:nowrap;
}
.nav-cta .nav-ext-pill:hover{color:var(--ui-ink);border-color:var(--ui-line-hover)}
/* 18px glyphs in 28px hit areas. 4px between hits. The 8px end
   margin plus the 12px .nav-cta gap makes 20px from the Safari
   hit to Agents (or the menu when Agents is hidden). */
.nav-cta .nav-ext-icons{
  display:inline-flex;align-items:center;gap:4px;height:28px;
  margin-inline-end:8px;
  font-size:13px; /* match .nav-agents-cta for the x-height nudge */
}
.nav-ext-icons svg,
.nav-cta .nav-ext-pill .ic-browser,
.nav-cta .nav-ext-icon .ic-browser{display:block;width:18px;height:18px}
/* Figtree 500 typo metrics (upem 1000): typoAsc 950, typoDesc -250,
   xHeight 500, line-height 1. The 13px Agents line box is centered
   in the 28px row. The x-height line (mean line) sits 1.95px above
   the box center, so the 18px glyphs are translated to sit on it
   without moving the 28px hit area. */
.nav-cta .nav-ext-icon .ic-browser{
  transform:translateY(calc((28px - 1em) / 2 + .35em - 14px));
}
.nav-cta .nav-ext-icon{
  display:inline-flex;align-items:center;justify-content:center;
  width:28px;height:28px;margin:0;padding:0;
  border:0;border-radius:6px;background:none;
  text-decoration:none;color:inherit;line-height:0;
  -webkit-tap-highlight-color:transparent;
}
.nav-cta .nav-ext-icon:hover{
  background:color-mix(in srgb, var(--ink) 6%, transparent);
}
.nav-cta .nav-ext-icon:focus-visible{outline:2px solid var(--ui-ink);outline-offset:2px}
.nav-cta .nav-ext-icon.is-disabled,
.nav-cta .nav-ext-icon[aria-disabled="true"]{
  filter:grayscale(1);opacity:.45;cursor:default;
}
.nav-cta .nav-ext-icon.is-disabled:hover,
.nav-cta .nav-ext-icon[aria-disabled="true"]:hover{background:none}

/* Collapsed nav: hide the pill beside the menu button and show a text
   link in the menu, after the section links and before Agents. */
.nav-links a.nav-ext-menu{display:none}
/* Header store icons sit 20px left of Agents (or the menu button).
   Chrome, Firefox and Safari are 18px icons in 28px hit areas.
   Safari is the same glyph, greyed out and not a link. The group
   hides below 900px; the homepage Download card carries the stores.
   Older labeled pills, if present, still hide on phones. */
.nav-cta .nav-ext-pill{gap:7px;padding:0 11px 0 8px}
.nav-links a.nav-ext-menu{gap:8px;align-items:center}
.nav-links .nav-ext-menu-ic{display:block;width:16px;height:16px}
@media (max-width:1240px){
  html.ext-launched .nav-cta .nav-ext-pill{display:inline-flex}
  .nav-links a.nav-ext-menu{display:none}
}
@media (max-width:900px){
  .nav-cta .nav-ext-icons{display:none}
  .nav-cta .nav-ext-pill .nav-ext-label{display:none}
  .nav-cta .nav-ext-pill{width:28px;padding:0;justify-content:center;gap:0}
}
@media (max-width:720px){
  .nav-cta .nav-ext-pill{display:none!important}
  html.ext-launched .nav-links a.nav-ext-menu{display:inline-flex}
}

/* F: third free card beside Mac and Windows, one row of three when launched.
   When the browser card is hidden, Mac and Windows sit as a centered pair
   at the same card width as the 3-column row. */
html.ext-launched .dl-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
@media (min-width:1081px){
  html:not(.ext-launched) #download .dl-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    width:calc((100% - 32px) * 2 / 3 + 16px);
    margin-inline:auto;
  }
}
.dl-browsers{
  display:flex;flex-direction:row;flex-wrap:wrap;gap:8px;
  margin-top:auto;align-self:stretch;
}
.dl-browsers .btn{
  flex:1 1 0;justify-content:center;margin-top:0;
  height:44px;box-sizing:border-box;padding-left:16px;padding-right:16px;
  gap:8px;min-width:0;
}
/* Chrome is live: give it the full first row. Safari and Firefox share the second row with room to breathe. */
.dl-browsers .btn[data-store="chrome"]{flex:1 1 100%}
/* Pending stores name their browser, with a small "Coming soon" sublabel */
.dl-browsers .btn-store-text{display:flex;flex-direction:column;align-items:flex-start;gap:2px;line-height:1.05;text-align:left}
.dl-browsers .btn-store-name{font:600 13.5px/1.05 var(--shell)}
.dl-browsers .btn-store-pending .btn-store-label{font:500 10.5px/1.05 var(--shell);letter-spacing:.01em;color:var(--ui-soft)}
/* When a store flips to live, the store script turns the span into a link and writes the name into the label slot; hide that slot so the name shows once */
.dl-browsers a[data-store] .btn-store-label{display:none}
.dl-browsers .ic-browser{display:block;width:14px;height:14px}
.dl-browsers .btn-store-pending,
.dl-browsers [data-store][aria-disabled="true"]{
  cursor:default;
  pointer-events:none;
  opacity:.62;
  border-style:dashed;
  text-decoration:none;
}

/* C2 /extension page */
.ext-page{padding:22px 0 28px}
.ext-page-in{display:flex;flex-direction:column;align-items:center;text-align:center}
.ext-page .eyebrow{margin-bottom:10px}
.ext-page h1{
  font:800 clamp(32px,4.2vw,48px)/1.12 var(--shell);letter-spacing:-.03em;
  margin:0 auto;max-width:18ch;color:var(--ui-ink);
}
.ext-page .lead{margin:12px auto 0;max-width:52em;font-size:18px}
.ext-page .ext-store-row{
  display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin:20px 0 22px;
}
.ext-page .ext-store-row .btn{min-width:172px}
.ext-page .ext-store-row .ic-browser{width:16px;height:16px;display:block}
.ext-shot{
  width:min(680px,100%);margin:0 auto;border-radius:14px;overflow:hidden;
  border:1px solid var(--ui-line);box-shadow:var(--shadow-card);background:var(--ui-panel);
}
.ext-shot img{width:100%;height:auto;display:block}
.foot nav a[aria-current="page"]{color:var(--ui-ink);font-weight:600}

/* Store buttons that are not live are faded and are not links. */
.ext-page .ext-store-row .btn-store-pending,
.ext-page .ext-store-row [data-store][aria-disabled="true"]{
  cursor:default;
  pointer-events:none;
  opacity:.4;
  text-decoration:none;
}
.ext-page .ext-store-note{
  margin:-8px 0 18px;
  font:500 14px/1.4 var(--shell);
  color:var(--ui-soft);
}

@media (max-width:1080px){
  html.ext-launched .dl-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:720px){
  html.ext-launched .dl-grid{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:640px){
  .hero .cta-os{width:100%;gap:12px}
  .ext-page .ext-store-row .btn{min-width:min(172px,100%)}
}
