/* Wiki theme mockup (simple, single column) — iRecommend.pro */
:root {
  --accent: #7a1f2b;          /* per-site accent; one variable to change */
  --accent-tint: #f3e6e8;
  --bg: #fafaf9;
  --paper: #ffffff;
  --text: #1c1917;
  --muted: #57534e;
  --rule: #d6d3d1;
  --rule-soft: #e7e5e4;
  --row: #fafaf9;
  --price: #166534;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #e4a3ad; --accent-tint: #3a2226; --bg: #141211; --paper: #1c1a19; --text: #ece9e6;
    --muted: #a8a29e; --rule: #44403c; --rule-soft: #2e2b29; --row: #211f1e; --price: #6ee7a0;
  }
}
:root[data-theme="dark"] {
  --accent: #e4a3ad; --accent-tint: #3a2226; --bg: #141211; --paper: #1c1a19; --text: #ece9e6;
  --muted: #a8a29e; --rule: #44403c; --rule-soft: #2e2b29; --row: #211f1e; --price: #6ee7a0;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--sans); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { max-width: 924px; margin: 0 auto; padding: 0 16px; }

/* ---------- Site Header ---------- */
.w-header { border-bottom: 3px solid var(--accent); background: var(--bg); }
.w-brand { display: flex; align-items: center; gap: 12px; padding: 16px 0 10px; color: var(--text); }
.w-brand:hover { text-decoration: none; }
.w-mark { width: 36px; height: 36px; border-radius: 6px; background: var(--accent); color: #fff; display: grid; place-items: center; font: 700 14px var(--serif); flex: none; }
.w-name { font: 700 20px/1.1 var(--serif); }
.w-tag { font-size: 13px; color: var(--muted); }
.w-menu { display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; font-size: 14px; white-space: nowrap; }
.w-menu::-webkit-scrollbar { display: none; }
.w-menu a { color: var(--muted); padding: 6px 0 8px; border-bottom: 2px solid transparent; }
.w-menu a:hover { color: var(--text); text-decoration: none; }
.w-menu a.on { color: var(--accent); font-weight: 600; border-bottom-color: var(--accent); }

/* ---------- Article card ---------- */
.w-page { background: var(--paper); border: 1px solid var(--rule-soft); border-top: 0; padding: 28px 28px 40px; }
.w-crumbs { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.w-crumbs a { color: var(--muted); }
.w-crumbs span { margin: 0 6px; }
h1.w-title { font: 700 34px/1.2 var(--serif); margin: 0; }
.w-sub { color: var(--muted); font-size: 16px; margin: 6px 0 20px; }

.w-article h2 { font: 700 23px/1.3 var(--serif); margin: 32px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--rule); }
.w-article h3 { font: 700 18px/1.35 var(--serif); margin: 24px 0 8px; }
.w-article h4 { font: 700 16px/1.4 var(--sans); margin: 16px 0 6px; }
.w-article p { margin: 0 0 16px; }
.w-article ul, .w-article ol { margin: 0 0 16px; padding-left: 24px; }
.w-article li { margin-bottom: 4px; }
.pn { font-family: var(--mono); font-size: .92em; }

/* Infobox */
.w-infobox { float: right; clear: right; width: 280px; margin: 0 0 16px 24px; border: 1px solid var(--rule); border-left: 3px solid var(--accent); background: var(--paper); font-size: 14px; line-height: 1.45; }
.w-infobox-title { background: var(--accent-tint); text-align: center; font: 700 15px var(--serif); padding: 10px; }
.w-infobox figure { margin: 0; padding: 10px 10px 0; text-align: center; }
.w-infobox figure img { margin: 0 auto; max-height: 200px; width: auto; }
.w-infobox figcaption { font-size: 12px; color: var(--muted); padding: 6px 0 8px; }
.w-infobox table { width: 100%; border-collapse: collapse; }
.w-infobox th, .w-infobox td { text-align: left; vertical-align: top; padding: 6px 10px; border-top: 1px solid var(--rule-soft); }
.w-infobox th { width: 44%; font-weight: 700; }
.w-infobox .section { text-align: center; background: var(--accent-tint); font-weight: 700; }
.w-infobox .price { color: var(--price); font: 700 20px var(--serif); }
.w-infobox .buy { display: block; margin: 0 10px 10px; padding: 8px; text-align: center; background: var(--accent); color: #fff; border-radius: 4px; font-weight: 600; }
.w-infobox .buy:hover { text-decoration: none; opacity: .92; }

/* Boxes: "In this article" + key takeaways */
.w-box { border: 1px solid var(--rule); border-left: 3px solid var(--accent); border-radius: 4px; padding: 12px 18px 6px; margin: 0 0 20px; max-width: 420px; }
.w-box-title { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.w-box ol { padding-left: 22px; margin: 0 0 8px; }
.w-box ol ol { margin: 2px 0 2px; }
.w-box li { margin: 2px 0; }
.w-takeaways { max-width: none; overflow: hidden; }
.w-takeaways ul { margin: 0 0 8px; padding-left: 20px; }

/* Note */
.w-note { border-left: 3px solid var(--rule); padding: 2px 0 2px 16px; color: var(--muted); font-size: 15px; margin: 0 0 16px; }
.w-note > :last-child { margin-bottom: 0; }

/* Tables */
.w-table-wrap { overflow-x: auto; margin: 0 0 8px; }
.w-table { border-collapse: collapse; width: 100%; font-size: 14px; }
.w-table caption { text-align: left; font-weight: 700; padding-bottom: 6px; }
.w-table th, .w-table td { border: 1px solid var(--rule); padding: 6px 10px; text-align: left; vertical-align: top; }
.w-table thead th { background: var(--accent-tint); }
.w-table tbody tr:nth-child(even) { background: var(--row); }
.w-table td.pn { white-space: nowrap; }
.w-table .empty { color: var(--muted); font-style: italic; text-align: center; }
.w-table.collapsed tbody tr:nth-child(n+11) { display: none; }
.w-show-all { background: none; border: 0; padding: 2px 0; color: var(--accent); cursor: pointer; font: 14px var(--sans); }
.w-table-gap { height: 12px; }

/* FAQs */
.w-faq dt { font-weight: 700; margin-top: 14px; }
.w-faq dd { margin: 4px 0 0; }

/* Category index */
.w-cat-index { columns: 4 150px; column-gap: 24px; font-size: 14px; margin: 0 0 16px; padding: 0; list-style: none; }
.w-cat-index li { margin: 0 0 2px; }

.w-prices td:nth-child(3) { color: var(--price); font-weight: 700; white-space: nowrap; }
.w-small { font-size: 13px; color: var(--muted); }
.w-catlinks { clear: both; margin-top: 32px; border: 1px solid var(--rule); padding: 8px 12px; font-size: 14px; }
.w-catlinks a + a::before { content: " · "; color: var(--muted); }

/* Footer */
.w-footer { padding: 20px 0 40px; font-size: 13px; color: var(--muted); }
.w-footer a { color: var(--muted); margin-right: 14px; }

.mock-bar { background: #1c1917; color: #fafaf9; font-size: 13px; text-align: center; padding: 6px 16px; }
.mock-bar a { color: inherit; text-decoration: underline; }

@media (max-width: 700px) {
  .w-page { padding: 20px 16px 32px; border-left: 0; border-right: 0; }
  .wrap.page-wrap { padding: 0; }
  h1.w-title { font-size: 28px; }
  .w-infobox { float: none; width: 100%; margin: 0 0 20px; }
  .w-box { max-width: none; }
}
