/* PayPeriod Guide — editorial design system
   Palette: deep navy ink + amber accent + warm sand paper.
   Type: Inter for everything, with tight tracking on display sizes. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Inter+Tight:wght@600;700;800&display=swap');

:root {
  --ink: #0b1d3a;
  --ink-2: #15294a;
  --ink-soft: #4a587a;
  --ink-mute: #7a8499;
  --paper: #f7f4ec;
  --paper-2: #efeadd;
  --card: #ffffff;
  --line: #e5dfcd;
  --line-2: #d8d1bc;
  --accent: #f59e0b;       /* amber 500 */
  --accent-2: #b45309;     /* amber 700 */
  --accent-soft: #fef3c7;  /* amber 100 */
  --accent-tint: #fffaf0;
  --rule: #1f3358;
  --good: #166534;
  --good-soft: #dcfce7;
  --warn: #b45309;
  --warn-soft: #fef3c7;
  --shadow-sm: 0 1px 2px rgba(11,29,58,.06);
  --shadow: 0 1px 2px rgba(11,29,58,.05), 0 18px 40px -22px rgba(11,29,58,.18);
  --shadow-lg: 0 30px 80px -24px rgba(11,29,58,.28);
  --radius: 12px;
  --radius-sm: 8px;
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "ss01", "cv11";
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
a { color: var(--ink); text-decoration: none; border-bottom: 1px solid rgba(245,158,11,.4); transition: border-color .15s ease, color .15s ease; }
a:hover { color: var(--accent-2); border-bottom-color: var(--accent-2); }
.prose a { color: var(--ink); }
.prose a:hover { color: var(--accent-2); }

/* ============ Top bar ============ */
.topbar {
  background: var(--ink);
  color: #c9d3e6;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar .container { display: flex; gap: 18px; align-items: center; padding: 8px 28px; }
.topbar a { color: #fff; border-bottom: none; }
.topbar a:hover { color: var(--accent); }
.topbar .pill { background: rgba(245,158,11,.15); color: var(--accent); padding: 2px 10px; border-radius: 999px; font-weight: 600; letter-spacing: .2px; }
.topbar .spacer { flex: 1; }

/* ============ Header ============ */
.site-header {
  background: var(--ink);
  color: #fff;
  border-bottom: 4px solid var(--accent);
  position: sticky; top: 0; z-index: 50;
}
.site-header a { color: #fff; border-bottom: 0; }
.site-header a:hover { color: var(--accent); }
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px; gap: 28px; flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-family: "Inter Tight", "Inter", sans-serif; letter-spacing: -.2px; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #1c1107; font-weight: 800; font-size: 14px; letter-spacing: 1px;
  box-shadow: 0 2px 0 rgba(0,0,0,.2) inset, 0 4px 12px rgba(245,158,11,.35);
}
.brand-name { font-size: 19px; }
.brand-name .dot { color: var(--accent); }
.primary-nav { display: flex; gap: 26px; font-size: 14.5px; font-weight: 500; }
.primary-nav a { opacity: .92; }
.primary-nav a.cta { background: var(--accent); color: #1c1107; padding: 8px 14px; border-radius: 999px; font-weight: 700; }
.primary-nav a.cta:hover { background: #fff; color: var(--ink); }

/* ============ Breadcrumbs ============ */
.breadcrumbs {
  font-size: 12.5px; letter-spacing: .3px;
  color: var(--ink-soft); padding: 18px 28px 0;
  text-transform: uppercase; font-weight: 600;
}
.breadcrumbs a { border-bottom: 0; color: var(--ink-soft); }
.breadcrumbs a:hover { color: var(--accent-2); }
.breadcrumbs .sep { margin: 0 8px; opacity: .5; }
.breadcrumbs .current { color: var(--ink); }

/* ============ Layout ============ */
.main-grid {
  display: grid; gap: 44px;
  grid-template-columns: minmax(0, 1fr) 300px;
  padding-top: 28px; padding-bottom: 72px;
}
@media (max-width: 980px) {
  .main-grid { grid-template-columns: 1fr; gap: 32px; }
}
.content { min-width: 0; }

/* ============ Sidebar cards ============ */
.sidebar { display: flex; flex-direction: column; gap: 18px; }
.sidebar .card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow-sm);
}
.sidebar .card.accent { background: var(--ink); color: #d9dde6; border-color: var(--ink); }
.sidebar .card.accent h3 { color: var(--accent); }
.sidebar .card.accent a { color: #fff; border-bottom-color: rgba(245,158,11,.4); }
.sidebar h3 { margin: 0 0 14px; font-size: 11.5px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--ink-soft); font-weight: 700; }
.link-list { list-style: none; padding: 0; margin: 0; font-size: 14.5px; }
.link-list li { padding: 7px 0; border-top: 1px solid var(--line); }
.link-list li:first-child { border-top: 0; padding-top: 0; }
.link-list a { border-bottom: 0; color: var(--ink); }
.link-list a:hover { color: var(--accent-2); }
.link-list.compact { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
.link-list.compact li { border: 0; padding: 2px 0; }

/* Editorial recommended-resources block */
.recommend {
  background: linear-gradient(180deg, #fff 0%, var(--accent-tint) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow-sm);
}
.recommend h3 { color: var(--ink); font-size: 11.5px; text-transform: uppercase; letter-spacing: 1.5px; margin: 0 0 4px; font-weight: 800; }
.recommend p.tag { color: var(--ink-soft); font-size: 12.5px; margin: 0 0 14px; font-style: italic; }
.recommend ul { list-style: none; padding: 0; margin: 0; }
.recommend li { padding: 10px 0; border-top: 1px solid rgba(15,29,58,.08); }
.recommend li:first-child { border-top: 0; padding-top: 0; }
.recommend li a { display: block; border-bottom: 0; font-weight: 600; color: var(--ink); font-size: 14.5px; line-height: 1.35; }
.recommend li a span.kicker { display: block; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent-2); font-weight: 700; margin-bottom: 3px; }
.recommend li a:hover { color: var(--accent-2); }

/* Footer recommended block (3-up) */
.footer-recommend { background: var(--paper-2); border-top: 1px solid var(--line); padding: 36px 0; }
.footer-recommend .row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 800px) { .footer-recommend .row { grid-template-columns: 1fr; } }
.footer-recommend h3 { font-size: 11.5px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--ink-soft); margin: 0 0 12px; font-weight: 800; }
.footer-recommend .rec-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.footer-recommend .rec-card a { display: block; padding: 6px 0; border-bottom: 0; font-weight: 600; color: var(--ink); font-size: 14.5px; }
.footer-recommend .rec-card a:hover { color: var(--accent-2); }
.footer-recommend .rec-card .kicker { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent-2); font-weight: 700; }

/* ============ Headings ============ */
h1, h2, h3, h4 { font-family: "Inter Tight", "Inter", sans-serif; color: var(--ink); letter-spacing: -.4px; }
h1 { font-size: 44px; line-height: 1.05; margin: 0 0 16px; font-weight: 800; letter-spacing: -1px; }
h2 { font-size: 28px; margin: 40px 0 14px; font-weight: 700; }
h3 { font-size: 19px; margin: 26px 0 8px; font-weight: 700; }
.page-meta { color: var(--accent-2); font-size: 12px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1.6px; font-weight: 700; }
.lead-paragraph { font-size: 20px; color: var(--ink-soft); margin-bottom: 22px; line-height: 1.5; max-width: 64ch; }

/* ============ Hero (homepage) ============ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 400px at -10% -20%, rgba(245,158,11,.18), transparent 60%),
    radial-gradient(900px 500px at 110% 110%, rgba(11,29,58,.85), rgba(11,29,58,1)),
    linear-gradient(135deg, #0b1d3a 0%, #15294a 100%);
  color: #fff;
  border-radius: 18px;
  padding: 64px 56px;
  margin: 8px 0 36px;
  box-shadow: var(--shadow-lg);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, #000 30%, transparent 80%);
  pointer-events: none;
}
.hero .grid { position: relative; display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; }
.hero .kicker { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 18px; display: inline-block; padding: 6px 12px; background: rgba(245,158,11,.12); border-radius: 999px; border: 1px solid rgba(245,158,11,.3); }
.hero h1 { color: #fff; font-size: 56px; line-height: 1.02; margin: 0 0 18px; letter-spacing: -1.6px; }
.hero h1 .accent { color: var(--accent); }
.hero .lede { font-size: 19px; color: #c9d3e6; margin: 0 0 28px; line-height: 1.5; max-width: 52ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px;
  background: var(--accent); color: #1c1107 !important;
  font-weight: 700; font-size: 15px; border: 0;
  border-bottom: 0;
  box-shadow: 0 6px 20px -8px rgba(245,158,11,.6);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; box-shadow: 0 10px 30px -10px rgba(245,158,11,.7); border-bottom: 0; }
.btn.secondary { background: rgba(255,255,255,.06); color: #fff !important; border: 1px solid rgba(255,255,255,.18); box-shadow: none; }
.btn.secondary:hover { background: rgba(255,255,255,.12); }
.btn .arr { font-size: 18px; line-height: 1; }

.hero-side {
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 22px;
  color: var(--ink);
  transform: rotate(.4deg);
}
.hero-side h4 { margin: 0 0 4px; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent-2); font-weight: 800; }
.hero-side .title { font-family: "Inter Tight", sans-serif; font-weight: 700; font-size: 18px; letter-spacing: -.3px; margin: 0 0 14px; }
.hero-side table { width: 100%; border-collapse: collapse; font-size: 13px; }
.hero-side th, .hero-side td { padding: 7px 8px; text-align: left; border-bottom: 1px dashed var(--line); }
.hero-side th { color: var(--ink-soft); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; background: var(--paper); }
.hero-side .pay { font-weight: 700; }
.hero-side .row.shifted td { background: var(--accent-soft); }
.hero-side .row.shifted .pay::after { content: " ↩"; color: var(--accent-2); }

@media (max-width: 900px) {
  .hero { padding: 40px 28px; }
  .hero .grid { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { font-size: 38px; letter-spacing: -1px; }
  .hero-side { transform: none; }
}

/* ============ Trust strip ============ */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 24px 0 36px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.trust .item { padding: 18px 22px; border-right: 1px solid var(--line); }
.trust .item:last-child { border-right: 0; }
.trust .num { font-family: "Inter Tight", sans-serif; font-size: 28px; font-weight: 800; color: var(--ink); letter-spacing: -.6px; }
.trust .lbl { font-size: 12px; text-transform: uppercase; color: var(--ink-soft); letter-spacing: 1.2px; font-weight: 600; margin-top: 2px; }
@media (max-width: 720px) { .trust { grid-template-columns: repeat(2, 1fr); } .trust .item:nth-child(2) { border-right: 0; } .trust .item:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* ============ Stats (calendar pages) ============ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0 28px; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stat .num { font-family: "Inter Tight", sans-serif; font-size: 24px; font-weight: 800; color: var(--ink); letter-spacing: -.4px; }
.stat .lbl { color: var(--ink-soft); font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 600; margin-top: 2px; }

/* ============ Tiles ============ */
.section-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 18px 0; }
.tile {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px; color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--accent); }
.tile .tile-kicker { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent-2); font-weight: 700; margin-bottom: 4px; }
.tile .tile-title { font-family: "Inter Tight", sans-serif; font-weight: 700; font-size: 16px; letter-spacing: -.2px; }
.tile .tile-sub { color: var(--ink-soft); font-size: 13.5px; margin-top: 4px; }

/* ============ Tables ============ */
.calendar-table {
  width: 100%; border-collapse: collapse;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  font-size: 13.5px;
  box-shadow: var(--shadow-sm);
  font-variant-numeric: tabular-nums;
}
.calendar-table th, .calendar-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.calendar-table th { background: var(--paper-2); font-weight: 700; color: var(--ink); font-size: 11.5px; text-transform: uppercase; letter-spacing: .8px; }
.calendar-table tbody tr:hover { background: #fafaf3; }
.calendar-table tr:last-child td { border-bottom: 0; }
.calendar-table .pp-num { color: var(--ink-soft); font-weight: 700; }
.calendar-table .pay { font-weight: 700; color: var(--ink); }
.calendar-table .adjusted { background: var(--accent-tint); }
.calendar-table .adjusted:hover { background: #fff5dc; }
.calendar-table a { border-bottom: 0; color: var(--ink); font-weight: 500; }
.calendar-table a:hover { color: var(--accent-2); }
.calendar-table .deposit { color: var(--ink-soft); font-size: 12.5px; }
.calendar-table .deposit strong { color: var(--ink); }
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 10.5px;
  background: var(--accent); color: #1c1107; margin-left: 6px;
  font-weight: 700; letter-spacing: .3px; text-transform: uppercase;
}
.badge.subtle { background: var(--accent-soft); color: var(--accent-2); }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ============ Callout ============ */
.callout {
  background: #fff; border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  padding: 16px 20px; border-radius: var(--radius); margin: 22px 0;
  font-size: 15px;
  box-shadow: var(--shadow-sm);
}
.callout strong { color: var(--ink); }
.callout.info { border-left-color: var(--ink); }

/* ============ Prose ============ */
.prose { max-width: 72ch; }
.prose p { margin: 0 0 16px; font-size: 16.5px; line-height: 1.7; color: #1d2c4a; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 18px; }
.prose li { margin-bottom: 7px; line-height: 1.65; }
.prose h2 { margin-top: 40px; }
.prose h3 { margin-top: 28px; }
.prose blockquote {
  border-left: 4px solid var(--accent);
  background: var(--accent-tint);
  padding: 14px 20px; margin: 20px 0; border-radius: 8px;
  font-style: italic; color: var(--ink-2);
}
.prose code, code.kbd {
  background: var(--paper-2); padding: 2px 6px; border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em;
  border: 1px solid var(--line);
}
.inline-link { color: var(--accent-2); border-bottom: 1px solid rgba(180,83,9,.4); }
.inline-link:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ============ Two-up grids ============ */
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 18px 0; }
@media (max-width: 720px) { .two-up { grid-template-columns: 1fr; } }
.compare-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.compare-card h3 { margin-top: 0; font-size: 17px; }
.compare-card .pill { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-2); font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }

/* ============ State pill grid ============ */
.state-grid { columns: 4; column-gap: 24px; font-size: 14.5px; margin-top: 14px; }
.state-grid a { display: block; padding: 6px 10px; border-radius: 6px; border-bottom: 0; }
.state-grid a:hover { background: var(--accent-soft); color: var(--accent-2); }
@media (max-width: 900px) { .state-grid { columns: 3; } }
@media (max-width: 600px) { .state-grid { columns: 2; } }

/* ============ Section heading ============ */
.section-head { display: flex; align-items: end; justify-content: space-between; margin: 36px 0 12px; gap: 16px; flex-wrap: wrap; }
.section-head .left { flex: 1; min-width: 0; }
.section-head h2 { margin: 0; }
.section-head .sub { color: var(--ink-soft); font-size: 14px; margin-top: 4px; }
.section-head .right a { font-size: 13px; font-weight: 600; color: var(--accent-2); border-bottom: 0; }

/* ============ Footer ============ */
.site-footer { background: var(--ink); color: #c9d3e6; padding: 48px 0 18px; margin-top: 48px; }
.site-footer a { color: #fff; border-bottom: 1px solid rgba(245,158,11,.3); }
.site-footer a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.footer-row { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.footer-row h4 { color: #fff; font-size: 11.5px; text-transform: uppercase; letter-spacing: 1.5px; margin: 0 0 12px; font-weight: 800; }
.footer-row ul { list-style: none; padding: 0; margin: 0; font-size: 14px; line-height: 2; }
.footer-row .brand-block .brand { color: #fff; }
.footer-row .brand-block p { color: #aab1c2; max-width: 38ch; font-size: 14px; margin-top: 12px; }
.fineprint { color: #8a93a8; font-size: 12.5px; padding-top: 24px; border-top: 1px solid #1f3358; margin-top: 28px; max-width: 80ch; }
@media (max-width: 900px) { .footer-row { grid-template-columns: 1fr 1fr; } }

/* ============ Misc ============ */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.tag-list a { padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 500; }
.tag-list a:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-2); }

.hr-soft { height: 1px; background: var(--line); margin: 32px 0; border: 0; }

.note { color: var(--ink-soft); font-size: 13.5px; }

/* article TOC */
.toc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 18px 0 24px; }
.toc h4 { margin: 0 0 8px; font-size: 11.5px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--ink-soft); font-weight: 800; }
.toc ol { padding-left: 22px; margin: 0; font-size: 14.5px; }
.toc li { margin: 4px 0; }
.toc a { border-bottom: 0; color: var(--ink); }
.toc a:hover { color: var(--accent-2); }

/* glossary index */
.glossary-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 18px 0; }
.glossary-grid a { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.glossary-grid a:hover { border-color: var(--accent); background: var(--accent-tint); }
.glossary-grid a strong { display: block; font-size: 14px; color: var(--ink); }
.glossary-grid a span { color: var(--ink-soft); font-size: 12.5px; }
