/* =====================================================================
   Site colors & fonts - edit these to restyle the whole site
   ===================================================================== */
:root {
  /* ---- Dark theme (the default) ---- */
  --bg: #191919;
  --text: #e3e2df;
  --muted: #9b9a97;
  --border: #2f2f2f;
  --border-strong: #454545;
  --hover: #262626;
  --sidebar-bg: #202020;
  --topbar-bg: rgba(25,25,25,.92);
  --panel-bg: #202020;         /* boxes: "More tools", dropdown menus */
  --link: #6aaef0;
  --accent: #2e7bd6;          /* buttons, active filters */
  --accent-hover: #3d8ae6;
  --card-bg: #222222;
  --shadow: rgba(0,0,0,.35);
  --tag-bg: #373737;
  --tag-free: #243d30;
  --tag-paid: #522e2a;
  --tag-sale: #564328;
  --free: #1fa324;            /* the "FREE" badge icon */
  --paid: #e0a526;            /* the "$" icon */
  --reviewed-text: #7fd19b; --reviewed-bg: #1f3a29;
  --code-bg: #262626; --code-text: #ff7b72;
  /* Notion text colors and highlight backgrounds */
  --c-gray: #9b9b9b; --c-brown: #ba856f; --c-orange: #e08c4f; --c-yellow: #ca9849; --c-green: #529e72;
  --c-blue: #5e9fe0; --c-purple: #9d68d3; --c-pink: #d15796; --c-red: #df5452;
  --bg-gray: #2f2f2f; --bg-brown: #4a3228; --bg-orange: #5c3b23; --bg-yellow: #564328; --bg-green: #243d30;
  --bg-blue: #143a4e; --bg-purple: #3c2d49; --bg-pink: #4e2c3c; --bg-red: #522e2a;

  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --content-width: 900px;
  --sidebar-width: 250px;
  --radius: 6px;
  color-scheme: dark;
}
/* ---- Light theme (the visitor clicked the sun/moon button) ---- */
:root[data-theme="light"] {
  --bg: #ffffff;
  --text: #37352f;
  --muted: #787774;
  --border: #e9e9e7;
  --border-strong: #c7c6c4;
  --hover: #f1f1ef;
  --sidebar-bg: #fbfbfa;
  --topbar-bg: rgba(255,255,255,.95);
  --panel-bg: #f7f7f5;
  --link: #2e7bd6;
  --accent: #2e7bd6;
  --accent-hover: #2368b8;
  --card-bg: #ffffff;
  --shadow: rgba(15,15,15,.1);
  --tag-bg: #e3e2e0;
  --tag-free: #dbeddb;
  --tag-paid: #ffe2dd;
  --tag-sale: #fdecc8;
  --free: #11a311;
  --paid: #d9930d;
  --reviewed-text: #1d6b3a; --reviewed-bg: #e3f4e8;
  --code-bg: #f7f6f3; --code-text: #eb5757;
  --c-gray: #787774; --c-brown: #9f6b53; --c-orange: #d9730d; --c-yellow: #cb912f; --c-green: #448361;
  --c-blue: #337ea9; --c-purple: #9065b0; --c-pink: #c14c8a; --c-red: #d44c47;
  --bg-gray: #f1f1ef; --bg-brown: #f4eeee; --bg-orange: #fbecdd; --bg-yellow: #fbf3db; --bg-green: #edf3ec;
  --bg-blue: #e7f3f8; --bg-purple: rgba(244,240,247,.8); --bg-pink: rgba(249,238,243,.8); --bg-red: #fdebec;
  color-scheme: light;
}

/* =====================================================================
   Basics
   ===================================================================== */
* { box-sizing: border-box; }
html { scroll-padding-top: 70px; }
body { margin: 0; font-family: var(--font); font-size: 16px; color: var(--text); background: var(--bg); line-height: 1.6; }
a { color: var(--link); text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 2px; }
a:hover { text-decoration-color: currentColor; }
img, video { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }

/* =====================================================================
   Top bar
   ===================================================================== */
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px; height: 56px; padding: 0 20px; background: var(--topbar-bg); border-bottom: 1px solid var(--border); backdrop-filter: blur(6px); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text); text-decoration: none; }
.logo img { width: 32px; height: 32px; }
.toplinks { margin-left: auto; display: flex; align-items: center; gap: 4px; font-size: 14px; }
.toplinks > a, .dropdown > summary { padding: 6px 10px; border-radius: var(--radius); color: var(--muted); text-decoration: none; cursor: pointer; list-style: none; }
.toplinks > a:hover, .dropdown > summary:hover { background: var(--hover); color: var(--text); }
.dropdown { position: relative; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown > summary::after { content: " ▾"; font-size: 11px; }
.dropdown-panel { position: absolute; right: 0; top: 38px; min-width: 240px; padding: 6px; background: var(--panel-bg); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 24px var(--shadow); }
.dropdown-panel a { display: block; padding: 8px 10px; border-radius: var(--radius); color: var(--text); text-decoration: none; }
.dropdown-panel a:hover { background: var(--hover); }
.dropdown-panel small { display: block; color: var(--muted); }
.toplinks .cta { color: var(--accent); font-weight: 600; }
.theme-button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; color: var(--muted); background: none; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; }
.theme-button:hover { color: var(--text); background: var(--hover); }
.theme-button svg { width: 18px; height: 18px; }
:root[data-theme="light"] .show-dark, :root:not([data-theme="light"]) .show-light { display: none; }
/* Search box in the top bar + its results list (src/js/search.js) */
.search { position: relative; width: 280px; margin-left: 8px; }
.search-icon { position: absolute; left: 10px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input { width: 100%; height: 34px; padding: 0 10px 0 32px; font: inherit; font-size: 14px; color: var(--text); background: var(--hover); border: 1px solid var(--border); border-radius: var(--radius); outline: none; }
.search input::placeholder { color: var(--muted); }
.search input:focus { border-color: var(--accent); background: var(--bg); }
.search-results { position: absolute; left: 0; top: 40px; width: 380px; max-height: min(70vh, 480px); overflow-y: auto; margin: 0; padding: 6px; list-style: none; background: var(--panel-bg); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 24px var(--shadow); }
.search-results a { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: var(--radius); color: var(--text); text-decoration: none; }
.search-results a:hover, .search-results [aria-selected="true"] a { background: var(--hover); }
.search-results img, .sr-noimg { flex: none; width: 36px; height: 36px; border-radius: 4px; object-fit: cover; background: var(--tag-bg); }
.sr-text { min-width: 0; line-height: 1.3; }
.sr-text strong, .sr-text small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sr-text strong { font-size: 14px; font-weight: 600; }
.sr-text small { font-size: 12px; color: var(--muted); }
.sr-empty { padding: 10px; font-size: 14px; color: var(--muted); }
.menu-button { display: none; padding: 6px 10px; font: inherit; font-size: 14px; color: var(--text); background: none; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; }

/* =====================================================================
   Sidebar + content area
   ===================================================================== */
.layout { display: flex; align-items: flex-start; }
.sidebar { position: sticky; top: 56px; width: var(--sidebar-width); flex-shrink: 0; height: calc(100vh - 56px); overflow-y: auto; padding: 14px 10px; background: var(--sidebar-bg); border-right: 1px solid var(--border); font-size: 14px; }
.side-link, .side-sub { display: block; padding: 4px 8px; border-radius: var(--radius); color: var(--text); text-decoration: none; }
.side-sub { padding-left: 30px; color: var(--muted); font-size: 13.5px; }
.side-link:hover, .side-sub:hover { background: var(--hover); color: var(--text); }
.side-link.active, .side-sub.active { background: var(--border); color: var(--text); font-weight: 600; }
.side-group > summary { display: flex; align-items: center; gap: 6px; padding-left: 4px; border-radius: var(--radius); cursor: pointer; list-style: none; }
.side-group > summary::-webkit-details-marker { display: none; }
.side-group > summary::before { content: "›"; width: 10px; color: var(--muted); transition: transform .15s; }
.side-group[open] > summary::before { transform: rotate(90deg); }
.side-group > summary .side-link { flex: 1; padding-left: 2px; }
.side-icon { flex-shrink: 0; color: var(--muted); }
.content { flex: 1; min-width: 0; padding: 40px 32px 80px; }
.page { max-width: var(--content-width); margin: 0 auto; }

/* =====================================================================
   Page header (icon, title, properties)
   ===================================================================== */
.page-cover { display: block; width: 100%; max-height: 260px; object-fit: cover; border-radius: 8px; margin-bottom: 20px; }
/* Page icon sits to the left of the title (on the home page: centered above it) */
.page-title { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; }
.page-title h1 { margin: 0; }
.page-icon { display: block; flex-shrink: 0; width: 52px; height: 52px; font-size: 44px; line-height: 52px; text-align: center; }
h1 { font-size: 2.4rem; line-height: 1.2; margin: 0 0 16px; }
.page-page h1, .page-index h1 { text-align: left; }
.props { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; margin: 0 0 28px; padding-bottom: 20px; border-bottom: 1px solid var(--border); font-size: 14px; }
.props dt { color: var(--muted); }
.props dd { margin: 0; overflow-wrap: anywhere; }
.check { color: var(--c-green); font-weight: 700; }

/* Tags / badges */
.tag { display: inline-block; padding: 0 7px; margin: 1px 2px 1px 0; border-radius: 4px; background: var(--tag-bg); font-size: 13px; line-height: 1.6; color: var(--text); text-decoration: none; white-space: nowrap; }
.tag-free { background: var(--tag-free); }
.tag-paid { background: var(--tag-paid); }
.tag-sale { background: var(--tag-sale); }
a.tag-link:hover { background: var(--border); }

/* =====================================================================
   Notion content
   ===================================================================== */
.notion h2 { font-size: 1.75rem; margin: 2rem 0 .5rem; line-height: 1.3; }
.notion h3 { font-size: 1.35rem; margin: 1.6rem 0 .4rem; line-height: 1.3; }
.notion h4, .notion h5 { font-size: 1.1rem; margin: 1.2rem 0 .3rem; }
.notion p { margin: .4rem 0; }
.notion .spacer { height: .8rem; }
.notion ul, .notion ol { padding-left: 1.6rem; margin: .4rem 0; }
.notion li { margin: .15rem 0; }
.notion hr { border: 0; border-top: 1px solid var(--border); margin: 1.5rem 0; }
.notion blockquote { margin: .8rem 0; padding: 2px 16px; border-left: 3px solid var(--text); }
.notion pre { padding: 14px; background: var(--code-bg); border-radius: var(--radius); overflow-x: auto; font-size: 14px; }
.notion code { padding: 1px 4px; background: var(--code-bg); border-radius: 3px; font-size: .9em; color: var(--code-text); }
.notion pre code { padding: 0; background: none; color: inherit; }
.notion figure { margin: 1rem 0; }
.notion figure img { display: block; border-radius: 4px; }
.notion figcaption { margin-top: 6px; color: var(--muted); font-size: 14px; }
.notion video { display: block; width: 100%; border-radius: 4px; }
.indent { padding-left: 1.6rem; }
.todo { display: flex; gap: 8px; align-items: baseline; }
.child-page a { font-weight: 500; }
.icon { width: 20px; height: 20px; flex-shrink: 0; font-size: 18px; line-height: 20px; }

/* Toggles ("click to expand") */
.toggle > summary { cursor: pointer; padding: 2px 0; }
.toggle > summary h2, .toggle > summary h3, .toggle > summary h4 { display: inline; }
.toggle > :not(summary) { margin-left: 1.4rem; }

/* Callout boxes */
.callout { display: flex; gap: 10px; padding: 14px 16px; margin: .8rem 0; border-radius: var(--radius); background: var(--bg-gray); }
.callout-body { flex: 1; min-width: 0; }
.callout-body > :first-child { margin-top: 0; }

/* Columns (stack on phones) */
.columns { display: flex; gap: 24px; margin: .6rem 0; }
.column { flex: 1; min-width: 0; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 1rem 0; }
.notion table { border-collapse: collapse; width: 100%; font-size: 14px; }
.notion th, .notion td { border: 1px solid var(--border); padding: 6px 10px; text-align: left; vertical-align: top; }

/* Videos and embeds keep a 16:9 shape; forms grow taller */
.embed { position: relative; width: 100%; }
.embed.video { aspect-ratio: 16 / 9; }
.embed iframe { width: 100%; height: 100%; border: 0; border-radius: 4px; }
.embed.video iframe { position: absolute; inset: 0; }
.embed.form iframe { height: 900px; }
/* Tally forms (contact, suggest a tool) in a white card: Tally's own colors are light */
.tally-box { padding: 18px 20px 6px; background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.tally-box iframe { display: block; width: 100%; border: 0; }
.embed:not(.video):not(.form) iframe { height: 480px; }

/* Bookmark / link preview cards */
.link-card { display: block; padding: 12px 14px; margin: .6rem 0; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); text-decoration: none; }
.link-card:hover { background: var(--hover); }
.link-card-host { display: block; font-weight: 600; }
.link-card-url { display: block; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-card figcaption { margin: 4px 0 0; }
/* Rich version: title + description on the left, image on the right */
.link-card.rich { display: flex; height: 112px; padding: 0; overflow: hidden; }
.link-card.rich .link-card-text { flex: 1; min-width: 0; padding: 12px 14px; }
.link-card-title { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-card-desc { display: -webkit-box; margin: 2px 0 6px; color: var(--muted); font-size: 13px; line-height: 1.45; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.link-card.rich .link-card-host { font-weight: 400; font-size: 13px; }
.link-card.rich img { width: 200px; height: 100%; flex-shrink: 0; object-fit: cover; border-left: 1px solid var(--border); }

/* YouTube preview (thumbnail + play button; the player loads on click) */
.yt { cursor: pointer; background: #000; border-radius: 4px; overflow: hidden; }
.yt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: opacity .15s; }
.yt:hover img { opacity: 1; }
.yt-play { position: absolute; top: 50%; left: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; border: 0; border-radius: 12px; background: rgba(33,33,33,.85); cursor: pointer; }
.yt:hover .yt-play { background: #f00; }
.yt-play::before { content: ""; position: absolute; top: 50%; left: 50%; margin: -9px 0 0 -6px; border-style: solid; border-width: 9px 0 9px 16px; border-color: transparent transparent transparent #fff; }

/* Newsletter form (SendFox embed) */
.raw-embed form { padding: 16px; border: 1px solid var(--border); border-radius: 8px; }
.raw-embed input[type="text"], .raw-embed input[type="email"] { width: 100%; max-width: 360px; padding: 8px; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); }
.raw-embed button { padding: 8px 16px; font: inherit; color: #fff; background: var(--accent); border: 0; border-radius: var(--radius); cursor: pointer; }

/* Notion text colors (values are variables at the top, one set per theme) */
.c-gray { color: var(--c-gray); } .c-brown { color: var(--c-brown); } .c-orange { color: var(--c-orange); } .c-yellow { color: var(--c-yellow); }
.c-green { color: var(--c-green); } .c-blue { color: var(--c-blue); } .c-purple { color: var(--c-purple); } .c-pink { color: var(--c-pink); } .c-red { color: var(--c-red); }
.bg-gray { background: var(--bg-gray); } .bg-brown { background: var(--bg-brown); } .bg-orange { background: var(--bg-orange); } .bg-yellow { background: var(--bg-yellow); }
.bg-green { background: var(--bg-green); } .bg-blue { background: var(--bg-blue); } .bg-purple { background: var(--bg-purple); } .bg-pink { background: var(--bg-pink); } .bg-red { background: var(--bg-red); }
.bg-default { background: none; }

/* =====================================================================
   Lists of cards (tools, categories, courses) + filters
   ===================================================================== */
.list { margin: 1.2rem 0 2rem; }
.list-controls { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.list-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); }
.sort { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.sort select { padding: 5px 8px; font: inherit; font-weight: 400; color: var(--text); background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.filters-label { margin-right: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; font: inherit; font-size: 13px; color: var(--text); background: var(--card-bg); border: 1px solid var(--border); border-radius: 999px; cursor: pointer; }
.chip:hover { border-color: var(--border-strong); }
.chip[aria-pressed="true"] { color: #fff; background: var(--accent); border-color: var(--accent); }
.chip .price-icon { width: 16px; height: 16px; }
.chip-count { opacity: .6; font-size: 12px; }
.link-button { padding: 0; font: inherit; color: var(--link); background: none; border: 0; cursor: pointer; text-decoration: underline; }
.list-empty { padding: 20px; text-align: center; color: var(--muted); }

.group-title { display: flex; align-items: center; gap: 8px; margin: 1.6rem 0 .6rem; font-size: 1.1rem !important; }
.group-title a { color: var(--text); text-decoration: none; }
.group-count { padding: 0 7px; font-size: 12px; font-weight: 400; color: var(--muted); background: var(--hover); border-radius: 999px; }

/* Cards. The whole card is clickable: the main link's invisible ::after layer covers the card.
   The quick-link icon sits above that layer, so it opens the tool's website instead. */
.cards { display: grid; gap: 14px; padding: 0 !important; margin: 0 !important; list-style: none; }
.cards-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.cards-compact { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.card { position: relative; display: flex; flex-direction: column; margin: 0 !important; overflow: hidden; background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 1px 2px var(--shadow); transition: box-shadow .15s, transform .15s, border-color .15s; }
.card:hover { box-shadow: 0 6px 18px var(--shadow); border-color: var(--border-strong); transform: translateY(-1px); }
.card-link { display: flex; flex-direction: column; flex: 1; color: var(--text); text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; }
.card-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--hover); border-bottom: 1px solid var(--border); }
.card-body { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; }
.card-title { display: flex; align-items: flex-start; gap: 7px; font-weight: 600; font-size: 15px; line-height: 1.35; }
.card-icon { flex-shrink: 0; width: 20px; height: 20px; font-size: 17px; line-height: 20px; text-align: center; }
.card-sub { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.card-foot { display: flex; align-items: center; gap: 6px; padding: 0 12px 10px; }
.cards-compact .card-body { padding: 8px 12px; }
.price-icon { width: 22px; height: 22px; flex-shrink: 0; }
.icon-free { color: var(--free); }
.icon-paid { color: var(--paid); }
.card-quick { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 10px; margin-left: auto; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--muted); border: 1px solid var(--border); border-radius: var(--radius); transition: color .15s, background .15s, border-color .15s; }
.card-quick:hover { color: #fff; background: var(--accent); border-color: var(--accent); }
.card-quick svg { width: 14px; height: 14px; }

/* =====================================================================
   Phones and small tablets
   ===================================================================== */
@media (max-width: 860px) {
  .toplinks { display: none; }
  .menu-button { display: block; }
  .topbar { gap: 8px; padding: 0 12px; }
  .logo span { display: none; }  /* only the logo picture, to make room for the search box */
  .search { flex: 1; width: auto; min-width: 0; margin-left: 0; }
  .search-results { position: fixed; left: 8px; right: 8px; top: 60px; width: auto; }
  .menu-button { white-space: nowrap; }
  .sidebar { display: none; position: fixed; top: 56px; left: 0; z-index: 9; width: 100%; height: calc(100vh - 56px); }
  .menu-open .sidebar { display: block; }
  .content { padding: 24px 16px 60px; }
  h1 { font-size: 1.9rem; }
  .columns { flex-direction: column; gap: 0; }
  .props { grid-template-columns: 110px 1fr; }
}

/* Breadcrumbs above the title of tool and course pages */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; font-size: 16px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--text); text-decoration: underline; }

/* =====================================================================
   Tool pages: header ("hero"), facts, related tools
   ===================================================================== */
.page-tool { max-width: 1040px; }
.tool-hero { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.tool-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.tool-hero-media img, .tool-hero-noimg { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); box-shadow: 0 6px 24px var(--shadow); }
.tool-hero-noimg { display: grid; place-items: center; font-size: 64px; font-weight: 700; color: var(--muted); background: var(--hover); }
.tool-hero h1 { font-size: 2.2rem; margin: 0 0 10px; }
.tool-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 18px; }
.tool-badges .tag { font-size: 14px; padding: 2px 10px; }
.price-tag { display: inline-flex; align-items: center; gap: 6px; padding-left: 4px !important; }
.price-tag .price-icon { width: 20px; height: 20px; }
.badge-reviewed { padding: 2px 10px; font-size: 14px; font-weight: 600; color: var(--reviewed-text); background: var(--reviewed-bg); border-radius: 4px; text-decoration: none; }
.button-get { display: inline-flex; flex-direction: column; padding: 12px 22px; margin-bottom: 20px; color: #fff; background: var(--accent); border-radius: 8px; font-weight: 600; font-size: 17px; line-height: 1.3; text-decoration: none; box-shadow: 0 2px 8px var(--shadow); transition: background .15s, transform .15s; }
.button-get:hover { background: var(--accent-hover); transform: translateY(-1px); }
.button-host { font-size: 13px; font-weight: 400; opacity: .85; }
.tool-facts { display: grid; grid-template-columns: 90px 1fr; gap: 8px 12px; margin: 0; font-size: 14px; }
.tool-facts dt { color: var(--muted); }
.tool-facts dd { margin: 0; }
.tag-plain { padding: 0; background: none; color: var(--muted); }
.tag-plain + .tag-plain::before { content: "· "; }
.tool-summary { font-size: 1.05rem; color: var(--muted); }
/* "More tools in ..." at the end of tool pages: a separate box so it doesn't blend with the article */
.related-sep { margin: 56px 0 0; border: 0; border-top: 2px solid var(--border-strong); }
.related { margin-top: 40px; padding: 22px 24px 8px; background: var(--panel-bg); border: 1px solid var(--border); border-radius: 12px; }
.related .card { background: var(--bg); }
.related h2 { font-size: 1.4rem; margin: 0 0 4px; }
.related h2 a { color: var(--text); }
.related .list { margin: 12px 0; }
.see-all { font-weight: 600; text-decoration: none; }

@media (max-width: 860px) {
  .tool-hero-grid { grid-template-columns: 1fr; gap: 18px; }
  .tool-hero h1 { font-size: 1.8rem; }
  .button-get { display: flex; }
  .link-card.rich { height: 96px; }
  .link-card.rich img { width: 96px; }
}

/* =====================================================================
   Home page: logo, intro text and "——" lines centered
   ===================================================================== */
.page-home .page-header, .page-home h1 { text-align: center; }
.page-home .page-title { flex-direction: column; gap: 8px; }
.page-home .page-icon { width: 64px; height: 64px; }
.page-home .notion > h2, .page-home .notion > h3 { text-align: center; }
