/*
Theme Name: WCD Ledger
Theme URI: https://workingcapitaldays.com/
Author: workingcapitaldays.com
Description: Lean theme for Working Capital Days on the WCD Ledger design system. Tokens and components come from mu-plugins/wcd-ledger/ledger.css (loaded by the wcd-ledger plugin); this file lays out the templates.
Version: 0.4.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: wcd-ledger
*/

/* Base */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink-body); font: 400 17px/1.6 var(--font-sans); }
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--ledger-strong); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; white-space: nowrap; }
.wl-skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100000; width: auto; height: auto; clip: auto; padding: 10px 14px; background: var(--paper); color: var(--ink); box-shadow: var(--focus-ring); }
.wl-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wl-wrap { padding: 0 16px; } }

/* Header */
.wl-site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.wl-site-header .wl-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; min-height: 64px; }
.wl-site-name { margin: 0 auto 0 0; font: 600 23px/1.2 var(--font-serif); }
.wl-site-name a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.wl-mark { flex: none; display: block; }
@media (max-width: 600px) {
  .wl-site-header .wl-wrap { column-gap: 12px; }
  .wl-site-name { font-size: 19px; white-space: nowrap; }
  .wl-site-name a { gap: 8px; }
  .wl-mark { width: 32px; height: 26px; }
}
.wl-site-name a:hover { color: var(--ledger); }
.wl-menu-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--rule-strong); border-radius: var(--r-md); background: var(--paper); color: var(--ink); font: 600 15px/1 var(--font-sans); cursor: pointer; }
.wl-menu-toggle:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
.wl-menu-toggle-bars { display: inline-block; width: 16px; height: 2px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; }
.wl-nav { display: flex; align-items: center; gap: 8px 24px; }
.wl-nav ul { list-style: none; margin: 0; padding: 0; }
.wl-nav-menu { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.wl-nav-menu > li { position: relative; }
.wl-nav-menu a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-body); font: 600 16px/1.2 var(--font-sans); text-decoration: none; }
.wl-nav-menu a:hover, .wl-nav-menu .current-menu-item > a, .wl-nav-menu .current-menu-ancestor > a { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
.wl-nav-menu .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: -3px 0 0 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.wl-nav-menu .sub-menu { display: none; position: absolute; top: 100%; left: -14px; z-index: 1000; min-width: 240px; padding: 6px 0; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-md); box-shadow: 0 8px 24px #14201b1f; }
.wl-nav-menu li:hover > .sub-menu, .wl-nav-menu li:focus-within > .sub-menu { display: block; }
.wl-nav-menu .sub-menu a { display: flex; width: 100%; padding: 0 14px; font-weight: 400; }
.wl-nav-menu .sub-menu a:hover { background: var(--paper-tint); }
.wl-search { display: flex; }
.wl-search input[type="search"] { width: 170px; min-height: 40px; margin: 0; padding: 8px 10px; border: 1px solid var(--rule-strong); border-right: 0; border-radius: var(--r-md) 0 0 var(--r-md); background: var(--paper); color: var(--ink); font: 400 15px/1.2 var(--font-sans); }
.wl-search input[type="search"]:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
.wl-search button { min-height: 40px; padding: 0 12px; border: 1px solid var(--ledger); border-radius: 0 var(--r-md) var(--r-md) 0; background: var(--ledger); color: var(--on-ledger); font: 600 15px/1 var(--font-sans); cursor: pointer; }
.wl-search button:hover { background: var(--ledger-strong); }
/* The Menu button below 1000px: the full menu and search need about 1000px on one line. */
@media (max-width: 1000px) {
  .wl-menu-toggle { display: inline-flex; }
  .wl-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 12px; padding: 4px 0 16px; }
  .wl-nav.is-open { display: flex; }
  .wl-nav-menu { flex-direction: column; gap: 0; }
  .wl-nav-menu > li { border-bottom: 1px solid var(--rule); }
  .wl-nav-menu .menu-item-has-children > a::after { display: none; }
  .wl-nav-menu .sub-menu { display: block; position: static; min-width: 0; padding: 0 0 8px 16px; border: 0; box-shadow: none; }
  .wl-nav-menu .sub-menu a { padding: 0; }
  .wl-search input[type="search"] { flex: 1; width: auto; }
}

/* Main column */
.wl-main { padding: 32px 0 64px; }
.wl-crumbs { margin: 0 0 4px; font: 600 13px/16px var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.wl-crumbs ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.wl-crumbs li + li::before { content: "›"; margin: 0 8px; color: var(--rule-strong); }
.wl-crumbs a { color: var(--ink-muted); text-decoration: none; }
.wl-crumbs li:last-child a { color: var(--ledger); }
.wl-crumbs a:hover { text-decoration: underline; }
.wl-crumbs a { color: var(--ink-muted); }
.wl-crumbs a:hover { color: var(--ledger); }

/* Article */
.wl-article { max-width: 760px; margin: 0 auto; }
.wl-article-head { display: flex; flex-direction: column; gap: 8px; margin: 0 0 24px; }
.wl-article-head .wl-caption { color: var(--ledger); text-decoration: none; }
.wl-article-head .wl-caption:hover { text-decoration: underline; }
.wl-article-title { margin: 0; font: 600 40px/48px var(--font-serif); color: var(--ink); letter-spacing: -0.01em; }
.wl-article-meta { margin: 0; font: 400 15px/22px var(--font-sans); color: var(--ink-muted); }
.wl-article-image { margin: 0 0 28px; }
.wl-article-image img { display: block; width: 100%; border-radius: var(--r-md); }
@media (max-width: 600px) { .wl-article-title { font-size: 30px; line-height: 37px; } .wl-main { padding-top: 20px; } }

/* Prose: guides and pages */
.wl-prose { font: 400 18px/30px var(--font-sans); color: var(--ink-body); overflow-wrap: break-word; }
.wl-prose > * { margin-top: 0; margin-bottom: 20px; }
.wl-prose h2 { margin: 44px 0 14px; font: 600 26px/34px var(--font-serif); color: var(--ink); scroll-margin-top: 16px; }
.wl-prose h3 { margin: 32px 0 10px; font: 700 19px/26px var(--font-sans); color: var(--ink); scroll-margin-top: 16px; }
.wl-prose h4 { margin: 24px 0 8px; font: 700 17px/24px var(--font-sans); color: var(--ink); }
.wl-prose ul, .wl-prose ol { padding-left: 26px; }
.wl-prose li { margin: 0 0 8px; }
.wl-prose li > ul, .wl-prose li > ol { margin-top: 8px; }
.wl-prose strong { color: var(--ink); }
.wl-prose blockquote { margin: 28px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--rule-strong); color: var(--ink); font-style: normal; }
.wl-prose hr { margin: 36px 0; border: 0; border-top: 1px solid var(--rule); }
.wl-prose table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font: 400 16px/24px var(--font-sans); font-variant-numeric: tabular-nums; display: block; overflow-x: auto; }
.wl-prose th, .wl-prose td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.wl-prose thead th { border-bottom: 2px solid var(--ink); font-weight: 700; color: var(--ink); }
.wl-prose figure { margin-left: 0; margin-right: 0; }
.wl-prose code { font-size: 0.9em; background: var(--paper-tint); padding: 1px 4px; border-radius: var(--r-sm); }
.wl-prose .wl-contents { margin: 8px 0 32px; }
.wl-prose .wl-contents ol { margin: 0; }
.wl-prose .wl-contents li { margin: 0; }

/* The guides' existing calculator call-outs (inline-styled pale blue boxes) as Key point panels. */
.wl-prose div[style*="background:#eff6ff"] { margin: 28px 0 !important; padding: 20px 24px !important; border: 0 !important; border-radius: var(--r-lg) !important; background: var(--tide-soft) !important; font-size: 17px; line-height: 28px; }
.wl-prose div[style*="background:#eff6ff"] > :last-child { margin-bottom: 0 !important; }
.wl-prose div[style*="background:#eff6ff"] strong:first-child { color: var(--tide); }
@media (max-width: 600px) { .wl-prose div[style*="background:#eff6ff"] { padding: 16px !important; } }

/* After the article */
.wl-more { max-width: 760px; margin: 56px auto 0; }
.wl-more-title { margin: 0 0 8px; font: 600 24px/30px var(--font-serif); color: var(--ink); }
.wl-guide .wl-caption { color: var(--ink-muted); }
.wl-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 760px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid var(--rule); }
.wl-post-nav a { display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
.wl-post-nav .wl-caption { color: var(--ink-muted); }
.wl-post-nav-title { font: 600 17px/24px var(--font-serif); color: var(--ink); }
.wl-post-nav a:hover .wl-post-nav-title { color: var(--ledger); text-decoration: underline; }
.wl-post-nav-next { text-align: right; }
@media (max-width: 600px) { .wl-post-nav { grid-template-columns: 1fr; } .wl-post-nav-next { text-align: left; } }

/* Comments */
.wl-comments { max-width: 760px; margin: 48px auto 0; padding-top: 24px; border-top: 1px solid var(--rule); font: 400 16px/24px var(--font-sans); }
.wl-comments h2 { margin: 0 0 16px; font: 600 22px/28px var(--font-serif); color: var(--ink); }
.wl-comments ol { list-style: none; margin: 0 0 24px; padding: 0; }
.wl-comments label { display: block; margin: 0 0 4px; font-weight: 600; color: var(--ink-body); }
.wl-comments textarea, .wl-comments input[type="text"], .wl-comments input[type="email"], .wl-comments input[type="url"] { width: 100%; margin: 0 0 14px; padding: 10px 12px; border: 1px solid var(--rule-strong); border-radius: var(--r-md); font: 400 16px/1.4 var(--font-sans); }
.wl-comments .submit { min-height: 44px; padding: 10px 22px; border: 0; border-radius: var(--r-md); background: var(--ledger); color: var(--on-ledger); font: 600 16px/1.2 var(--font-sans); cursor: pointer; }

/* Lists: the blog, topics, search and 404. A head (caption, title, intro, topics), then
   ruled entries: topic, date and reading time; serif title; one line; the picture on the right.
   The title link covers the whole entry. */
.wl-list { max-width: 820px; margin: 0 auto; }
.wl-list-head { display: flex; flex-direction: column; gap: 10px; margin: 0 0 28px; }
.wl-list-title { margin: 0; font: 600 40px/48px var(--font-serif); color: var(--ink); letter-spacing: -0.01em; }
.wl-list-intro { max-width: 640px; margin: 0; font: 400 18px/28px var(--font-sans); color: var(--ink-body); }
.wl-list-count { font: 600 13px/16px var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); white-space: nowrap; }
@media (max-width: 600px) { .wl-list-title { font-size: 30px; line-height: 37px; } .wl-list-intro { font-size: 17px; line-height: 26px; } }
.wl-topics ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 4px 0 0; padding: 0; }
.wl-topics a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--rule-strong); border-radius: var(--r-md); background: var(--paper); color: var(--ink-body); font: 600 15px/1.2 var(--font-sans); text-decoration: none; }
.wl-topics a:hover { border-color: var(--ledger); color: var(--ledger); }
.wl-topics a[aria-current="page"] { border-color: var(--ledger); background: var(--ledger); color: var(--on-ledger); }
.wl-topics-count { font-weight: 400; font-variant-numeric: tabular-nums; color: var(--ink-muted); }
.wl-topics a[aria-current="page"] .wl-topics-count { color: inherit; opacity: 0.85; }
.wl-entries { border-top: 2px solid var(--ink); }
.wl-entry { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.wl-entry.has-image { grid-template-columns: minmax(0, 1fr) 192px; }
.wl-entry-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wl-entry-meta { margin: 0; }
.wl-entry-title { margin: 0; font: 600 22px/30px var(--font-serif); color: var(--ink); }
.wl-entry-title a { color: inherit; text-decoration: none; }
.wl-entry-title a::after { content: ""; position: absolute; inset: 0; }
.wl-entry-title a:focus-visible { outline: 0; }
.wl-entry:has(.wl-entry-title a:focus-visible) { box-shadow: var(--focus-ring); }
.wl-entry:hover .wl-entry-title { color: var(--ledger); text-decoration: underline; text-underline-offset: 3px; }
.wl-entry-text { margin: 0; font: 400 16px/24px var(--font-sans); color: var(--ink-muted); }
.wl-entry-image img { display: block; width: 100%; aspect-ratio: 300 / 167; object-fit: cover; border-radius: var(--r-md); background: var(--paper-tint); }
@media (max-width: 600px) {
  .wl-entry { gap: 14px; padding: 16px 0; }
  .wl-entry.has-image { grid-template-columns: minmax(0, 1fr) 96px; }
  .wl-entry-title { font-size: 19px; line-height: 26px; }
  .wl-entry-text { font-size: 15px; line-height: 22px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .wl-entry-image { order: 0; }
}
.wl-pagination { margin: 28px 0 0; }
.wl-pagination .nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wl-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--rule-strong); border-radius: var(--r-md); color: var(--ink-body); font: 600 16px/1 var(--font-sans); font-variant-numeric: tabular-nums; text-decoration: none; }
.wl-pagination a.page-numbers:hover { border-color: var(--ledger); color: var(--ledger); }
.wl-pagination .page-numbers.current { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.wl-pagination .page-numbers.dots { min-width: 0; padding: 0 4px; border: 0; }
.wl-search-large { max-width: 560px; margin-top: 6px; }
.wl-search-large input[type="search"] { flex: 1; width: auto; min-height: 48px; font-size: 17px; }
.wl-search-large button { min-height: 48px; padding: 0 20px; font-size: 16px; }
.wl-empty { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; border-top: 2px solid var(--ink); font: 400 17px/27px var(--font-sans); color: var(--ink-body); }
.wl-empty > p { margin: 0; }
.wl-empty-title { margin: 20px 0 0; font: 600 22px/28px var(--font-serif); color: var(--ink); }

/* Footer */
.wl-site-footer { margin-top: 0; background: var(--band); color: var(--on-band-muted); }
.wl-site-footer .wl-wrap { display: flex; flex-direction: column; gap: 28px; padding-top: 48px; padding-bottom: 32px; }
.wl-footer-top { display: flex; flex-wrap: wrap; gap: 28px 64px; }
.wl-footer-brand { flex: 1 1 280px; display: flex; flex-direction: column; gap: 6px; }
.wl-footer-name { font: 600 22px/1.2 var(--font-serif); color: var(--on-band); }
.wl-footer-tagline { font: 400 15px/22px var(--font-sans); }
.wl-footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.wl-footer-nav a { display: inline-flex; min-height: 32px; align-items: center; color: var(--on-band-muted); font: 400 15px/22px var(--font-sans); }
.wl-footer-nav a:hover { color: var(--on-band); }
.wl-site-footer :focus-visible { outline-color: var(--on-band); }
.wl-footer-note { margin: 0; padding-top: 18px; border-top: 1px solid #3a4741; font: 400 14px/21px var(--font-sans); }
.wl-footer-note p { margin: 0 0 4px; }

/* Pages. Calculator pages and the hub run wider (980px) so a calculator can sit side by side;
   their text keeps the 760px reading width, left-aligned with the title. */
.wl-page-wide { max-width: 980px; margin: 0; }
.wl-page-wide .wl-article-head { max-width: 760px; }
.wl-page-wide .wl-prose > :not(.wl-calc):not(.wcd-tools):not(.wcd-ad-slot):not(style):not(script) { max-width: 760px; }
@media (min-width: 1040px) { .wl-page-wide { margin: 0 auto; } }

/* Calculators hub (page content .wcd-tools) as a ruled index, like the Ledger ToolIndex. */
.wl-page .wl-prose .wcd-tools { max-width: none; margin: 0; font-family: var(--font-sans); }
.wl-page .wl-prose .wcd-tools-intro { margin: 0 0 8px; padding: 0; background: none; border: 0; text-align: left; }
.wl-page .wl-prose .wcd-tools-intro p { margin: 0; max-width: 760px; font: 400 18px/30px var(--font-sans); color: var(--ink-body); }
.wl-page .wl-prose .wcd-tools h3.wcd-tools-sec { margin: 40px 0 4px; font: 600 26px/34px var(--font-serif); color: var(--ink); }
.wl-page .wl-prose .wcd-tools .wcd-tools-secp { margin: 0 0 14px; font: 400 16px/24px var(--font-sans); color: var(--ink-muted); }
.wl-page .wl-prose .wcd-tools-grid { display: flex; flex-direction: column; gap: 0; margin: 0; border-top: 2px solid var(--ink); }
.wl-page .wl-prose .wcd-tools-flagship { display: block; margin: 0; padding: 0; background: none; border: 0; grid-column: auto; }
.wl-page .wl-prose a.wcd-tool-link { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) 13.5em; gap: 24px; align-items: baseline; margin: 0; padding: 16px 0; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; background: none; box-shadow: none; transform: none; color: inherit; text-decoration: none; }
.wl-page .wl-prose a.wcd-tool-link h3 { margin: 0; font: 700 19px/26px var(--font-sans); color: var(--ink); }
.wl-page .wl-prose a.wcd-tool-link p { margin: 0; font: 400 16px/24px var(--font-sans); color: var(--ink-body); }
.wl-page .wl-prose a.wcd-tool-link .wcd-tool-cta { font: 600 15px/22px var(--font-sans); color: var(--ledger); text-align: right; }
.wl-page .wl-prose a.wcd-tool-link:hover h3 { color: var(--ledger); text-decoration: underline; text-underline-offset: 3px; }
.wl-page .wl-prose a.wcd-tool-link:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
@media (max-width: 760px) { .wl-page .wl-prose a.wcd-tool-link { grid-template-columns: minmax(0, 1fr); gap: 4px; } .wl-page .wl-prose a.wcd-tool-link .wcd-tool-cta { text-align: left; } }

/* Homepage: the Home page's content sections as full-width Ledger bands. Its own style block
   (written for Blogus) is overridden here, hence the specific selectors and a few !importants
   against inline style attributes. */
.wl-home { display: block; }
.wl-home .wcd-full-width { position: static; left: auto; right: auto; width: auto; margin: 0; }
.wl-home .wcd-hero, .wl-home .wcd-section, .wl-home .wcd-section-alt { padding: 48px max(24px, calc((100% - 1112px) / 2)) !important; margin: 0; border-top: 1px solid var(--rule); text-align: left !important; }
.wl-home .wcd-section { background: var(--paper); }
.wl-home .wcd-section-alt { background: var(--paper-tint); }
.wl-home .wcd-section-alt > div[style] { max-width: none !important; }
@media (max-width: 600px) { .wl-home .wcd-hero, .wl-home .wcd-section, .wl-home .wcd-section-alt { padding: 36px 16px !important; } }

/* Hero: words on the left, the example cash-cycle bar on the right. */
.wl-home .wcd-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 56px !important; padding-bottom: 56px !important; border-top: 0; background: var(--paper); color: var(--ink-body); }
.wl-home .wcd-hero h1 { margin: 0; font: 600 48px/56px var(--font-serif); letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
.wl-home .wcd-hero p.wcd-subtitle { max-width: 34em; margin: 0; font: 400 18px/30px var(--font-sans); color: var(--ink-body); }
.wl-home .wcd-hero-buttons { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-start; margin-top: 6px; }
.wl-home .wcd-hero figure.wl-cycle.wl-cycle-panel { max-width: none; margin: 8px 0 0; border-color: var(--rule); }
@media (min-width: 960px) {
  .wl-home .wcd-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); column-gap: 48px; align-items: center; }
  .wl-home .wcd-hero > :not(figure) { grid-column: 1; }
  .wl-home .wcd-hero > figure { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
}
@media (max-width: 600px) { .wl-home .wcd-hero h1 { font-size: 34px; line-height: 41px; } }
.wl-home a.wcd-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 22px; border-radius: var(--r-md); border: 1px solid transparent; font: 600 16px/1.2 var(--font-sans); text-decoration: none; transform: none; }
.wl-home a.wcd-btn-primary { background: var(--ledger); color: var(--on-ledger); }
.wl-home a.wcd-btn-primary:hover { background: var(--ledger-strong); color: var(--on-ledger); }
.wl-home a.wcd-btn-outline { background: var(--paper); color: var(--ledger); border-color: var(--rule-strong); }
.wl-home a.wcd-btn-outline:hover { border-color: var(--ledger); color: var(--ledger); }

/* Section headings and intros. */
.wl-home .wcd-section-title { margin: 0 0 4px; font: 600 26px/34px var(--font-serif); color: var(--ink); text-align: left !important; }
.wl-home p.wcd-section-desc { max-width: 640px; margin: 0 0 18px !important; font: 400 16px/24px var(--font-sans); color: var(--ink-muted); text-align: left !important; }

/* Calculators: a ruled index (title, one line). The emoji icons go. */
.wl-home .wcd-calc-grid { display: flex; flex-direction: column; max-width: none; margin: 0; padding: 0; gap: 0; border-top: 2px solid var(--ink); }
.wl-home a.wcd-calc-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr); gap: 24px; align-items: baseline; padding: 16px 0; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; background: none; box-shadow: none; transform: none; text-align: left; color: inherit; text-decoration: none; }
.wl-home .wcd-calc-icon { display: none; }
.wl-home a.wcd-calc-card h3 { margin: 0; font: 700 19px/26px var(--font-sans); color: var(--ink); }
.wl-home a.wcd-calc-card p { margin: 0; font: 400 16px/24px var(--font-sans); color: var(--ink-body); }
.wl-home a.wcd-calc-card:hover h3 { color: var(--ledger); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 700px) { .wl-home a.wcd-calc-card { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* Guides: ruled rows (caption naming the type, serif title, one line), two columns on wide screens. */
.wl-home .wcd-feature-row, .wl-home .wcd-article-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; max-width: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.wl-home .wcd-feature-row + .wcd-feature-row, .wl-home .wcd-feature-row + .wcd-article-grid { border-top: 0; }
.wl-home a.wcd-feature-card, .wl-home a.wcd-article-card { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; background: none; box-shadow: none; transform: none; color: inherit; text-decoration: none; }
.wl-home .wcd-tag { display: block; padding: 0; margin: 0; border-radius: 0; background: none !important; font: 600 13px/16px var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted) !important; }
.wl-home a.wcd-feature-card h3, .wl-home a.wcd-article-card h3 { margin: 0; font: 600 20px/28px var(--font-serif); color: var(--ink); }
.wl-home a.wcd-feature-card p, .wl-home a.wcd-article-card p { margin: 0; font: 400 15px/22px var(--font-sans); color: var(--ink-muted); }
.wl-home a.wcd-feature-card:hover h3, .wl-home a.wcd-article-card:hover h3 { color: var(--ledger); text-decoration: underline; text-underline-offset: 3px; }
.wl-home a.wcd-calc-card:focus-visible, .wl-home a.wcd-feature-card:focus-visible, .wl-home a.wcd-article-card:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
@media (max-width: 700px) { .wl-home .wcd-feature-row, .wl-home .wcd-article-grid { grid-template-columns: minmax(0, 1fr); } }

/* "See all guides" under the last guide section. */
.wl-home p.wcd-see-all { margin: 28px 0 0; }

/* The fundamentals: a ruled list of links in three columns. */
.wl-home ul.wcd-link-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.wl-home ul.wcd-link-list li { margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.wl-home ul.wcd-link-list a { display: flex; align-items: center; min-height: 48px; gap: 8px; padding: 0; border: 0; background: none; color: var(--ledger); font: 600 16px/22px var(--font-sans); text-decoration: none; }
.wl-home ul.wcd-link-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.wl-home ul.wcd-link-list a span { color: var(--ink-muted); }
@media (max-width: 900px) { .wl-home ul.wcd-link-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .wl-home ul.wcd-link-list { grid-template-columns: minmax(0, 1fr); } }
