/* BrowserWorkTools Prototype — lightweight, fast, accessible */

:root{
  --bg:#0b0f17;
  --panel:#111827;
  --panel2:#0f172a;
  --text:#e7f0ff;
  --muted:#9db3d4;
  --line:rgba(255,255,255,.08);
  --accent:#3b82f6; /* purple */
  --accent2:#60a5fa; /* green */
  --warn:#38bdf8;
  --max: 1040px;
  --r: 16px;
}

*{ box-sizing:border-box; }
html{ color-scheme: dark; }
body{
  margin:0;
  font: 16px/1.55 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 700px at 15% 5%, rgba(59,130,246,.20), transparent 60%),
              radial-gradient(900px 600px at 85% 10%, rgba(0 20 70 / 90%), transparent 55%),
              var(--bg);
  color:var(--text);
}

a{ color:inherit; text-decoration: none; }
a:hover{ text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible{
  outline: 2px solid rgba(59,130,246,.9);
  outline-offset: 3px;
  border-radius: 10px;
}

.skip-link{
  position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  left:16px; top:16px; width:auto; height:auto;
  padding:10px 12px; background:var(--panel); border:1px solid var(--line); border-radius: 12px;
  z-index: 1000;
}

header{
  position: sticky;
  top:0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(11,15,23,.72);
  border-bottom: 1px solid var(--line);
}

.wrap{ max-width: var(--max); margin: 0 auto; padding: 0 16px; }

.topbar{
  display:flex; align-items:center; justify-content:space-between;
  padding: 12px 0;
  gap: 14px;
}

.brand{
  display:flex; align-items:center; gap:10px;
  font-weight: 700;
  letter-spacing:.2px;
  margin-left: 16px;
}


/* BWT logo: structured grid mark (CSS-only, no HTML changes) */
.logo{
  width:34px;
  height:34px;
  border-radius:12px;
  flex: 0 0 auto;

  /* Your existing brand surface */
  background:
    /* 4-tile grid mark (center) */
    linear-gradient(#ffffff,#ffffff) 11px 11px / 5px 5px no-repeat,
    linear-gradient(#ffffff,#ffffff) 18px 11px / 5px 5px no-repeat,
    linear-gradient(#ffffff,#ffffff) 11px 18px / 5px 5px no-repeat,
    linear-gradient(#ffffff,#ffffff) 18px 18px / 5px 5px no-repeat,

    /* Base gradient */
    linear-gradient(135deg, rgba(59,130,246,.95), rgba(96,165,250,.75));

  box-shadow: 0 12px 30px rgba(59,130,246,.22);
}

.logo{
  /* keep everything above, just change the tile color */
  background:
    linear-gradient(rgba(255,255,255,.92), rgba(255,255,255,.92)) 11px 11px / 5px 5px no-repeat,
    linear-gradient(rgba(255,255,255,.92), rgba(255,255,255,.92)) 18px 11px / 5px 5px no-repeat,
    linear-gradient(rgba(255,255,255,.92), rgba(255,255,255,.92)) 11px 18px / 5px 5px no-repeat,
    linear-gradient(rgba(255,255,255,.92), rgba(255,255,255,.92)) 18px 18px / 5px 5px no-repeat,
    linear-gradient(135deg, rgba(59,130,246,.95), rgba(96,165,250,.75));
}

.logo{
  border: 1px solid rgba(255,255,255,.12);
  box-shadow:
    0 12px 30px rgba(59,130,246,.22),
    inset 0 1px 0 rgba(255,255,255,.14);
}



nav{
  display:flex; flex-wrap:wrap; gap: 8px;
  justify-content:flex-end;
}
nav a{
  font-size: 14px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
}
nav a:hover{
  color: var(--text);
  text-decoration:none;
  border-color: var(--line);
  background: rgba(255,255,255,.03);
}
nav a[aria-current="page"]{
  color: var(--text);
  border-color: rgba(59,130,246,.35);
  background: rgba(59,130,246,.12);
}










/* ---------- Mobile menu button (hidden on desktop) ---------- */
.menu-btn{
  display:none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--text);
  cursor: pointer;
  place-items: center;
  flex: 0 0 auto;
}

.menu-btn:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(96,165,250,.22);
}

.menu-ico{
  width: 22px;
  height: 22px;
  display: block;
  color: rgba(231,240,255,.95);
}

.menu-ico line{
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.menu-btn:hover .menu-ico{
  color: #60a5fa;
}

.menu-ico::before{ top: -6px; }
.menu-ico::after{ top: 6px; }

/* ---------- Mobile behavior under 720px ---------- */
@media (max-width: 720px){
  .topbar{
    position: relative; /* anchors the dropdown */
  }

  /* Hide normal nav */
  .primary-nav{
    display: none;
  }

  /* Show burger button */
  .menu-btn{
    display: grid;
  }

  /* When opened, show nav as dropdown panel */
  .primary-nav.is-open{
    display: flex;
    flex-direction: column;
    gap: 6px;

    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;

    padding: 10px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgb(17 24 39);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 50px rgba(0,0,0,.45);
    z-index: 60;
  }

  .primary-nav.is-open a{
    width: 100%;
    padding: 10px 12px;
    border-radius: 14px;
  }
}












main{ padding: 26px 0 56px; }

.hero{
  padding: 22px 0 14px;
}
.kicker{
  display:inline-flex; gap:8px; align-items:center;
  font-size: 12px; color: var(--muted);
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.02);
}
.dot{
  width:8px; height:8px; border-radius: 99px;
  background: rgba(96,165,250,.85);
  box-shadow: 0 0 0 4px rgba(96,165,250,.12);
}

h1{ margin: 14px 0 10px; font-size: 32px; line-height: 1.15; }
@media (min-width: 840px){ h1{ font-size: 40px; } }

.lead{ color: var(--muted); max-width: 70ch; margin: 0 0 18px; }

.actions{ display:flex; flex-wrap:wrap; gap:10px; margin: 18px 0 6px; }

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgb(68 126 209);
  background: rgba(255,255,255,.03);
  color: var(--text);
  text-decoration:none;
  font-weight: 600;
  font-size: 14px;
}
.btn:hover{ text-decoration:none; background: rgba(255,255,255,.06); }
.btn.primary{
  border-color: rgba(59,130,246,.45);
  background: linear-gradient(135deg, rgba(59,130,246,.28), rgba(59,130,246,.12));
}
.btn.primary:hover{ background: linear-gradient(135deg, rgba(59,130,246,.36), rgba(59,130,246,.14)); }

.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 18px;
}
@media (min-width: 820px){
  .grid{ grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

.themegrid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 18px;
}
@media (min-width: 820px){
  .themegrid{ grid-template-columns: repeat(3, 1fr); gap: 14px; }
}

.card{
  background: rgba(17,24,39,.75);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}
.card h2{ margin: 0 0 6px; font-size: 18px; }
.card p{ margin: 0 0 12px; color: var(--muted); }
.card .meta{ font-size: 12px; color: var(--muted); margin-top: 10px; }

.hr{
  height:1px; background: var(--line);
  margin: 18px 0;
}

.list{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.list li{ margin: 6px 0; }

.section-title{
  margin: 0 0 10px;
  font-size: 18px;
}
.small{
  color: var(--muted);
  font-size: 14px;
}

.two-col{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 920px){
  .two-col{ grid-template-columns: 1.4fr .6fr; }
}
.aside{
  background: rgba(15,23,42,.72);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px;
}
.aside h3{ margin: 0 0 8px; font-size: 15px; }
.aside a{ color: var(--text); }
.aside .small{ margin: 0; }

.figure{
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow:hidden;
  background: rgba(255,255,255,.02);
}
.figure img{
  width:100%;
  height:auto;
  display:block;
  background: rgba(255,255,255,.02);
}
.figure figcaption{
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

footer{
  border-top: 1px solid var(--line);
  background: rgba(11,15,23,.65);
  padding: 18px 0;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 820px){
  .footer-grid{ grid-template-columns: 1.2fr .8fr; }
}
.footer-links{
  display:flex; flex-wrap:wrap; gap: 10px 14px;
}
.footer-links a{ color: var(--muted); font-size: 14px; }
.footer-links a:hover{ color: var(--text); text-decoration:none; }

kbd{
  font: 12px/1.2 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  padding: 3px 6px;
  border-radius: 8px;
  color: var(--muted);
}

.card-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.card-image-link {
  display: block;
}

.card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.card-link:hover {
  text-decoration: none;
}

.card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover,
.card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.card-link:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
}

.card-top .sub {
  margin: .35rem 0 .75rem;
  opacity: .85;
  font-size: .95rem;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .9rem;
}

.pill {
  font-size: .8rem;
  padding: .25rem .55rem;
  border-radius: 999px;
  border: 1px solid var(--line, rgba(255,255,255,.15));
  opacity: .9;
}

.small {
  margin-top: .75rem;
  font-size: .85rem;
  opacity: .8;
}

.linklike {
  text-decoration: underline;
}

/* BrowserWorkTools Workflow Cards */
/* ===========================
   Workflow Card (scoped)
   =========================== */

.workflow-card{
  /* layout */
  display:block;
  position:relative;
  overflow:hidden;
  padding: 18px 18px 16px;
  border-radius: 18px;

  /* neutral link reset (only for workflow cards) */
  text-decoration:none;
  color: inherit;

  /* surface */
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.06) 0%,
    rgba(255,255,255,.035) 55%,
    rgba(0,0,0,.02) 100%
  );
  border: 1px solid rgba(255,255,255,.12);

  /* depth */
  box-shadow:
    0 10px 30px rgba(0,0,0,.20),
    inset 0 1px 0 rgba(255,255,255,.08);

  /* motion */
  transition:
    transform .16s ease,
    box-shadow .18s ease,
    border-color .18s ease,
    background .18s ease;
}

/* subtle top accent bar */
.workflow-card::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  right:0;
  height: 4px;
  background: linear-gradient(90deg,
    rgba(255,255,255,.0),
    rgba(255,255,255,.35),
    rgba(255,255,255,.0)
  );
  opacity:.55;
}

/* soft glow blob (premium feel) */
.workflow-card::after{
  /* content:"none"; */
  position:absolute;
  width: 220px;
  height: 220px;
  right: -110px;
  top: -120px;
  background: radial-gradient(circle at 30% 30%,
    rgba(255,255,255,.14),
    rgba(255,255,255,0) 60%
  );
  pointer-events:none;
  opacity:.8;
  transition: opacity .18s ease, transform .18s ease;
}

/* hover: lift + nicer border + slightly brighter surface */
.workflow-card:hover{
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.20);
  box-shadow:
    0 16px 42px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.10);
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.075) 0%,
    rgba(255,255,255,.04) 55%,
    rgba(0,0,0,.015) 100%
  );
}

/* stop any browser underline nonsense */
.workflow-card:hover,
.workflow-card:focus-visible{
  text-decoration:none;
}

.workflow-card:hover::after{
  opacity:1;
  transform: translate(-6px, 6px);
}

/* keyboard focus (very important) */
.workflow-card:focus-visible{
  outline: 2px solid rgba(255,255,255,.45);
  outline-offset: 3px;
}

/* ---------------------------
   Header area
   --------------------------- */
.workflow-card .card-top{
  display:flex;
  flex-direction:column;
  gap: 6px;
  margin-bottom: 12px;
}

.workflow-card h2{
  margin:0;
  font-size: 1.6rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.workflow-card .sub{
  margin:0;
  font-size: .92rem;
  line-height: 1.35;
  opacity: .85;
  max-width: 46ch;
}

/* add a tiny "arrow hint" on hover, without icons */
.workflow-card .card-top h2{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
}
.workflow-card .card-top h2::after{
  content:"›";
  opacity:.0;
  transform: translateX(-2px);
  transition: opacity .16s ease, transform .16s ease;
}
.workflow-card:hover .card-top h2::after{
  opacity:.65;
  transform: translateX(2px);
}

/* ---------------------------
   List styling (clean + scannable)
   --------------------------- */
.workflow-card .list{
  list-style:none;
  padding:0;
  margin: 0 0 14px;
  display:flex;
  flex-direction:column;
  gap: 8px;
}

.workflow-card .list li{
  position:relative;
  padding-left: 14px;
  line-height: 1.35;
  font-size: .93rem;
  opacity: .92;
}

/* modern bullet dot */
.workflow-card .list li::before{
  content:"";
  position:absolute;
  left:0;
  top: .55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  box-shadow: 0 0 0 3px rgba(255,255,255,.06);
}

/* make the label pop */
.workflow-card .list strong{
  font-weight: 650;
  opacity: .98;
}

/* ---------------------------
   Meta pills
   --------------------------- */
.workflow-card .card-meta{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  margin: 2px 0 12px;
}

.workflow-card .pill{
  font-size: .78rem;
  padding: .32rem .6rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  opacity: .92;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

/* micro-interaction: pills subtly lift on hover */
.workflow-card:hover .pill{
  border-color: rgba(255,255,255,.20);
  background: rgba(255,255,255,.06);
}
.workflow-card .pill:active{
  transform: translateY(1px);
}

/* ---------------------------
   Footer "Related" line
   --------------------------- */
.workflow-card .small{
  margin:0;
  font-size: .85rem;
  opacity: .78;
  display:flex;
  gap: .35rem;
  align-items:center;
}

/* looks like a link but isn't clickable in the card */
.workflow-card .linklike{
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: .95;
}

/* optional: make the "Related:" label a bit calmer */
.workflow-card .small::before{
  content:"";
  display:inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: .15rem;
  background: rgba(255,255,255,.12);
}

/* ---------------------------
   Respect reduced motion
   --------------------------- */
@media (prefers-reduced-motion: reduce){
  .workflow-card,
  .workflow-card::after,
  .workflow-card .card-top h2::after{
    transition:none !important;
  }
  .workflow-card:hover{
    transform:none;
  }
}

/* Make room so badge doesn’t feel cramped */
.workflow-card{
  padding-right: 54px; /* ensures text doesn’t collide with badge */
}

/* Top-right icon badge */
.workflow-card .wf-badge{
  position:absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  display:grid;
  place-items:center;
  border-radius: 12px;

  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow:
    0 10px 24px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.10);

  font-size: 18px;
  line-height: 1;
  opacity: .95;

  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.workflow-card:hover .wf-badge{
  transform: translateY(-1px) scale(1.03);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.20);
}

/* Subtle corner pattern (intentional “designed” feel) */
.workflow-card::before{
  content:"";
  position:absolute;
  inset: 0;
  pointer-events:none;
  background:
    radial-gradient(circle at 88% 14%, rgba(255,255,255,.09), rgba(255,255,255,0) 40%),
    radial-gradient(circle at 90% 10%, rgba(255,255,255,.06), rgba(255,255,255,0) 55%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0) 60%);
  opacity: .9;
}

/* ==================================
   Modern pills (workflow cards only)
   ================================== */

.workflow-card .card-meta{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  align-items:center;
}

/* Base pill */
.workflow-card .pill{
  position: relative;
  display:inline-flex;
  align-items:center;
  gap: .45rem;

  padding: .42rem .72rem;
  border-radius: 999px;

  font-size: .78rem;
  line-height: 1;
  letter-spacing: .02em;

  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 10px 22px rgba(0,0,0,.14);

  opacity: .92;

  transition:
    transform .16s ease,
    border-color .16s ease,
    background .16s ease,
    box-shadow .16s ease;
}

/* tiny highlight sheen */
.workflow-card .pill::after{
  content:"";
  position:absolute;
  inset: 1px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.10),
    rgba(255,255,255,0) 55%
  );
  opacity: .55;
  pointer-events:none;
}

/* micro interaction */
.workflow-card:hover .pill{
  border-color: rgba(255,255,255,.20);
  background: rgba(255,255,255,.07);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    0 14px 26px rgba(0,0,0,.18);
}

.workflow-card .pill:active{
  transform: translateY(1px);
}

/* ==================================
   Skill level pill (distinct)
   ================================== */

.workflow-card .pill-level{
  padding-left: .62rem; /* room for dot */
  font-weight: 650;
  opacity: .96;
}

/* dot indicator */
.workflow-card .pill-level::before{
  content:"";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  box-shadow: 0 0 0 3px rgba(255,255,255,.08);
}

/* Different levels (subtle differences, still premium) */
.workflow-card .pill-level[data-level="beginner"]{
  border-color: rgba(255,255,255,.18);
}

.workflow-card .pill-level[data-level="experienced"]{
  border-color: rgba(255,255,255,.26);
  background: rgba(255,255,255,.065);
}

.workflow-card .pill-level[data-level="advanced"]{
  border-color: rgba(255,255,255,.34);
  background: rgba(255,255,255,.08);
}

/* Slightly stronger dot for higher levels */
.workflow-card .pill-level[data-level="experienced"]::before{
  background: rgba(255,255,255,.50);
}
.workflow-card .pill-level[data-level="advanced"]::before{
  background: rgba(255,255,255,.65);
  box-shadow: 0 0 0 3px rgba(255,255,255,.10);
}

/* reduced motion */
@media (prefers-reduced-motion: reduce){
  .workflow-card .pill{ transition:none !important; }
}

/* ==================================
   "Who this is for" helper line
   ================================== */

.workflow-card .wf-for{
  margin: 12px 0 6px;
  padding-left: 14px;

  font-size: .9rem;
  line-height: 1.45;

  opacity: .85;
  position: relative;
  max-width: 52ch;
}

/* subtle vertical accent to anchor it */
.workflow-card .wf-for::before{
  content:"";
  position:absolute;
  left:0;
  top:.35em;
  bottom:.35em;
  width: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,.28);
}

/* Fix anchor offset for sticky header */
#steps,
#tools {
  scroll-margin-top: 90px; /* adjust to match header height */
}

html {
  scroll-behavior: smooth;
}

/* Force correct spacing above at-a-glance pills */
.wf-card .wf-related{
  margin-top: 22px;
  margin-bottom: 22px;
}

/* Add breathing room above all workflow notes */
.wf-card p.note{
  margin-top: 22px;
}

/* Force spacing above the sidebar actions block */
.wf-page .aside .actions.wf-side-actions{
  margin-top: 22px;
}

/* =========================
   Existing site styles
   ========================= */

/* (Your existing styles.css content remains unchanged above this point) */


/* ============================
   Workflow Map (visual section)
   ============================ */

.wf-map{
  margin: 18px 0 0;
}

.wf-map-card{
  padding: 18px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 340px at 10% 0%, rgba(59,130,246,.18), transparent 55%),
    radial-gradient(800px 320px at 90% 20%, rgba(96,165,250,.10), transparent 60%),
    rgba(17,24,39,.75);
}

.wf-map-head{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 14px;
}

.wf-map-title{
  margin: 10px 0 6px;
  font-size: 22px;
}

.wf-map-sub{
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

.wf-map-legend{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.wf-leg{
  display:inline-flex;
  gap: 8px;
  align-items:center;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  padding: 6px 10px;
  border-radius: 999px;
}

.wf-leg-dot{
  width:10px; height:10px; border-radius: 99px;
  background: rgba(255,255,255,.22);
  box-shadow: 0 0 0 4px rgba(255,255,255,.06);
}
.wf-leg-line{
  width: 18px; height: 2px;
  background: rgba(59,130,246,.55);
  box-shadow: 0 0 10px rgba(59,130,246,.25);
}
.wf-leg-spark{
  width: 10px; height: 10px; border-radius: 99px;
  background: rgba(96,165,250,.75);
  box-shadow: 0 0 0 5px rgba(96,165,250,.12);
}

.wf-map-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 920px){
  .wf-map-grid{
    grid-template-columns: 1.05fr .95fr;
    align-items: start;
  }
}

.wf-map-viz{
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: rgba(15,23,42,.55);
  position: relative;
  overflow: hidden;
  min-height: 280px;
}

.wf-map-svg{
  width: 100%;
  height: auto;
  display:block;
}

.wf-path{
  fill: none;
  stroke: rgba(59,130,246,.28);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 2 14;
  opacity: .95;
}

.wf-path2{
  fill:none;
  stroke: rgba(255,255,255,.08);
  stroke-width: 4;
  stroke-linecap: round;
}

.wf-path-glow{
  fill:none;
  stroke: rgba(96,165,250,.75);
  stroke-width: 5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 14px rgba(96,165,250,.25));
  stroke-dasharray: 24 820;
  animation: wfFlow 2.8s linear infinite;
  opacity: .9;
}

@keyframes wfFlow{
  to { stroke-dashoffset: -844; }
}

.wf-node{
  fill: rgba(17,24,39,.9);
  stroke: rgba(255,255,255,.18);
  stroke-width: 3;
}

.wf-map-viz.is-step-0 .wf-nodes circle:nth-child(1),
.wf-map-viz.is-step-1 .wf-nodes circle:nth-child(2),
.wf-map-viz.is-step-2 .wf-nodes circle:nth-child(3),
.wf-map-viz.is-step-3 .wf-nodes circle:nth-child(4),
.wf-map-viz.is-step-4 .wf-nodes circle:nth-child(4){
  stroke: rgba(96,165,250,.70);
  filter: drop-shadow(0 0 12px rgba(96,165,250,.18));
}

.wf-map-active{
  position:absolute;
  left: 14px;
  bottom: 14px;
  right: 14px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(11,15,23,.55);
  border-radius: 999px;
  padding: 10px 12px;
}

.wf-map-active-badge{
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.02);
}

.wf-map-active-text{
  font-weight: 700;
  letter-spacing: .2px;
}

.wf-map-steps{
  display:flex;
  flex-direction: column;
  gap: 10px;
}

/* Step card layout: number + content feel like one unit */
.wf-stepcard{
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;

  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 12px;
  background: rgba(15,23,42,.55);
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.wf-stepcard:hover{
  text-decoration:none;
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.14);
  background: rgba(15,23,42,.68);
}

.wf-stepcard h3{
  margin: 0 0 4px;
  font-size: 16px;
}
.wf-stepcard p{
  margin: 0 0 8px;
  color: var(--muted);
}

/* Number badge: more premium + integrated */
.wf-stepnum{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;

  font-weight: 900;
  font-size: 15px;

  background: linear-gradient(180deg, rgba(59,130,246,.22), rgba(59,130,246,.10));
  border: 1px solid rgba(59,130,246,.30);
  box-shadow:
    0 10px 22px rgba(0,0,0,.16),
    inset 0 1px 0 rgba(255,255,255,.10);
}

.wf-mini{
  display:flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 13px;
}

.wf-mini-links{
  display:inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.wf-mini-links a{
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  padding: 3px 8px;
  border-radius: 999px;
}
.wf-mini-links a:hover{
  text-decoration:none;
  background: rgba(255,255,255,.05);
}

.wf-stepcard.is-active{
  border-color: rgba(96,165,250,.28);
  background: rgba(96,165,250,.06);
}

@media (prefers-reduced-motion: reduce){
  .wf-path-glow{ animation: none; }
  .wf-stepcard{ transition: none; }
}

/* (Your existing styles.css content remains unchanged below this point) */

/* ============================
   Workflow Flow Map (redesign)
   ============================ */

.wf-flow{ margin: 18px 0 0; }

.wf-flow-card{
  padding: 18px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 340px at 12% 0%, rgba(59,130,246,.16), transparent 55%),
    radial-gradient(800px 320px at 88% 22%, rgba(96,165,250,.10), transparent 60%),
    rgba(17,24,39,.75);
}

.wf-flow-head{
  display:flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 14px;
}

.wf-flow-title{ margin: 10px 0 6px; font-size: 22px; }
.wf-flow-sub{ margin: 0; color: var(--muted); max-width: 76ch; }

.wf-flow-badges{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.wf-badgeX{
  display:inline-flex;
  align-items:center;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
}

.wf-flow-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 920px){
  .wf-flow-grid{ grid-template-columns: 1.05fr .95fr; align-items: start; }
}

/* Diagram panel */
.wf-flow-diagram{
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: rgba(15,23,42,.55);
  overflow: hidden;
  min-height: 320px;
}

.wf-diagram-bg{
  position:absolute;
  inset:-60px;
  background:
    radial-gradient(520px 240px at 25% 20%, rgba(59,130,246,.12), transparent 60%),
    radial-gradient(520px 240px at 85% 40%, rgba(96,165,250,.08), transparent 60%);
  filter: blur(0px);
  pointer-events:none;
}

.wf-lanes{
  position: relative;
  z-index: 1;
  display:flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 6px;
}

.wf-lane{
  display:grid;
  grid-template-columns: 44px 90px 1fr;
  align-items:center;
  gap: 12px;
  padding: 10px 10px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.02);
}

.wf-lane-dot{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display:grid;
  place-items:center;
  font-weight: 900;
  background: linear-gradient(180deg, rgba(59,130,246,.20), rgba(59,130,246,.08));
  border: 1px solid rgba(59,130,246,.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
  color: var(--text);
}

.wf-lane-label{
  font-weight: 800;
  letter-spacing: .2px;
}

.wf-lane-rail{
  height: 10px;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  background: rgba(59,130,246,.10);
  border: 1px solid rgba(255,255,255,.06);
}

.wf-runner{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  left: -20%;
  width: 22%;
  height: 6px;
  border-radius: 999px;
  background: rgba(96,165,250,.72);
  filter: drop-shadow(0 0 12px rgba(96,165,250,.22));
  opacity: 0;
}

/* Active lane highlight */
.wf-lane.is-active{
  border-color: rgba(96,165,250,.16);
  background: rgba(96,165,250,.05);
}
.wf-lane.is-active .wf-runner{
  opacity: 1;
  animation: wfRunner 1.9s linear infinite;
}

@keyframes wfRunner{
  to { left: 105%; }
}

/* Outcome block */
.wf-outcome{
  position:absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(11,15,23,.55);
  padding: 12px 12px;
  display:flex;
  flex-direction: column;
  gap: 4px;
}

.wf-outcome-chip{
  display:inline-flex;
  width: fit-content;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.02);
}
.wf-outcome-title{ font-weight: 900; }
.wf-outcome-sub{ color: var(--muted); font-size: 13px; }

/* Step list (unified cards) */
.wf-flow-steps{
  display:flex;
  flex-direction: column;
  gap: 10px;
}

.wf-stepX{
  display:block;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  background: rgba(15,23,42,.55);
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.wf-stepX:hover{
  text-decoration:none;
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.14);
  background: rgba(15,23,42,.68);
}

/* Header row makes number + title feel like ONE box */
.wf-stepX-head{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
}

.wf-stepX-num{
  width: 46px;
  height: 34px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  font-weight: 900;
  font-size: 13px;
  background: linear-gradient(180deg, rgba(59,130,246,.22), rgba(59,130,246,.10));
  border: 1px solid rgba(59,130,246,.30);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}

.wf-stepX-title{
  font-weight: 900;
  letter-spacing: .2px;
}

.wf-stepX-tag{
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  padding: 4px 8px;
  border-radius: 999px;
}

.wf-stepX-desc{
  margin: 8px 0 10px;
  color: var(--muted);
}

.wf-stepX-links{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
}
.wf-stepX-links a{
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
}
.wf-stepX-links a:hover{
  text-decoration:none;
  background: rgba(255,255,255,.05);
}

.wf-stepX.is-active{
  border-color: rgba(96,165,250,.22);
  background: rgba(96,165,250,.06);
}

/* Motion safety */
@media (prefers-reduced-motion: reduce){
  .wf-lane.is-active .wf-runner{ animation: none; }
  .wf-stepX{ transition: none; }
}

.wf-flow-diagram{
  /* existing rules... */
  padding-bottom: 120px; /* reserves space for outcome panel */
}

.wf-lanes{
  padding-bottom: 12px; /* little breathing room */
}

.wf-flow-diagram{
  --outcomeH: 120px;
  padding-bottom: calc(14px + var(--outcomeH));
}

@media (max-width: 520px){
  .wf-flow-diagram{ --outcomeH: 140px; }
}

/* ============================
   Workflow Logic section
   ============================ */
.wf-logic{
  margin: 18px 0 0;
}

.wf-logic-card{
  padding: 18px;
  border-radius: 18px;
  background: rgba(17,24,39,.75);
}

.wf-logic-card h2{
  margin: 10px 0 10px;
}

.wf-logic-card p{
  margin: 0 0 12px;
  color: var(--muted);
  max-width: 78ch;
}

.wf-logic-card .note{
  margin-top: 22px;
  color: var(--text);
}

.workflowimg {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow:hidden;
    background: rgba(255,255,255,.02);
    margin-bottom: 22px;
  }

  .workflowimg img{
    width:100%;
    height:auto;
    display:block;
    background: rgba(255,255,255,.02);
  }

  /* =========================================
     Workflow cards — midnight blue + mouse glow
     Scoped to .workflow-card only
     ========================================= */

  .workflow-card{
    position: relative;
    overflow: hidden;

    /* deep blue surface */
    background:
      radial-gradient(1200px 420px at 20% 0%,
        rgba(59,130,246,.12), transparent 55%),
      linear-gradient(180deg,
        rgba(10, 18, 38, .92) 0%,
        rgba(8, 12, 24, .92) 100%);
    border: 1px solid rgba(255,255,255,.10);

    box-shadow:
      0 18px 48px rgba(0,0,0,.35),
      inset 0 1px 0 rgba(255,255,255,.06);

    transition:
      transform .16s ease,
      border-color .18s ease,
      box-shadow .18s ease,
      background .18s ease;
  }

  /* subtle premium “sheen” + corner bloom (static) */
  .workflow-card::before{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    background:
      radial-gradient(520px 220px at 90% 10%,
        rgba(59,130,246,.14), transparent 55%),
      linear-gradient(180deg,
        rgba(255,255,255,.06), rgba(255,255,255,0) 55%);
    opacity:.75;
  }

  /* mouse-follow glow (dynamic) */
  .workflow-card::after{
    content:"";
    position:absolute;
    inset:-2px;
    pointer-events:none;

    /* these are set by JS */
    --mx: 50%;
    --my: 50%;

    background: radial-gradient(
      420px circle at var(--mx) var(--my),
      rgba(59,130,246,.30),
      rgba(59,130,246,.12) 28%,
      rgba(59,130,246,.10) 45%,
      rgba(0,0,0,0) 70%
    );

    opacity: 0;
    transition: opacity .16s ease;
    mix-blend-mode: screen; /* makes it feel like “light” */
  }

  /* hover lift + slightly brighter border */
  .workflow-card:hover{
    transform: translateY(-3px);
    border-color: rgba(59,130,246,.22);
    box-shadow:
      0 22px 60px rgba(0,0,0,.45),
      inset 0 1px 0 rgba(255,255,255,.08);
  }

  .workflow-card:hover::after{
    opacity: 1;
  }

  /* badge aligns with new look */
  .workflow-card .wf-badge{
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.10);
  }

  /* motion safety */
  @media (prefers-reduced-motion: reduce){
    .workflow-card,
    .workflow-card::after{
      transition:none !important;
    }
  }

  /* Install section polish */
#how-to-install {
  margin-top: 22px;
}

#how-to-install .install-steps {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
}

#how-to-install .list {
  margin: 0;
  padding-left: 18px;
}

#how-to-install .list li {
  margin: 8px 0;
}

#how-to-install .note {
  margin-top: 12px;
  font-size: 13px;
  opacity: .85;
}

#how-to-install .actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#how-to-install .list li {
  position: relative;
  padding-left: 6px;
}

/* =========================
   Install steps — pill cards
   ========================= */

#how-to-install .install-steps{
  margin-top: 14px;
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
}

#how-to-install .install-pill{
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;

  padding: 10px 12px;
  border-radius: 999px;

  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 10px 20px rgba(0,0,0,.12);
}

#how-to-install .install-num{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;

  font-weight: 900;
  font-size: 13px;

  border: 1px solid rgba(59,130,246,.32);
  background: linear-gradient(180deg, rgba(59,130,246,.22), rgba(59,130,246,.10));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 10px 18px rgba(0,0,0,.14);
}

#how-to-install .install-text{
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}
#how-to-install .install-text strong{
  color: var(--text);
  font-weight: 700;
}

#how-to-install .note{
  margin: 6px 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  opacity: .85;
}

/* Optional: on mobile, slightly reduce pill padding */
@media (max-width: 420px){
  #how-to-install .install-pill{ padding: 9px 10px; }
}

#how-to-install .install-pill{
  transition: transform .14s ease, border-color .14s ease, background .14s ease;
}
#how-to-install .install-pill:hover{
  transform: translateY(-1px);
  border-color: rgba(96,165,250,.22);
  background: rgba(96,165,250,.05);
}

/* =========================
   FAQs section
   ========================= */

#faqs{
  margin-top: 22px;
}

#faqs .faq-list{
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

#faqs .faq-item{
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.02);
  padding: 12px 14px;
}

#faqs .faq-item summary{
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--text);
  position: relative;
  padding-right: 24px;
}

#faqs .faq-item summary::-webkit-details-marker{
  display: none;
}

/* subtle chevron */
#faqs .faq-item summary::after{
  content: "›";
  position: absolute;
  right: 6px;
  top: 0;
  transform: rotate(90deg);
  opacity: .6;
  transition: transform .15s ease, opacity .15s ease;
}

#faqs .faq-item[open] summary::after{
  transform: rotate(-90deg);
  opacity: .9;
}

#faqs .faq-item p{
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Hover polish */
#faqs .faq-item{
  transition: border-color .15s ease, background .15s ease;
}
#faqs .faq-item:hover{
  border-color: rgba(96,165,250,.22);
  background: rgba(96,165,250,.04);
}

/* =========================
   Theme content sections
   ========================= */

.t-section{
  margin-top: 6px;
}

.t-panel{
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
}

.t-panel p{
  margin: 0 0 12px;
  color: var(--muted);
}
.t-panel p:last-child{
  margin-bottom: 0;
}

/* Feature list as “mini cards” */
/* Theme feature list */
.t-features{
  margin-top: 22px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.t-features li{
  position: relative;
  padding: 10px 12px 10px 36px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

/* Icon bullet */
.t-features li::before{
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(96,165,250,.85);
  box-shadow: 0 0 0 4px rgba(96,165,250,.15);
}

.t-features strong{
  color: var(--text);
  font-weight: 600;
}


/* Optional: make the “personal” paragraph feel special */
.t-quote{
  padding-top: 16px; /* 👈 use padding instead of margin */
  padding-left: 12px;
  border-left: 3px solid rgba(96,165,250,.35);
  color: var(--muted);
}



/* Spacing above theme feature list */
.t-features{
  margin-top: 26px; /* 👈 this is the spacing you want */
}


/* =========================
   Minimal carousel (Preview)
   ========================= */

.carousel{
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.carousel .car-figure{
  margin: 0;
}

.car-btn{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  user-select: none;
  font-size: 22px;
  line-height: 1;
  transition: transform .14s ease, background .14s ease, border-color .14s ease;
}

.car-btn:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(96,165,250,.22);
  transform: translateY(-1px);
}

.car-btn:active{
  transform: translateY(0px);
}

/* Make arrows feel subtle */
.car-btn{
  opacity: .9;
}

/* Mobile: overlay arrows so the image gets full width */
@media (max-width: 560px){
  .carousel{
    grid-template-columns: 1fr;
  }
  .car-btn{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(11,15,23,.55);
    backdrop-filter: blur(8px);
  }
  .car-btn:hover{
    transform: translateY(-50%);
  }
  .car-prev{ left: 10px; }
  .car-next{ right: 10px; }
}

/* Optional: tiny fade when switching */
.car-img{
  transition: opacity .16s ease;
}
.car-img.is-fading{
  opacity: .15;
}


/* Fix anchor offset for sticky header (theme pages) */
#theme-overview,
#how-to-install,
#behind-theme,
#faqs {
  scroll-margin-top: 96px; /* adjust to header height */
}

/* Tighten spacing under "More like this" heading */
section[aria-label="Related themes"] > h2{
  margin-bottom: 4px;
}

section[aria-label="Related themes"] > p.small{
  margin: 4px 0 0; /* override default p margins + .small margin-top */
}

/* Extra breathing room before final content section */
#about-chrome-themes{
  margin-top: 36px;
}

/* =========================
   Chip carousel (hero)
   ========================= */

.chipbar{
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  gap: 10px;
  align-items: center;
  margin: 18px 0 6px;
}

.chiprail{
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 2px 2px;              /* tiny breathing room */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;          /* Firefox hide */
}
.chiprail::-webkit-scrollbar{ display: none; } /* Chrome hide */

.chip{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--text);
  font-weight: 650;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .14s ease, background .14s ease, border-color .14s ease;
}

.chip:hover{
  text-decoration: none;
  background: rgba(255,255,255,.06);
  transform: translateY(-1px);
}

.chip.is-primary{
  border-color: rgba(59,130,246,.45);
  background: linear-gradient(135deg, rgba(59,130,246,.28), rgba(59,130,246,.12));
}

.chipbar-btn{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  user-select: none;
  font-size: 22px;
  line-height: 1;
  opacity: .9;
  transition: transform .14s ease, background .14s ease, border-color .14s ease;
}

.chipbar-btn:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(96,165,250,.22);
  transform: translateY(-1px);
}

.chipbar-btn:active{
  transform: translateY(0);
}

/* Optional: fade edges to hint there’s more */
.chipbar{
  position: relative;
}
.chipbar::before,
.chipbar::after{
  content:"";
  position:absolute;
  top: 0;
  bottom: 0;
  width: 18px;
  pointer-events:none;
}
.chipbar::before{
  left: 42px;
  background: linear-gradient(90deg, rgba(11,15,23,.95), rgba(11,15,23,0));
}
.chipbar::after{
  right: 42px;
  background: linear-gradient(-90deg, rgba(11,15,23,.95), rgba(11,15,23,0));
}

/* Mobile: overlay arrows so chips get full width */
@media (max-width: 560px){
  .chipbar{
    grid-template-columns: 1fr;
  }
  .chipbar-btn{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(11,15,23,.55);
    backdrop-filter: blur(8px);
  }
  .chipbar-btn:hover{ transform: translateY(-50%); }
  .chipbar-prev{ left: 6px; }
  .chipbar-next{ right: 6px; }

  .chiprail{
    padding: 2px 48px; /* space so chips don't hide under arrows */
  }
}
/* Softer edge fades for chip rail */
.chipbar::before,
.chipbar::after{
  content:"";
  position:absolute;
  top: 0;
  bottom: 0;
  width: 14px;
  pointer-events:none;
  z-index: 1;
}

.chipbar::before{
  left: 52px;
  background: linear-gradient(
    90deg,
    rgba(11,15,23,.55),
    rgba(11,15,23,0)
  );
}

.chipbar::after{
  right: 52px;
  background: linear-gradient(
    -90deg,
    rgba(11,15,23,.55),
    rgba(11,15,23,0)
  );
}

.chip{
  gap: 8px;
}

.chip-ico{
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  /* border-radius: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10); */
  font-size: 13px;
  line-height: 1;
}

.chipbar::before,
.chipbar::after{
  display:none;
}

/* =========================
   "Why My Themes" section
   ========================= */
#why-my-themes .t-why a{
  color: var(--text);

}

#why-my-themes .t-callout{
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(96,165,250,.05);
  color: var(--muted);
}

#why-my-themes .t-callout strong{
  color: var(--text);
}

/* Extra spacing around "Why My Themes" */
#why-my-themes{
  margin-top: 38px;
  margin-bottom: 38px;
}

/* Extra spacing above the callout note */
#why-my-themes .t-callout{
  margin-top: 26px;
}


/* Spacing above the "Browse perfectly curated categories..." paragraph */
section[aria-label="Related themes"] + p.small{
  margin-top: 0;      /* avoid margin-collapsing weirdness */
  padding-top: 28px;  /* padding won’t collapse — this WILL show */
}


/* Pagination */
.pagination{
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.pg-btn{
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
  position: relative;
  overflow: hidden;
}

.pg-next{ justify-self: end; }

.pg-btn::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(260px 140px at var(--mx, 30%) var(--my, 50%),
    rgba(120,170,255,.22),
    rgba(120,170,255,0) 60%);
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}

.pg-btn:hover::before{ opacity: 1; }
.pg-btn:hover{ border-color: rgba(255,255,255,.18); }

.pg-btn.is-disabled,
.pg-btn[aria-disabled="true"]{
  opacity: .45;
  pointer-events: none;
}

.pg-pages{
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
}

.pg-page{
  min-width: 36px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
  transition: transform .12s ease, border-color .12s ease, color .12s ease, background .12s ease;
}

.pg-page:hover{
  color: var(--text);
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.03);
  transform: translateY(-1px);
}

.pg-page.is-current,
.pg-page[aria-current="page"]{
  color: var(--text);
  border-color: rgba(120,170,255,.45);
  background: rgba(120,170,255,.10);
}

.pg-ellipsis{
  color: var(--muted);
  padding: 0 4px;
}

/* Small screens */
@media (max-width: 720px){
  .pagination{
    grid-template-columns: 1fr;
    justify-items: stretch;
  }
  .pg-btn, .pg-pages{ justify-self: stretch; }
  .pg-pages{ justify-content: center; flex-wrap: wrap; }
}


/* collapsed: hide extras */
.pg-more{ display:none; }

/* expanded: same box wraps + shows everything */
.pg-pages.is-expanded{
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 12px;
}

.pg-pages.is-expanded .pg-more{
  display: inline-flex;
}

/* Optional: when expanded, hide the "12" shortcut (because 12 is already visible in the full list) */
.pg-pages.is-expanded .pg-last{
  display: none;
}

/* Make the ellipsis button match pg-page sizing */
.pg-ellipsis-btn{
  min-width: 36px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.pg-ellipsis-btn:hover{
  color: var(--text);
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.03);
}

.pg-pages.is-expanded .pg-ellipsis-btn{
  color: var(--text);
  border-color: rgba(120,170,255,.45);
  background: rgba(120,170,255,.10);
}


/* Why My Themes – two column layout */
.t-why-grid{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}

/* Left content spacing stays natural */
.t-why-content > * + *{
  margin-top: 14px;
}

/* Right image block */
.t-why-media{
  margin: 0;
  text-align: center;
}

.t-why-media img{
  width: 40%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
}

.t-why-media figcaption{
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* Mobile: stack nicely */
@media (max-width: 860px){
  .t-why-grid{
    grid-template-columns: 1fr;
  }

  .t-why-media{
    order: -1; /* image first on mobile (feels nicer) */
  }
}















/* =========================
   Footer v2 (premium)
   ========================= */

.bwt-footer{
  margin-top: 28px;
  padding: 22px 0 16px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(59,130,246,.18), transparent 60%),
    radial-gradient(760px 380px at 88% 10%, rgba(96,165,250,.10), transparent 55%),
    rgba(11,15,23,.72);
  position: relative;
  overflow: hidden;
}

.bwt-footer::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0) 42%);
  opacity:.55;
}

.bwt-footer__inner{ position: relative; z-index: 1; }

/* CTA row */
.bwt-footer__cta{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-radius: calc(var(--r) + 6px);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(17,24,39,.52);
  box-shadow: 0 18px 48px rgba(0,0,0,.22);
  margin-bottom: 16px;
}

.bwt-footer__ctaText{ display:flex; flex-direction:column; gap: 4px; }
.bwt-footer__ctaText strong{ letter-spacing:.2px; }
.bwt-footer__ctaText .small{ margin:0; }

.bwt-footer__pills{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  justify-content: flex-end;
}

.bwt-pill{
  display:inline-flex;
  align-items:center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  text-decoration:none;
  font-size: 14px;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}

.bwt-pill:hover{
  transform: translateY(-1px);
  color: var(--text);
  border-color: rgba(96,165,250,.22);
  background: rgba(255,255,255,.05);
}

/* Main grid */
.bwt-footer__grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 4px 0 10px;
}

@media (min-width: 880px){
  .bwt-footer__grid{
    grid-template-columns: 1.35fr .85fr .85fr;
    gap: 18px;
    align-items:start;
  }
}

/* Brand card */
.bwt-footer__brand{
  padding: 14px;
  border-radius: calc(var(--r) + 6px);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(15,23,42,.48);
  box-shadow: 0 16px 44px rgba(0,0,0,.22);
}

.bwt-footer__logo{
  display:flex;
  align-items:center;
  gap: 10px;
  text-decoration:none;
}

.bwt-footer__mark{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(18px 18px at 30% 30%, rgba(96,165,250,.55), transparent 70%),
    linear-gradient(135deg, rgba(59,130,246,.38), rgba(96,165,250,.14));
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
}

.bwt-footer__name{
  font-weight: 900;
  letter-spacing: .2px;
  color: var(--text);
}

.bwt-footer__desc{
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  max-width: 62ch;
}

.bwt-footer__meta{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  margin-top: 12px;
}

.bwt-chip{
  display:inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: rgba(157,179,212,.95);
  font-size: 13px;
}

/* Columns */
.bwt-footer__col{ padding: 4px 2px; }

.bwt-footer__h{
  margin: 6px 0 10px;
  font-size: 14px;
  letter-spacing: .2px;
}

.bwt-footer__links{
  list-style:none;
  padding: 0;
  margin: 0;
  display:grid;
  gap: 8px;
}

.bwt-footer__links a{
  display:block;
  padding: 9px 10px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: rgba(255,255,255,0);
  color: var(--muted);
  text-decoration:none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.bwt-footer__links a:hover{
  color: var(--text);
  border-color: rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}

/* Bottom area */
.bwt-footer__bottom{
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.bwt-footer__copy{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.bwt-footer__top{
  display:inline-flex;
  align-items:center;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  text-decoration:none;
  font-size: 13px;
}
.bwt-footer__top:hover{
  color: var(--text);
  border-color: rgba(96,165,250,.22);
  background: rgba(255,255,255,.05);
}

.bwt-footer__fineprint{
  margin: 0px 0 0;
  color: rgba(157,179,212,.85);
  font-size: 13px;
  line-height: 1.45;
}

/* Mobile polish */
@media (max-width: 560px){
  .bwt-footer__cta{
    flex-direction: column;
    align-items: flex-start;
  }
  .bwt-footer__pills{
    justify-content: flex-start;
  }
}



/* =========================
   Footer: "Live activity" widget
   ========================= */

.bwt-footer__meta{
  margin-top: 12px;
}

/* status pill */
.bwt-live{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 10px 12px;
  border-radius: 999px;

  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 14px 30px rgba(0,0,0,.18);

  color: rgba(157,179,212,.92);
  font-size: 13px;
  line-height: 1;
  overflow: hidden;
}

/* scanning shimmer */
.bwt-live::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: linear-gradient(
    115deg,
    rgba(255,255,255,0) 0%,
    rgba(96,165,250,.10) 45%,
    rgba(255,255,255,0) 70%
  );
  transform: translateX(-60%);
  opacity: .55;
  animation: bwtScan 3.8s ease-in-out infinite;
  pointer-events:none;
}

@keyframes bwtScan{
  0%, 35% { transform: translateX(-70%); opacity: .0; }
  45%     { opacity: .55; }
  70%     { transform: translateX(70%); opacity: .35; }
  100%    { transform: translateX(70%); opacity: 0; }
}

/* pulsing live dot */
.bwt-liveDot{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(96,165,250,.95);
  box-shadow:
    0 0 0 0 rgba(96,165,250,.22),
    0 0 18px rgba(96,165,250,.20);
  animation: bwtPulse 1.65s ease-out infinite;
}

@keyframes bwtPulse{
  0%   { box-shadow: 0 0 0 0 rgba(96,165,250,.22), 0 0 18px rgba(96,165,250,.20); }
  60%  { box-shadow: 0 0 0 9px rgba(96,165,250,0), 0 0 24px rgba(96,165,250,.10); }
  100% { box-shadow: 0 0 0 0 rgba(96,165,250,0), 0 0 18px rgba(96,165,250,.10); }
}

.bwt-liveText{
  color: var(--text);
  font-weight: 800;
  letter-spacing: .2px;
}

.bwt-liveSep{
  opacity: .55;
}

.bwt-liveSub{
  color: rgba(157,179,212,.88);
}

/* tiny activity "spark" bars */
.bwt-spark{
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  margin-left: 4px;
}

.bwt-spark i{
  display:block;
  width: 3px;
  height: 8px;
  border-radius: 6px;
  background: rgba(96,165,250,.55);
  box-shadow: 0 0 12px rgba(96,165,250,.08);
  animation: bwtBars 1.25s ease-in-out infinite;
  transform-origin: bottom;
  opacity: .9;
}

.bwt-spark i:nth-child(2){ animation-delay: .10s; height: 10px; opacity: .85; }
.bwt-spark i:nth-child(3){ animation-delay: .20s; height: 7px;  opacity: .8;  }
.bwt-spark i:nth-child(4){ animation-delay: .30s; height: 11px; opacity: .9;  }
.bwt-spark i:nth-child(5){ animation-delay: .40s; height: 8px;  opacity: .78; }
.bwt-spark i:nth-child(6){ animation-delay: .50s; height: 10px; opacity: .86; }

@keyframes bwtBars{
  0%, 100% { transform: scaleY(.55); }
  50%      { transform: scaleY(1.15); }
}

/* Mobile: allow wrap but keep it neat */
@media (max-width: 520px){
  .bwt-live{
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .bwt-spark{
    margin-left: 0;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .bwt-live::before,
  .bwt-liveDot,
  .bwt-spark i{
    animation: none !important;
  }
}


/* Footer brand overlay (clean version — no pill) */

.bwt-footer-figure{
  position: relative;
  overflow: hidden;
}

/* subtle bottom fade for readability */
.bwt-footer-figure::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height: 42%;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0),
    rgba(11,15,23,.65)
  );
  pointer-events:none;
}

/* overlay positioning */
.bwt-footer-overlay{
  position:absolute;
  left:50%;
  bottom:3px;
  transform:translateX(-50%);
  z-index:2;
}

/* clean brand (no background, no border, no blur) */
.bwt-footer-brand{
  margin-left: 0;        /* override header margin */
  display:flex;
  align-items:center;
  gap:10px;

  font-weight: 700;
  font-size: 18px;
  letter-spacing:.2px;

  color: var(--text);
  text-decoration:none;

  /* subtle lift so it feels intentional */
  text-shadow: 0 6px 18px rgba(0,0,0,.55);
}

.bwt-footer-brand:hover{
  text-decoration:none;
}


.bwt-footer-brand .logo{
  box-shadow: 0 6px 18px rgba(0,0,0,.4);
}














/* =========================
   Tool Article Section
   ========================= */

.tool-article {
  margin-top: 44px;
  margin-bottom: 44px;
}

/* Title */
.tool-article-title {
  font-size: 34px;
  line-height: 1.15;
  margin-bottom: 28px;
  letter-spacing: -0.5px;
}

/* Intro paragraph */
.tool-article-intro {
  font-size: 19px;
  line-height: 1.85;
  margin-bottom: 40px;
  opacity: 0.95;
  max-width: 72ch;
}

/* Subheadings (FIXED — no more tiny uppercase) */
.tool-article h3 {
  font-size: 22px;
  margin-top: 60px;
  margin-bottom: 18px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

/* Paragraphs */
.tool-article p {
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 22px;
  opacity: 0.92;
  max-width: 75ch;
  font-weight: 350;
}

/* Lists */
.tool-article-list {
  margin: 20px 0 32px 22px;
  font-size: 17px;
  line-height: 1.9;
  max-width: 75ch;
}

.tool-article-list li {
  margin-bottom: 12px;
}

/* Highlight block */
.tool-article-highlight {
  margin: 50px 0;
  padding: 30px;
  border-left: 4px solid rgb(62 124 221);
  background: rgba(255,255,255,0.05);
  border-radius: 16px;
  font-size: 17px;
  line-height: 1.9;
  max-width: 75ch;
}


/* Homepage article -> footer breathing room */
.tool-article { margin-bottom: 56px; }













/* =========================
   Guide Author Chip (compact)
   ========================= */

.guide-author{
  margin: 6px 0 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.author-chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  text-decoration: none;
  color: inherit;
  transition: border-color .14s ease, background .14s ease;
}

.author-chip:hover{
  text-decoration: none;
  border-color: rgba(96,165,250,.25);
  background: rgba(96,165,250,.05);
}

.author-chip__img{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.10);
}

.author-chip__text{
  display: inline-flex;
  gap: 5px;
  align-items: center;
  line-height: 1;
}

.author-chip__by{
  opacity: .75;
  font-weight: 400;
}

.author-chip__name{
  color: var(--text);
  font-weight: 600;
}

.guide-author__sep{
  opacity: .5;
}

.guide-author__date{
  opacity: .85;
}







/* =========================
   Guide Author Bio Panel
   ========================= */

.guide-bio{
  padding: 20px;
  background: rgba(15,23,42,.55);
}

.guide-bio__inner{
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  align-items: center;
}

@media (max-width: 640px){
  .guide-bio__inner{
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.guide-bio__avatar{
  width: 72px;
  height: 72px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.12);
}

.guide-bio__content .section-title{
  margin: 0 0 8px;
}

.guide-bio__content p{
  margin: 0 0 10px;
}

.guide-bio__link{
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dotted rgba(255,255,255,.25);
}

.guide-bio__link:hover{
  border-bottom-color: rgba(255,255,255,.5);
}











/* Fix: install step numbers overlapping text */
.install-steps {
  margin-top: 14px;
}

.install-pill {
  display: flex;
  align-items: flex-start;
  gap: 12px;              /* space between number + text */
}

.install-num {
  flex: 0 0 34px;         /* reserve width so text can't sit under it */
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  line-height: 1;
}

.install-text {
  flex: 1 1 auto;
  min-width: 0;           /* prevents weird overflow on long text */
}

@media (max-width: 520px) {
  .install-pill { gap: 10px; }
  .install-num { flex-basis: 32px; width: 32px; height: 32px; }
}
