:root {
  --bg: #fff9ee;
  --surface: #ffffff;
  --ink: #12263a;
  --muted: #516276;
  --primary: #0e4a9e;
  --accent: #ffca2c;
  --accent-2: #db2b39;
  --line: #d9e0ea;
  --radius: 14px;
  --brand: var(--primary);
  --text: var(--ink);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Work Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 202, 44, 0.18), transparent 30%),
    radial-gradient(circle at 86% 0%, rgba(14, 74, 158, 0.15), transparent 35%),
    var(--bg);
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .55rem .8rem;
  font-weight: 700;
}

.skip-link:focus {
  top: .75rem;
}

.container {
  width: min(1160px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255, 249, 238, 0.92);
  border-bottom: 1px solid var(--line);
}

.header-shell {
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-weight: 700;
  color: #0a1f33;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
}

.site-nav a {
  font-size: .92rem;
  font-weight: 600;
  color: #2a3a4d;
}

.site-nav a.active {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.header-actions {
  display: flex;
  align-items: end;
  gap: .8rem;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: .86rem;
  font-weight: 700;
  padding: .45rem .7rem;
}

.year-quick {
  display: grid;
  gap: .3rem;
  font-size: .72rem;
  color: var(--muted);
}

.year-quick select {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .4rem .6rem;
  background: white;
  color: var(--ink);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .45rem .8rem;
  font-size: .82rem;
  font-weight: 700;
  color: var(--primary);
  background: #fff;
}

.hero {
  padding: 2.2rem 0 1.2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 1.2rem;
}

.eyebrow {
  margin: 0 0 .5rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .74rem;
  color: var(--primary);
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4.2vw, 3rem);
  line-height: 1.1;
}

.hero-sub {
  margin-top: .9rem;
  font-size: 1.07rem;
  color: #2d3d52;
  line-height: 1.5;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem .8rem;
  align-items: center;
  margin-top: .9rem;
}

.hero-panel,
.planner,
.page-head,
.table-wrap,
.grid-wrap,
.sticky-card,
.bridge-year,
.prose,
.contact-simple {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.hero-panel,
.page-head,
.prose,
.contact-simple,
.bridge-year {
  padding: 1rem 1.1rem;
}

.hero-panel h2,
.hero-panel h3 {
  margin: .2rem 0 .55rem;
}

.hero-panel ul,
.compact-list {
  margin: .25rem 0;
  padding-left: 1rem;
  color: #2d3d52;
}

.hero-panel li,
.compact-list li {
  margin: .35rem 0;
}

.next-name {
  margin: .2rem 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.next-date { margin: 0 0 .9rem; color: var(--muted); }
.inline-link { font-weight: 700; }

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.planner {
  margin-top: 1.2rem;
  padding: .85rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .7rem;
  align-items: end;
}

.planner label {
  display: block;
  margin-bottom: .3rem;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 700;
  color: var(--muted);
}

.planner-check {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 600;
  color: #274058;
}

.planner select,
.view-toggle input,
.home-search input,
.contact-simple input,
.contact-simple textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: .55rem .68rem;
  color: var(--ink);
}

button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  padding: .55rem .85rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  max-width: 100%;
}

.btn-hero-year {
  font-size: 1.05rem;
  padding: .7rem 1rem;
}

.btn-light,
.view-toggle button {
  background: #fff;
  color: var(--primary);
}

.view-toggle button.active {
  background: var(--primary);
  color: #fff;
}

.head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: .8rem;
}

.year-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}

.year-chips a {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: .42rem .72rem;
  font-size: .86rem;
  font-weight: 700;
  color: var(--ink);
  transition: all 0.15s ease-in-out;
}

.year-chips a:hover {
  border-color: var(--primary);
  text-decoration: none;
}

.year-chips a.active,
.year-chips a[aria-current="page"] {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(14, 74, 158, 0.25);
}

.pack-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
  margin-bottom: 1.5rem;
}

.pack-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: .95rem 1rem;
}

.pack-card h2 {
  margin: 0 0 .5rem;
}

.pack-meta {
  margin: 0 0 .45rem;
  color: var(--muted);
  font-weight: 700;
  font-size: .86rem;
}

.pack-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: .75rem 0 .4rem;
}

.pack-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
  margin-bottom: 1.4rem;
}

.pack-preview-table-wrap {
  overflow-x: auto;
}

.pack-preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}

.pack-preview-table th,
.pack-preview-table td {
  border-bottom: 1px solid #edf1f7;
  padding: .45rem .5rem;
  text-align: left;
  vertical-align: top;
}

.pack-preview-table th {
  font-weight: 700;
  color: #23415f;
}

.home-pack-card {
  margin: 0 0 1.2rem;
}

.banner-style {
  position: relative;
  overflow: hidden;
}

.banner-bg-emoji {
  position: absolute;
  right: 1.5rem;
  bottom: -0.5rem;
  font-size: 5.5rem;
  opacity: 0.10;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

@media (max-width: 600px) {
  .banner-bg-emoji {
    font-size: 3.5rem;
    right: 1rem;
    bottom: 0.25rem;
    opacity: 0.08;
  }
}

.year-pack-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .6rem;
  margin: .8rem 0 .2rem;
}

.year-pack-link {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .58rem .7rem;
  background: #fff;
  display: grid;
  gap: .2rem;
}

.year-pack-link span {
  color: var(--muted);
  font-weight: 700;
}

.home-search {
  margin-bottom: 1.4rem;
}

#home-holiday-search-form {
  display: grid;
  gap: .45rem;
}

.holiday-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
  margin-bottom: 1.5rem;
}

.holiday-hub-card h2 {
  margin: 0 0 .45rem;
}

.directory-list {
  margin: .7rem 0 .35rem;
  padding-left: 1rem;
  color: var(--muted);
}

.directory-list li {
  margin: .45rem 0;
}

.directory-list a {
  font-weight: 700;
}

.directory-list span {
  display: inline-block;
  margin-left: .45rem;
  font-size: .9rem;
  color: var(--muted);
}

.empty-state {
  margin: .7rem 0 0;
  color: var(--muted);
  font-weight: 600;
}

.home-editorial h2,
.home-faq h2,
.year-intro h2 {
  margin-top: 0;
}

.home-faq details,
.year-faq details {
  border: 1px solid #e3eaf2;
  border-radius: 10px;
  padding: .55rem .7rem;
  margin-bottom: .55rem;
  background: #fff;
}

.home-faq summary,
.year-faq summary {
  cursor: pointer;
  font-weight: 700;
}

.page-head {
  margin-top: 1rem;
}

.page-head p { max-width: 66ch; }

.year-stats {
  margin: .8rem 0 .35rem;
  font-size: .98rem;
}

.holyweek-selected-card {
  margin-top: .9rem;
}

.holyweek-selected-inner h2 {
  margin: 0;
}

.holyweek-row-head {
  display: flex;
  gap: .55rem;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.holyweek-milestones {
  margin-top: .45rem;
}

.holyweek-countdown {
  margin: .65rem 0 .35rem;
  font-weight: 700;
  color: #17385b;
}

.holyweek-table-wrap {
  margin-top: .9rem;
}

.holyweek-table-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  margin-bottom: .7rem;
}

.holyweek-table-tools h2 {
  margin: 0;
  font-size: 1.08rem;
}

.holyweek-table-scroller {
  overflow-x: auto;
}

.holyweek-table-desktop {
  min-width: 780px;
}

.holyweek-table-desktop .row-selected td {
  background: #fffdf3;
}

.holyweek-card-list {
  display: none;
  gap: .7rem;
  margin-top: .7rem;
}

.holyweek-past-years {
  margin-top: .8rem;
}

.holyweek-past-years > summary {
  font-weight: 700;
  cursor: pointer;
}

.view-toggle {
  display: grid;
  grid-template-columns: auto auto auto auto minmax(220px, 1fr);
  gap: .55rem;
  margin-top: .8rem;
}

.year-layout {
  margin: 1rem auto 2rem;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(240px, 1fr);
  gap: .95rem;
}

.year-main {
  display: grid;
  gap: .9rem;
}

.table-wrap,
.grid-wrap {
  padding: .75rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
  background: #fff;
}

thead th {
  text-align: left;
  padding: .62rem;
  border-bottom: 2px solid var(--line);
  color: #18324e;
}

tbody td,
tfoot th {
  border-bottom: 1px solid #edf1f7;
  padding: .58rem .62rem;
  vertical-align: top;
}

.row-note {
  margin: .3rem 0 0;
  color: var(--muted);
  font-size: .87rem;
}

.inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1rem;
  padding-left: 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .15rem .5rem;
  font-size: .74rem;
  font-weight: 700;
  line-height: 1.2;
  border: 1px solid transparent;
  margin-left: .45rem;
}

.badge-green {
  background: #e8f8ef;
  color: #17663b;
  border-color: #b7e5ca;
}

.badge-muted {
  background: #edf1f6;
  color: #33465c;
  border-color: #d5dee8;
}

.badge-amber {
  background: #fff6df;
  color: #7b4d00;
  border-color: #f0dc9d;
}

tbody tr:hover {
  background: #fffdf3;
}

.month-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .75rem;
  background: #fff;
}

.month-card h3 { margin-top: 0; }
.month-card ul { margin: 0; padding-left: 1rem; }

.grid-event-head {
  display: flex;
  gap: .5rem;
  align-items: center;
  flex-wrap: wrap;
}

.is-hidden { display: none; }

.sticky-card {
  position: sticky;
  top: 86px;
  align-self: start;
  padding: .9rem;
}

.summary-collapse > summary {
  font-weight: 800;
  cursor: pointer;
  margin-bottom: .75rem;
}

.summary-collapse[open] > summary {
  margin-bottom: .9rem;
}

.countdown-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0c3f8e;
}

.holiday-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.holiday-main,
.holiday-side {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 1rem;
}

.cta-row {
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
  margin: .8rem 0 1.1rem;
}

.long-weekends-list {
  display: grid;
  gap: .85rem;
  margin-bottom: 2rem;
}

.bridge-summary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1rem;
  margin: .8rem 0;
  font-weight: 700;
  color: #1f3651;
}

.bridge-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: .85rem 1rem;
}

.bridge-card h2,
.bridge-card h3 {
  margin: 0 0 .4rem;
}

.bridge-filters {
  grid-template-columns: minmax(180px, auto) minmax(160px, 240px) minmax(220px, 1fr);
  align-items: end;
}

.bridge-filters label span {
  display: block;
  margin-bottom: .3rem;
  font-size: .82rem;
  color: #3b5066;
}

.bridge-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.bridge-table thead th {
  background: #f7f9fc;
}

.bridge-table tbody td {
  padding: .75rem .7rem;
  vertical-align: top;
}

.source-status {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: .8rem .9rem;
  margin-bottom: .8rem;
}

.source-status p {
  margin: .2rem 0;
}

.school-sources-wrap {
  overflow-x: auto;
}

.school-sources-table th,
.school-sources-table td {
  white-space: nowrap;
}

.school-sources-table td:nth-child(2),
.school-sources-table th:nth-child(2) {
  white-space: normal;
  min-width: 340px;
}

.bridge-year header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bridge-year ul {
  margin: .7rem 0 0;
  padding-left: 1rem;
}

.prose {
  margin-bottom: 2rem;
}

.muted,
.copy-feedback,
.site-footer p {
  color: var(--muted);
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  padding: 1.1rem 0 2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: .45rem;
}

.contact-form {
  display: block;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.form-field {
  display: grid;
  gap: .25rem;
}

.form-field span {
  font-weight: 600;
  color: #304357;
}

.form-field-full {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid #cad6c8;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: .98rem;
  padding: .55rem .7rem;
  font-family: inherit;
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-actions {
  display: flex;
  align-items: center;
  gap: .8rem;
  flex-wrap: wrap;
}

#contact-status {
  margin: 0;
  color: var(--muted);
}

.hp-input {
  position: absolute;
  left: -9999px !important;
  top: 0 !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  border: 0;
  padding: 0;
}

.g-recaptcha {
  max-width: 100%;
  overflow: hidden;
}

.tracker-hitua {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 1080px) {
  .header-shell {
    grid-template-columns: 1fr auto auto;
    gap: .65rem;
    padding: .6rem 0;
  }
  .site-nav {
    order: 4;
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    gap: .5rem;
    padding: .3rem 0 .6rem;
    border-top: 1px solid var(--line);
  }
  .site-nav.is-open {
    display: flex;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .header-actions {
    justify-content: end;
    align-items: center;
  }
  .hero-grid,
  .year-layout,
  .holiday-detail-grid,
  .holiday-hub-grid,
  .pack-grid,
  .pack-detail-grid {
    grid-template-columns: 1fr;
  }
  .sticky-card {
    position: static;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100%, calc(100% - 1rem));
  }
  .planner {
    grid-template-columns: 1fr;
  }
  .view-toggle {
    grid-template-columns: 1fr 1fr;
  }
  .view-toggle button:nth-child(3),
  .view-toggle button:nth-child(4),
  .view-toggle input {
    grid-column: 1 / -1;
  }
  .bridge-filters {
    grid-template-columns: 1fr;
  }
  .holyweek-table-desktop {
    display: none;
  }
  .holyweek-card-list {
    display: grid;
  }
  .holyweek-table-tools {
    flex-direction: column;
    align-items: flex-start;
  }
  .bridge-table thead {
    display: none;
  }
  .bridge-table,
  .bridge-table tbody,
  .bridge-table tr,
  .bridge-table td {
    display: block;
    width: 100%;
  }
  .bridge-table tr {
    border-bottom: 1px solid #e5ebf2;
    padding: .55rem 0;
  }
  .bridge-table td {
    border: 0;
    padding: .45rem .7rem;
  }
  .bridge-table td::before {
    content: attr(data-label);
    display: block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #4a5f76;
    margin-bottom: .2rem;
  }
  .school-sources-table td:nth-child(2),
  .school-sources-table th:nth-child(2) {
    min-width: 220px;
  }
  table { font-size: .88rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .summary-collapse > summary {
    display: list-item;
  }
}

/* ==========================================================================
   Pico y Placa Styles
   ========================================================================== */

.pyp-checker-card {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.pyp-checker-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-end;
  margin-top: 1rem;
}

.pyp-city-selector select.pyp-select {
  display: block;
  margin-top: 0.35rem;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
  min-width: 200px;
}

.digit-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.digit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 2px solid var(--line);
  background: #f8fafc;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}

.digit-btn:hover {
  border-color: var(--primary);
  background: #eff6ff;
  color: var(--primary);
  transform: translateY(-2px);
}

.digit-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 10px rgba(14, 74, 158, 0.3);
}

.pyp-result-box {
  margin-top: 1.25rem;
  padding: 1.25rem 1.5rem;
  border-radius: 10px;
  border: 1px solid transparent;
  animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.pyp-result-box.result-success {
  background: #f0fdf4;
  border-color: #86efac;
  color: #166534;
}

.pyp-result-box.result-danger {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}

.pyp-result-box.result-warning {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #92400e;
}

.pyp-res-head {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

/* Plates & Digits Badges */
.pyp-badge-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.plate-digit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  font-family: "Courier New", Courier, monospace, sans-serif;
  letter-spacing: -0.05em;
}

.plate-digit.restricted {
  background: #dc2626;
  color: #ffffff;
  border: 1px solid #b91c1c;
}

.plate-digit.allowed {
  background: #16a34a;
  color: #ffffff;
  border: 1px solid #15803d;
}

.plate-digit.xs { width: 22px; height: 22px; font-size: 0.78rem; border-radius: 4px; }
.plate-digit.sm { width: 28px; height: 28px; font-size: 0.95rem; }
.plate-digit { width: 34px; height: 34px; font-size: 1.1rem; }
.plate-digit.lg { width: 48px; height: 48px; font-size: 1.5rem; border-radius: 8px; }

/* Cities Overview Grid */
.pyp-cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.pyp-city-summary-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pyp-city-summary-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(18, 38, 58, 0.08);
}

.pyp-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0.75rem;
}

.pyp-card-header h3 { margin: 0; font-size: 1.35rem; }
.pyp-badge-dept {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

.pyp-digits-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.pyp-label-badge {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  min-width: 140px;
}

.pyp-label-badge.danger { color: #dc2626; }
.pyp-label-badge.success { color: #16a34a; }

.pyp-free-banner {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pyp-regional-banner {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pyp-regional-hero {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  background: #fffbeb;
  border: 2px solid #f59e0b;
  border-radius: 12px;
  margin-top: 1.25rem;
}

.pyp-regional-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

@media (max-width: 600px) {
  .pyp-regional-grid { grid-template-columns: 1fr; }
}

.pyp-reg-window {
  background: #ffffff;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1px solid #fde68a;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.pyp-reg-window strong { color: #b45309; font-size: 1.05rem; }
.pyp-reg-window span { font-size: 0.88rem; color: var(--ink); }

.pyp-reg-table-cell {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.82rem;
  text-align: left;
}

.pyp-reg-entry {
  line-height: 1.35;
  color: var(--ink);
}

.pyp-text-regional {
  color: #b45309;
  font-weight: 700;
  font-size: 0.88rem;
}

.pyp-cell-status.regional { color: #b45309; font-size: 0.72rem; font-weight: 800; }

.pyp-hours {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--ink);
  background: #f8fafc;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
}

.pyp-card-footer {
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
}

.pyp-card-footer .btn {
  display: block;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  text-wrap: balance;
  white-space: normal;
  line-height: 1.35;
  padding: 0.7rem 1rem;
}

/* City Hero Card */
.pyp-city-hero-card {
  margin-top: 1.5rem;
  padding: 2rem;
  background: #ffffff;
  border: 2px solid var(--line);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.pyp-city-hero-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 1.25rem;
}

.pyp-today-badge {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pyp-plate-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .pyp-plate-showcase { grid-template-columns: 1fr; }
}

.pyp-showcase-box {
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
}

.pyp-showcase-box.restricted-box {
  background: #fff5f5;
  border: 2px solid #fecaca;
}

.pyp-showcase-box.allowed-box {
  background: #f0fdf4;
  border: 2px solid #bbf7d0;
}

.pyp-showcase-title {
  display: block;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.restricted-box .pyp-showcase-title { color: #dc2626; }
.allowed-box .pyp-showcase-title { color: #16a34a; }

.pyp-showcase-note {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.pyp-info-bar {
  margin-top: 1.25rem;
  padding: 0.85rem 1.25rem;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 1.05rem;
  color: var(--ink);
  border-left: 4px solid var(--primary);
}

.pyp-free-hero {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  background: #f0fdf4;
  border: 2px solid #86efac;
  border-radius: 12px;
  margin-top: 1.25rem;
}

.pyp-free-icon { font-size: 2.5rem; }

/* Weekly Timetable */
.table-wrap,
.table-responsive {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.pyp-week-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

.pyp-week-table th { background: #f8fafc; font-weight: 700; }
.pyp-week-table tr.row-today {
  background: #fefce8;
  font-weight: 600;
}

.pyp-today-pill {
  display: inline-block;
  margin-left: 0.4rem;
  background: var(--accent);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.pyp-text-free {
  color: #16a34a;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Monthly Calendar Grid */
.pyp-month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .pyp-month-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
}

.pyp-day-cell {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.55rem;
  min-height: 85px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pyp-day-cell.cell-today {
  border-color: var(--primary);
  background: #f0f7ff;
  box-shadow: 0 0 0 2px var(--primary);
}

.pyp-day-cell.cell-holiday {
  background: #fef2f2;
}

.pyp-cell-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pyp-cell-num { font-weight: 800; font-size: 1rem; }
.pyp-cell-wday { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; }
.cell-today-badge {
  background: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-weight: 800;
}

.pyp-cell-body { margin-top: 0.35rem; }
.pyp-cell-digits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  align-items: center;
}
.pyp-cell-lbl { font-size: 0.65rem; color: #dc2626; font-weight: 700; width: 100%; margin-bottom: 0.1rem; }
.pyp-cell-status.holiday { color: #dc2626; font-size: 0.75rem; font-weight: 700; }
.pyp-cell-status.free { color: #16a34a; font-size: 0.75rem; font-weight: 600; }

/* Callout Boxes */
.callout {
  padding: 1.25rem 1.5rem;
  border-radius: 10px;
  border-left: 5px solid;
}
.callout-regional {
  background: #eff6ff;
  border-color: var(--primary);
}
.callout-roads {
  background: #f0fdf4;
  border-color: #16a34a;
}

/* Home Hero Utility Bar */
.hero-utility-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  margin-top: 1.5rem;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.inline-planner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.inline-planner label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}

.inline-planner select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  font-size: 0.92rem;
  background: #fff;
  color: var(--ink);
}

.utility-divider {
  width: 1px;
  height: 28px;
  background: var(--line);
}

.inline-search {
  flex: 1;
  min-width: 220px;
}

.inline-search .search-input-wrapper input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
  font-size: 0.92rem;
  background: #fff;
  color: var(--ink);
  box-sizing: border-box;
}

.hero-downloads {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.hero-downloads a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Home Dashboard Grid */
.hero-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  align-items: stretch;
}

@media (max-width: 768px) {
  .hero-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.dashboard-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.dashboard-card h2,
.dashboard-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.holiday-tile-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.holiday-tile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.85rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.holiday-tile:hover {
  border-color: var(--primary);
  background: #f0f7ff;
}

.date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  flex-shrink: 0;
}

.date-badge .day-num {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.date-badge .month-lbl {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  line-height: 1;
  margin-top: 2px;
}

.holiday-tile-info {
  flex: 1;
  min-width: 0;
}

.holiday-tile-info strong {
  display: block;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.holiday-tile-info strong a {
  color: var(--ink);
  text-decoration: none;
}

.holiday-tile-info strong a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.holiday-tile-info .meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
}

.countdown-pill {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 4px;
}

.countdown-pill.urgent {
  background: #fef2f2;
  color: #dc2626;
}

/* Home Pico y Placa Feature */
.pyp-home-feature {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
}

.pyp-home-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.pyp-home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 1.15rem;
}

.pyp-home-city-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.15rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.pyp-home-city-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(14, 116, 144, 0.08);
}

.pyp-home-city-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #f1f5f9;
}

.pyp-home-city-top h4 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.pyp-home-city-top h4 a {
  color: var(--ink);
  text-decoration: none;
}

.pyp-home-city-top h4 a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.pyp-home-city-body {
  margin-bottom: 0.5rem;
}

.pyp-home-hours-badge {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  margin: 0.6rem 0 0.85rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #334155;
  box-sizing: border-box;
}

.pyp-home-hours-badge .pyp-hours-icon {
  flex-shrink: 0;
  font-size: 0.95rem;
  line-height: 1.2;
}

.pyp-home-hours-badge .pyp-hours-content {
  flex: 1;
}

.pyp-home-hours-badge .pyp-hours-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.03em;
  margin-bottom: 0.15rem;
}

.pyp-home-hours-badge .pyp-hours-val {
  display: block;
  font-weight: 600;
  color: #0f172a;
  font-size: 0.82rem;
}

.pyp-home-city-footer {
  margin-top: auto;
  padding-top: 0.4rem;
}

.pyp-home-city-footer a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.pyp-home-city-footer a:hover {
  text-decoration: underline;
}

.pyp-regional-mini {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
}

.pyp-regional-mini p {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  color: #92400e;
}

/* Home Editorial & FAQ Cards */
.home-editorial-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 2.5rem;
  box-sizing: border-box;
}

.home-editorial-card h2 {
  margin-top: 0;
  font-size: 1.5rem;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 0.65rem;
}

.home-editorial-card h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: #0f172a;
}

.home-editorial-card p {
  line-height: 1.7;
  color: #334155;
  margin-bottom: 1rem;
}

.home-faq-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 2rem;
  box-sizing: border-box;
}

.home-faq-card h2 {
  margin-top: 0;
  font-size: 1.5rem;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 0.65rem;
  margin-bottom: 1.25rem;
}

.faq-accordion {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  background: #f8fafc;
  overflow: hidden;
  transition: all 0.15s ease;
}

.faq-accordion summary {
  padding: 0.85rem 1.15rem;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  color: var(--ink);
  outline: none;
}

.faq-accordion summary:hover {
  color: var(--primary);
  background: #eff6ff;
}

.faq-accordion p {
  padding: 0.85rem 1.15rem 1.15rem;
  margin: 0;
  line-height: 1.6;
  color: #334155;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
}

/* Work Calendar Stats */
.work-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .work-stats-grid {
    grid-template-columns: 1fr;
  }
}

.work-stat-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.work-stat-card.highlight {
  border-color: #93c5fd;
  background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
}

.work-stat-card.danger {
  border-color: #fecaca;
  background: linear-gradient(180deg, #fff5f5 0%, #ffffff 100%);
}

.work-stat-card .stat-number {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}

.work-stat-card.highlight .stat-number {
  color: var(--primary);
}

.work-stat-card.danger .stat-number {
  color: #dc2626;
}

.work-stat-card .stat-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  margin-top: 0.5rem;
}

.work-stat-card .stat-sub {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* Work Calendar Table */
.work-table-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  margin-top: 1rem;
}

.work-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.work-table thead th {
  background: #f8fafc;
  padding: 0.85rem 1.15rem;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #475569;
  border-bottom: 2px solid #e2e8f0;
}

.work-table tbody td {
  padding: 0.75rem 1.15rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.work-table .col-month {
  text-align: left;
  font-weight: 600;
}

.work-table .col-num {
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.work-table thead th.col-num {
  text-align: center;
}

.holiday-pill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.85rem;
  padding: 0.2rem 0.55rem;
  background: #fee2e2;
  color: #b91c1c;
  font-weight: 700;
  border-radius: 9999px;
  font-size: 0.85rem;
  line-height: 1.2;
}

.holiday-pill-badge.total {
  background: #dc2626;
  color: #ffffff;
  font-size: 0.9rem;
}

.zero-holiday-val {
  color: #94a3b8;
  font-size: 0.9rem;
}

.work-table tfoot th {
  background: #f1f5f9;
  padding: 0.85rem 1.15rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  border-top: 2px solid #cbd5e1;
  border-bottom: none;
}

.work-table tfoot th.col-num {
  text-align: center;
}

/* Labor Calculator */
.interactive-calculator-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.calc-header {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 1rem;
}

.calc-header h2 {
  margin: 0.35rem 0 0;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 1.5rem;
  align-items: stretch;
}

@media (max-width: 800px) {
  .calc-grid {
    grid-template-columns: 1fr;
  }
}

.calc-inputs {
  display: flex;
  flex-direction: column;
}

.input-with-symbol {
  display: flex;
  align-items: center;
  position: relative;
  margin-top: 0.35rem;
}

.input-with-symbol .currency-prefix {
  position: absolute;
  left: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}

.input-with-symbol input {
  width: 100%;
  padding: 0.65rem 0.75rem 0.65rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  box-sizing: border-box;
}

.calc-inputs select,
.calc-inputs input[type="date"] {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--ink);
  margin-top: 0.35rem;
  box-sizing: border-box;
  background: #fff;
}

.calc-inputs input[type="date"]:focus,
.calc-inputs select:focus,
.input-with-symbol input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 74, 158, 0.15);
}

.calc-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.calc-results {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.result-tile.highlight {
  background: linear-gradient(135deg, #0e7490, #155e75);
  color: #ffffff;
  padding: 1.1rem 1.25rem;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 1rem;
}

.result-tile .result-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.95;
  margin-bottom: 0.35rem;
}

.result-tile .result-value {
  display: block;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.result-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (max-width: 480px) {
  .result-details-grid {
    grid-template-columns: 1fr;
  }
}

.detail-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.6rem 0.75rem;
}

.detail-box .detail-label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.detail-box .detail-val {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
}

.calc-disclaimer-note {
  font-size: 0.75rem;
  margin-top: 0.75rem;
  line-height: 1.4;
}

.table-striped tbody tr:nth-child(even) {
  background-color: #f8fafc;
}

@media (max-width: 600px) {
  .header-shell {
    gap: .4rem;
  }
  .header-actions {
    gap: .4rem;
  }
  .year-quick span {
    display: none;
  }
  .year-quick select {
    padding: .35rem .45rem;
    font-size: .82rem;
  }
  .lang-switch {
    padding: .35rem .5rem;
    font-size: .82rem;
  }
  .menu-toggle {
    padding: .35rem .55rem;
    font-size: .82rem;
  }
  .brand {
    min-width: 0;
  }
  .pyp-city-hero-card {
    padding: 1.25rem 1rem;
  }
  .pyp-regional-hero {
    flex-direction: column;
    padding: 1rem;
    gap: 0.75rem;
  }
}
