/* Minimum Wage by Country (generated by scripts/build-minimum-wage.mjs). Loaded after site.css and cost-of-living.css and
   reuses their tokens and components (.hero, .col-banner, .col-crumbs, .col-search, .col-select, .col-cta, .col-disclaimer).
   No inline styles anywhere (CSP). */

.mw-hero { padding-bottom: 0; }
.mw-hero .eyebrow { margin-top: 22px; }
.mw-hero .lead { max-width: 760px; margin-bottom: 0; }
.mw-section { padding-top: 34px; }

/* ---------- Controls ---------- */
.mw-controls { display: grid; grid-template-columns: minmax(220px, 1.6fr) repeat(3, minmax(0, 1fr)) auto; gap: 12px; align-items: end; }
.mw-search { max-width: none; margin: 0; }
.mw-search .col-search__input { font-size: 16px; padding-block: 13px; border-radius: 16px; background: var(--card); }
.mw-search .col-search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.mw-field .col-select { background-color: var(--card); padding-block: 13px; }
.mw-field .col-select:disabled, .mw-toggle__btn:disabled { opacity: .7; cursor: default; }
.mw-toggle { display: flex; padding: 4px; height: 50px; background: var(--card); border: 1px solid rgba(234, 242, 230, 0.28); border-radius: 16px; }
.mw-toggle__btn {
  font: inherit; font-size: 14px; font-weight: 800; letter-spacing: .6px; color: var(--muted); background: none; border: 0;
  border-radius: 12px; padding: 0 16px; cursor: pointer; transition: background-color .15s ease, color .15s ease;
}
.mw-toggle__btn:hover { color: var(--ink); }
.mw-toggle__btn[aria-pressed="true"] { background: var(--lime); color: var(--on-lime); }
.mw-toggle__btn:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.mw-count { margin: 18px 4px 10px; color: var(--muted); font-size: 14px; font-weight: 600; }

/* ---------- List ---------- */
.mw-headrow, .mw-row summary { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.5fr) 112px minmax(0, 1.1fr) 20px; column-gap: 16px; align-items: center; }
.mw-headrow { padding: 0 22px 10px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.mw-headrow span:nth-child(4) { text-align: end; }
.mw-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.mw-item[hidden] { display: none; }
.mw-row {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.mw-row:hover { border-color: rgba(198, 239, 60, 0.65); background: #19291d; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0, 0, 0, .35); }
.mw-row[open] { border-color: var(--lime); transform: none; box-shadow: none; }
.mw-row summary { padding: 14px 22px; cursor: pointer; list-style: none; border-radius: 18px; }
.mw-row summary::-webkit-details-marker { display: none; }
.mw-row summary:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.mw-cell { min-width: 0; }
.mw-cell b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.2px; line-height: 1.25; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.mw-cell small { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; }
.mw-label { display: none; }
.mw-country { display: flex; align-items: center; gap: 14px; }
.mw-country > span { min-width: 0; }
.mw-flag { flex: none; width: 32px; height: 24px; border-radius: 5px; object-fit: cover; box-shadow: 0 0 0 1px rgba(234, 242, 230, 0.16); }
.mw-wage b { color: var(--lime); }
.mw-wage .mw-none { color: var(--amber); font-size: 15.5px; }
.mw-eq[hidden] { display: none; }
.mw-chip { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--lime); border: 1px solid rgba(198, 239, 60, 0.4); padding: 4px 10px; border-radius: 999px; }
.mw-chip--none { color: var(--amber); border-color: rgba(221, 164, 60, 0.5); }
.mw-month { text-align: end; }
.mw-dash { color: var(--muted); }
.mw-chev { color: var(--lime); justify-self: end; transition: transform .25s ease; }
.mw-row[open] .mw-chev { transform: rotate(180deg); }

/* ---------- Expanded detail (smooth height where the browser can animate to auto; opens instantly elsewhere) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .mw { interpolate-size: allow-keywords; }
  .mw-row::details-content { block-size: 0; overflow: clip; transition: block-size .3s ease, content-visibility .3s allow-discrete; }
  .mw-row[open]::details-content { block-size: auto; }
}
.mw-detail { margin: 0 22px; padding: 18px 0 20px; border-top: 1px solid var(--line); }
.mw-detail dl { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) minmax(0, 1.2fr); gap: 14px 28px; margin: 0; }
.mw-detail dt { color: var(--lime); font-size: 12px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 6px; }
.mw-detail dd { margin: 0; font-size: 15px; line-height: 1.55; }
.mw-detail__date dd { font-size: 19px; font-weight: 800; letter-spacing: -.3px; line-height: 1.3; }
.mw-detail dd small { display: block; color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: 0; margin-top: 2px; }
.mw-detail__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: 16px; font-size: 14px; }
.mw-detail__foot p { margin: 0; }
.mw-how { color: var(--muted); }
.mw-more { margin-inline-start: auto; }
.mw-empty { margin: 8px 0 0; padding: 28px 22px; text-align: center; color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: 18px; }
.mw-empty[hidden] { display: none; }
.mw-reset { font: inherit; font-weight: 700; color: var(--lime); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 980px) {
  .mw-controls { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
  .mw-search { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .mw-controls { grid-template-columns: 1fr 1fr; }
  .mw-toggle { justify-self: start; }
  .mw-headrow { display: none; }
  /* Phones: country on top, then wage and full-time month side by side with their own labels. */
  .mw-row summary { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 20px; row-gap: 12px; align-items: start; padding: 14px 16px; }
  .mw-country { grid-column: 1 / 3; }
  .mw-chev { grid-column: 3; grid-row: 1; }
  .mw-wage { grid-column: 1; grid-row: 2; }
  .mw-month { grid-column: 2 / 4; grid-row: 2; text-align: start; }
  .mw-period { display: none; }
  .mw-label { display: block; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; margin-bottom: 2px; }
  .mw-row:hover { transform: none; box-shadow: none; }
  .mw-detail { margin: 0 16px; }
  .mw-detail dl { grid-template-columns: 1fr; }
  .mw-more { margin-inline-start: 0; }
}
