/* 항공화물 AWB 추적 바로가기 */
.at-main {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 72px;
}
.at-hero {
  padding: 34px 34px 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}
.at-kicker {
  margin: 0 0 8px;
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.at-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.25;
}
.at-lead {
  max-width: 760px;
  margin: 0 0 24px;
  color: var(--body);
  line-height: 1.7;
}
.at-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}
.at-input-row {
  display: flex;
  gap: 10px;
  max-width: 560px;
}
.at-input-row input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border: 1.5px solid #b9cbe0;
  border-radius: 12px;
  font: inherit;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.at-input-row input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}
.at-input-row button,
.at-go {
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.at-input-row button:hover,
.at-go:hover {
  background: var(--blue-deep);
}
.at-help {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.at-result {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin-top: 22px;
}
.at-result p {
  margin: 0;
  line-height: 1.6;
}
.at-ok,
.at-bad,
.at-warn {
  padding: 12px 14px;
  border-radius: 10px;
}
.at-ok { background: #e9f7ef; color: #1d6b3b; }
.at-bad { background: #fdecec; color: #a3261f; }
.at-warn { background: #fff6e0; color: #7a5400; }
.at-airline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f9fbfe;
}
.at-airline-name {
  font-size: 18px;
  font-weight: 800;
}
.at-airline-name small,
.at-table td small {
  margin-left: 4px;
  color: var(--muted);
  font-size: 0.8em;
  font-weight: 600;
}
.at-airline-meta,
.at-small {
  color: var(--muted);
  font-size: 13px;
}
.at-small { flex-basis: 100%; }
.at-go {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  text-decoration: none;
}
.at-section {
  margin-top: 40px;
}
.at-section h2 {
  margin: 0;
  font-size: 22px;
}
.at-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 12px;
}
.at-section-head input {
  width: min(360px, 100%);
  padding: 10px 14px;
  border: 1px solid #b9cbe0;
  border-radius: 10px;
  font: inherit;
}
.at-note,
.at-source {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}
.at-badge {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
}
.at-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}
.at-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14.5px;
}
.at-table th,
.at-table td {
  padding: 11px 14px;
  border-bottom: 1px solid #e6edf4;
  text-align: left;
  vertical-align: middle;
}
.at-table th {
  background: #eef4fb;
  color: var(--ink);
  font-size: 13px;
}
.at-table tbody tr:last-child td {
  border-bottom: 0;
}
.at-table a {
  color: var(--blue-deep);
  font-weight: 700;
}
.at-prefix {
  padding: 3px 9px;
  border: 1px solid #b9cbe0;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.at-prefix:hover {
  border-color: var(--blue);
  color: var(--blue-deep);
}
.at-muted {
  color: var(--muted);
  font-size: 13px;
}
.at-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.at-guide-grid article {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}
.at-guide-grid h3,
.at-subhead {
  margin: 0 0 10px;
  font-size: 17px;
}
.at-subhead {
  margin-top: 30px;
}
.at-guide-grid p {
  margin: 0 0 10px;
  color: var(--body);
  line-height: 1.7;
  font-size: 14.5px;
}
.at-awb-sample {
  font-size: 26px !important;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.at-awb-sample span:first-child { color: var(--blue); }
.at-awb-sample span:last-child { color: #d4380d; }
.at-calc {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f3f7fb;
  font-variant-numeric: tabular-nums;
}
.at-codes td:first-child {
  white-space: nowrap;
}
@media (max-width: 860px) {
  .at-guide-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .at-main { padding-top: 22px; }
  .at-hero { padding: 24px 18px; }
  .at-input-row input { font-size: 18px; }
  .at-input-row button { padding: 0 16px; }
}

/* 검색 중심 목록 (2026-10-08) */
.at-search {
  position: relative;
  max-width: 620px;
}
.at-search input {
  width: 100%;
  padding: 15px 110px 15px 18px;
  border: 1.5px solid #b9cbe0;
  border-radius: 12px;
  font: inherit;
  font-size: 18px;
}
.at-search input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}
.at-kbd {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  padding: 3px 8px;
  border: 1px solid #c9d6e4;
  border-bottom-width: 2px;
  border-radius: 6px;
  background: #f6f9fc;
  color: var(--muted);
  font: 700 12px/1.4 inherit;
  pointer-events: none;
}
.at-dir {
  min-width: 860px;
}
.at-dir td:nth-child(2) {
  white-space: nowrap;
}
.at-prefix {
  display: inline-block;
  text-decoration: none;
}
.at-url a {
  font-weight: 600 !important;
  font-size: 13px;
  word-break: break-all;
}
.at-remark {
  min-width: 180px;
  color: var(--body);
  font-size: 13px;
  line-height: 1.55;
}
.at-flag {
  display: inline-block;
  margin-right: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #fff1e6;
  color: #a4430a;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
}
.at-none td:first-child {
  color: var(--body);
}
@media (max-width: 560px) {
  .at-search input { font-size: 16px; padding-right: 18px; }
  .at-kbd { display: none; }
}
.at-dir th { white-space: nowrap; }

/* 링크 점검 표시 */
.at-flag-bad {
  background: #fdecec;
  color: #a3261f;
}
.at-broken td:first-child {
  color: #a3261f;
}
.at-broken .at-url a {
  color: #a3261f !important;
  text-decoration: line-through;
}
.at-chip {
  display: inline-block;
  margin-top: 3px;
  padding: 1px 7px;
  border-radius: 6px;
  background: #eef2f6;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
}
.at-chip-bad {
  background: #fff4e5;
  color: #8a4b00;
}
.at-admin {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px dashed #b9cbe0;
  border-radius: 12px;
  background: #f7fafd;
  font-size: 13.5px;
}
.at-admin button {
  padding: 7px 14px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.at-admin button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.at-admin label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.at-admin-msg {
  flex-basis: 100%;
  color: var(--blue-deep);
  font-weight: 700;
}
.at-filter-all { font-weight: 800; }
.at-lead { max-width: none; }

/* Ctrl+F 강조 */
.at-kbd {
  border-color: #9cc3ea;
  background: var(--blue-soft);
  color: var(--blue-deep);
}
.at-search input:focus + .at-kbd {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}
.at-search-hit input {
  animation: at-hit 1.1s ease-out;
}
@keyframes at-hit {
  0% { border-color: var(--blue); box-shadow: 0 0 0 0 rgba(20, 118, 212, 0.55); background: #eef6ff; }
  35% { box-shadow: 0 0 0 10px rgba(20, 118, 212, 0.25); }
  100% { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); background: #fff; }
}

/* 표 칸 너비 고정: 검색 결과가 바뀌어도 칸이 움직이지 않게 */
.at-dir {
  table-layout: fixed;
}
.at-dir .c-name { width: 25%; }
.at-dir .c-iata { width: 6%; }
.at-dir .c-prefix { width: 8%; }
.at-dir .c-url { width: 31%; }
.at-dir .c-remark { width: 30%; }
.at-dir td {
  overflow-wrap: anywhere;
}
/* IATA·Prefix는 줄바꿈하지 않는다(모바일에서 180이 꺾이던 문제) */
.at-dir td:nth-child(2),
.at-dir td:nth-child(3) {
  overflow-wrap: normal;
  white-space: nowrap;
}
.at-dir .c-iata { min-width: 52px; }
.at-dir .c-prefix { min-width: 72px; }
@media (max-width: 760px) {
  .at-dir { min-width: 820px; }
  .at-dir .c-name { width: 200px; }
  .at-dir .c-iata { width: 56px; }
  .at-dir .c-prefix { width: 76px; }
  .at-dir .c-url { width: 260px; }
  .at-dir .c-remark { width: 228px; }
}

/* 참고 접기: AWB 번호 구조 · 추적 결과 상태 코드 */
.at-fold {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}
.at-fold summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
}
.at-fold summary::-webkit-details-marker { display: none; }
.at-fold summary h2 {
  margin: 0;
  font-size: 20px;
}
.at-fold summary::after {
  content: '';
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.15s;
}
.at-fold[open] summary::after {
  transform: rotate(-135deg);
}
.at-fold[open] summary {
  border-bottom: 1px solid #e6edf4;
}
.at-fold > .at-guide-grid,
.at-fold > .at-table-wrap,
.at-fold > .at-source {
  margin: 16px 20px;
}
.at-fold > .at-guide-grid { margin-top: 18px; }
.at-fold .at-guide-grid article {
  background: #f9fbfe;
}
.at-admin[hidden] { display: none; }

/* 표 안쪽만 스크롤: 위의 검색창은 그대로 두고 목록만 넘긴다. 높이는 각 페이지 스크립트(fitScroll)가 화면에 맞춘다. */
.at-scroll { overflow: auto; max-height: 70vh; overscroll-behavior: contain; }
.at-scroll .at-table thead th { position: sticky; top: 0; z-index: 1; }
.at-notice { display: grid; gap: 6px; margin-top: 18px; padding: 14px 16px; border-left: 4px solid #e0a100; border-radius: 10px; background: #fff8e6; color: #5c4300; font-size: 14px; line-height: 1.65; }
.at-notice p { margin: 0; }
.at-notice a { color: inherit; text-decoration: underline; }
/* 목록을 화면 안에 담기 위해 도구 페이지의 위쪽 여백을 줄인다 */
.at-main { padding-top: 24px; }
.at-hero { padding: 24px 28px 22px; }
.at-hero h1 { margin-bottom: 6px; font-size: clamp(24px, 3.2vw, 30px); }
.at-lead { margin-bottom: 16px; }
.at-notice { margin-top: 14px; padding: 10px 14px; font-size: 13.5px; }
.at-section { margin-top: 20px; }
.at-search input { padding-top: 12px; padding-bottom: 12px; }

/* 바깥 틀이 둥근 모서리를 지키고, 스크롤바는 머리줄 아래에서 시작한다 */
.at-frame { overflow: hidden; }
.at-scroll { scrollbar-width: thin; scrollbar-color: #b9c7d8 transparent; }
.at-scroll::-webkit-scrollbar { width: 10px; height: 10px; }
.at-scroll::-webkit-scrollbar-track { background: transparent; margin-top: 44px; margin-bottom: 6px; }
.at-scroll::-webkit-scrollbar-thumb { background: #c3cfdd; border-radius: 999px; border: 2px solid var(--paper); }
.at-scroll::-webkit-scrollbar-thumb:hover { background: #9fb1c6; }
.at-scroll::-webkit-scrollbar-corner { background: transparent; }

/* 목록이 그려지기 전에도 자리를 잡아 둔다(화면 밀림 방지) */
.at-scroll:has(#dirBody:empty) { min-height: 100vh; }
