/* SMB Tools Hub — shared stylesheet (static, no external dependencies) */
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: #f3f6fb; color: #0f172a; line-height: 1.6; }
.wrap { max-width: 860px; margin: 0 auto; padding: 20px 16px 56px; }
a { color: #1d4ed8; }
a:visited { color: #1e40af; }
h1 { font-size: 26px; line-height: 1.25; margin: 6px 0 8px; }
h2 { font-size: 21px; margin: 30px 0 8px; border-bottom: 2px solid #dbe4f0; padding-bottom: 6px; }
h3 { font-size: 17px; margin: 20px 0 6px; }
p { margin: 8px 0; }
.lede { color: #475569; font-size: 16px; }
.nav { font-size: 14px; color: #475569; margin-bottom: 8px; }
.nav a { text-decoration: none; }
.disclosure { background: #fffbeb; border: 1px solid #fcd34d; border-radius: 12px; padding: 12px 14px; font-size: 14px; margin: 14px 0; }
.disclosure strong { color: #92400e; }
.answer { background: #eff6ff; border-left: 4px solid #2563eb; border-radius: 0 12px 12px 0; padding: 14px 16px; margin: 16px 0; }
.answer p { margin: 0; }
.answer .label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #1d4ed8; margin-bottom: 4px; }
.card { background: #fff; border: 1px solid #dbe4f0; border-radius: 16px; padding: 18px; margin: 16px 0; }
.card h2 { border: 0; margin-top: 0; padding-bottom: 0; }
.card h3 { margin-top: 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 10px 0; display: block; overflow-x: auto; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid #e2e8f0; vertical-align: top; }
th { background: #eff6ff; white-space: nowrap; }
td.num, th.num { text-align: right; white-space: nowrap; }
td.best { font-weight: 700; color: #166534; }
.checklist { padding-left: 20px; }
.checklist li { margin: 6px 0; }
label { display: block; font-size: 13px; font-weight: 700; margin: 12px 0 4px; }
input[type="number"], input[type="range"], select { width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 10px; font-size: 16px; background: #fff; color: #0f172a; }
.hint { font-size: 12px; color: #64748b; margin: 4px 0 0; }
.result { background: #edf3ff; border: 1px solid #c2d4ef; border-radius: 12px; padding: 14px 16px; margin-top: 16px; }
.result .k { font-size: 13px; color: #475569; margin: 0; }
.result .v { font-size: 26px; font-weight: 800; margin: 2px 0 8px; }
.result ul { margin: 0; padding-left: 18px; font-size: 14px; color: #334155; }
.result table { margin: 8px 0 0; }
.cta { display: inline-block; background: #2563eb; color: #fff !important; font-weight: 700; text-decoration: none; padding: 11px 18px; border-radius: 10px; margin: 6px 8px 6px 0; }
.cta.secondary { background: #fff; color: #1d4ed8 !important; border: 2px solid #2563eb; }
.cta:hover { opacity: .9; }
.faq dt { font-weight: 700; margin: 12px 0 2px; }
.faq dd { margin: 0 0 10px; }
.sources { font-size: 13px; color: #475569; }
.sources li { margin: 4px 0; word-break: break-word; }
.foot { font-size: 12px; color: #64748b; margin-top: 28px; border-top: 1px solid #dbe4f0; padding-top: 14px; }
.verdict { background: #f0fdf4; border: 1px solid #86efac; border-radius: 12px; padding: 14px 16px; margin: 16px 0; }
.verdict strong { color: #166534; }
.warn { background: #fef2f2; border: 1px solid #fecaca; border-radius: 12px; padding: 14px 16px; margin: 16px 0; }
.warn strong { color: #b42318; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 16px 0; }
.tile { background: #fff; border: 1px solid #dbe4f0; border-radius: 14px; padding: 16px; }
.tile h3 { margin: 0 0 4px; }
.tile h3 a { text-decoration: none; }
.tile p { font-size: 14px; color: #475569; margin: 4px 0; }
.tile .tag { display: inline-block; font-size: 12px; font-weight: 700; background: #eff6ff; color: #1d4ed8; border-radius: 999px; padding: 2px 9px; margin-bottom: 6px; }
@media (max-width: 560px) {
  h1 { font-size: 22px; }
  .wrap { padding: 16px 12px 44px; }
  .result .v { font-size: 22px; }
}

/* ============================================================
   Tool comparison matrix (tool-matrix.html) — additive only.
   New class names; nothing here changes the other pages.
   ============================================================ */
.wrap.wide { max-width: 1180px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.matrix-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.chipbtn { font: inherit; font-size: 13px; font-weight: 700; color: #1d4ed8; background: #fff; border: 1.5px solid #c7d7f0; border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.chipbtn:hover { border-color: #2563eb; }
.chipbtn[aria-pressed="true"] { background: #2563eb; border-color: #2563eb; color: #fff; }
.chipbtn small { font-weight: 600; opacity: .7; margin-left: 4px; }
.chipbtn[aria-pressed="true"] small { opacity: .9; }

.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: #475569; margin: 12px 0 0; padding: 0; }
.sym { display: inline-block; min-width: 1.1em; font-weight: 800; text-align: center; }
.sym.yes { color: #166534; }
.sym.part { color: #b45309; }
.sym.no { color: #b42318; }
.sym.na { color: #94a3b8; }
.swipe-hint { display: none; font-size: 12px; color: #64748b; margin: 10px 0 0; }

.matrix-scroll { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; background: #fff; border: 1px solid #dbe4f0; border-radius: 14px; margin: 12px 0 0; }
table.matrix { display: table; width: 100%; min-width: 1080px; border-collapse: separate; border-spacing: 0; margin: 0; font-size: 13.5px; overflow: visible; }
.matrix thead th { position: sticky; top: 0; z-index: 2; background: #eff6ff; color: #1e3a8a; font-size: 11.5px; letter-spacing: .03em; text-transform: uppercase; white-space: normal; border-bottom: 1px solid #cbd5e1; vertical-align: bottom; padding: 10px; }
.matrix tbody th[scope="row"] { position: sticky; left: 0; z-index: 1; background: #fff; border-right: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; min-width: 158px; max-width: 190px; padding: 10px; white-space: normal; vertical-align: top; }
.matrix thead th:first-child { left: 0; z-index: 3; }
.matrix tbody tr:nth-child(even) td { background: #fafcff; }
.matrix tbody tr:nth-child(even) th[scope="row"] { background: #fafcff; }
.matrix tbody tr.is-hidden { display: none; }
.matrix td { padding: 0; border-bottom: 1px solid #e2e8f0; vertical-align: top; }
.tool-link { display: inline-block; font-weight: 800; font-size: 14px; text-decoration: none; line-height: 1.3; }
.tool-link:hover { text-decoration: underline; }
.matrix .cat { display: block; font-size: 11px; color: #64748b; margin-top: 3px; }
.matrix .checked { display: block; font-size: 10.5px; color: #94a3b8; margin-top: 2px; letter-spacing: .02em; }

.cell { position: relative; display: block; width: 100%; min-width: 150px; padding: 10px; background: transparent; border: 0; font: inherit; color: inherit; text-align: left; line-height: 1.45; cursor: pointer; border-radius: 8px; }
.cell .val { color: #1e293b; }
.cell .sym { float: left; margin-right: 6px; }
.cell:hover { background: #eff6ff; }
.cell:focus-visible { outline: 2px solid #2563eb; outline-offset: -2px; }
.cell .cell-more { display: none; }
.cell:hover .cell-more, .cell:focus-visible .cell-more { display: inline-block; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #2563eb; margin-left: 6px; }
.matrix td:last-child .cell { min-width: 200px; }

/* Evidence drawer */
body.drawer-open { overflow: hidden; }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); opacity: 0; transition: opacity .2s ease; z-index: 40; }
.drawer-backdrop[hidden] { display: none; }
.drawer-backdrop.open { opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(500px, 100%); background: #fff; box-shadow: -14px 0 36px rgba(15, 23, 42, .2); transform: translateX(102%); transition: transform .22s ease; z-index: 50; display: flex; flex-direction: column; }
.drawer[hidden] { display: none; }
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px 12px; border-bottom: 1px solid #e2e8f0; }
.drawer-head h2 { border: 0; margin: 0; padding: 0; font-size: 19px; }
.drawer-head .hint { margin: 2px 0 0; }
.drawer-close { flex: none; background: #fff; border: 1px solid #cbd5e1; border-radius: 10px; font-size: 15px; line-height: 1; padding: 8px 10px; cursor: pointer; color: #334155; }
.drawer-close:hover { background: #f1f5f9; }
.drawer-body { padding: 14px 18px 28px; overflow-y: auto; }
.ev-kicker { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #1d4ed8; margin: 0 0 6px; }
.ev-sum { font-size: 14.5px; color: #334155; margin: 0 0 4px; }
.ev h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #475569; margin: 20px 0 6px; }
.ev-list { padding-left: 18px; margin: 0; font-size: 14px; color: #1e293b; }
.ev-list li { margin: 6px 0; }
.ev-list li .sym { margin-right: 2px; }
.ev-src { font-size: 13px; color: #475569; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px 12px; }
.ev-src a { word-break: break-word; }
.ev-note { display: block; margin-top: 6px; font-size: 12px; color: #64748b; }
.ev-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ev-actions .cta { margin: 0; font-size: 14px; padding: 10px 14px; }
@media (min-width: 1400px) {
  /* let the table use the whole window on a big screen while the prose stays narrow */
  .matrix-scroll { margin-left: calc(50% - 50vw + 24px); margin-right: calc(50% - 50vw + 24px); }
}
@media (max-width: 700px) {
  .swipe-hint { display: block; }
  .cell { min-width: 140px; }
  .drawer { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .drawer, .drawer-backdrop { transition: none; }
}
