/*
 * components.css — Every UI component.
 * Solver card, answer bar, steps, inputs, builders,
 * links, sections, info text, chips, tables.
 */


/* ═══════════════════════════════════════
   PAGE ELEMENTS
   ═══════════════════════════════════════ */

/* Page heading — used on calculator and solve pages */
.page-h {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

/* Page description — below heading */
.page-desc {
  font-size: 15px;
  color: var(--text-3);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Section heading — "Popular calculators", "Related", etc. */
.sec-h {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 10px;
}
.sec-h:first-of-type { margin-top: 24px; }

/* Category block heading — "Arithmetic", "Algebra" inside all-calculators list */
.cat-block { margin-bottom: 20px; }
.cat-block-h {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

/* Home hero */
.hero { padding: 8px 0 4px; }
.hero h1 { font-size: 26px; font-weight: 700; margin-bottom: 4px; }
.hero p  { font-size: 16px; color: var(--text-3); margin-bottom: 20px; }

@media (max-width: 900px) {
  .hero h1 { font-size: 22px; }
}


/* ═══════════════════════════════════════
   SOLVER CARD — the main white box
   ═══════════════════════════════════════ */

.solver-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
}

/* Alias for templates that use .sc */
.sc {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
}


/* ── Input section ── */

.sc-input {
  padding: 16px 20px;
}

.sc-input-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* Alias */
.sc-in { padding: 20px; }
.sc-lbl {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}


/* ── Text input row ── */

.inp-row {
  position: relative;
}
.inp-row input,
.ir input {
  width: 100%;
  padding: 13px 48px 13px 16px;
  font-family: var(--mono);
  font-size: 15px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.inp-row input:focus,
.ir input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(21,128,61,0.08);
}
.inp-row input::placeholder,
.ir input::placeholder {
  font-family: var(--sans);
  color: #9ca3af;
  font-size: 14px;
}
.inp-go,
.ig {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  box-shadow: 0 1px 3px rgba(21,128,61,0.2);
}
.inp-go:hover, .ig:hover {
  background: var(--accent-h);
  box-shadow: 0 2px 6px rgba(21,128,61,0.25);
}
.inp-go:active, .ig:active { transform: translateY(-50%) scale(0.95); }

/* Aliases for short class names used in prototype */
.ir { position: relative; }


/* ── Builder inputs ── */

.builder-row,
.br {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.builder-row:last-child,
.br:last-child { margin-bottom: 0; }

.bld-inp,
.bi {
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 15px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  outline: none;
  width: 64px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.bld-inp:focus, .bi:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(21,128,61,0.08);
}
.bld-inp::placeholder {
  color: #9ca3af;
  font-family: var(--sans);
  font-size: 13px;
}
.bld-inp--wide, .bi-w {
  width: auto;
  min-width: 160px;
  flex: 1;
  text-align: left;
  padding: 10px 14px;
}
.bld-inp--sm { width: 80px; }

.bld-sel,
.bs {
  padding: 10px 12px;
  font-size: 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--text-2);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236b7280'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}
.bld-sel:focus, .bs:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(21,128,61,0.08);
}

.bld-op {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--text-3);
}

.bld-label,
.bld-lbl {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  min-width: fit-content;
  white-space: nowrap;
}

.bld-btn,
.bb {
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
  box-shadow: 0 1px 3px rgba(21,128,61,0.2);
  white-space: nowrap;
}
.bld-btn:hover, .bb:hover {
  background: var(--accent-h);
  box-shadow: 0 2px 6px rgba(21,128,61,0.25);
}
.bld-btn:active, .bb:active {
  transform: scale(0.98);
}

/* ── Builder form — grid layout for multi-field forms (loan, interest, etc.) ── */

.builder-form {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 14px;
  align-items: center;
}
.builder-form .bld-label {
  text-align: right;
  min-width: 130px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
}
.builder-form .bld-inp {
  width: 100%;
  max-width: 200px;
  text-align: left;
}
.builder-form .bld-sel {
  width: 100%;
  max-width: 200px;
}
.builder-form .bld-btn {
  grid-column: 2;
  justify-self: start;
}
.builder-form .bld-pills {
  grid-column: 2;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .builder-form {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .builder-form .bld-label {
    text-align: left;
    min-width: 0;
  }
  .builder-form .bld-inp,
  .builder-form .bld-sel {
    max-width: none;
  }
}


.frac-stack,
.fr {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.frac-stack .bld-inp {
  width: 60px;
  padding: 8px 6px;
  font-size: 15px;
}
.frac-bar,
.fb {
  width: 60px;
  border-top: 2px solid var(--text-3);
  margin: 1px 0;
}

@media (max-width: 900px) {
  .builder-row, .br { gap: 8px; }
  .bld-inp--wide, .bi-w { min-width: 120px; }
  .bld-btn, .bb { padding: 10px 16px; }
}


/* ═══════════════════════════════════════
   ANSWER BAR
   ═══════════════════════════════════════ */

.sc-answer,
.sc-ans {
  padding: 16px 20px;
  border-top: 1px solid var(--border-l);
  background: linear-gradient(135deg, #f0fdf4 0%, #fafffe 100%);
}

.sc-answer-label,
.sc-ans-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--accent);
  margin-bottom: 4px;
}

.sc-answer-val,
.sc-ans-val {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.sc-answer-meta,
.sc-ans-meta {
  font-size: 14px;
  color: var(--text-3);
  margin-left: 8px;
}

/* sol-method label (from renderer.js and solve_page) */
.sol-method {
  font-size: 13px;
  color: var(--text-3);
  margin-left: 8px;
}

/* sol-top — answer bar generated by renderer.js */
.sol-top {
  padding: 16px 20px;
  border-top: 1px solid var(--border-l);
  background: linear-gradient(135deg, #f0fdf4 0%, #fafffe 100%);
}
.sol-ans {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}


/* ═══════════════════════════════════════
   METHOD TABS
   ═══════════════════════════════════════ */

.sc-tabs,
.tabs,
.sol-tabs {
  display: flex;
  background: var(--bg);
  border-top: 1px solid var(--border-l);
  border-bottom: 1px solid var(--border-l);
}

.sc-tab,
.tab,
.sol-tab,
.sol-tabs__tab {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-3);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
}
.sc-tab:hover, .tab:hover, .sol-tab:hover, .sol-tabs__tab:hover { color: var(--text); }
.sc-tab.active, .sc-tab.on,
.tab.active, .tab.on,
.sol-tab.active,
.sol-tabs__tab--active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.sol-tabs__panel { animation: fadein 0.2s; }
.sol-tabs__answer { display: none; }

@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }


/* ═══════════════════════════════════════
   STEPS — the step-by-step solution
   ═══════════════════════════════════════ */

.sc-steps,
.steps,
.sol-body {
  padding: 20px;
}

/* Step label — "Step 1 — ..." */
.st-label,
.s-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 20px 0 6px;
  padding-top: 16px;
  border-top: 1px solid var(--border-l);
}
.st-label:first-child,
.s-label:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* Prose text within steps */
.st-text,
.s-text,
.sol-text {
  font-size: 14px;
  color: var(--text-2);
  margin: 4px 0;
  line-height: 1.6;
}
.sol-text b { color: var(--text); }

/* Math expression */
.st-math,
.s-math,
.sol-math {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text);
  padding: 4px 0;
  margin: 2px 0;
  line-height: 1.8;
  word-break: break-word;
}

/* Note/hint */
.st-note,
.s-note,
.sol-note {
  font-size: 13px;
  color: var(--text-3);
  margin: 2px 0;
}

/* Indented sub-steps */
.st-indent,
.s-indent,
.sol-indent {
  padding-left: 20px;
  margin: 4px 0;
}

/* Final answer */
.st-final,
.s-final,
.sol-math.sol-final {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-l);
}

/* Gap between step groups */
.sol-gap { height: 10px; }

/* Board — vertical calculation layout */
.sol-board {
  font-family: var(--mono);
  font-size: 14px;
  white-space: pre;
  padding: 12px 16px;
  background: var(--bg);
  border-radius: 6px;
  overflow-x: auto;
  margin: 8px 0;
  line-height: 1.5;
}

/* Ordered steps list */
.sol-steps {
  padding-left: 24px;
  margin: 8px 0;
}
.sol-steps li {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 4px;
}

/* Section header inside solution */
.sol-section {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 18px 0 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border-l);
}
.sol-section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}


/* ═══════════════════════════════════════
   ERROR & LOADING
   ═══════════════════════════════════════ */

.sol-error {
  padding: 16px 20px;
  font-size: 14px;
  color: #b91c1c;
  background: #fef2f2;
  border-top: 1px solid #fecaca;
}

.sol-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px;
  font-size: 14px;
  color: var(--text-3);
}
.sol-loading-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: .3; transform: scale(.8); }
  50% { opacity: 1; transform: scale(1); }
}


/* ═══════════════════════════════════════
   LINKS
   ═══════════════════════════════════════ */

/* Two-column link grid — used everywhere */
.link-2col,
.lk2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 24px;
}
.link-2col a,
.lk2 a {
  font-size: 14px;
  color: var(--accent);
  padding: 3px 0;
}

/* Related links from child templates (bare <a> tags) */
.related-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 24px;
}
.related-links a {
  font-size: 14px;
  color: var(--accent);
  padding: 3px 0;
}

/* Popular problem links — mono, two-column */
.pop-list,
.pops {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 24px;
  margin-top: 6px;
}
.pop-list a,
.pops a {
  font-size: 13px;
  font-family: var(--mono);
  padding: 3px 0;
  color: var(--accent);
}

@media (max-width: 900px) {
  .link-2col, .lk2, .related-links, .pop-list, .pops {
    grid-template-columns: 1fr;
  }
}


/* ═══════════════════════════════════════
   CHIPS (home page example queries)
   ═══════════════════════════════════════ */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.chip {
  font-size: 13px;
  font-family: var(--mono);
  padding: 5px 12px;
  background: var(--white);
  border: 1px solid var(--border-l);
  border-radius: 99px;
  color: var(--text-2);
  cursor: pointer;
}
.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}


/* ═══════════════════════════════════════
   INFO TEXT — educational content below solution
   ═══════════════════════════════════════ */

.info-text,
.info {
  margin-top: 28px;
}
.info-text h3,
.info h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 20px 0 6px;
}
.info-text h3:first-child,
.info h3:first-child { margin-top: 0; }

.info-text h4,
.info h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
  margin: 16px 0 4px;
}

.info-text p,
.info p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 10px;
}
.info-text strong,
.info strong { color: var(--text); }


/* ═══════════════════════════════════════
   SEO CONTENT CLASSES
   ═══════════════════════════════════════ */

.seo-h1 { font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.seo-h2 { font-size: 18px; font-weight: 700; color: var(--text); margin: 24px 0 8px; }
.seo-text { font-size: 15px; color: var(--text-2); line-height: 1.65; margin-bottom: 10px; }
.seo-faq { margin: 12px 0; }
.seo-faq-q { font-size: 15px; font-weight: 700; color: var(--text); margin: 16px 0 4px; }
.seo-faq-a { font-size: 14px; color: var(--text-2); line-height: 1.65; margin-bottom: 8px; }


/* ═══════════════════════════════════════
   LISTING — calculators index page
   ═══════════════════════════════════════ */

.listing-hd { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.listing-sub { font-size: 15px; color: var(--text-3); margin-bottom: 28px; }
.listing-section { margin-bottom: 24px; }
.listing-section-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.listing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 24px;
}
.listing-grid a {
  font-size: 14px;
  color: var(--accent);
  padding: 3px 0;
}

@media (max-width: 900px) {
  .listing-grid { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════
   CONVERSION TOOL
   ═══════════════════════════════════════ */

.cvt-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.cvt-label { font-size: 13px; font-weight: 500; color: var(--text-2); min-width: 60px; }
.cvt-select {
  padding: 10px 32px 10px 12px; font-size: 14px; border: 1.5px solid var(--border);
  border-radius: 8px; background: var(--white); color: var(--text);
  cursor: pointer; outline: none; min-width: 140px;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236b7280'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.cvt-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(21,128,61,0.08); }
.cvt-input {
  padding: 10px 14px; font-family: var(--mono); font-size: 15px;
  border: 1.5px solid var(--border); border-radius: 8px;
  background: var(--white); color: var(--text); outline: none; width: 150px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cvt-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(21,128,61,0.08); }
.cvt-input--ro { background: var(--bg); color: var(--text-2); cursor: default; }
.cvt-btn {
  padding: 10px 22px; font-size: 14px; font-weight: 600;
  background: var(--accent); color: #fff; border: none; border-radius: 8px;
  cursor: pointer; transition: background 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 3px rgba(21,128,61,0.2);
}
.cvt-btn:hover { background: var(--accent-h); box-shadow: 0 2px 6px rgba(21,128,61,0.25); }
.cvt-unit { font-size: 13px; color: var(--text-3); }
.cvt-result { margin-top: 14px; }
.cvt-result__lbl { font-size: 13px; color: var(--text-3); margin-bottom: 4px; }
.cvt-result__val { font-family: var(--mono); font-size: 20px; font-weight: 700; color: var(--text); }
.cvt-prec { margin-top: 10px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.cvt-prec__lbl { font-size: 12px; color: var(--text-3); margin-right: 4px; }
.cvt-pill {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; font-size: 11px; border-radius: 6px;
  cursor: pointer; color: var(--text-3); background: var(--bg);
}
.cvt-pill:hover { color: var(--accent); }
.cvt-pill--active { color: var(--accent); font-weight: 600; }

.conv-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 16px 0; }
.conv-table th {
  text-align: left; padding: 8px 12px; font-weight: 600; font-size: 12px;
  color: var(--text-3); border-bottom: 1px solid var(--border);
}
.conv-table td {
  padding: 7px 12px; border-bottom: 1px solid var(--border-l);
  font-family: var(--mono); color: var(--text-2);
}
.conv-table tr:hover td { background: var(--bg); }


/* ═══════════════════════════════════════
   LEGACY COMPAT — for convert pages
   not yet fully migrated
   ═══════════════════════════════════════ */

.grid-8-4 {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr);
  gap: 28px; padding: 20px; align-items: start;
}
.side-hd {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; color: var(--text-3); margin-bottom: 6px;
}
.side-list { display: flex; flex-direction: column; gap: 2px; }
.side-list a { display: block; padding: 5px 0; font-size: 13px; color: var(--text-2); }
.side-list a:hover { color: var(--accent); }
.inp-bar { background: var(--white); border-bottom: 1px solid var(--border-l); }
.inp-bar__inner { max-width: var(--max); margin: 0 auto; padding: 14px 20px; }
.inp-tabs { background: var(--white); border-bottom: 1px solid var(--border-l); }
.inp-tabs__inner { max-width: var(--max); margin: 0 auto; display: flex; padding: 0 20px; }
.inp-tab {
  padding: 10px 16px; font-size: 14px; font-weight: 500; color: var(--text-3);
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
  background: none; border-top: none; border-left: none; border-right: none;
}
.inp-tab:hover { color: var(--text); }
.inp-tab--active { color: var(--accent); border-bottom-color: var(--accent); }

@media (max-width: 900px) {
  .grid-8-4 { grid-template-columns: 1fr; padding: 16px; gap: 20px; }
}


/* ═══════════════════════════════════════
   SOL-CARD — standalone solution output
   used by renderer.js on home page
   ═══════════════════════════════════════ */

.sol-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.sol-card:empty { display: none; }
.sol-card--visible { display: block !important; }

/* When sol-card is rendered inside a solver-card / .sc */
.sc .sol-card,
.sc #calcSolution,
.solver-card .sol-card,
.solver-card #calcSolution {
  border: none;
  border-radius: 0;
  background: none;
}
.sc #calcSolution:empty,
.solver-card #calcSolution:empty { display: none; }


/* ═══════════════════════════════════════
   Conversion precision selector
   ═══════════════════════════════════════ */

.sol-precision {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 16px; margin-bottom: 4px;
  border-bottom: 1px solid var(--border-l);
  flex-wrap: wrap;
}
.sol-prec-label {
  font-size: 13px; font-weight: 600; color: var(--text-2);
  margin-right: 2px;
}
.sol-prec-pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 28px; padding: 0 6px;
  font-size: 13px; font-weight: 500; color: var(--text-3);
  background: var(--bg); border: 1px solid var(--border-l);
  border-radius: 6px; cursor: pointer;
  transition: all .15s ease;
}
.sol-prec-pill:hover {
  color: var(--accent); border-color: var(--accent);
  background: var(--accent-bg, rgba(59,130,246,.06));
}
.sol-prec-pill.sol-prec-active {
  color: #fff; background: var(--accent); border-color: var(--accent);
  font-weight: 700;
}
.sol-round-note {
  color: var(--text-3); font-size: .88em; font-style: italic;
}

/* ── Hub calculator list ── */
.hub-group-h {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin: 20px 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-l);
}
.hub-list {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}
.hub-list li {
  padding: 7px 0;
}
.hub-list a {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hub-list a:hover {
  color: var(--accent-h);
}
.hub-list .hub-desc {
  font-size: 12.5px;
  color: var(--text-2);
  margin-left: 4px;
}

/* ── Builder pill buttons (quick-select presets) ── */
.bld-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.bld-pill:hover {
  background: var(--accent-bg);
  border-color: var(--accent);
  box-shadow: 0 1px 3px rgba(21,128,61,0.1);
}
