.page-heading .tool-badge { width: 3rem; height: 3rem; }
.page-heading .tool-badge svg { width: 1.6rem; height: 1.6rem; }
@media (max-width: 530px) {
  .page-heading .tool-badge { width: 2.45rem; height: 2.45rem; }
  .page-heading .tool-badge svg { width: 1.35rem; height: 1.35rem; }
}
.air-interior .field-doc .tool-layout.tools-detail-content { display: block; max-width: 54rem; }
.tools-detail-content .reader-calculator input { min-height: 2.75rem; }
.tools-detail-content .reader-calculator { margin-top: 0; }

.phrasebook .search-field { width: 100%; }
.phrasebook-status { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.phrasebook-status [data-copy-status] { color: var(--rd-accent); font-size: .9rem; }
.phrase-group h2 { font-size: 1.3rem; margin: 1.25rem 0 .5rem; }
.phrase-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.phrase-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .8rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.phrase-list strong { font-size: 1.18rem; }
.phrase-list p { color: var(--muted); font-size: .92rem; }
.phrase-list .button { gap: .35rem; padding-inline: .7rem; }
.phrase-list .button .icon { width: 1rem; height: 1rem; }

.holiday-nav { margin: 1.4rem 0; }
.holiday-year { margin-top: 1.4rem; scroll-margin-top: 5rem; }
.holiday-year h2 { margin-bottom: .6rem; font-size: 1.35rem; }
.holiday-year > p { margin: .6rem 0 0; }
.holiday-table { color: var(--ink); border: 1px solid var(--line); border-radius: .7rem; overflow: hidden; }
.holiday-table table { width: 100%; border-collapse: collapse; font-size: .9rem; line-height: 1.4; }
.holiday-table th, .holiday-table td { padding: .6rem .75rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.holiday-table th { font-weight: 650; }
.holiday-table thead { background: var(--surface); }
.holiday-table td { color: var(--muted); }
.holiday-table tbody tr:last-child > * { border-bottom: 0; }
.holiday-table time { white-space: nowrap; }
.holiday-match:empty { display: none; }
.holiday-match li + li { margin-top: .35rem; }

@media (max-width: 480px) {
  .holiday-table table { font-size: .8rem; }
  .holiday-table th, .holiday-table td { padding: .48rem; }
}

.phrase-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.phrase-actions [aria-pressed="true"] { color: var(--rd-accent); background: var(--rd-accent-soft); border-color: var(--rd-accent); }
.phrase-card {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: clamp(1rem, 5vw, 4rem);
  overflow: auto;
  color: var(--ink);
  background: var(--card);
  border: 0;
}
.phrase-card[open] { display: grid; place-items: center; }
.phrase-card-content { display: grid; width: min(100%, 54rem); gap: 1rem; text-align: center; }
.phrase-card [data-card-chinese] { font-size: clamp(2.25rem, 8vw, 6rem); font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.phrase-card [data-card-pinyin] { font-size: clamp(1.05rem, 4vw, 1.8rem); color: var(--muted); }
.phrase-card [data-card-english] { font-size: clamp(1rem, 4vw, 1.4rem); }
.phrase-card .phrase-actions { justify-content: center; }
.phrase-card [data-card-status] { min-height: 1.4em; color: var(--rd-accent); }
.holiday-year-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem .8rem; margin-bottom: .6rem; }
.holiday-year-heading h2 { margin-bottom: 0; }

@media (max-width: 900px) {
  .phrase-list li:has(.phrase-actions:not([hidden])) { grid-template-columns: minmax(0, 1fr); }
}

.checklist-purpose { max-width: 21rem; margin-bottom: .75rem; }
.visa-report { display: grid; gap: .8rem; }
.visa-report .tool-result + .tool-result { margin-top: 0; }
.tax-result-values { margin: .5rem 0 0; }
.tax-result-values > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .5rem;
  padding: .45rem 0;
  border-top: 1px solid var(--line);
}
.tax-result-values dd { margin: 0; color: var(--ink); font-weight: 680; }
@media print {
  body:has(.visa-report:not([hidden])) :is(.topbar, .site-footer, .field-rail, .field-mobile-bar, .page-intro, [data-tool="transit"], .visa-actions, .tool-aside) { display: none; }
  body:has(.visa-report:not([hidden])) .field-doc { display: block; }
}
