/*
Theme Name: Payroll Reliability Notebook
Description: A quiet, accessible editorial theme built for native WordPress content and transparent publisher declarations. Local-only educational calculator; no tracking or external assets.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: editorial-base-theme
Tags: blog, custom-menu, editor-style, featured-images, wide-blocks
*/
:root { --paper: #fbfaf6; --ink: #202d30; --muted: #526266; --accent: #225a55; --line: #cbd1c9; --wash: #edf0e8; }
* { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 1.0625rem; line-height: 1.75; overflow-wrap: break-word; }
a { color: var(--accent); text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .15em; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid #953c20; outline-offset: 4px; }
img, video { display: block; max-width: 100%; height: auto; }
iframe { max-width: 100%; }
figure { margin: 2rem 0; }
figcaption, .wp-caption-text { margin-top: .65rem; color: var(--muted); font-size: .9rem; }
h1,h2,h3,h4,h5,h6 { line-height: 1.16; letter-spacing: -.025em; text-wrap: balance; }
h1 { margin: .4rem 0 1.4rem; font-size: clamp(2.25rem, 5.5vw, 4.5rem); max-width: 20ch; font-weight: 650; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.2rem; }
.shell { width: min(1160px, calc(100% - 3rem)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 2rem; padding-block: 1.5rem; }
.site-name { color: var(--ink); font-size: 1.4rem; font-weight: 750; letter-spacing: -.04em; text-decoration: none; }
.site-description { color: var(--muted); margin: 0; font-size: .9rem; }
.primary-nav { margin-left: auto; }
.menu, .menu ul, .footer-links { padding: 0; margin: 0; list-style: none; }
.menu { display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; align-items: flex-start; }
.menu a { display: inline-block; padding-block: .4rem; font-size: .95rem; }
.menu ul { padding-left: .8rem; border-left: 1px solid var(--line); }
.menu ul a { font-size: .875rem; }
.current-menu-item > a { font-weight: 700; text-decoration-thickness: .15em; }
.main-content { min-height: 55vh; padding-block: clamp(2.5rem, 6vw, 5rem); }
.page-heading { margin-bottom: 2.5rem; }
.eyebrow { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 750; margin-bottom: .75rem; }
.reading-column { max-width: 760px; margin-inline: auto; }
.home-intro > .page-heading, .home-intro > .entry-content { max-width: 850px; }
.home-intro .page-heading h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
.entry-content { font-size: 1.125rem; }
.entry-content > * + h2, .entry-content > * + h3 { margin-top: 2.6rem; }
.entry-content li + li { margin-top: .5rem; }
.entry-content blockquote { margin-inline: 0; padding: .5rem 1.5rem; border-left: 4px solid var(--accent); }
.entry-content pre { overflow-x: auto; padding: 1rem; background: var(--wash); }
.entry-content code { font-size: .9em; }
.entry-content table { border-collapse: collapse; width: 100%; }
.entry-content td, .entry-content th { border: 1px solid var(--line); padding: .6rem; text-align: left; }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content .alignwide { width: min(1160px, calc(100vw - 3rem)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content .alignfull { width: calc(100vw - 3rem); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.alignleft { float: left; margin: .5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .5rem 0 1rem 1.5rem; }
.aligncenter { margin-inline: auto; }
.entry-content::after { content: ""; display: table; clear: both; }
.article-meta { display: flex; flex-wrap: wrap; gap: .35rem 1.5rem; color: var(--muted); font-size: .9rem; }
.article-image img { width: 100%; }
.recent-articles { margin-top: 4rem; border-top: 2px solid var(--ink); padding-top: 2rem; }
.section-heading { margin-bottom: 2rem; }
.section-heading h2 { margin: 0; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.article-card { border-top: 1px solid var(--line); padding-top: 1.4rem; }
.article-card h2 { font-size: 1.65rem; margin: 0 0 .8rem; }
.article-card h2 a { color: var(--ink); text-decoration: none; }
.article-card h2 a:hover { text-decoration: underline; }
.card-date { color: var(--muted); font-size: .85rem; }
.card-excerpt { font-size: 1rem; }
.sources { margin-top: 3rem; padding-top: 1.6rem; border-top: 2px solid var(--ink); }
.sources h2 { font-size: 1.5rem; }
.sources li { padding-left: .3rem; margin-bottom: 1.3rem; }
.sources li p { font-size: .95rem; margin-top: .4rem; }
.source-url { display: block; color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }
.site-footer { border-top: 1px solid var(--line); background: var(--wash); margin-top: 2rem; }
.footer-inner { padding-block: 2.5rem; display: grid; grid-template-columns: minmax(0, 2fr) minmax(12rem, 1fr); gap: 3rem; font-size: .9rem; }
.footer-name { font-size: 1.15rem; font-weight: 750; }
.footer-links { display: grid; gap: .6rem; }
.navigation { margin-top: 3rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
.page-numbers { padding: .25rem .55rem; }
.page-numbers.current { background: var(--wash); font-weight: 700; }
.search-form { max-width: 38rem; margin-block: 1.5rem; }
.search-form label { display: block; font-weight: 650; margin-bottom: .4rem; }
.search-controls { display: flex; gap: .65rem; }
input, button { font: inherit; border: 1px solid var(--muted); border-radius: 2px; min-height: 48px; }
input[type="search"] { background: white; color: var(--ink); padding: .55rem .7rem; width: 100%; min-width: 0; }
button { color: white; background: var(--accent); padding: .55rem 1.1rem; cursor: pointer; }
button:hover { background: #163d39; }
.screen-reader-text, .skip-link:not(:focus) { clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); position: absolute !important; height: 1px; width: 1px; overflow: hidden; white-space: nowrap; }
.skip-link:focus { position: fixed; top: 1rem; left: 1rem; z-index: 100000; padding: .75rem 1rem; background: white; outline: 3px solid #953c20; }
@media (max-width: 850px) { .primary-nav { width: 100%; margin-left: 0; } .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .shell { width: calc(100% - 2rem); } .article-grid, .footer-inner { grid-template-columns: 1fr; gap: 1.8rem; } .menu { gap: .25rem 1rem; } .site-description { width: 100%; } .search-controls { flex-wrap: wrap; } .search-controls button { width: 100%; } .entry-content .alignwide, .entry-content .alignfull { width: calc(100vw - 2rem); } .alignleft, .alignright { float: none; margin-inline: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
@media print { .site-header nav, .site-footer nav, .search-form, .navigation, .skip-link { display: none; } body { color: black; background: white; font-size: 11pt; } .shell { width: 100%; } .main-content { padding: 1rem 0; } a { color: black; } .article-grid { display: block; } .article-card { break-inside: avoid; } }

.identity-top { padding-top: 1.5rem; }
.eb-identity { border-left: 3px solid var(--accent); padding: .6rem 1.2rem; max-width: 75ch; color: var(--muted); font-size: .9rem; }
.eb-identity p:last-child { margin-bottom: 0; }
.eb-preview { padding: .75rem 1.5rem; background: #fff4d5; color: #4c361b; }

/* Original specialist publication design; no external assets. */
.publication-ribbon {padding:.5rem 1.5rem;background:var(--ink);color:var(--paper);font-size:.73rem;letter-spacing:.1em;text-transform:uppercase;text-align:center;}
.site-description{display:none}.header-inner{padding-block:1.15rem}.site-name{font-size:1.5rem;letter-spacing:-.055em}.identity-top{padding-top:1rem}.eb-identity{max-width:none;font-size:.78rem;line-height:1.55;border-left:0;padding:.8rem 1rem;background:var(--wash)}.eb-identity p{margin:0}.eb-identity p+p{margin-top:.25rem}
.study-hero{display:grid;grid-template-columns:1.1fr 1fr;gap:3rem;align-items:center;margin:0 0 4rem}.study-hero h1{font-size:clamp(2.8rem,5.5vw,5.1rem);line-height:1.03;max-width:12ch;margin-bottom:1.5rem}.hero-copy>p:not(.eyebrow){font-size:1.12rem;max-width:48ch}.study-button{display:inline-flex;gap:1rem;align-items:center;background:var(--accent);color:#fff;border-radius:3px;padding:.8rem 1.1rem;font-weight:650;text-decoration:none}.study-button:hover{filter:brightness(.9)}.hero-figure{margin:0}.hero-figure img{width:100%}.hero-figure figcaption{font-size:.78rem;max-width:42ch;margin:1rem auto 0;text-align:center}.main-content{padding-top:2.7rem}.home-intro{padding:2rem 0;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 2fr;gap:3rem}.home-intro>.entry-content{font-size:1rem}.home-intro>.page-heading h2{font-size:2.5rem;max-width:12ch}.home-intro .entry-content a{font-weight:650}.home-intro .entry-content>p:has(a){padding:.8rem 0;border-bottom:1px solid var(--line);margin:0}.article-grid{gap:1.25rem}.article-card{padding:1.5rem;background:var(--wash);border:1px solid var(--line)}.article-card h2{font-size:1.45rem;line-height:1.18}.article-card .card-date{font-size:.75rem}.reading-column{max-width:760px}.reading-column .page-heading h1{font-size:clamp(2.3rem,5vw,3.9rem);max-width:20ch}.entry-content{font-size:1.08rem}.entry-content h2{font-size:1.75rem}.sources{padding:1.7rem;background:var(--wash);border-top:3px solid var(--accent)}.sources li{line-height:1.6}.article-meta{font-size:.8rem}.exercise-box{padding:1.5rem;border:2px solid var(--accent);margin-top:3rem;background:var(--wash)}.exercise-box h2{margin-top:.2rem;font-size:1.6rem}.metric-inputs{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.metric-inputs label{display:block;font-size:.9rem}.metric-inputs input{display:block;width:100%;padding:.5rem;background:var(--paper);color:var(--ink)}.calculator button{margin:1rem 0}.calculator output{display:block;padding:1rem;background:var(--paper);border-left:3px solid var(--accent)}.calculator .formula{font-size:.9rem;color:var(--muted)}
@media(max-width:850px){.study-hero{grid-template-columns:1fr;gap:2rem}.hero-figure{max-width:620px;margin-inline:auto}.study-hero h1{max-width:16ch}.home-intro{grid-template-columns:1fr;gap:0}.home-intro>.page-heading{margin-bottom:1rem}.home-intro>.page-heading h2{max-width:none}}
@media(max-width:560px){.publication-ribbon{font-size:.62rem;padding:.5rem 1rem;letter-spacing:.04em}.site-name{font-size:1.35rem}.study-hero{margin-bottom:2rem}.study-hero h1{font-size:2.85rem}.hero-copy>p:not(.eyebrow){font-size:1rem}.study-button{width:100%;justify-content:space-between}.main-content{padding-top:2rem}.eb-identity{font-size:.72rem}.sources{padding:1rem}.home-intro{padding-top:1.5rem}.metric-inputs{grid-template-columns:1fr}.article-card{padding:1.25rem}.exercise-box{padding:1rem}.menu a{min-height:44px;display:flex;align-items:center}}

:root{--paper:#f5f7fb;--ink:#16263f;--muted:#4d6078;--accent:#2457b4;--line:#cbd5e2;--wash:#e9eef6}h1,h2{font-weight:750;letter-spacing:-.045em}.publication-ribbon{background:#2457b4}.site-header{background:white}.site-name{font-size:1.35rem;max-width:18ch;line-height:1.15}.study-hero{background:#16263f;color:#fff;padding:2.5rem;gap:2rem;border-radius:8px}.study-hero .eyebrow{color:#aac6fb}.study-hero h1{font-size:clamp(2.6rem,4.4vw,4.3rem)}.study-hero .hero-copy>p{color:#d8e3f5}.study-hero .study-button{background:#c9e774;color:#16263f}.study-hero figcaption{color:#c3d0e2}.article-card{border-radius:6px;background:#fff;border-top:4px solid #2457b4}.article-card:nth-child(3n+2){border-top-color:#477e79}.article-card:nth-child(3n+3){border-top-color:#8b6741}.reading-column .page-heading{padding-left:1.5rem;border-left:5px solid var(--accent)}.site-footer{background:#16263f;color:#e6edf7}.site-footer .eb-identity{background:#223650;color:#d6e2f1}.site-footer a{color:#d5e4ff}@media(max-width:560px){.study-hero{padding:1.4rem}.study-hero h1{font-size:2.55rem}.reading-column .page-heading{padding-left:1rem}}
