/* Wallalphacoder — Construx-inspired professional palette (black / white / orange) */
:root {
  --page-bg: #ffffff;
  --header-bg: #ffffff;
  --white: #ffffff;
  --tool-bg: #ffffff;
  --tool-border: #e5e5e5;
  --ink: #1a1a1a;
  --muted: #555555;
  --line: #e8e8e8;
  --link: #1a1a1a;
  --link-hover: #0842a0;
  --accent: #ff6b1a;
  --accent-dark: #e85a0c;
  --green: #ff6b1a;
  --green-dark: #e85a0c;
  --gray-btn: #333333;
  --sidebar-h: #f3f3f3;
  --footer-bg: #1a1a1a;
  --footer-ink: #ffffff;
  --max: 1000px;
  --header-h: 52px;
  --font: Arial, Helvetica, "Segoe UI", sans-serif;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--page-bg);
  min-height: 100vh;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.tool-aside a,
.sidebar a,
.related a,
.cat-list a,
.dir-item,
.browse-more a,
.rt-main a,
.home-wrap a,
.feature-tile,
.blog-card,
.toc a,
.see-also a {
  text-decoration: none !important;
}
.tool-aside a:hover,
.sidebar a:hover,
.related a:hover,
.cat-list a:hover,
.browse-more a:hover,
.rt-main a:hover,
.home-wrap a:hover {
  text-decoration: underline !important;
}
a:hover { color: var(--link-hover); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: #000; color: #fff; padding: 0.4rem 0.6rem; z-index: 9999;
}
.skip-link:focus { left: 0.4rem; top: 0.4rem; }

/* Header: logo left, nav, search — clean white bar */
.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.55rem 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
}
.brand {
  color: var(--ink) !important;
  text-decoration: none !important;
  flex-shrink: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.brand:hover { color: var(--ink) !important; text-decoration: none !important; background: transparent !important; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-mark { display: none !important; }
.brand-text { display: none !important; }
.brand-text::before { display: none !important; content: none !important; }

.nav-toggle { display: none; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.site-nav {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 18px;
  flex: 1;
  min-width: 0;
}
.site-nav a {
  color: #333 !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 700;
  padding: 4px 2px;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--green) !important; text-decoration: underline !important; }

.header-search {
  display: flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 0;
  padding: 0;
  min-width: 0;
  flex-shrink: 0;
  position: relative;
}
.header-search input {
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 3px 6px;
  font: inherit;
  font-size: 13px;
  width: 140px;
  background: #fff;
}
.header-search button {
  border: 0;
  background: transparent;
  color: #444;
  cursor: pointer;
  padding: 2px 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
}
.header-search button::after { content: " Search"; }
.header-search button:hover { color: var(--green); }

.container {
  width: min(100% - 24px, var(--max));
  margin-inline: auto;
}

/* Main + sidebar shell */
.page-shell,
.main-tool-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 28px;
  align-items: start;
  padding: 18px 0 40px;
  max-width: var(--max);
  margin: 0 auto;
  width: min(100% - 32px, var(--max));
}
.main-tool-shell.container { width: min(100% - 32px, var(--max)); }

.rt-main {
  background: transparent;
  border: 0;
  padding: 0;
  min-width: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  color: #666;
  margin: 0 0 14px;
}
.breadcrumb a { font-weight: 400; color: #444 !important; }
.breadcrumb a:hover { color: var(--accent) !important; }
.breadcrumb span { opacity: 0.55; }

.eyebrow { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--h1);
  margin: 0 0 12px;
  font-weight: 700;
  line-height: 1.3;
}
h1 { font-size: 26px; color: #222; margin-bottom: 18px; }
h2 { font-size: 17px; margin-top: 28px; margin-bottom: 10px; }
h3 { font-size: 15px; }
p { margin: 0 0 14px; color: var(--muted); line-height: 1.65; }
.lead { font-size: 14px; color: var(--muted); max-width: 70ch; margin-bottom: 18px; line-height: 1.6; }

/* Directory home — readable RapidTables-style spacing */
.home-wrap {
  background: transparent;
  border: 0;
  padding: 8px 0 24px;
}
.home-title { margin-bottom: 22px; }
.cat-block {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 16px 18px 18px;
  margin-bottom: 22px;
}
.cat-block:last-child { margin-bottom: 0; }
.cat-block h2 {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
  font-size: 17px;
  color: #222;
}
.cat-block > .see-also {
  margin: 0 !important;
}
.cat-block .dir-list { margin-top: 4px; }
.cat-list {
  list-style: disc;
  margin: 0;
  padding-left: 22px;
  line-height: 1.75;
}
.cat-list li { margin: 0 0 9px; padding: 0; }
.cat-list li:last-child { margin-bottom: 0; }
.cat-list a { font-size: 15px; line-height: 1.5; }

.dir-list { border: 1px solid var(--line); background: #fff; margin: 10px 0 16px; }
.dir-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-bottom: 1px solid var(--line);
  color: #1a1a1a !important; text-decoration: none !important;
  font-weight: 600; font-size: 15px; line-height: 1.45;
}
.dir-item:last-child { border-bottom: 0; }
.dir-item:hover { background: #fff8f4; text-decoration: none !important; color: var(--accent) !important; }
.dir-ico { width: 24px; text-align: center; color: var(--accent); flex-shrink: 0; font-size: 14px; }

/* Sidebar boxes */
.side-box, .tool-aside .side-box {
  background: var(--white);
  border: 1px solid #ddd;
  margin-bottom: 16px;
}
.side-box h3, .tool-aside .side-box h3 {
  margin: 0; padding: 10px 12px;
  background: var(--sidebar-h);
  font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: #222222;
  border-bottom: 2px solid var(--accent);
  font-weight: 700;
}
.side-box ul, .tool-aside .side-box ul {
  list-style: disc;
  margin: 10px 0 12px;
  padding: 0 12px 0 28px;
  line-height: 1.7;
}
.side-box li, .tool-aside .side-box li {
  margin: 0 0 8px;
  font-size: 14px;
}
.side-box li:last-child,
.tool-aside .side-box li:last-child { margin-bottom: 0; }

.hero-visual, .orbit, .hero-panel, .hero-stat-row,
.category-band, .chip-row, .chip, .hero .cta-row { display: none !important; }
.hero { padding: 0; background: transparent; }
.hero-grid { display: block; }

/* Category / blog listing grids — fill width professionally */
.grid-3, .grid-4, .grid-2 {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  border: 0;
  background: transparent;
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.feature-tile {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
  height: 100%;
  text-decoration: none !important;
}
.feature-tile:last-child { border-bottom: 1px solid var(--line); }
.feature-tile:hover {
  transform: none;
  background: #f7faf7;
  box-shadow: none;
  border-color: #c5d6c5;
}
.feature-icon, .feature-tile .link-more { display: none; }
.feature-tile h3 {
  font-size: 15px; margin: 0 0 6px; color: #1a1a1a; font-weight: 700; line-height: 1.35;
}
.feature-tile:hover h3 { color: var(--accent); }
.feature-tile p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* Page sections need real side padding */
.page-hero > .container,
.section > .container,
.section-tight > .container {
  max-width: var(--max) !important;
  width: min(100% - 32px, var(--max)) !important;
  margin-inline: auto !important;
  padding: 18px 0 28px !important;
}
/* Panels must keep inner padding — container rule above zeros sides */
.section-tight > .container.panel,
.section > .container.panel,
.page-hero > .container.panel,
.container.panel.seo-article,
.panel.seo-article,
.section-tight > .container.seo-article,
.section > .container.seo-article {
  padding: 28px 32px 36px !important;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.side-box a,
.tool-aside a,
.breadcrumb a {
  color: #444 !important;
  font-weight: 400;
}
.breadcrumb a:hover {
  color: var(--accent) !important;
}
.page-hero { padding: 0; background: transparent; }
.section, .section-tight { padding: 0; }

.workspace { display: block; max-width: 100%; }
.tool-box, .panel {
  background: var(--tool-bg);
  border: 1px solid var(--tool-border);
  border-radius: var(--radius);
  padding: 18px 20px 22px;
  margin-bottom: 22px;
  box-shadow: none;
}
.workspace .panel:nth-child(2) {
  background: var(--tool-bg);
  border-color: var(--tool-border);
}
.panel-title {
  font-size: 13px; font-weight: 700; margin-bottom: 8px; color: #333;
}
.form-grid { display: block; }
.form-grid > div { display: block; }
.form-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 12px 16px;
  align-items: center;
  margin: 0 0 14px;
}
.form-row label {
  font-weight: 600; font-size: 13px; color: #333; margin: 0;
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%; border: 1px solid #bbb; border-radius: 3px;
  padding: 5px 7px; font: inherit; font-size: 13px; background: #fff; color: var(--ink);
}
.form-row textarea { grid-column: 1 / -1; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  border-color: var(--green); box-shadow: 0 0 0 2px rgba(46,125,50,0.12); outline: none;
}
.form-actions {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 8px; padding-top: 4px;
}
@media (max-width: 576px) {
  .form-row { grid-template-columns: 1fr; gap: 3px; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 4px; padding: 7px 14px;
  font-weight: 700; font-size: 13px; cursor: pointer;
  text-decoration: none !important; font-family: var(--font);
}
.btn:hover { text-decoration: none !important; }
.btn-primary, .btn-ember {
  background: var(--green); color: #fff !important;
}
.btn-primary:hover, .btn-ember:hover { background: var(--green-dark); color: #fff !important; }
.btn-secondary {
  background: var(--gray-btn); color: #fff !important;
}
.btn-secondary:hover { background: #333; color: #fff !important; }

.result-box {
  background: #fff; color: var(--ink);
  border: 1px solid #ccc; border-radius: 3px;
  padding: 8px 10px; min-height: 52px; margin-top: 4px;
}
.result-box .label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--muted); margin-bottom: 2px;
}
.result-box .value {
  font-size: 18px; font-weight: 700; color: var(--accent); line-height: 1.2;
}
.result-meta { display: grid; gap: 3px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.result-meta div {
  display: flex; justify-content: space-between; gap: 8px;
  border-top: 1px solid #eee; padding-top: 3px;
}
.hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.error-text { color: #c62828; font-size: 12px; font-weight: 600; display: none; }
.disclaimer {
  margin-top: 8px; padding: 7px 8px; background: #fff8e1;
  border-left: 3px solid #f9a825; font-size: 12px; color: #6d4c41;
}

/* Content below tool — host only, sections are separate cards */
.content-block, .rt-content {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin-top: 16px;
  box-shadow: none !important;
}

/* Sitewide separate sections (no nested mega-card) */
.wac-section-host,
.seo-article[data-wac-sectioned="1"],
#seo-block[data-wac-sectioned="1"],
.rt-content[data-wac-sectioned="1"],
.article-body[data-wac-sectioned="1"],
.panel.seo-article[data-wac-sectioned="1"],
.container.panel.seo-article[data-wac-sectioned="1"] {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  /* keep horizontal centering — never pin to the left */
  margin-top: 0 !important;
  margin-bottom: 8px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: min(100% - 32px, var(--max)) !important;
  max-width: var(--max) !important;
  float: none !important;
  display: block !important;
}

/* Category hub SEO block under tool grid — same center track as .container */
.section-tight > .container.seo-article,
.section > .container.seo-article,
.section-tight > .container.seo-article.wac-section-host,
.section > .container.seo-article.wac-section-host {
  margin-left: auto !important;
  margin-right: auto !important;
  width: min(100% - 32px, var(--max)) !important;
  max-width: var(--max) !important;
  float: none !important;
}

.wac-section,
.viz-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 16px 18px 18px;
  margin: 0 0 22px;
}

.wac-section > h2:first-child,
.viz-card > h2:first-child,
.viz-card > h3:first-child {
  margin-top: 0 !important;
  margin-bottom: 10px !important;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
  font-size: 17px !important;
}
.wac-section > p:last-child,
.viz-card > p:last-child { margin-bottom: 0; }

.wac-section .see-also {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}
.wac-section .faq-item { margin-bottom: 8px; }

/* Home SEO sections — same as .cat-block (separate cards, no nesting) */
.home-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 16px 18px 18px;
  margin-bottom: 22px;
}
.home-card h2 {
  margin: 0 0 10px !important;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
  font-size: 17px !important;
}
.home-card p { margin: 0 0 12px; color: #333; }
.home-card p:last-child { margin-bottom: 0; }
.home-card .example-box,
.home-card .viz-table-wrap { margin-top: 12px; }

/* Visualization blocks — formulas, tables, examples, bar charts */
.viz-table-wrap { overflow-x: auto; margin: 10px 0 4px; }
.viz-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.viz-table th, .viz-table td {
  border: 1px solid #ddd;
  padding: 8px 10px;
  text-align: left;
}
.viz-table th {
  background: #eef3f8;
  color: #1a3a5c;
  font-weight: 700;
}
.viz-table tr:nth-child(even) td { background: #f7f7f7; }
.formula-block {
  font-family: "Times New Roman", Times, serif;
  background: #fafafa;
  border: 1px solid #e0e0e0;
  padding: 14px 16px;
  margin: 10px 0;
  font-size: 16px;
  color: #111;
  text-align: center;
  line-height: 1.7;
}
.formula-block .vars {
  font-family: var(--font);
  font-size: 13px;
  color: #555;
  text-align: left;
  margin-top: 10px;
}
.bar-chart { margin: 12px 0 4px; }
.bar-row {
  display: grid;
  grid-template-columns: 88px 1fr 44px;
  gap: 8px;
  align-items: center;
  margin: 0 0 8px;
  font-size: 12px;
}
.bar-track {
  height: 14px;
  background: #ececec;
  border-radius: 3px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff6b1a, #ff8a4c);
  border-radius: 3px;
  min-width: 2px;
}
.palette-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 4px;
}
.palette-chip {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,.15);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
  position: relative;
  padding: 0;
  cursor: pointer;
  display: inline-block;
}
.palette-chip span {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 9px;
  text-align: center;
  padding: 2px 0;
  font-family: Consolas, monospace;
}
.content-block h2, .rt-content h2 { margin-top: 26px; margin-bottom: 12px; font-size: 17px; }
.content-block ul, .content-block ol, .rt-content ul, .rt-content ol {
  color: var(--muted); padding-left: 22px; margin: 0 0 16px; line-height: 1.7;
}
.content-block li, .rt-content li { margin: 0 0 8px; }
.example-box {
  background: #fafafa; border: 1px solid #eee;
  padding: 12px 14px; margin: 12px 0 18px; font-size: 14px; line-height: 1.65;
}
.formula {
  font-family: "Times New Roman", Times, serif;
  background: #fafafa; border: 1px solid #eee;
  padding: 12px 14px; margin: 12px 0 18px; font-size: 15px; color: #222; line-height: 1.6;
}

/* See also — shining orange buttons */
.see-also, .related-grid {
  display: flex !important; flex-wrap: wrap; gap: 10px;
  margin: 16px 0 22px; padding: 14px;
  background: var(--tool-bg) !important;
  border: 1px solid var(--tool-border) !important;
}
.see-also a,
.related-grid .feature-tile,
.related-grid a {
  background: linear-gradient(135deg, #ffb067 0%, #ff6b1a 48%, #ff4d00 100%) !important;
  color: #fff !important;
  padding: 9px 14px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border: 0 !important;
  display: inline-block !important;
  box-shadow: 0 4px 14px rgba(255, 107, 26, 0.4), inset 0 1px 0 rgba(255,255,255,0.3) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease !important;
}
.see-also a:hover,
.related-grid .feature-tile:hover {
  background: linear-gradient(135deg, #ffc078 0%, #ff7a2e 45%, #ff5a10 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 107, 26, 0.55), inset 0 1px 0 rgba(255,255,255,0.4) !important;
  filter: brightness(1.05);
}
.related-grid .feature-tile h3 {
  color: #fff !important; font-size: 12px !important; margin: 0 !important;
}
.related-grid .feature-tile p,
.related-grid .feature-icon { display: none !important; }

/* Feedback */
.feedback-box { display: none !important; }

.seo-article { margin: 8px auto 20px; width: min(100% - 32px, var(--max)); max-width: var(--max); }
.seo-article h2 { margin-top: 26px; margin-bottom: 12px; font-size: 18px; }
.seo-article p { font-size: 15px; line-height: 1.7; margin: 0 0 14px; color: var(--muted); }
.seo-article ul { margin: 0 0 16px; padding-left: 22px; line-height: 1.7; color: var(--muted); }
.seo-article li { margin: 0 0 8px; }
.ascii-table-wrap { overflow-x: auto; margin-top: 8px; }
.ascii-table-wrap .cat-table { font-size: 12px; }
.ascii-table-wrap td, .ascii-table-wrap th { padding: 4px 6px; text-align: center; }

/* Blog */
.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 28px;
  align-items: start;
  max-width: var(--max);
  margin: 0 auto;
  width: min(100% - 32px, var(--max));
  padding: 18px 0 40px;
}
.blog-page .article-body,
body.blog-article .article-body {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 28px 32px 36px;
  min-width: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.article-meta {
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  font-size: 13px; color: var(--muted); margin-bottom: 18px;
}
.article-meta span::after {
  content: "";
  display: inline-block;
  width: 3px; height: 3px; border-radius: 50%;
  background: #ccc; margin-left: 16px; vertical-align: middle;
}
.article-meta span:last-child::after { display: none; }
.article-body h1 { font-size: 28px; letter-spacing: -0.02em; margin-bottom: 12px; }
.article-body h2 { margin-top: 28px; margin-bottom: 12px; font-size: 18px; color: #1a1a1a; }
.article-body p { font-size: 15px; line-height: 1.75; color: #444; }
.article-body ul, .article-body ol {
  margin: 0 0 16px; padding-left: 22px; line-height: 1.7; color: #444;
}
.article-body li { margin: 0 0 8px; }
.article-body .lead { font-size: 16px; color: #555; max-width: none; }
.article-body .pull-quote {
  margin: 16px 0 22px; padding: 14px 16px; border-left: 4px solid var(--accent);
  background: #f7f7f7; font-size: 15px; color: #1a1a1a; font-weight: 600; line-height: 1.55;
}
.article-eyebrow {
  display: inline-block !important;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent);
  margin: 0 0 10px;
}
.toc {
  background: #fff; border: 1px solid #e5e5e5; padding: 0 0 10px;
  position: sticky; top: 12px; border-radius: 4px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.toc h3 {
  font-size: 12px; margin: 0; padding: 10px 12px; background: #f3f3f3; color: #222;
  border-bottom: 2px solid var(--accent); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.toc a {
  display: block; padding: 8px 12px; font-size: 13px; line-height: 1.4;
  border-bottom: 1px solid #f0f0f0; text-decoration: none; color: #333 !important;
}
.toc a:hover { background: #fafafa; color: var(--accent) !important; }

/* Legacy thin blog cards -> full article look when still stacked */
body.blog-article .static-center.article-body,
body.blog-article .static-center.article-body {
  max-width: none !important;
  width: 100% !important;
}
body.blog-article .wac-section {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0 0 8px;
  box-shadow: none;
}
.blog-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  margin: 0; height: 100%; text-decoration: none !important;
}
.blog-card:hover { background: #f7faf7; transform: none; box-shadow: none; border-color: #c5d6c5; }
.blog-card-media { display: none; }
.blog-card-body { padding: 14px 16px; }
.blog-card-body h3 { font-size: 15px; color: #1a1a1a; margin: 0 0 6px; line-height: 1.35; }
.blog-card:hover .blog-card-body h3 { color: var(--accent); }
.blog-card-body .date { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.blog-card-body p { margin: 0; font-size: 13px; line-height: 1.5; }
.browse-more {
  background: #fff; border: 1px solid #e6e6e6; border-radius: 6px;
  padding: 18px 20px 22px; margin-top: 22px;
}
.browse-more h2 { margin-top: 0; }
.browse-more ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 24px;
  list-style: disc;
  margin: 0;
  padding-left: 20px;
}
@media (max-width: 900px) {
  .browse-more ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.browse-more li { margin: 0; line-height: 1.45; }
.browse-more a { font-size: 14px; }
@media (max-width: 700px) {
  .browse-more ul { grid-template-columns: 1fr; }
}

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.alert { padding: 7px 9px; border-radius: 3px; margin-bottom: 8px; display: none; font-size: 13px; }
.alert.show { display: block; }
.alert-success { background: #fff4ee; color: #c44a0a; }
.alert-error { background: #ffebee; color: #b71c1c; }

/* Footer */
.site-footer {
  margin-top: 28px;
  background: var(--footer-bg);
  color: var(--footer-ink);
  padding: 22px 0 20px;
  font-size: 13px;
  border-top: 3px solid var(--accent);
}
.footer-grid { display: none !important; }
.footer-bottom {
  max-width: none;
  margin: 0;
  padding: 0;
  display: block;
  text-align: center;
  border: 0;
  background: transparent;
}
.rt-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin: 0 0 14px;
  line-height: 1.5;
}
.rt-footer-nav a {
  color: #ffffff; text-decoration: none; margin: 0; font-size: 14px; font-weight: 600;
  padding: 2px 0;
}
.rt-footer-nav a:hover { text-decoration: underline; color: var(--accent); }
.rt-footer-copy {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 18px;
  color: #bbbbbb; font-size: 13px;
}
.rt-footer-copy a { color: #dddddd; text-decoration: none; }
.rt-footer-copy a:hover { text-decoration: underline; color: var(--accent); }

/* Header search suggestions */
.search-suggest {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  left: auto;
  width: 280px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 1200;
  max-height: 320px;
  overflow: auto;
  display: none;
  text-align: left;
}
.search-suggest.open { display: block; }
.search-suggest a {
  display: block;
  padding: 8px 12px;
  color: #ff6b1a !important;
  text-decoration: none !important;
  font-size: 13px;
  border-bottom: 1px solid #f0f0f0;
}
.search-suggest a:hover,
.search-suggest a.active { background: #eef6ff; }
.search-suggest .sg-type {
  float: right;
  color: #888;
  font-size: 11px;
  font-weight: 600;
}

.scroll-controls {
  position: fixed; right: 10px; bottom: 10px; z-index: 900;
  display: flex; flex-direction: column; gap: 4px;
}
.scroll-btn {
  width: 32px; height: 32px; border-radius: 3px; border: 0;
  background: #666; color: #fff; cursor: pointer; display: grid; place-items: center;
  opacity: 0; pointer-events: none; font-size: 13px;
}
.scroll-btn.visible { opacity: 1; pointer-events: auto; }
.scroll-btn:hover { background: var(--green); }

.faq-item { border: 1px solid var(--line); background: #fff; margin-bottom: 10px; }
.faq-item summary {
  cursor: pointer; padding: 11px 12px; font-weight: 700; font-size: 14px; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary { background: #f3f3f3; }
.faq-item .faq-a { padding: 0 12px 12px; color: var(--muted); font-size: 14px; line-height: 1.65; }

.search-results { display: grid; gap: 5px; }
.search-hit { padding: 7px 9px; border: 1px solid var(--line); background: #fff; }
.search-hit h3 { font-size: 13px; margin-bottom: 2px; }

.error-wrap {
  text-align: center; padding: 28px 12px; background: #fff; border: 1px solid #e6e6e6;
}
.error-code { font-size: 42px; font-weight: 700; color: var(--green); line-height: 1; }

.reveal { opacity: 1; transform: none; }
.tool-aside { position: sticky; top: 8px; }
.page-shell.main-tool-shell > :first-child { min-width: 0; }

.related-tabs {
  display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 10px;
  border-bottom: 1px solid #ccc;
}
.related-tabs a {
  padding: 6px 10px; font-size: 12px; font-weight: 700;
  color: #1a1a1a; text-decoration: none; background: #f5f5f5;
  border: 1px solid #ccc; border-bottom: 0; margin-right: 2px; border-radius: 4px 4px 0 0;
}
.related-tabs a.active {
  background: linear-gradient(135deg, #ffb067 0%, #ff6b1a 48%, #ff4d00 100%);
  color: #fff; border-color: #ff6b1a;
  box-shadow: 0 3px 10px rgba(255, 107, 26, 0.4);
}

@media (max-width: 900px) {
  .page-shell, .main-tool-shell, .blog-layout, .contact-grid { grid-template-columns: 1fr; }
  .tool-aside, .toc { position: static; }
  .site-nav { justify-content: flex-start; gap: 8px 14px; }
  .header-inner { flex-wrap: wrap; }
  .header-search { margin-left: auto; }
}
@media (max-width: 640px) {
  .site-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    padding-top: 4px;
    border-top: 1px solid #e4e4d0;
  }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr !important; }
}
@media (max-width: 480px) {
  h1 { font-size: 22px; }
  .home-wrap, .rt-main, .article-body { padding: 8px 0 16px; }
  .brand-text { font-size: 17px; }
  .header-search input { width: 100px; }
  .header-search button::after { content: ""; }
  .cat-list li { margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Static pages (About, FAQ, Contact, policies) — centered reading column */
body.static-page #main,
body.blog-page #main {
  padding: 8px 0 48px;
  width: 100%;
  max-width: none;
  display: block;
}
body.static-page #main > section,
body.blog-page #main > section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}
body.static-page .static-center,
body.static-page .page-hero > .static-center,
body.static-page .section-tight > .static-center,
body.static-page .page-hero > .static-center,
body.static-page .section-tight > .static-center {
  width: min(100% - 32px, 760px) !important;
  max-width: 760px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  float: none !important;
  box-sizing: border-box;
}
body.blog-page .blog-wide,
body.blog-page .static-center {
  width: min(100% - 32px, 980px) !important;
  max-width: 980px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  float: none !important;
  box-sizing: border-box;
}
body.static-page .lead {
  max-width: none;
}
body.static-page .seo-article,
body.static-page .wac-section,
body.static-page .contact-grid {
  text-align: left;
  width: 100%;
}
body.static-page .contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}
@media (max-width: 700px) {
  body.static-page .contact-grid { grid-template-columns: 1fr; }
}

.full-form {
  margin: -6px 0 16px;
  font-size: 14px;
  color: #555;
  line-height: 1.45;
}
.full-form strong {
  color: #ff6b1a;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Cap-rate / finance viz helpers */
.formula-box {
  background: #f4f8ff;
  border: 1px solid #c5d8f0;
  border-radius: 6px;
  padding: 14px 16px;
  margin: 12px 0 18px;
  font-size: 15px;
  color: #222;
}
.formula-box .eq {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 6px 0;
}
.cap-bars {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}
.cap-bars .bar-row {
  display: grid;
  grid-template-columns: 110px 1fr 70px;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}
.cap-bars .track {
  height: 12px;
  background: #e8e8e8;
  border-radius: 6px;
  overflow: hidden;
}
.cap-bars .fill {
  height: 100%;
  background: linear-gradient(90deg, #ff6b1a, #ff8a4c);
  border-radius: 6px;
  width: 0;
  transition: width 0.35s ease;
}

/* Static + blog centering aliases */
body.static-page .page-hero,
body.static-page .section-tight,
body.blog-page .page-hero,
body.blog-page .section-tight {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
body.static-page .page-hero > .static-center,
body.static-page .section-tight > .static-center {
  width: min(100% - 32px, 760px) !important;
  max-width: 760px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
body.blog-page .blog-wide,
body.static-page .blog-wide {
  width: min(100% - 32px, 980px) !important;
  max-width: 980px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.blog-cat-block { margin: 0 0 28px; }
.blog-cat-block h2 {
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ddd;
  font-size: 18px;
  color: #222;
}
#home-faq .faq-item,
#home-faq details.faq-item {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin: 0 0 8px;
  padding: 10px 12px;
}
#home-faq summary { cursor: pointer; font-weight: 600; color: #222; }
#home-faq .faq-a { margin-top: 8px; color: #444; font-size: 14px; line-height: 1.55; }
/* Blog article polish — match desk blog posts */
.article-eyebrow {
  display: inline-block !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}
.blog-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 28px;
  align-items: start;
  max-width: var(--max);
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 18px 0 40px;
}
body.blog-page .article-body,
body.blog-article .article-body {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 28px 32px 36px;
  min-width: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
body.blog-page .article-body h1,
body.blog-article .article-body h1 {
  font-size: 28px;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: #1a1a1a;
}
body.blog-page .article-body .lead,
body.blog-article .article-body .lead {
  font-size: 16px;
  color: #555;
  max-width: none;
}
body.blog-page .wac-section,
body.blog-article .wac-section {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 0 6px !important;
}
.site-header {
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.site-nav a {
  color: #222 !important;
  font-weight: 600;
}
.site-nav a:hover {
  color: var(--accent) !important;
}
.side-box a,
.tool-aside a,
.toc a,
.related a {
  color: #333 !important;
}
.side-box a:hover,
.tool-aside a:hover,
.toc a:hover,
.related a:hover {
  color: var(--accent) !important;
}
@media (max-width: 900px) {
  .blog-layout { grid-template-columns: 1fr !important; }
  .toc { position: static; }
}

/* Blog pages: full-width desk layout (not thin centered column) */
body.blog-page .section-tight,
body.blog-article .section-tight {
  display: block !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: none !important;
}
body.blog-page #main,
body.blog-article #main {
  max-width: none;
}
