:root {
  --home-bg: #eef1ee;
  --home-surface: #ffffff;
  --home-surface-soft: #f7f9f7;
  --home-ink: #171b19;
  --home-muted: #5e6862;
  --home-line: #d5dcd7;
  --home-red: #a33a31;
  --home-red-dark: #7f2b25;
  --home-green: #2e6255;
  --home-gold: #9a7028;
  --home-radius: 6px;
  --home-shadow: 0 14px 38px rgba(27, 38, 32, 0.09);
  --home-sans: "Avenir Next", "Segoe UI", "Noto Sans", Arial, sans-serif;
  --home-serif: "Iowan Old Style", "Source Serif 4", "Noto Serif SC", Georgia, serif;
  --home-motion: 180ms ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.home-workbench {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--home-ink);
  background: var(--home-bg);
  font-family: var(--home-sans);
  letter-spacing: 0;
}
.home-workbench a { color: inherit; }
.home-wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.home-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--home-line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}
.home-header-inner { display: flex; min-height: 68px; align-items: center; justify-content: space-between; gap: 20px; }
.home-brand { display: inline-flex; min-width: 0; align-items: center; gap: 11px; text-decoration: none; }
.home-brand img { width: 38px; height: 38px; border: 1px solid var(--home-line); border-radius: 50%; }
.home-brand > span { display: grid; gap: 1px; }
.home-brand strong { font: 600 16px/1.25 var(--home-serif); }
.home-brand small { color: var(--home-muted); font-size: 10px; }
.home-header-actions { display: flex; align-items: center; gap: 12px; }
.home-language { display: grid; grid-template-columns: repeat(3, 36px); border: 1px solid var(--home-line); border-radius: var(--home-radius); overflow: hidden; }
.home-language a { display: grid; min-height: 34px; place-items: center; border-right: 1px solid var(--home-line); color: var(--home-muted); font-size: 11px; text-decoration: none; }
.home-language a:last-child { border-right: 0; }
.home-language a[aria-current="page"] { color: #fff; background: var(--home-ink); }
.home-signin { display: inline-flex; min-height: 36px; align-items: center; padding: 0 14px; border: 1px solid var(--home-ink); border-radius: var(--home-radius); font-size: 12px; font-weight: 700; text-decoration: none; }

.home-intro-band { border-bottom: 1px solid var(--home-line); background: var(--home-surface); }
.home-intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr); gap: 56px; align-items: center; min-height: 310px; padding: 46px 0; }
.home-intro-copy { min-width: 0; }
.home-eyebrow { margin: 0 0 12px; color: var(--home-green); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.home-intro h1 { margin: 0; font: 600 clamp(42px, 5vw, 62px)/1 var(--home-serif); overflow-wrap: anywhere; }
.home-intro-copy > p:not(.home-eyebrow) { max-width: 540px; margin: 16px 0 0; color: var(--home-muted); font-size: 16px; line-height: 1.7; }
.home-open-app { display: inline-flex; min-height: 46px; align-items: center; gap: 14px; margin-top: 24px; padding: 0 18px; border-radius: var(--home-radius); color: #fff !important; background: var(--home-red); font-size: 13px; font-weight: 800; text-decoration: none; transition: background var(--home-motion), transform var(--home-motion); }
.home-open-app:hover { background: var(--home-red-dark); transform: translateY(-1px); }

.home-today-mount { min-height: 154px; }
.home-today-fallback,
.home-workbench .overseas-today-score {
  display: grid;
  min-height: 154px;
  border: 1px solid #26322d;
  border-radius: var(--home-radius);
  color: #fff;
  background: #1b2420;
  box-shadow: var(--home-shadow);
  text-decoration: none;
}
.home-today-fallback { grid-template-columns: minmax(0, 1fr) auto; align-content: center; align-items: center; gap: 8px 20px; padding: 24px; }
.home-today-fallback span { grid-column: 1 / -1; color: #9db4aa; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.home-today-fallback strong { font: 600 21px/1.35 var(--home-serif); }
.home-today-fallback b { color: #e1b15d; font-size: 22px; }
.home-workbench .overseas-today-score { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 1fr auto; gap: 8px 22px; align-items: center; padding: 22px 24px; }
.home-workbench .overseas-today-copy { display: grid; gap: 5px; min-width: 0; }
.home-workbench .overseas-today-copy small { color: #9db4aa; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.home-workbench .overseas-today-copy strong { font: 600 22px/1.25 var(--home-serif); }
.home-workbench .overseas-today-copy em { color: #c4cec9; font-size: 11px; font-style: normal; line-height: 1.45; }
.home-workbench .overseas-today-number { display: flex; align-items: baseline; color: #fff; }
.home-workbench .overseas-today-number b { font: 600 46px/1 var(--home-serif); }
.home-workbench .overseas-today-number small { color: #9db4aa; font-size: 11px; }
.home-workbench .overseas-today-action { grid-column: 1 / -1; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.12); color: #e1b15d; font-size: 11px; font-weight: 800; }

.home-tools { padding: 54px 0 28px; }
.home-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.home-section-heading > div { min-width: 0; }
.home-section-heading span { color: var(--home-red); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.home-section-heading h2 { margin: 5px 0 0; font: 600 31px/1.2 var(--home-serif); }
.home-section-heading > p { margin: 0 0 4px; color: var(--home-muted); font-size: 12px; }
.home-tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.home-tool {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto auto 1fr;
  min-width: 0;
  min-height: 208px;
  padding: 20px;
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius);
  background: var(--home-surface);
  text-decoration: none;
  transition: border-color var(--home-motion), box-shadow var(--home-motion), transform var(--home-motion);
}
.home-tool:hover { z-index: 1; border-color: rgba(46,98,85,.55); box-shadow: var(--home-shadow); transform: translateY(-2px); }
.home-tool-featured { border-top: 3px solid var(--home-red); padding-top: 18px; }
.home-tool-mark {
  display: grid;
  grid-row: 1 / 3;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 4px;
  font: 600 19px/1 var(--home-serif);
  transition: color var(--home-motion), background var(--home-motion), transform var(--home-motion);
}
.home-tool-mark .ll-icon { display: block; width: 22px; height: 22px; line-height: 0; }
.home-tool-mark .ll-icon svg { display: block; width: 100%; height: 100%; }
.home-tool-mark-red { color: var(--home-red); background: #fff8f6; }
.home-tool-mark-gold { color: var(--home-gold); background: #fffbf2; }
.home-tool-mark-green { color: var(--home-green); background: #f3f8f6; }
.home-tool:hover .home-tool-mark { transform: translateY(-1px); }
.home-tool:hover .home-tool-mark-red { color: var(--home-red-dark); background: #fff2ef; }
.home-tool:hover .home-tool-mark-gold { color: #79551b; background: #fff7e5; }
.home-tool:hover .home-tool-mark-green { color: #214d42; background: #eaf4f0; }
.home-tool small { grid-column: 1 / 2; grid-row: 3; margin-top: 23px; color: var(--home-green); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.home-tool h3 { grid-column: 1 / -1; grid-row: 4; align-self: start; margin: 7px 0 0; font: 600 21px/1.25 var(--home-serif); }
.home-tool p { grid-column: 1 / -1; margin: 10px 34px 0 0; color: var(--home-muted); font-size: 12px; line-height: 1.55; }
.home-tool > b { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--home-gold); font-size: 20px; }

.home-more { padding: 32px 0 62px; }
.home-more-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--home-line); }
.home-more-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 18px; min-width: 0; min-height: 88px; align-content: center; padding: 16px 20px; border-right: 1px solid var(--home-line); border-bottom: 1px solid var(--home-line); background: rgba(255,255,255,.54); text-decoration: none; transition: background var(--home-motion); }
.home-more-list a:nth-child(2n) { border-right: 0; }
.home-more-list a:hover { background: var(--home-surface); }
.home-more-list span { font: 600 16px/1.3 var(--home-serif); }
.home-more-list small { color: var(--home-muted); font-size: 11px; }
.home-more-list b { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--home-green); }

.home-access-band { color: #fff; background: #202724; }
.home-access { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr) auto; gap: 34px; align-items: center; min-height: 148px; padding: 28px 0; }
.home-access > div { display: grid; gap: 5px; }
.home-access > div span { color: #d2a352; font-size: 9px; font-weight: 800; }
.home-access > div strong { font: 600 18px/1.4 var(--home-serif); }
.home-access p { margin: 0; color: #b9c2bd; font-size: 12px; line-height: 1.6; }
.home-access > a { display: inline-flex; min-height: 42px; align-items: center; gap: 12px; padding: 0 15px; border: 1px solid rgba(255,255,255,.3); border-radius: var(--home-radius); font-size: 12px; font-weight: 800; text-decoration: none; }

.home-footer { background: var(--home-surface); }
.home-footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; min-height: 92px; color: var(--home-muted); font-size: 10px; }
.home-footer nav { display: flex; gap: 16px; }
.home-footer a { text-underline-offset: 3px; }
.home-footer p { margin: 0; }

.home-workbench a:focus-visible { outline: 3px solid #d2a352; outline-offset: 3px; }

@media (max-width: 900px) {
  .home-intro { grid-template-columns: 1fr; gap: 28px; padding: 38px 0; }
  .home-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-access { grid-template-columns: 1fr 1fr; }
  .home-access > a { grid-column: 1 / -1; justify-self: start; }
  .home-footer-inner { grid-template-columns: auto 1fr; }
  .home-footer p { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .home-wrap { width: min(100% - 24px, 1120px); }
  .home-header-inner { min-height: 62px; gap: 10px; }
  .home-brand img { width: 34px; height: 34px; }
  .home-brand small { display: none; }
  .home-language { grid-template-columns: repeat(3, 31px); }
  .home-signin { min-height: 34px; padding: 0 10px; }
  .home-intro { gap: 22px; min-height: 0; padding: 30px 0; }
  .home-intro h1 { font-size: 40px; }
  .home-intro-copy > p:not(.home-eyebrow) { font-size: 14px; }
  .home-open-app { width: 100%; justify-content: space-between; }
  .home-today-mount, .home-today-fallback, .home-workbench .overseas-today-score { min-height: 140px; }
  .home-tools { padding-top: 38px; }
  .home-section-heading { align-items: start; }
  .home-section-heading > p { max-width: 120px; text-align: right; }
  .home-section-heading h2 { font-size: 27px; }
  .home-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .home-tool { min-height: 188px; padding: 15px; }
  .home-tool-featured { padding-top: 13px; }
  .home-tool h3 { font-size: 17px; overflow-wrap: anywhere; }
  .home-tool-mark { width: 38px; height: 38px; }
  .home-tool-mark .ll-icon { width: 20px; height: 20px; }
  .home-tool p { margin-right: 0; font-size: 11px; }
  .home-tool small { margin-top: 18px; }
  .home-more-list { grid-template-columns: 1fr; }
  .home-more-list a, .home-more-list a:nth-child(2n) { border-right: 0; }
  .home-access { grid-template-columns: 1fr; gap: 14px; padding: 26px 0; }
  .home-access > a { grid-column: auto; width: 100%; justify-content: space-between; }
  .home-footer-inner { grid-template-columns: 1fr; gap: 10px; padding: 22px 0; }
  .home-footer p { grid-column: auto; }
}

@media (max-width: 360px) {
  .home-brand > span { display: none; }
  .home-header-actions { gap: 6px; }
  .home-language { grid-template-columns: repeat(3, 28px); }
  .home-signin { padding: 0 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
