/* WiFi QR Studio: page styles. Load after Bootstrap 5.3 and Bootstrap Icons. */
:root {
  --wsq-bg: #f3f8ff;
  --wsq-tray-bg: #ffffff;
  --wsq-field: #f6faff;
  --wsq-line: #dbe6f5;
  --wsq-line-2: #b9cee9;
  --wsq-ink-text: #12294a;
  --wsq-muted-ink: #5a6f8f;
  --wsq-accent: #1570ef;
  --wsq-accent-hover: #0f5fd6;
  --wsq-accent-soft: rgba(21, 112, 239, .09);
  --wsq-sky: #38bdf8;
  --wsq-font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --wsq-font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

[data-bs-theme="light"] {
  --bs-body-bg: var(--wsq-bg);
  --bs-body-color: var(--wsq-ink-text);
  --bs-body-font-family: var(--wsq-font-body);
  --bs-border-color: var(--wsq-line);
  --bs-secondary-color: var(--wsq-muted-ink);
  --bs-link-color: var(--wsq-accent);
  --bs-link-hover-color: var(--wsq-accent-hover);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(900px 520px at 6% -8%, rgba(56, 189, 248, .26), transparent 60%),
    radial-gradient(760px 520px at 100% 4%, rgba(129, 140, 248, .20), transparent 60%),
    var(--wsq-bg);
}

h1,
h2,
h3,
.wsq-headline-font {
  font-family: var(--wsq-font-display);
  letter-spacing: -.012em;
  color: var(--wsq-ink-text);
}

.wsq-muted {
  color: var(--wsq-muted-ink);
}

/* Navbar */
.wsq-bar {
  background: rgba(243, 248, 255, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--wsq-line);
}

.wsq-wordmark {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--wsq-font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--wsq-ink-text);
  text-decoration: none;
}

.wsq-wordmark:hover {
  color: var(--wsq-accent);
}

.wsq-wordmark-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--wsq-sky), var(--wsq-accent));
  color: #fff;
  font-size: 1.1rem;
}

.wsq-bar .nav-link {
  color: var(--wsq-muted-ink);
  font-weight: 600;
}

.wsq-bar .nav-link:hover {
  color: var(--wsq-accent);
}

/* Buttons */
.wsq-cta {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--wsq-accent);
  --bs-btn-border-color: var(--wsq-accent);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--wsq-accent-hover);
  --bs-btn-hover-border-color: var(--wsq-accent-hover);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--wsq-accent-hover);
  --bs-btn-active-border-color: var(--wsq-accent-hover);
  --bs-btn-disabled-color: #8aa0c0;
  --bs-btn-disabled-bg: #e1ebf8;
  --bs-btn-disabled-border-color: #e1ebf8;
  --bs-btn-disabled-opacity: 1;
  font-weight: 800;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(21, 112, 239, .22);
}

.wsq-cta:disabled {
  box-shadow: none;
}

.wsq-cta-alt {
  --bs-btn-color: var(--wsq-ink-text);
  --bs-btn-bg: #fff;
  --bs-btn-border-color: var(--wsq-line-2);
  --bs-btn-hover-bg: #fff;
  --bs-btn-hover-color: var(--wsq-accent);
  --bs-btn-hover-border-color: var(--wsq-accent);
  --bs-btn-active-bg: var(--wsq-accent-soft);
  --bs-btn-active-color: var(--wsq-accent);
  --bs-btn-active-border-color: var(--wsq-accent);
  font-weight: 700;
  border-radius: 12px;
}

/* Hero */
.wsq-opener {
  padding: 4.5rem 0 3.5rem;
}

.wsq-opener h1 {
  font-size: clamp(2.3rem, 5.2vw, 4rem);
  font-weight: 700;
  line-height: 1.06;
  max-width: 14ch;
}

.wsq-opener .lead {
  color: var(--wsq-muted-ink);
  font-size: 1.15rem;
  max-width: 52ch;
}

.wsq-nolist {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.25;
  font-weight: 500;
}

.wsq-nolist li {
  color: #8fa3c2;
  text-decoration: line-through;
  text-decoration-color: var(--wsq-sky);
  text-decoration-thickness: 3px;
  width: fit-content;
}

.wsq-nolist-cap {
  margin-top: 1.25rem;
  color: var(--wsq-ink-text);
  font-weight: 700;
  max-width: 34ch;
}

@media (min-width: 992px) {
  .wsq-opener-side {
    padding-left: 3rem;
    border-left: 2px solid var(--wsq-line);
  }
}

/* Tool */
.wsq-zone {
  padding: 4.5rem 0;
}

.wsq-workbench {
  padding: 1rem 0 4.5rem;
}

.wsq-tray {
  background: var(--wsq-tray-bg);
  border: 1px solid var(--wsq-line);
  border-radius: 20px;
  padding: 1.6rem;
  box-shadow: 0 12px 36px rgba(31, 80, 150, .07);
}

.wsq-tray-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
}

.form-label {
  font-weight: 700;
  font-size: .85rem;
  margin-bottom: .45rem;
  color: var(--wsq-ink-text);
}

.form-control,
.form-select {
  background-color: var(--wsq-field);
  border: 1px solid var(--wsq-line);
  color: var(--wsq-ink-text);
  border-radius: 12px;
  padding: .8rem 1rem;
}

.form-control::placeholder {
  color: #92a5c2;
}

.form-control:focus,
.form-select:focus {
  background-color: #fff;
  color: var(--wsq-ink-text);
  border-color: var(--wsq-accent);
  box-shadow: 0 0 0 .2rem rgba(21, 112, 239, .16);
}

.form-control:disabled {
  background-color: #eef3fa;
  color: #92a5c2;
}

.form-text {
  color: var(--wsq-muted-ink);
  font-size: .78rem;
}

#wsq-pass-eye {
  color: var(--wsq-muted-ink);
  font-size: .8rem;
  font-weight: 700;
}

#wsq-pass-eye:hover {
  color: var(--wsq-accent);
}

.wsq-toggle-card {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  height: 100%;
  padding: .9rem 1rem;
  border: 1px solid var(--wsq-line);
  border-radius: 12px;
  background: var(--wsq-field);
  cursor: pointer;
  margin: 0;
}

.wsq-toggle-card:has(input:checked) {
  border-color: var(--wsq-accent);
  background: var(--wsq-accent-soft);
}

.wsq-toggle-card.wsq-inert {
  opacity: .5;
  pointer-events: none;
}

.wsq-toggle-card .form-check-input {
  flex: none;
  margin: .2rem 0 0;
  background-color: #fff;
  border-color: var(--wsq-line-2);
}

.wsq-toggle-card .form-check-input:checked {
  background-color: var(--wsq-accent);
  border-color: var(--wsq-accent);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

.wsq-toggle-card b {
  display: block;
  font-size: .9rem;
}

.wsq-toggle-card small {
  display: block;
  color: var(--wsq-muted-ink);
  font-size: .76rem;
  line-height: 1.35;
  margin-top: .15rem;
}

.wsq-lockline {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  padding: .9rem 1rem;
  border-radius: 12px;
  background: var(--wsq-accent-soft);
  border: 1px solid rgba(21, 112, 239, .18);
}

.wsq-lockline i {
  color: var(--wsq-accent);
  font-size: 1.1rem;
}

.wsq-lockline b {
  display: block;
  font-size: .9rem;
}

.wsq-lockline span {
  color: var(--wsq-muted-ink);
  font-size: .78rem;
}

#wsq-pass-hint {
  color: #b45309;
  font-size: .78rem;
  min-height: 1.1rem;
  margin-top: .35rem;
}

.wsq-pill-switch {
  background: #eaf2ff;
  border: 1px solid var(--wsq-line);
  border-radius: 12px;
  padding: 3px;
}

.wsq-pill-switch .btn {
  --bs-btn-border-width: 0;
  border: 0;
  border-radius: 9px !important;
  background: transparent;
  color: var(--wsq-muted-ink);
  font-weight: 700;
  font-size: .85rem;
  padding: .45rem .85rem;
}

.wsq-pill-switch .btn:hover {
  color: var(--wsq-accent);
}

.wsq-pill-switch .btn-check:checked+.btn {
  background: var(--wsq-accent);
  color: #fff;
}

.wsq-pill-switch .btn-check:focus-visible+.btn {
  outline: 2px solid var(--wsq-accent);
  outline-offset: 2px;
}

.wsq-viewport {
  min-height: 300px;
  border: 1px solid var(--wsq-line);
  border-radius: 16px;
  background: linear-gradient(160deg, #e6f1ff, #eef0ff);
  padding: 1rem;
}

#wsq-canvas {
  display: block;
  max-width: 100%;
  border-radius: 4px;
  box-shadow: 0 18px 44px rgba(31, 80, 150, .22);
}

.wsq-viewport-cap {
  min-height: 1.3rem;
}

.wsq-dim-chip {
  display: block;
  width: 100%;
  text-align: left;
  padding: .85rem 1rem;
  border: 1px solid var(--wsq-line);
  border-radius: 12px;
  background: var(--wsq-field);
  color: var(--wsq-ink-text);
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
  margin: 0;
}

.wsq-dim-chip b {
  display: block;
  font-size: 1.05rem;
}

.wsq-dim-chip small {
  color: var(--wsq-muted-ink);
  font-size: .78rem;
}

.wsq-dim-chip:hover {
  border-color: var(--wsq-line-2);
  background: #fff;
}

.btn-check:checked+.wsq-dim-chip {
  border-color: var(--wsq-accent);
  background: var(--wsq-accent-soft);
  box-shadow: inset 0 0 0 1px var(--wsq-accent);
}

.btn-check:focus-visible+.wsq-dim-chip {
  outline: 2px solid var(--wsq-accent);
  outline-offset: 2px;
}

/* Why section */
.wsq-edge-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wsq-edge-list li {
  display: flex;
  gap: 1rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--wsq-line);
}

.wsq-edge-list li:last-child {
  border-bottom: 1px solid var(--wsq-line);
}

.wsq-edge-list i {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(56, 189, 248, .22), rgba(21, 112, 239, .14));
  color: var(--wsq-accent);
  font-size: 1.2rem;
}

.wsq-edge-list h3 {
  font-family: var(--wsq-font-body);
  letter-spacing: 0;
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 .2rem;
}

.wsq-edge-list p {
  margin: 0;
  color: var(--wsq-muted-ink);
}

.wsq-matrix {
  --bs-table-bg: transparent;
  --bs-table-color: var(--wsq-ink-text);
  --bs-table-border-color: var(--wsq-line);
}

.wsq-matrix th {
  font-weight: 700;
  color: var(--wsq-muted-ink);
  font-size: .85rem;
}

.wsq-matrix td:last-child,
.wsq-matrix th:last-child {
  color: var(--wsq-accent);
}

.wsq-matrix td:last-child {
  font-weight: 700;
}

.wsq-matrix td,
.wsq-matrix th {
  padding: .9rem .75rem;
  vertical-align: top;
}

/* Steps */
.wsq-count {
  font-family: var(--wsq-font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--wsq-accent);
  line-height: 1;
}

/* FAQ */
.accordion {
  --bs-accordion-bg: transparent;
  --bs-accordion-border-color: var(--wsq-line);
  --bs-accordion-btn-color: var(--wsq-ink-text);
  --bs-accordion-btn-bg: transparent;
  --bs-accordion-active-bg: transparent;
  --bs-accordion-active-color: var(--wsq-accent);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem rgba(21, 112, 239, .16);
  --bs-accordion-body-padding-x: 0;
}

.accordion-button {
  font-weight: 700;
  padding-left: 0;
  padding-right: 0;
}

.accordion-button:not(.collapsed) {
  box-shadow: none;
}

.accordion-body {
  color: var(--wsq-muted-ink);
}

/* Footer */
.wsq-baseline {
  border-top: 1px solid var(--wsq-line);
  padding: 3rem 0 2rem;
  background: rgba(255, 255, 255, .7);
}

.wsq-baseline a {
  color: var(--wsq-muted-ink);
  text-decoration: none;
}

.wsq-baseline a:hover {
  color: var(--wsq-accent);
}

/* Wide tool layout + customize */
.container.wsq-workbench-wide {
  max-width: 1480px;
}

.wsq-viewport {
  position: relative;
}

.wsq-viewport-flag {
  position: absolute;
  left: .75rem;
  right: .75rem;
  top: .75rem;
  padding: .45rem .75rem;
  border-radius: 10px;
  background: #fff7e6;
  border: 1px solid #f3cf8e;
  color: #8a4b08;
  font-size: .78rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 6px 16px rgba(138, 75, 8, .12);
  z-index: 2;
}

.wsq-tweak {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .8rem;
}

.wsq-tweak-name {
  font-weight: 700;
  font-size: .82rem;
  margin: 0;
  color: var(--wsq-ink-text);
  flex: 1 1 auto;
  min-width: 0;
}

.wsq-tweak .form-select {
  width: 146px;
  flex: none;
  padding: .5rem 1.9rem .5rem .65rem;
  font-size: .82rem;
  border-radius: 10px;
  background-position: right .6rem center;
}

.wsq-hue-pick {
  position: relative;
  display: flex;
  align-items: center;
  gap: .55rem;
  width: 146px;
  flex: none;
  height: 38px;
  padding: 0 .6rem;
  border: 1px solid var(--wsq-line);
  border-radius: 10px;
  background: var(--wsq-field);
}

.wsq-hue-pick:focus-within {
  border-color: var(--wsq-accent);
  box-shadow: 0 0 0 .2rem rgba(21, 112, 239, .16);
}

.wsq-hue-pick input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.wsq-hue-pick .wsq-hue-dot {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--wsq-c, #000);
  box-shadow: inset 0 0 0 1px rgba(18, 41, 74, .22);
  flex: none;
}

.wsq-hue-pick .wsq-hue-code {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--wsq-ink-text);
  font-variant-numeric: tabular-nums;
}

#wsq-reset {
  color: var(--wsq-muted-ink);
  font-size: .8rem;
  font-weight: 700;
}

#wsq-reset:hover {
  color: var(--wsq-accent);
}

.wsq-dim-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
}

.wsq-dim-grid .wsq-dim-full {
  grid-column: 1 / -1;
}

.wsq-dim-grid .wsq-dim-chip {
  padding: .6rem .5rem;
  text-align: center;
}

.wsq-dim-grid .wsq-dim-chip b {
  font-size: .95rem;
}

.wsq-dim-grid .wsq-dim-chip small {
  font-size: .72rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}

/* Former inline styles */
.wsq-count-title {
  font-family: var(--wsq-font-body);
}

.wsq-baseline-blurb {
  max-width: 38ch;
}

.wsq-baseline-rule {
  border-color: var(--wsq-line);
  opacity: 1;
}

/* ---------- Latest articles ---------- */
.wsq-digest-head {
  max-width: 640px;
  margin-bottom: 2rem;
}

.wsq-digest-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.wsq-story {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--wsq-tray-bg);
  border: 1px solid var(--wsq-line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(31, 80, 150, .06);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.wsq-story:hover,
.wsq-story:focus-within {
  transform: translateY(-4px);
  border-color: var(--wsq-line-2);
  box-shadow: 0 18px 40px rgba(31, 80, 150, .14);
}

.wsq-story:has(a:focus-visible) {
  outline: 2px solid var(--wsq-accent);
  outline-offset: 2px;
}

.wsq-story-pic {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #cfe6ff, #dfe3ff);
}

.wsq-story-pic img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.wsq-story:hover .wsq-story-pic img {
  transform: scale(1.05);
}

.wsq-story-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.1rem 1.15rem 1.15rem;
}

.wsq-story-tag {
  align-self: flex-start;
  padding: .22rem .65rem;
  border-radius: 999px;
  background: var(--wsq-accent-soft);
  color: var(--wsq-accent);
  font-size: .74rem;
  font-weight: 800;
}

.wsq-story-title {
  margin: .75rem 0 .5rem;
  font-family: var(--wsq-font-display);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.wsq-story-title a {
  color: var(--wsq-ink-text);
  text-decoration: none;
}

.wsq-story-title a:focus-visible {
  outline: none;
}

.wsq-story:hover .wsq-story-title a {
  color: var(--wsq-accent);
}

.wsq-story-lede {
  margin: 0 0 1rem;
  color: var(--wsq-muted-ink);
  font-size: .9rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.wsq-story-meta {
  margin-top: auto;
  padding-top: .85rem;
  border-top: 1px solid var(--wsq-line);
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  color: var(--wsq-muted-ink);
  font-size: .78rem;
  font-weight: 600;
}

.wsq-digest-more {
  margin-top: 2.25rem;
  text-align: center;
}

@media (max-width: 1199.98px) {
  .wsq-digest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .wsq-digest-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .wsq-digest-head {
    margin-bottom: 1.5rem;
  }
}