
:root{
  --brand: #0ea5e9;     /* sky-500 */
  --brand-600:#0284c7;  /* sky-600 */
  --brand-700:#0369a1;  /* sky-700 */
          /* slate-900 */
        /* slate-600 */
         /* slate-200 */
           /* slate-50 */
  --danger:#e11d48;     /* rose-600 */
}

html,body{height:100%}
body{
  color:var(--ink);
  background: linear-gradient(180deg, var(--bg) 0%, #fff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, "Helvetica Neue", Arial, "Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
}

/* Shared containers */
.card{
  background:#fff;
  border:1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(2,132,199,.05);
}

/* Inputs */
.input{
  width:100%;
  border:1px solid var(--line);
  border-radius: 12px;
  padding:.6rem .75rem;
  font-size:.9rem;
  outline: none;
  transition: box-shadow .2s, border-color .2s;
  background:#fff;
}
.input:focus{
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14,165,233,.25);
}

/* Buttons */
.btn, .btn, .btn-danger{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.65rem 1rem;
  border-radius: 14px;
  font-weight: 700;
  font-size:.9rem;
  text-decoration:none;
  cursor:pointer;
  border: 1px solid transparent;
  transition: transform .04s ease, box-shadow .2s, background .2s, border-color .2s, color .2s;
  user-select:none;
  -webkit-tap-highlight-color: transparent;
}
.btn{
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-600) 100%);
  color:#fff;
  box-shadow: 0 8px 16px rgba(14,165,233,.25);
}
.btn:hover{ filter:brightness(1.05); }
.btn:active{ transform: translateY(1px); }

.btn{
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.btn:hover{
  border-color: var(--brand);
  box-shadow: 0 8px 16px rgba(14,165,233,.15);
}

.btn-danger{
  background: linear-gradient(180deg, var(--danger) 0%, #be123c 100%);
  color:#fff;
  box-shadow: 0 8px 16px rgba(225,29,72,.25);
}
.btn-danger:hover{ filter:brightness(1.05); }

.label{ display:block; font-size:.75rem; color:var(--muted); margin-bottom:.25rem; }

/* Navigation */
.site-nav{
  position: sticky; top:0; z-index:40;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,.7);
  border-bottom: 1px solid var(--line);
}
.nav-inner{
  max-width: 1152px; margin: 0 auto; padding: .9rem 1rem;
  display:flex; align-items:center; justify-content:space-between;
}
.nav-links a{ color: var(--ink); text-decoration:none; font-size:.9rem; margin-left:1rem; }
.nav-links a:hover{ color: var(--brand-700); }

/* Hero */
.hero{
  max-width: 1152px; margin: 0 auto; padding: 2.5rem 1rem;
  display:grid; grid-template-columns: 1fr; gap:2rem;
}
@media(min-width: 900px){
  .hero{ grid-template-columns: 1.1fr .9fr; align-items:center; }
}
.kicker{ color: var(--brand-700); font-weight: 800; letter-spacing:.04em; font-size:.9rem; }
.h1{ font-size: clamp(2rem, 3.6vw, 3.25rem); line-height:1.1; font-weight: 900; }
.lead{ color: var(--muted); font-size:1.05rem; }

/* Footer */
.site-footer{
  border-top:1px solid var(--line);
  margin-top: 4rem;
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}
.footer-inner{
  max-width:1152px; margin:0 auto; padding: 2.5rem 1rem;
  display:grid; grid-template-columns: 1fr; gap:1.5rem;
}
@media(min-width: 900px){ .footer-inner{ grid-template-columns: 1.2fr .8fr .8fr; } }

/* Prose */
.prose{
  max-width: 768px; margin: 0 auto; padding: 3rem 1rem;
}
.prose h1{ font-size:2rem; margin-bottom:.5rem; }
.prose h2{ margin-top:1.5rem; }
.prose p{ color: var(--ink); }
.prose a{ color: var(--brand-700); text-decoration: underline; }
.prose ul{ padding-left: 1.2rem; }

/* Utility */
.grid{ display:grid; gap:1rem; }
.grid-2{ grid-template-columns: 1fr 1fr; }
.grid-3{ grid-template-columns: 1fr 1fr 1fr; }
.mt-1{ margin-top:.25rem; } .mt-2{ margin-top:.5rem; } .mt-3{ margin-top:.75rem; } .mt-4{ margin-top:1rem; }
.mt-6{ margin-top:1.5rem; } .mt-8{ margin-top:2rem; } .mt-10{ margin-top:2.5rem; } .mt-16{ margin-top:4rem; }
.text-sm{ font-size:.9rem; } .muted{ color: var(--muted); }
.table{ width:100%; border-collapse: collapse; }
.table th,.table td{ padding:.5rem .25rem; border-bottom:1px solid var(--line); text-align:right; }
.table th:first-child,.table td:first-child{ text-align:left; }

/* Summary table container */
.summary{
  border:1px solid var(--line);
  border-radius: 12px;
  background:#fff;
  overflow:hidden;
}
.summary-header, .summary-row, .summary-total{
  display:grid; grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr; gap:.5rem; padding:.6rem .75rem;
}
.summary-header{ font-weight:700; background: #f1f5f9; }
.summary-row{ border-top:1px solid var(--line); }
.summary-total{ font-weight:800; border-top:2px solid var(--line); }

/* Print */
@media print{
  .site-nav, .site-footer, .no-print{ display:none !important; }
  .summary{ border: none; }
}


/* Mobile responsiveness */
@media(max-width: 640px){
  .btn, .btn, .btn-danger{
    width:100%;
    justify-content:center;
    margin-top:.5rem;
  }
  .nav-links a{
    margin-left:.5rem;
    font-size:.8rem;
  }
  .hero{ grid-template-columns: 1fr !important; }
  .footer-inner{ grid-template-columns: 1fr !important; }
  .input{ font-size:1rem; padding:.8rem .9rem; }
}


/* --- Mobile-first improvements --- */

/* Prevent iOS zoom on inputs by keeping font-size >= 16px */
input, select, textarea { font-size: 16px; }

/* Larger tap targets */
.btn, .btn, .btn-danger { min-height: 44px; padding:.7rem 1.05rem; border-radius: 16px; }
.input { min-height: 44px; }

/* Remove default number spinners */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }

/* Make header compact but tappable on small screens */
@media (max-width: 640px){
  .nav-inner { padding: .7rem .85rem; }
  .nav-links a { margin-left:.75rem; font-size:.9rem; }
}

/* Stack hero columns on small screens */
.hero { gap:1.25rem; }
@media (max-width: 900px){
  .hero { padding: 1.5rem 1rem; }
  .h1 { font-size: clamp(1.75rem, 6vw, 2.25rem); }
  .lead { font-size: 1rem; }
}

/* Tool card spacing on phones */
@media (max-width: 900px){
  #tool .card { padding: .75rem 1rem !important; }
  #tool h2 { font-size: 1.05rem; }
}

/* Summary table: horizontal scroll on narrow screens */
#summary { overflow-x: auto; }
#summary .summary,
#summary .summary-header,
#summary .summary-row,
#summary .summary-total { width: 100%; min-width: unset; }

/* List item rounding */
#itemsList li, #peopleList li { border-radius: 12px; }

/* Softer shadows on mobile */
@media (max-width: 640px){
  .card { box-shadow: 0 6px 12px rgba(2,132,199,.06); }
}

/* Visible focus styles */
.btn:focus-visible, .btn:focus-visible, .btn-danger:focus-visible, .input:focus-visible, a:focus-visible {
  outline: 3px solid rgba(14,165,233,.45);
  outline-offset: 2px;
  border-radius: 14px;
}

/* Dark mode */
:root
:root
:root
:root
:root
:root


/* --- Responsive Summary (no scroll on phones) --- */
.summary-cards { display: grid; gap: .75rem; }
.summary-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .75rem .9rem;
}
.summary-card .row { display:flex; justify-content:space-between; gap:.75rem; }
.summary-card .label { color: var(--muted); font-size:.8rem; }
.summary-card .value { font-weight:700; }

@media (min-width: 601px){
  #summary .summary { display:block; }
  .summary-cards { display:none; }
}
@media (max-width: 600px){
  #summary .summary { display:none; }
  .summary-cards { display:grid; }
}



/* Dark mode restored */














body { background:#ffffff; color:#000000; }

/* --- Input Outlines --- */
.input {
  border: 2px solid #d1d5db; /* light gray border */
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
}
.input:focus {
  border-color: #2563eb; /* blue-600 */
  outline: none;
  box-shadow: 0 0 0 2px rgba(37,99,235,0.3);
}


/* --- Primary Buttons --- */
.btn-primary {
  background-color: #2563eb; /* blue-600 */
  color: #fff;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-weight: 600;
}
.btn-primary:hover {
  background-color: #1d4ed8; /* darker blue */
}


/* --- Refined Input Style --- */
.input {
  border: 2px solid #d1d5db;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  background-color: #fff;
  font-size: 1rem;
}
.input::placeholder {
  color: #9ca3af; /* faded gray */
}
.input:focus {
  border-color: #2563eb;
  outline: none;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.2);
}


/* --- Enforced Input Style --- */
.input {
  border: 2px solid #d1d5db !important;
  padding: 0.6rem 0.75rem !important;
  border-radius: 10px !important;
  background-color: #ffffff !important;
  font-size: 1rem !important;
}
.input::placeholder {
  color: #9ca3af !important; /* faded gray */
}
.input:focus {
  border-color: #2563eb !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.2) !important;
}

/* Ensure inputs look outlined and clean */
.input {
  border: 2px solid #d1d5db !important;
  padding: 0.6rem 0.75rem !important;
  border-radius: 10px !important;
  background-color: #ffffff !important;
  font-size: 1rem !important;
}
.input::placeholder { color: #9ca3af !important; }
.input:focus {
  border-color: #2563eb !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.2) !important;
}


/* --- Site Blue Buttons --- */
.btn-primary {
  background-color: var(--brand, #2563eb) !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  padding: 0.6rem 1.2rem !important;
  font-weight: 600 !important;
  border: none !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease !important;
}
.btn-primary:hover {
  background-color: var(--brand-700, #1d4ed8) !important;
}


/* --- Primary Buttons (Brand Blue) --- */
.btn-primary {
  background-color: #0ea5e9; /* brand blue */
  color: #ffffff;
  border-radius: 10px;
  padding: 0.6rem 1.2rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background-color .2s ease;
}
.btn-primary:hover { background-color: #0284c7; }


/* Accessibility: screen-reader-only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
