/* AAT Level 4 changes page (aat-level-4-changes.html) */

.l4-hero .breadcrumbs { margin-bottom: 18px; }
.l4-hero h1 { font-size: clamp(2.6rem, 5.2vw, 4.6rem); }
.l4-card-label { display: block; color: var(--lime); font-size: .74rem; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; }
.l4-deadline-card strong { margin-top: 12px; font-size: clamp(2.2rem, 4vw, 3.1rem); }

/* Timeline */
.l4-dates { background: var(--paper); }
.l4-timeline { position: relative; display: grid; gap: 14px; max-width: 860px; margin: 0 auto; padding: 0; list-style: none; }
.l4-timeline::before { content: ""; position: absolute; top: 12px; bottom: 12px; left: 188px; width: 2px; background: var(--line); }
.l4-timeline li { position: relative; display: grid; grid-template-columns: 170px 1fr; gap: 38px; align-items: start; }
.l4-timeline li::before { content: ""; position: absolute; top: 18px; left: 182px; width: 14px; height: 14px; border: 3px solid var(--green-700); border-radius: 50%; background: var(--paper); }
.l4-timeline time { padding-top: 12px; color: var(--green-800); font-weight: 900; text-align: right; }
.l4-timeline li > div { padding: 12px 20px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.l4-timeline strong { display: block; color: var(--green-950); }
.l4-timeline p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.l4-timeline li.is-past::before { border-color: #a9bbb4; background: #a9bbb4; }
.l4-timeline li.is-past time, .l4-timeline li.is-past strong { color: var(--muted); }
.l4-timeline li.is-past > div { background: #fbfaf6; }
.l4-timeline li.is-next > div { border-color: var(--green-700); box-shadow: var(--shadow-soft); }
.l4-timeline li.is-next::before { background: var(--lime); }
.l4-timeline li.is-deadline > div { border-color: var(--gold); background: #fff7df; }
.l4-timeline li.is-deadline::before { border-color: #c9951a; background: var(--gold); }
.l4-status { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--cream); color: var(--green-800); font-size: .7rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; vertical-align: 2px; }

/* Old v new */
.l4-compare { background: var(--cream); }
.l4-compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.l4-compare-card { padding: 32px; border: 1px solid rgba(15,95,79,.1); border-radius: 24px; background: var(--white); }
.l4-compare-card .l4-card-label { color: var(--green-700); }
.l4-compare-card.is-new { border-color: var(--green-800); box-shadow: var(--shadow-soft); }
.l4-compare-card h3 { margin: 10px 0 6px; font: 700 1.55rem/1.2 Georgia, serif; }
.l4-compare-card > p { margin: 0 0 18px; color: var(--muted); }
.l4-compare-card h4 { margin: 20px 0 10px; color: var(--green-900); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.l4-unit-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.l4-unit-list li { display: grid; grid-template-columns: 62px 1fr auto; gap: 12px; align-items: center; padding: 9px 12px; border-radius: 12px; background: var(--paper); }
.l4-unit-list li > span { display: inline-grid; place-items: center; height: 30px; border-radius: 8px; background: var(--green-900); color: var(--lime); font: 900 .78rem/1 Georgia, serif; }
.l4-unit-list small { color: var(--green-700); font-weight: 900; }
.l4-unit-list a { color: var(--green-800); font-weight: 750; }
.l4-small { margin: 14px 0 0; color: var(--muted); font-size: .82rem; }

/* Mapping table */
.l4-mapping { background: var(--paper); }
.l4-table-wrap { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
.l4-table { width: 100%; border-collapse: collapse; }
.l4-table th, .l4-table td { padding: 16px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.l4-table thead th { background: var(--green-900); color: var(--white); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.l4-table tbody th { color: var(--green-950); font-weight: 800; }
.l4-table tbody tr:last-child th, .l4-table tbody tr:last-child td { border-bottom: 0; }
.l4-table tbody td:nth-child(3) { color: var(--green-800); font-weight: 800; }
.l4-rule-note { max-width: 860px; margin-inline: auto; }

/* Checker */
.l4-checker-section { background: var(--green-950); color: var(--white); }
.l4-checker-section .section-heading h2 { color: var(--white); }
.l4-checker-section .section-heading h2 em { color: var(--lime); }
.l4-checker-section .section-heading p { color: #c2d8d0; }
.l4-checker-section .eyebrow { color: #dff5ea; }
.l4-checker { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 26px; align-items: start; }
.l4-checker-form { padding: 28px; border-radius: 24px; background: var(--white); color: var(--ink); }
.l4-checker-form fieldset { margin: 0; padding: 0; border: 0; }
.l4-checker-form fieldset + fieldset { margin-top: 22px; }
.l4-checker-form legend { margin-bottom: 10px; color: var(--green-900); font-weight: 900; }
.l4-chip-grid { display: grid; gap: 8px; }
.l4-chip-grid label { position: relative; cursor: pointer; }
.l4-chip-grid input { position: absolute; top: 50%; left: 16px; width: 18px; height: 18px; margin: -9px 0 0; accent-color: var(--green-800); }
.l4-chip-grid span { display: grid; grid-template-columns: 58px 1fr; gap: 10px; align-items: center; min-height: 48px; padding: 8px 14px 8px 46px; border: 1px solid #cddbd5; border-radius: 12px; background: var(--white); color: var(--ink); font-size: .92rem; transition: background var(--transition), border-color var(--transition); }
.l4-chip-grid b { color: var(--green-800); font-family: Georgia, serif; }
.l4-chip-grid input:checked + span { border-color: var(--green-800); background: #e9f6ef; }
.l4-chip-grid input:focus-visible + span { outline: 3px solid rgba(32,180,134,.35); outline-offset: 2px; }
.l4-reset { margin-top: 18px; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; font-weight: 850; }
.l4-results { display: grid; gap: 16px; }
.l4-results[hidden] { display: none; }
.l4-routes { display: grid; gap: 16px; }
.l4-results-empty { margin: 0; padding: 26px; border: 1px dashed rgba(255,255,255,.25); border-radius: 20px; color: #c2d8d0; text-align: center; }
.l4-verdict { margin: 0; padding: 16px 20px; border-radius: 16px; background: var(--lime); color: var(--green-950); font-weight: 850; }
.l4-route { padding: 24px; border: 1px solid rgba(255,255,255,.14); border-radius: 20px; background: rgba(255,255,255,.07); }
.l4-route h3 { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 14px; margin: 0 0 14px; color: var(--white); font: 700 1.35rem/1.2 Georgia, serif; }
.l4-route h3 span { color: var(--lime); font: 900 .95rem/1.2 Inter, ui-sans-serif, system-ui, sans-serif; }
.l4-route ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.l4-route li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: start; color: #d9e9e3; font-size: .92rem; }
.l4-tag { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: .68rem; font-weight: 950; letter-spacing: .04em; text-align: center; text-transform: uppercase; }
.l4-tag.done { background: rgba(200,241,107,.18); color: var(--lime); }
.l4-tag.sit { background: rgba(255,255,255,.14); color: var(--white); }
.l4-tag.topup { background: rgba(245,197,84,.2); color: var(--gold); }
.l4-tag.lost { background: rgba(255,120,120,.16); color: #ffc1c1; }
.l4-route-notes { margin: 14px 0 0; padding: 0; list-style: none; }
.l4-route-notes li { display: block; padding-left: 16px; color: #bdd2ca; font-size: .86rem; text-indent: -12px; }
.l4-route-notes li::before { content: "•"; margin-right: 6px; color: var(--gold); }
.l4-checker-note { max-width: 760px; margin: 28px auto 0; color: #b9d3ca; font-size: .88rem; text-align: center; }

/* FAQs */
.l4-faq-section { background: var(--cream); }
.l4-faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.l4-faq-grid .section-heading p { color: var(--muted); }
.l4-faq { display: grid; gap: 10px; }
.l4-faq details { border: 1px solid rgba(15,95,79,.12); border-radius: 16px; background: var(--white); }
.l4-faq summary { position: relative; padding: 18px 52px 18px 22px; color: var(--green-950); font-weight: 850; cursor: pointer; list-style: none; }
.l4-faq summary::-webkit-details-marker { display: none; }
.l4-faq summary::after { content: "+"; position: absolute; top: 50%; right: 20px; transform: translateY(-50%); color: var(--green-700); font-size: 1.4rem; font-weight: 700; }
.l4-faq details[open] summary::after { content: "–"; }
.l4-faq summary:focus-visible { outline: 3px solid rgba(32,180,134,.35); outline-offset: 2px; border-radius: 16px; }
.l4-faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* Next steps and sources */
.l4-next { background: var(--paper); }
.l4-unit-links { margin-top: 0; }
.l4-unit-links .related-card { transition: transform var(--transition), box-shadow var(--transition); }
.l4-unit-links .related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.l4-signup-card { background: var(--green-800) !important; }
.l4-signup-card span { color: var(--lime) !important; }
.l4-signup-card h3 { color: var(--white); }
.l4-signup-card p { color: #d5e6e0 !important; }
.l4-sources { padding: 70px 0; background: var(--white); border-top: 1px solid var(--line); }
.l4-sources-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; }
.l4-sources h2 { margin: 0 0 10px; font: 700 1.8rem/1.2 Georgia, serif; }
.l4-sources p { margin: 0; color: var(--muted); }
.l4-sources ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.l4-sources li a { color: var(--green-800); font-weight: 750; }
.l4-cta { padding-top: 112px; }

@media (max-width: 980px) {
  .l4-checker, .l4-faq-grid, .l4-sources-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 760px) {
  .l4-compare-grid { grid-template-columns: 1fr; }
  .l4-compare-card, .l4-checker-form { padding: 22px; }
  .l4-timeline::before { left: 7px; }
  .l4-timeline li { grid-template-columns: 1fr; gap: 6px; padding-left: 30px; }
  .l4-timeline li::before { top: 4px; left: 0; }
  .l4-timeline time { padding-top: 0; text-align: left; }
  .l4-table thead { display: none; }
  .l4-table, .l4-table tbody, .l4-table tr, .l4-table th, .l4-table td { display: block; width: 100%; }
  .l4-table tr { padding: 14px 18px; border-bottom: 1px solid var(--line); }
  .l4-table tbody tr:last-child { border-bottom: 0; }
  .l4-table th, .l4-table td { padding: 4px 0; border: 0; }
  .l4-table [data-label]::before { content: attr(data-label); display: block; color: var(--green-700); font-size: .7rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
  .l4-route { padding: 20px 18px; }
  .l4-route li { grid-template-columns: 84px 1fr; gap: 10px; }
  .l4-cta { padding-top: 70px; }
}
