/* ===================================
   MyWorkLaws — Global Styles
   Minimal structure. Warm when it matters.
   =================================== */

:root {
  --accent: #2563EB;
  --accent-dark: #1D4ED8;
  --accent-light: #EFF6FF;
  --accent-border: #BFDBFE;

  --green: #166534;
  --green-bg: #F0FDF4;
  --green-border: #BBF7D0;
  --amber: #92400E;
  --amber-bg: #FFFBEB;
  --amber-border: #FDE68A;

  --gray-50: #FAFAF9;
  --gray-100: #F5F5F4;
  --gray-200: #E7E5E4;
  --gray-300: #D6D3D1;
  --gray-400: #A8A29E;
  --gray-500: #78716C;
  --gray-600: #57534E;
  --gray-700: #44403C;
  --gray-800: #292524;
  --gray-900: #1C1917;
  --white: #FFFFFF;

  --font-heading: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;

  --max-width: 1080px;
  --content-width: 720px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.12s ease;
}
a:hover { color: var(--accent-dark); }

/* --- Accessibility --- */
.skip-link {
  position: absolute; top: -100%; left: 0;
  background: var(--gray-900); color: var(--white);
  padding: 0.75rem 1.5rem; z-index: 1000;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--gray-900);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: 2.5rem; margin-bottom: 1rem; letter-spacing: -0.02em; }
h2 { font-size: 1.5rem; margin-top: 3rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.125rem; margin-top: 2rem; margin-bottom: 0.5rem; }
p  { margin-bottom: 1rem; color: var(--gray-600); }
strong { color: var(--gray-900); }

/* --- Layout --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.content-width { max-width: var(--content-width); margin: 0 auto; }
section { padding: 3.5rem 0; }

/* --- Navigation (logo only) --- */
.site-nav {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky; top: 0; z-index: 100;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center;
  height: 56px;
}

.logo { text-decoration: none; color: var(--gray-900); }
.logo-text {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.logo-text strong { font-weight: 700; color: var(--accent); }

/* Mobile nav (kept for future use) */
.nav-toggle { display: none; }
.nav-links { display: none; }

/* --- Buttons --- */
.btn {
  display: inline-block; font-family: var(--font-body);
  font-weight: 600; font-size: 0.875rem;
  padding: 0.625rem 1.5rem; border-radius: var(--radius-md);
  text-decoration: none; cursor: pointer;
  transition: background 0.12s ease; border: none;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--gray-800); border: 1px solid var(--gray-300); }
.btn-outline:hover { background: var(--gray-50); }

/* --- Result Box --- */
.result-box {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-left: 4px solid var(--gray-300);
}
.result-box h3 { margin-top: 0; font-size: 1.0625rem; margin-bottom: 0.5rem; }
.result-box .result-answer { font-size: 0.9375rem; color: var(--gray-600); line-height: 1.7; font-weight: 400; }

.result-yes {
  background: var(--green-bg);
  border-color: var(--green-border);
  border-left-color: var(--green);
}
.result-yes h3 { color: var(--green); }

.result-no {
  background: var(--amber-bg);
  border-color: var(--amber-border);
  border-left-color: var(--amber);
}
.result-no h3 { color: var(--amber); }

.result-maybe {
  background: var(--accent-light);
  border-color: var(--accent-border);
  border-left-color: var(--accent);
}
.result-maybe h3 { color: var(--accent-dark); }

/* --- State Selector --- */
.state-selector { margin: 2rem 0; }
.state-selector label {
  display: block; font-weight: 600; margin-bottom: 0.375rem;
  font-size: 0.75rem; color: var(--gray-500);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.state-selector select {
  font-family: var(--font-body); font-size: 0.9375rem;
  padding: 0.625rem 0.875rem; border: 1px solid var(--gray-300);
  border-radius: var(--radius-md); background: var(--white);
  width: 100%; max-width: 360px; appearance: auto;
  cursor: pointer; color: var(--gray-900);
}
.state-selector select:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* --- Data Table --- */
.data-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9375rem; }
.data-table th, .data-table td {
  padding: 0.75rem 1rem; text-align: left;
  border-bottom: 1px solid var(--gray-200); vertical-align: top;
}
.data-table th {
  font-weight: 600; color: var(--gray-500);
  font-size: 0.8125rem; text-transform: uppercase;
  letter-spacing: 0.04em; width: 200px; background: transparent;
}
.data-table td { color: var(--gray-800); }
.data-table tr:last-child th, .data-table tr:last-child td { border-bottom: none; }

/* --- Trust Bar --- */
.trust-bar {
  display: flex; gap: 1.5rem; flex-wrap: wrap;
  margin: 0.75rem 0 0.25rem; font-size: 0.8125rem; color: var(--gray-500);
}
.trust-bar span { display: flex; align-items: center; gap: 0.25rem; }

/* --- Disclaimer Bar --- */
.disclaimer-bar {
  background: var(--gray-50); border-top: 1px solid var(--gray-200); padding: 0.75rem 0;
}
.disclaimer-container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.disclaimer-bar p { font-size: 0.75rem; color: var(--gray-500); margin: 0; line-height: 1.5; }
.disclaimer-bar strong { color: var(--gray-600); }

/* --- FAQ Section --- */
.faq-section { margin: 3rem 0 0; border-top: 1px solid var(--gray-200); padding-top: 2rem; }
.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-question {
  width: 100%; text-align: left; background: none; border: none;
  padding: 1rem 0; font-family: var(--font-body); font-size: 0.9375rem;
  font-weight: 600; color: var(--gray-900); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-question::after {
  content: '+'; font-size: 1.125rem; font-weight: 300;
  color: var(--gray-400); flex-shrink: 0; margin-left: 1rem;
}
.faq-question[aria-expanded="true"]::after { content: '\2212'; }
.faq-answer {
  display: none; padding: 0 0 1rem;
  color: var(--gray-600); line-height: 1.7; font-size: 0.9375rem;
}
.faq-answer p:last-child { margin-bottom: 0; }

/* --- Breadcrumbs --- */
.breadcrumb { padding: 0.75rem 0 0; }
.breadcrumb ol {
  display: flex; flex-wrap: wrap; list-style: none;
  gap: 0.25rem; font-size: 0.8125rem; color: var(--gray-400);
}
.breadcrumb li:not(:last-child)::after { content: '/'; margin-left: 0.35rem; color: var(--gray-300); }
.breadcrumb a { color: var(--gray-500); text-decoration: none; }
.breadcrumb a:hover { color: var(--gray-900); }
.breadcrumb span[aria-current="page"] { color: var(--gray-700); }

/* --- Bottom CTA --- */
.bottom-cta {
  background: var(--gray-50); border-top: 1px solid var(--gray-200);
  text-align: center; padding: 3rem 1.5rem;
}
.cta-container { max-width: 520px; margin: 0 auto; }
.bottom-cta h2 { margin-top: 0; }
.bottom-cta p { color: var(--gray-600); margin-bottom: 1.5rem; }

/* --- Footer --- */
.site-footer { background: var(--gray-900); color: var(--white); padding: 3rem 0 2rem; }
.footer-container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.footer-logo { font-family: var(--font-body); font-size: 1.0625rem; font-weight: 400; }
.footer-logo strong { font-weight: 700; color: var(--white); }
.footer-tagline { font-size: 0.8125rem; color: var(--gray-500); margin-top: 0.375rem; }
.footer-links { display: flex; gap: 4rem; margin: 2rem 0; }
.footer-col h4 {
  color: var(--gray-400); font-family: var(--font-body);
  font-size: 0.6875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.75rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.375rem; }
.footer-col a {
  color: var(--gray-500); text-decoration: none;
  font-size: 0.875rem; transition: color 0.12s ease;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--gray-800); }
.footer-bottom p { font-size: 0.75rem; color: var(--gray-600); margin-bottom: 0.25rem; }
.footer-legal { font-style: italic; }

/* --- State Grid (data-dense, 1px lines) --- */
.state-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1px; margin: 1.5rem 0;
  border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--gray-200);
}
.state-grid a {
  display: block; padding: 0.625rem 0.875rem;
  background: var(--white); text-decoration: none;
  color: var(--gray-800); font-size: 0.875rem;
  font-weight: 500; transition: background 0.1s ease;
}
.state-grid a:hover { background: var(--accent-light); color: var(--accent-dark); }

/* --- Hero --- */
.hero {
  padding: 4.5rem 0 3rem;
  border-bottom: 1px solid var(--gray-200);
}
.hero h1 {
  font-size: 3rem; max-width: 600px;
  letter-spacing: -0.025em; margin-bottom: 0.75rem;
}
.hero .subtitle {
  font-size: 1.125rem; color: var(--gray-500);
  max-width: 480px; line-height: 1.6; margin-bottom: 0;
}

/* --- Tool Grid (homepage: cards with room to breathe) --- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0;
}

.tool-card {
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--gray-900);
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
  display: block;
}

.tool-card:hover {
  border-color: var(--accent-border);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.06);
  color: var(--gray-900);
}

.tool-card-heading {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.tool-icon {
  color: var(--accent); display: flex;
  align-items: center; flex-shrink: 0;
  transition: color 0.12s ease;
}

.tool-icon svg { width: 16px; height: 16px; }

.tool-card h3 {
  margin: 0; font-size: 1rem;
  font-family: var(--font-heading);
  font-weight: 700; color: var(--gray-900);
}

.tool-card p {
  font-size: 0.875rem; color: var(--gray-500);
  margin-bottom: 0; line-height: 1.4;
}

/* --- Section Label --- */
.section-label {
  font-size: 0.6875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--gray-400); margin-bottom: 0.75rem;
}

/* --- State Hub Page --- */
.hub-topic {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.hub-topic:last-of-type { border-bottom: none; }

.hub-topic h2 {
  margin-top: 0; margin-bottom: 0.5rem; font-size: 1.25rem;
}

.hub-topic h2 a {
  color: var(--gray-900); text-decoration: none;
}

.hub-topic h2 a:hover { color: var(--accent); }

.hub-status {
  display: inline-block;
  font-size: 0.75rem; font-weight: 600;
  padding: 0.2rem 0.625rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}

.hub-yes { background: var(--green-bg); color: var(--green); }
.hub-no { background: var(--amber-bg); color: var(--amber); }
.hub-maybe { background: var(--accent-light); color: var(--accent-dark); }

.hub-topic p {
  font-size: 0.9375rem; margin-bottom: 0.5rem;
}

.hub-link {
  font-size: 0.875rem; font-weight: 500;
}

/* --- Verified Badge --- */
.verified-date {
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-size: 0.75rem; color: var(--gray-500); margin-bottom: 1.25rem;
}

/* --- Error Page --- */
.error-page { text-align: center; padding: 5rem 1.5rem; }
.error-links { list-style: none; margin-top: 1.5rem; }
.error-links li { margin-bottom: 0.5rem; }

/* --- Responsive --- */
@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.25rem; }
  .hero { padding: 3rem 0 2rem; }
  .hero h1 { font-size: 2.125rem; }
  .hero .subtitle { font-size: 1rem; }
  section { padding: 2.5rem 0; }
  .tool-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .footer-links { flex-direction: column; gap: 2rem; }
  .trust-bar { flex-direction: column; gap: 0.25rem; }
  .data-table th { width: 140px; }
}

@media (max-width: 480px) {
  .state-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- Print --- */
@media print {
  .site-nav, .site-footer, .bottom-cta, .disclaimer-bar { display: none; }
  body { font-size: 11pt; color: #000; }
  a { color: #000; text-decoration: underline; }
  .result-box { border: 1px solid #000; background: #fff; }
}
