/*
 * A2TDEV Utility + Legal + System Editorial Layer — Upgrade 09
 * Global search, legal reading, verification/status, and error-state surfaces.
 * Loaded after a2t_design_foundation.css.
 */

/* --------------------------------------------------------------------------
   Shared utility primitives
   -------------------------------------------------------------------------- */

body.a2t-production-shell .a2t-utility-page {
  width: min(var(--a2t-container), calc(100% - (var(--a2t-gutter) * 2)));
  margin-inline: auto;
  padding: clamp(54px, 7vw, 92px) 0 clamp(86px, 10vw, 140px);
}

body.a2t-production-shell .a2t-utility-kicker,
body.a2t-production-shell .a2t-search-kicker,
body.a2t-production-shell .a2t-legal-kicker,
body.a2t-production-shell .a2t-system-kicker,
body.a2t-production-shell .a2t-report-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  color: var(--a2t-accent) !important;
  font: 500 9px/1.35 var(--a2t-mono) !important;
  letter-spacing: .13em;
  text-transform: uppercase;
}

body.a2t-production-shell .a2t-utility-kicker::before,
body.a2t-production-shell .a2t-search-kicker::before,
body.a2t-production-shell .a2t-legal-kicker::before,
body.a2t-production-shell .a2t-system-kicker::before,
body.a2t-production-shell .a2t-report-kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
}

body.a2t-production-shell .a2t-utility-meta {
  color: var(--a2t-copy-soft);
  font: 500 8px/1.5 var(--a2t-mono);
  letter-spacing: .09em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Global search
   -------------------------------------------------------------------------- */

body.a2t-production-shell .a2t-global-search {
  width: min(var(--a2t-container), calc(100% - (var(--a2t-gutter) * 2))) !important;
  max-width: var(--a2t-container) !important;
  margin: 0 auto !important;
  padding: clamp(50px, 6.5vw, 86px) 0 clamp(92px, 10vw, 145px) !important;
  color: var(--a2t-silver);
  font-family: var(--a2t-sans) !important;
}

body.a2t-production-shell .a2t-search-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: clamp(42px, 7vw, 110px);
  align-items: end;
  padding-bottom: clamp(48px, 6vw, 78px);
  border-bottom: 1px solid var(--a2t-line);
}

body.a2t-production-shell .a2t-search-hero h1 {
  max-width: 780px;
  margin: 0;
  color: var(--a2t-white) !important;
  font: 600 clamp(48px, 6.4vw, 92px)/.91 var(--a2t-sans) !important;
  letter-spacing: -.065em !important;
}

body.a2t-production-shell .a2t-search-hero h1 em {
  color: var(--a2t-accent);
  font-style: normal;
}

body.a2t-production-shell .a2t-search-intro {
  margin: 0 0 24px;
  color: var(--a2t-copy);
  font-size: 15px;
  line-height: 1.7;
}

body.a2t-production-shell .a2t-search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  min-height: 54px;
  border: 1px solid var(--a2t-control-line);
  background: rgba(17, 24, 23, .52);
}

body.a2t-production-shell .a2t-search-form:focus-within {
  border-color: var(--a2t-accent);
  box-shadow: var(--a2t-focus-ring);
}

body.a2t-production-shell .a2t-search-field {
  display: flex;
  min-width: 0;
  align-items: center;
}

body.a2t-production-shell .a2t-search-field > i {
  flex: 0 0 auto;
  margin-left: 17px;
  color: var(--a2t-accent);
  font-size: 13px;
}

body.a2t-production-shell .a2t-search-form input[type="search"] {
  width: 100%;
  min-width: 0;
  height: 52px !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: var(--a2t-white) !important;
  box-shadow: none !important;
}

body.a2t-production-shell .a2t-search-form input::placeholder {
  color: #6f7b75 !important;
  opacity: 1;
}

body.a2t-production-shell .a2t-search-form button {
  min-width: 112px;
  min-height: 52px;
  padding-inline: 20px !important;
  border: 0 !important;
  border-left: 1px solid var(--a2t-control-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--a2t-silver) !important;
  font: 500 9px/1 var(--a2t-mono) !important;
  letter-spacing: .09em;
  text-transform: uppercase;
}

body.a2t-production-shell .a2t-search-form button:hover {
  border-left-color: var(--a2t-accent) !important;
  background: var(--a2t-accent) !important;
  color: var(--a2t-ink) !important;
}

body.a2t-production-shell .a2t-search-summary {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 18px;
  border-bottom: 1px solid var(--a2t-line);
  color: var(--a2t-copy-soft);
  font: 500 8px/1.45 var(--a2t-mono);
  letter-spacing: .09em;
  text-transform: uppercase;
}

body.a2t-production-shell .a2t-search-summary strong {
  color: var(--a2t-silver);
  font-weight: 500;
}

body.a2t-production-shell .a2t-search-sections {
  border-bottom: 1px solid var(--a2t-line);
}

body.a2t-production-shell .a2t-search-section {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  border-bottom: 1px solid var(--a2t-line);
}

body.a2t-production-shell .a2t-search-section:last-child {
  border-bottom: 0;
}

body.a2t-production-shell .a2t-search-section-head {
  padding: 30px 28px 32px 0;
  border-right: 1px solid var(--a2t-line);
}

body.a2t-production-shell .a2t-search-section-head span {
  display: block;
  color: var(--a2t-accent);
  font: 500 8px/1.2 var(--a2t-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

body.a2t-production-shell .a2t-search-section-head h2 {
  margin: 18px 0 0;
  color: var(--a2t-white) !important;
  font: 600 25px/1.08 var(--a2t-sans) !important;
  letter-spacing: -.035em;
}

body.a2t-production-shell .a2t-search-section-head small {
  display: block;
  margin-top: 12px;
  color: var(--a2t-copy-soft);
  font: 500 8px/1.4 var(--a2t-mono);
}

body.a2t-production-shell .a2t-search-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.a2t-production-shell .a2t-search-result {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto 18px;
  gap: 20px;
  align-items: center;
  min-height: 94px;
  padding: 20px 8px 20px 28px;
  border-bottom: 1px solid var(--a2t-line-soft);
  color: inherit !important;
  text-decoration: none !important;
  transition: background var(--a2t-transition), padding-left var(--a2t-transition);
}

body.a2t-production-shell .a2t-search-result:last-child { border-bottom: 0; }
body.a2t-production-shell .a2t-search-result:hover {
  padding-left: 36px;
  background: linear-gradient(90deg, rgba(200, 243, 79, .055), transparent 72%);
}

body.a2t-production-shell .a2t-search-result-index {
  color: var(--a2t-accent);
  font: 500 9px/1 var(--a2t-mono);
}

body.a2t-production-shell .a2t-search-result-copy { min-width: 0; }

body.a2t-production-shell .a2t-search-result-copy small {
  display: block;
  margin-bottom: 7px;
  color: #75817a;
  font: 500 8px/1.3 var(--a2t-mono);
  letter-spacing: .09em;
  text-transform: uppercase;
}

body.a2t-production-shell .a2t-search-result-copy strong {
  display: block;
  overflow: hidden;
  color: #dce2dd;
  font: 600 18px/1.2 var(--a2t-sans);
  letter-spacing: -.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.a2t-production-shell .a2t-search-result-copy p {
  display: -webkit-box;
  max-width: 690px;
  margin: 8px 0 0;
  overflow: hidden;
  color: var(--a2t-copy);
  font-size: 12px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.a2t-production-shell .a2t-search-result-meta {
  color: var(--a2t-copy-soft);
  font: 500 8px/1.4 var(--a2t-mono);
  text-align: right;
  text-transform: uppercase;
  white-space: nowrap;
}

body.a2t-production-shell .a2t-search-result > i {
  color: var(--a2t-accent);
  font-size: 11px;
}

body.a2t-production-shell .a2t-search-empty-section {
  min-height: 112px;
  display: grid;
  place-items: center start;
  padding: 28px;
  color: var(--a2t-copy-soft);
  font: 500 9px/1.6 var(--a2t-mono);
}

body.a2t-production-shell .a2t-search-empty {
  max-width: 800px;
  margin: 65px auto 0;
  padding: 58px 24px;
  border-top: 1px solid var(--a2t-accent);
  border-bottom: 1px solid var(--a2t-line);
  text-align: center;
}

body.a2t-production-shell .a2t-search-empty-mark {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 30px;
  border: 1px solid var(--a2t-control-line);
  color: var(--a2t-accent);
  font: 500 28px/1 var(--a2t-mono);
}

body.a2t-production-shell .a2t-search-empty h2 {
  margin: 0;
  color: var(--a2t-white) !important;
  font: 600 clamp(32px, 4.2vw, 54px)/.96 var(--a2t-sans) !important;
  letter-spacing: -.055em;
}

body.a2t-production-shell .a2t-search-empty p {
  max-width: 540px;
  margin: 22px auto 0;
  color: var(--a2t-copy);
}

body.a2t-production-shell .a2t-search-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding-top: 28px;
}

body.a2t-production-shell .a2t-search-pagination > span {
  color: var(--a2t-copy-soft);
  font: 500 8px/1.4 var(--a2t-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.a2t-production-shell .a2t-search-pagination nav {
  display: flex;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */

body.a2t-production-shell .a2t-legal-page {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--a2t-ink);
  color: var(--a2t-silver);
}

body.a2t-production-shell .a2t-legal-hero {
  width: min(var(--a2t-container), calc(100% - (var(--a2t-gutter) * 2)));
  margin: 0 auto !important;
  padding: clamp(58px, 7vw, 96px) 0 clamp(54px, 7vw, 90px) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--a2t-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.a2t-production-shell .a2t-legal-hero h1 {
  max-width: 950px;
  margin: 0 !important;
  color: var(--a2t-white) !important;
  font: 600 clamp(52px, 7vw, 96px)/.9 var(--a2t-sans) !important;
  letter-spacing: -.067em !important;
}

body.a2t-production-shell .a2t-legal-hero > p {
  max-width: 760px !important;
  margin: 30px 0 0 !important;
  color: var(--a2t-copy) !important;
  font-size: 16px !important;
  line-height: 1.75 !important;
}

body.a2t-production-shell .a2t-legal-date {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px !important;
}

body.a2t-production-shell .a2t-legal-pill {
  display: inline-flex;
  align-items: center;
  min-height: 31px !important;
  padding: 0 11px !important;
  border: 1px solid var(--a2t-control-line) !important;
  border-radius: 1px !important;
  background: rgba(17, 24, 23, .48) !important;
  color: #8f9b95 !important;
  font: 500 8px/1 var(--a2t-mono) !important;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.a2t-production-shell .a2t-legal-layout {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: minmax(230px, calc((100vw - var(--a2t-container))/2 + 230px)) minmax(0, 1fr) !important;
  gap: 0 !important;
  align-items: stretch !important;
  background: var(--a2t-paper);
  color: #151a19;
}

body.a2t-production-shell .a2t-legal-toc {
  position: sticky !important;
  top: var(--a2t-header-height) !important;
  align-self: start;
  height: calc(100vh - var(--a2t-header-height));
  overflow: auto;
  padding: 48px 30px 48px max(var(--a2t-gutter), calc((100vw - var(--a2t-container))/2)) !important;
  border: 0 !important;
  border-right: 1px solid #c9c9c1 !important;
  border-radius: 0 !important;
  background: #e9e7de !important;
  box-shadow: none !important;
  scrollbar-width: thin;
}

body.a2t-production-shell .a2t-legal-toc strong {
  display: block;
  margin: 0 0 21px !important;
  color: #173d34 !important;
  font: 500 8px/1.3 var(--a2t-mono) !important;
  letter-spacing: .11em;
  text-transform: uppercase;
}

body.a2t-production-shell .a2t-legal-toc a {
  position: relative;
  display: block;
  padding: 8px 0 8px 16px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #6e746f !important;
  font: 500 9px/1.35 var(--a2t-mono) !important;
  text-decoration: none !important;
  transition: color var(--a2t-transition), transform var(--a2t-transition);
}

body.a2t-production-shell .a2t-legal-toc a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 5px;
  height: 1px;
  background: #9da39e;
  transform: translateY(-50%);
  transition: width var(--a2t-transition), background var(--a2t-transition);
}

body.a2t-production-shell .a2t-legal-toc a:hover,
body.a2t-production-shell .a2t-legal-toc a.is-active {
  color: #173d34 !important;
  transform: translateX(2px);
}

body.a2t-production-shell .a2t-legal-toc a:hover::before,
body.a2t-production-shell .a2t-legal-toc a.is-active::before {
  width: 9px;
  background: #173d34;
}

body.a2t-production-shell .a2t-legal-card {
  width: min(860px, calc(100% - 80px));
  margin: 0 !important;
  padding: clamp(50px, 6vw, 86px) clamp(40px, 6vw, 84px) clamp(78px, 9vw, 124px) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--a2t-paper) !important;
  color: #1f2623 !important;
  box-shadow: none !important;
}

body.a2t-production-shell .a2t-legal-card section {
  padding: 38px 0 !important;
  border-bottom: 1px solid #d2d2ca !important;
  scroll-margin-top: calc(var(--a2t-header-height) + 28px) !important;
}

body.a2t-production-shell .a2t-legal-card section:first-child { padding-top: 0 !important; }
body.a2t-production-shell .a2t-legal-card section:last-child { padding-bottom: 0 !important; border-bottom: 0 !important; }

body.a2t-production-shell .a2t-legal-card h2 {
  margin: 0 0 16px !important;
  color: #121716 !important;
  font: 600 clamp(26px, 3vw, 37px)/1.08 var(--a2t-sans) !important;
  letter-spacing: -.045em !important;
}

body.a2t-production-shell .a2t-legal-card h3 {
  margin: 27px 0 11px !important;
  color: #18352d !important;
  font: 600 19px/1.25 var(--a2t-sans) !important;
  letter-spacing: -.025em;
}

body.a2t-production-shell .a2t-legal-card :is(p, li) {
  color: #4e5853 !important;
  font-size: 15px !important;
  line-height: 1.82 !important;
}

body.a2t-production-shell .a2t-legal-card p { margin: 0 0 16px; }
body.a2t-production-shell .a2t-legal-card ul,
body.a2t-production-shell .a2t-legal-card ol { margin: 14px 0 18px; padding-left: 1.35rem; }
body.a2t-production-shell .a2t-legal-card li + li { margin-top: 7px; }
body.a2t-production-shell .a2t-legal-card a { color: #173d34 !important; text-decoration-color: rgba(23, 61, 52, .38); }
body.a2t-production-shell .a2t-legal-card a:hover { text-decoration-color: #173d34; }

body.a2t-production-shell .a2t-legal-note {
  margin: 25px 0 !important;
  padding: 19px 21px !important;
  border: 0 !important;
  border-left: 2px solid #58765c !important;
  border-radius: 0 !important;
  background: #e4e7dc !important;
  color: #35433c !important;
  font-size: 14px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Error + system/status pages
   -------------------------------------------------------------------------- */

body.a2t-production-shell .a2t-system-page,
body.a2t-production-shell .a2t-error-page,
body.a2t-production-shell .a2t-report-verify {
  width: min(var(--a2t-container), calc(100% - (var(--a2t-gutter) * 2))) !important;
  max-width: var(--a2t-container) !important;
  min-height: min(720px, calc(100svh - var(--a2t-header-height)));
  margin: 0 auto !important;
  padding: clamp(58px, 8vw, 110px) 0 clamp(82px, 10vw, 140px) !important;
}

body.a2t-production-shell .a2t-system-frame,
body.a2t-production-shell .a2t-error-card,
body.a2t-production-shell .a2t-report-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, .38fr) minmax(0, 1fr);
  max-width: none !important;
  min-height: 460px;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border: 0 !important;
  border-top: 1px solid var(--a2t-accent) !important;
  border-bottom: 1px solid var(--a2t-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: left !important;
}

body.a2t-production-shell .a2t-system-code,
body.a2t-production-shell .a2t-error-code,
body.a2t-production-shell .a2t-report-mark {
  display: flex !important;
  align-items: flex-start;
  justify-content: flex-start;
  margin: 0 !important;
  padding: 54px 34px 54px 0 !important;
  border-right: 1px solid var(--a2t-line);
  color: var(--a2t-accent) !important;
  font: 500 clamp(58px, 8vw, 112px)/.8 var(--a2t-mono) !important;
  letter-spacing: -.06em !important;
}

body.a2t-production-shell .a2t-system-content,
body.a2t-production-shell .a2t-error-content,
body.a2t-production-shell .a2t-report-content {
  align-self: center;
  padding: clamp(54px, 7vw, 88px) clamp(34px, 7vw, 92px) !important;
}

body.a2t-production-shell .a2t-system-content h1,
body.a2t-production-shell .a2t-error-content h1,
body.a2t-production-shell .a2t-report-content h1 {
  max-width: 760px;
  margin: 0 !important;
  color: var(--a2t-white) !important;
  font: 600 clamp(42px, 5.7vw, 78px)/.92 var(--a2t-sans) !important;
  letter-spacing: -.06em !important;
}

body.a2t-production-shell .a2t-system-content > p,
body.a2t-production-shell .a2t-error-content > p,
body.a2t-production-shell .a2t-report-content > p {
  max-width: 620px;
  margin: 25px 0 0 !important;
  color: var(--a2t-copy) !important;
  font-size: 15px !important;
  line-height: 1.75 !important;
}

body.a2t-production-shell .a2t-system-actions,
body.a2t-production-shell .a2t-error-actions,
body.a2t-production-shell .a2t-report-actions {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px !important;
  margin-top: 34px !important;
}

body.a2t-production-shell .a2t-error-actions :is(.a2t-btn-dark, .a2t-btn),
body.a2t-production-shell .a2t-system-actions :is(.a2t-btn-dark, .a2t-btn) {
  min-height: 46px;
  padding-inline: 20px;
  white-space: nowrap;
}

body.a2t-production-shell .a2t-system-note,
body.a2t-production-shell .a2t-error-help {
  margin: 34px 0 0 !important;
  padding-top: 20px;
  border-top: 1px solid var(--a2t-line-soft);
  color: #74817a !important;
  font: 500 8px/1.6 var(--a2t-mono) !important;
  letter-spacing: .04em;
}

body.a2t-production-shell .a2t-system-note a,
body.a2t-production-shell .a2t-error-help a { color: var(--a2t-accent) !important; }

body.a2t-production-shell .a2t-error-status,
body.a2t-production-shell .a2t-error-icon { display: none !important; }

/* Work report verification */
body.a2t-production-shell .a2t-report-card { min-height: 390px; }
body.a2t-production-shell .a2t-report-content { align-self: stretch; display: flex; flex-direction: column; justify-content: center; }

body.a2t-production-shell .a2t-report-valid,
body.a2t-production-shell .a2t-report-invalid {
  display: inline-flex;
  align-self: flex-start;
  margin: 25px 0 0 !important;
  padding: 8px 10px;
  border: 1px solid rgba(169, 216, 109, .32);
  color: var(--a2t-success) !important;
  background: rgba(169, 216, 109, .055);
  font: 500 8px/1.25 var(--a2t-mono) !important;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.a2t-production-shell .a2t-report-invalid {
  border-color: rgba(255, 111, 102, .32);
  color: var(--a2t-danger) !important;
  background: rgba(255, 111, 102, .055);
}

body.a2t-production-shell .a2t-report-facts {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 !important;
  margin-top: 34px !important;
  border-top: 1px solid var(--a2t-line);
  border-left: 1px solid var(--a2t-line);
}

body.a2t-production-shell .a2t-report-fact {
  min-width: 0;
  padding: 18px !important;
  border: 0 !important;
  border-right: 1px solid var(--a2t-line) !important;
  border-bottom: 1px solid var(--a2t-line) !important;
  border-radius: 0 !important;
  background: rgba(17, 24, 23, .42) !important;
}

body.a2t-production-shell .a2t-report-fact span {
  display: block;
  margin-bottom: 7px;
  color: #74817a !important;
  font: 500 8px/1.35 var(--a2t-mono) !important;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.a2t-production-shell .a2t-report-fact strong,
body.a2t-production-shell .a2t-report-fact a {
  color: var(--a2t-silver) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

body.a2t-production-shell .a2t-report-fact a:hover { color: var(--a2t-accent) !important; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 980px) {
  body.a2t-production-shell .a2t-search-hero { grid-template-columns: 1fr; gap: 34px; }
  body.a2t-production-shell .a2t-search-hero aside { max-width: 620px; }
  body.a2t-production-shell .a2t-search-section { grid-template-columns: 170px minmax(0, 1fr); }

  body.a2t-production-shell .a2t-legal-layout { grid-template-columns: 210px minmax(0, 1fr) !important; }
  body.a2t-production-shell .a2t-legal-toc { padding-left: 24px !important; padding-right: 22px !important; }
  body.a2t-production-shell .a2t-legal-card { width: 100%; }
}

@media (max-width: 760px) {
  body.a2t-production-shell .a2t-global-search,
  body.a2t-production-shell .a2t-utility-page,
  body.a2t-production-shell .a2t-system-page,
  body.a2t-production-shell .a2t-error-page,
  body.a2t-production-shell .a2t-report-verify {
    width: min(100% - 32px, var(--a2t-container)) !important;
  }

  body.a2t-production-shell .a2t-search-section { grid-template-columns: 1fr; }
  body.a2t-production-shell .a2t-search-section-head { padding: 25px 0 19px; border-right: 0; border-bottom: 1px solid var(--a2t-line-soft); }
  body.a2t-production-shell .a2t-search-section-head h2 { margin-top: 11px; font-size: 22px !important; }
  body.a2t-production-shell .a2t-search-result { grid-template-columns: 30px minmax(0, 1fr) 15px; gap: 12px; padding-left: 0; }
  body.a2t-production-shell .a2t-search-result:hover { padding-left: 5px; }
  body.a2t-production-shell .a2t-search-result-meta { display: none; }

  body.a2t-production-shell .a2t-legal-hero { width: calc(100% - 32px); }
  body.a2t-production-shell .a2t-legal-layout { display: block !important; }
  body.a2t-production-shell .a2t-legal-toc { display: none !important; }
  body.a2t-production-shell .a2t-legal-card { width: 100%; padding-inline: 22px !important; }

  body.a2t-production-shell .a2t-system-frame,
  body.a2t-production-shell .a2t-error-card,
  body.a2t-production-shell .a2t-report-card { grid-template-columns: 1fr; min-height: 0; }

  body.a2t-production-shell .a2t-system-code,
  body.a2t-production-shell .a2t-error-code,
  body.a2t-production-shell .a2t-report-mark {
    padding: 34px 0 28px !important;
    border-right: 0;
    border-bottom: 1px solid var(--a2t-line);
  }

  body.a2t-production-shell .a2t-system-content,
  body.a2t-production-shell .a2t-error-content,
  body.a2t-production-shell .a2t-report-content { padding: 38px 0 48px !important; }

  body.a2t-production-shell .a2t-report-facts { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  body.a2t-production-shell .a2t-search-form { grid-template-columns: 1fr; }
  body.a2t-production-shell .a2t-search-form button { min-height: 46px; border-top: 1px solid var(--a2t-control-line) !important; border-left: 0 !important; }
  body.a2t-production-shell .a2t-search-summary { align-items: flex-start; flex-direction: column; gap: 5px; }
  body.a2t-production-shell .a2t-search-pagination { align-items: stretch; flex-direction: column; }
  body.a2t-production-shell .a2t-search-pagination nav { display: grid; grid-template-columns: 1fr 1fr; }
  body.a2t-production-shell .a2t-search-pagination nav a { width: 100%; }
  body.a2t-production-shell .a2t-system-actions,
  body.a2t-production-shell .a2t-error-actions,
  body.a2t-production-shell .a2t-report-actions { display: grid !important; grid-template-columns: 1fr; }
  body.a2t-production-shell .a2t-system-actions > *,
  body.a2t-production-shell .a2t-error-actions > *,
  body.a2t-production-shell .a2t-report-actions > * { width: 100%; }
}

/* ========================================================================== 
   Upgrade 93 — utility + legal small-device production pass
   Search, legal reading, system/error states and 320px edge-case hardening.
   Desktop rules above remain canonical.
   ========================================================================== */

@media (max-width: 760px) {
  body.a2t-production-shell .a2t-global-search,
  body.a2t-production-shell .a2t-utility-page,
  body.a2t-production-shell .a2t-system-page,
  body.a2t-production-shell .a2t-error-page,
  body.a2t-production-shell .a2t-report-verify {
    width: min(100% - (var(--a2t-gutter) * 2), var(--a2t-container)) !important;
  }

  /* Search is an editorial sequence on phones, not a compressed two-column page. */
  body.a2t-production-shell .a2t-global-search {
    padding-top: clamp(34px, 8vw, 54px) !important;
    padding-bottom: max(72px, calc(52px + var(--a2t-safe-bottom))) !important;
  }

  body.a2t-production-shell .a2t-search-hero {
    gap: 26px !important;
    padding-bottom: 34px !important;
  }

  body.a2t-production-shell .a2t-search-hero h1 {
    max-width: 13ch;
    font-size: clamp(42px, 13vw, 66px) !important;
    line-height: .94 !important;
    letter-spacing: -.058em !important;
    overflow-wrap: anywhere;
  }

  body.a2t-production-shell .a2t-search-intro {
    max-width: 40rem;
    margin-bottom: 18px !important;
    font-size: 15px !important;
    line-height: 1.65 !important;
  }

  body.a2t-production-shell .a2t-search-form {
    min-height: var(--a2t-touch-target);
  }

  body.a2t-production-shell .a2t-search-form input[type="search"] {
    height: 52px !important;
    min-height: 52px !important;
    font-size: 16px !important;
  }

  body.a2t-production-shell .a2t-search-form button {
    min-height: 52px !important;
  }

  body.a2t-production-shell .a2t-search-summary {
    gap: 7px !important;
    padding: 16px 0 !important;
    align-items: flex-start !important;
    flex-direction: column !important;
  }

  body.a2t-production-shell .a2t-search-summary span {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  body.a2t-production-shell .a2t-search-section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 6px 16px;
    padding: 24px 0 18px !important;
  }

  body.a2t-production-shell .a2t-search-section-head > span {
    grid-column: 1 / -1;
  }

  body.a2t-production-shell .a2t-search-section-head h2 {
    margin: 4px 0 0 !important;
    font-size: clamp(22px, 7vw, 28px) !important;
  }

  body.a2t-production-shell .a2t-search-section-head small {
    margin: 0 !important;
    padding-bottom: 2px;
    text-align: right;
  }

  body.a2t-production-shell .a2t-search-result {
    grid-template-columns: 28px minmax(0, 1fr) 18px !important;
    gap: 10px !important;
    min-height: 0 !important;
    padding: 18px 0 !important;
    transition: background var(--a2t-transition) !important;
  }

  body.a2t-production-shell .a2t-search-result:hover,
  body.a2t-production-shell .a2t-search-result:focus-visible {
    padding-left: 0 !important;
  }

  body.a2t-production-shell .a2t-search-result-copy strong {
    overflow: visible;
    display: -webkit-box;
    font-size: 17px !important;
    line-height: 1.25 !important;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  body.a2t-production-shell .a2t-search-result-copy p {
    margin-top: 7px !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
    -webkit-line-clamp: 3;
  }

  body.a2t-production-shell .a2t-search-result-meta {
    display: block !important;
    grid-column: 2;
    grid-row: 3;
    margin-top: 2px;
    text-align: left !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  body.a2t-production-shell .a2t-search-result > i {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
  }

  body.a2t-production-shell .a2t-search-empty {
    margin-top: 38px !important;
    padding: 40px 0 !important;
  }

  body.a2t-production-shell .a2t-search-empty-mark {
    width: 58px;
    height: 58px;
    margin-bottom: 22px;
    font-size: 22px;
  }

  body.a2t-production-shell .a2t-search-empty h2 {
    font-size: clamp(30px, 9vw, 42px) !important;
  }

  body.a2t-production-shell .a2t-search-empty p {
    margin-top: 16px !important;
    font-size: 14px;
    line-height: 1.7;
  }

  body.a2t-production-shell .a2t-search-pagination {
    align-items: stretch !important;
    flex-direction: column !important;
    gap: 14px !important;
    padding-top: 22px !important;
  }

  body.a2t-production-shell .a2t-search-pagination nav {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.a2t-production-shell .a2t-search-pagination nav a {
    width: 100%;
    min-height: var(--a2t-touch-target);
    justify-content: center;
  }

  /* Legal pages retain navigation on phones through a compact collapsible
     section navigator instead of simply hiding the desktop TOC. */
  body.a2t-production-shell .a2t-legal-hero {
    width: calc(100% - (var(--a2t-gutter) * 2)) !important;
    padding: 42px 0 38px !important;
  }

  body.a2t-production-shell .a2t-legal-hero h1 {
    max-width: 12ch;
    font-size: clamp(42px, 13vw, 64px) !important;
    line-height: .94 !important;
    letter-spacing: -.058em !important;
    overflow-wrap: anywhere;
  }

  body.a2t-production-shell .a2t-legal-hero > p {
    margin-top: 20px !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
  }

  body.a2t-production-shell .a2t-legal-date {
    display: grid !important;
    grid-template-columns: 1fr;
    margin-top: 22px !important;
  }

  body.a2t-production-shell .a2t-legal-pill {
    width: 100%;
    min-height: 38px !important;
    justify-content: flex-start;
    line-height: 1.45 !important;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body.a2t-production-shell .a2t-legal-layout {
    display: block !important;
  }

  body.a2t-production-shell .a2t-legal-mobile-toc-toggle {
    position: sticky;
    top: var(--a2t-header-height);
    z-index: 45;
    width: 100%;
    min-height: 52px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px max(var(--a2t-gutter), var(--a2t-safe-right)) 10px max(var(--a2t-gutter), var(--a2t-safe-left));
    border: 0 !important;
    border-bottom: 1px solid #c9c9c1 !important;
    border-radius: 0 !important;
    background: rgba(233, 231, 222, .98) !important;
    color: #173d34 !important;
    text-align: left;
    box-shadow: none !important;
    backdrop-filter: blur(12px);
  }

  body.a2t-production-shell .a2t-legal-mobile-toc-toggle > span {
    min-width: 0;
    display: grid;
    gap: 2px;
  }

  body.a2t-production-shell .a2t-legal-mobile-toc-toggle small {
    color: #737b76;
    font: 500 7px/1.2 var(--a2t-mono);
    letter-spacing: .11em;
    text-transform: uppercase;
  }

  body.a2t-production-shell .a2t-legal-mobile-toc-toggle strong {
    overflow: hidden;
    color: #173d34;
    font: 600 12px/1.35 var(--a2t-sans);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.a2t-production-shell .a2t-legal-mobile-toc-toggle i {
    font-style: normal;
    font: 500 16px/1 var(--a2t-mono);
    transition: transform var(--a2t-transition);
  }

  body.a2t-production-shell .a2t-legal-mobile-toc-toggle[aria-expanded="true"] i {
    transform: rotate(45deg);
  }

  body.a2t-production-shell .a2t-legal-toc {
    position: static !important;
    display: none !important;
    width: 100% !important;
    height: auto !important;
    max-height: min(52dvh, 430px);
    overflow-y: auto !important;
    padding: 12px max(var(--a2t-gutter), var(--a2t-safe-right)) 18px max(var(--a2t-gutter), var(--a2t-safe-left)) !important;
    border: 0 !important;
    border-bottom: 1px solid #c9c9c1 !important;
    background: #e9e7de !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  body.a2t-production-shell .a2t-legal-toc.is-mobile-open {
    display: block !important;
  }

  body.a2t-production-shell .a2t-legal-toc strong {
    display: none !important;
  }

  body.a2t-production-shell .a2t-legal-toc a {
    min-height: 44px;
    display: flex !important;
    align-items: center;
    padding: 9px 0 9px 18px !important;
    font-size: 10px !important;
  }

  body.a2t-production-shell .a2t-legal-card {
    width: 100% !important;
    padding: 42px max(var(--a2t-gutter), var(--a2t-safe-right)) max(72px, calc(48px + var(--a2t-safe-bottom))) max(var(--a2t-gutter), var(--a2t-safe-left)) !important;
  }

  body.a2t-production-shell .a2t-legal-card section {
    padding: 30px 0 !important;
    scroll-margin-top: calc(var(--a2t-header-height) + 68px) !important;
  }

  body.a2t-production-shell .a2t-legal-card h2 {
    margin-bottom: 14px !important;
    font-size: clamp(25px, 7vw, 32px) !important;
    line-height: 1.1 !important;
    overflow-wrap: anywhere;
  }

  body.a2t-production-shell .a2t-legal-card h3 {
    margin-top: 24px !important;
    font-size: 18px !important;
  }

  body.a2t-production-shell .a2t-legal-card :is(p, li) {
    font-size: 15px !important;
    line-height: 1.78 !important;
    overflow-wrap: anywhere;
  }

  body.a2t-production-shell .a2t-legal-card :is(a, code, pre) {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  body.a2t-production-shell .a2t-legal-card :is(table, pre) {
    max-width: 100%;
  }

  /* System / status / error states become one deliberate phone record. */
  body.a2t-production-shell .a2t-system-page,
  body.a2t-production-shell .a2t-error-page,
  body.a2t-production-shell .a2t-report-verify {
    min-height: calc(var(--a2t-mobile-viewport-height) - var(--a2t-header-height));
    padding-top: 34px !important;
    padding-bottom: max(68px, calc(44px + var(--a2t-safe-bottom))) !important;
  }

  body.a2t-production-shell .a2t-system-code,
  body.a2t-production-shell .a2t-error-code,
  body.a2t-production-shell .a2t-report-mark {
    padding: 28px 0 24px !important;
    font-size: clamp(52px, 18vw, 82px) !important;
  }

  body.a2t-production-shell .a2t-system-content,
  body.a2t-production-shell .a2t-error-content,
  body.a2t-production-shell .a2t-report-content {
    padding: 34px 0 42px !important;
  }

  body.a2t-production-shell .a2t-system-content h1,
  body.a2t-production-shell .a2t-error-content h1,
  body.a2t-production-shell .a2t-report-content h1 {
    font-size: clamp(38px, 11vw, 56px) !important;
    line-height: .96 !important;
    overflow-wrap: anywhere;
  }

  body.a2t-production-shell .a2t-system-content > p,
  body.a2t-production-shell .a2t-error-content > p,
  body.a2t-production-shell .a2t-report-content > p {
    margin-top: 18px !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
  }

  body.a2t-production-shell .a2t-system-note,
  body.a2t-production-shell .a2t-error-help {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 430px) {
  body.a2t-production-shell .a2t-search-form {
    grid-template-columns: 1fr !important;
  }

  body.a2t-production-shell .a2t-search-form button {
    width: 100%;
    border-top: 1px solid var(--a2t-control-line) !important;
    border-left: 0 !important;
  }

  body.a2t-production-shell .a2t-search-section-head {
    grid-template-columns: 1fr;
  }

  body.a2t-production-shell .a2t-search-section-head small {
    text-align: left;
  }

  body.a2t-production-shell .a2t-search-pagination nav {
    grid-template-columns: 1fr !important;
  }

  body.a2t-production-shell .a2t-legal-card {
    padding-top: 34px !important;
  }

  body.a2t-production-shell .a2t-legal-card section {
    padding: 26px 0 !important;
  }

  body.a2t-production-shell .a2t-system-actions,
  body.a2t-production-shell .a2t-error-actions,
  body.a2t-production-shell .a2t-report-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  body.a2t-production-shell .a2t-system-actions > *,
  body.a2t-production-shell .a2t-error-actions > *,
  body.a2t-production-shell .a2t-report-actions > * {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 350px) {
  body.a2t-production-shell .a2t-search-result {
    grid-template-columns: 24px minmax(0, 1fr) 14px !important;
    gap: 8px !important;
  }

  body.a2t-production-shell .a2t-search-result-copy p {
    -webkit-line-clamp: 2;
  }

  body.a2t-production-shell .a2t-legal-hero h1,
  body.a2t-production-shell .a2t-search-hero h1 {
    font-size: 40px !important;
  }
}

@media (hover: none) and (pointer: coarse) {
  body.a2t-production-shell .a2t-search-result:hover,
  body.a2t-production-shell .a2t-legal-toc a:hover {
    transform: none !important;
  }
}
