/* LND-263: the top bar, option C of the mock (claude.ai/artifact/CuPnP8A4NwHehCpEHHHruu).
   One file for the landing pages, /stories, the blog and /pricing, linked after
   each page's own style (the landing page loads no theme.css). It only draws
   what LND-197/202/214 left plain:
   - from 960px the links are quiet text with a hairline between each one and
     a green underline for hover and the current page, and the right side is
     the loud part: a bigger star average, a taller Try it free, Sign in as
     plain text;
   - below 960px the links (and Sign in) leave the bar and open from a
     hamburger as one list (static/top-menu.js). The star average and Try it
     free stay in the bar, so the way to start never hides. */

.top-burger,.top-dim,.top-links .menu-signin{display:none}

/* ---------- 960px and up ---------- */
@media (min-width:960px){
  .topbar .top-actions{display:flex;align-items:center;gap:10px}
  .topbar .top-stars{height:46px;padding:0 16px 0 14px;font-size:17px;border-color:var(--green-200);box-shadow:0 3px 10px rgba(103,126,50,.16)}
  .topbar .top-stars .ts-s,.topbar .top-stars .ts-one{font-size:16px}
  .topbar .top-actions .btn-primary{height:46px;padding:0 24px;font-size:16px}
  .topbar .top-actions .btn-ghost{background:transparent;border-color:transparent;box-shadow:none;color:var(--text-2);padding:0 8px}
  .topbar .top-actions .btn-ghost:hover{color:var(--text);text-decoration:underline;text-underline-offset:4px}

  .topbar .top-links a{padding:12px 12px;border-radius:0;background:none;color:#4a5040;font-size:15px;position:relative}
  .topbar .top-links a:hover,
  .topbar .top-links a.on{background:none;color:var(--green-800);text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:9px;text-decoration-color:var(--green-500)}
  .topbar .top-links a.on{font-weight:600}
  /* the old underline bar is the text's own underline now */
  .topbar .top-links a.on::after{content:none}
  .topbar .top-links a + a::before{content:"";position:absolute;left:0;top:50%;height:16px;margin-top:-8px;width:1px;background:var(--line-2,#D3D8C5)}
  .topbar .top-links{gap:0}
}
/* 960-1199: the five stars become one beside the number, as they do on a phone (the bigger buttons need the room);
   from 960 the "5 reviews" count goes (it is in the button's label) */
@media (min-width:960px){.topbar .top-stars small{display:none}}
@media (min-width:960px) and (max-width:1199px){.topbar .top-stars .ts-s{display:none}.topbar .top-stars .ts-one{display:inline}}
@media (min-width:1100px){.topbar .top-links a{padding:12px 16px}}

/* ---------- under 960px: the hamburger ---------- */
@media (max-width:959px){
  .topbar .top-actions .btn-ghost{display:none}
  .top-burger{display:inline-grid;place-items:center;width:44px;height:44px;padding:0;margin-right:-4px;border-radius:12px;border:1px solid transparent;background:transparent;color:var(--text);cursor:pointer;flex:none}
  .top-burger svg{width:22px;height:22px}
  .top-burger .x{display:none}
  .topbar.menu-open .top-burger{background:var(--green-50);border-color:var(--green-500)}
  .topbar.menu-open .top-burger .x{display:block}
  .topbar.menu-open .top-burger .m{display:none}
  .top-burger:focus-visible{outline:3px solid var(--orange-500);outline-offset:2px}
  .topbar.menu-open{background:rgba(247,248,243,.99);box-shadow:0 1px 0 var(--line)}

  .topbar .top-links{display:none}
  .topbar.menu-open .top-links{display:flex;flex-direction:column;position:absolute;left:0;right:0;top:100%;margin:0;padding:8px 14px 18px;background:#fff;border-radius:0 0 22px 22px;box-shadow:0 18px 36px rgba(28,36,15,.2);z-index:2;animation:top-menu-in .18s ease-out}
  .topbar .top-links a{display:flex;align-items:center;justify-content:space-between;min-height:54px;padding:0 6px;border-radius:0;border-bottom:1px solid var(--line);font-size:18px;line-height:1.2;color:var(--text)}
  .topbar .top-links a:hover{background:var(--green-50)}
  /* a chevron on each row so they read as links */
  .topbar .top-links a::after{content:"";position:static;width:8px;height:8px;margin-right:6px;border:0;border-top:2px solid var(--green-500);border-right:2px solid var(--green-500);background:none;transform:rotate(45deg);flex:none}
  .topbar .top-links a.on{font-weight:600;color:var(--green-800);justify-content:flex-start}
  .topbar .top-links a.on::after{margin-left:auto}
  /* the page you are on has a green bar at the row's start */
  .topbar .top-links a.on::before{content:"";width:4px;height:22px;border-radius:2px;background:var(--green-500);margin-right:10px;margin-left:-6px;flex:none}
  .topbar .top-links a:not(.on)::before{content:none}
  .topbar .top-links .menu-signin{display:flex;justify-content:center;margin-top:16px;min-height:48px;border:1px solid var(--line-2,#D3D8C5);border-radius:999px;font-size:16px;font-weight:600}
  .topbar .top-links .menu-signin::after,.topbar .top-links .menu-signin::before{content:none!important}

  .topbar.menu-open .top-dim{display:block;position:absolute;left:0;right:0;top:100%;height:100vh;background:rgba(28,36,15,.42);z-index:1}
}
@media (max-width:599px){.top-burger{width:40px;height:40px}}
@media (max-width:359px){.top-burger{width:36px;height:36px;margin-right:0}}
@keyframes top-menu-in{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.topbar.menu-open .top-links{animation:none}}
