:root {
  --navy: #141E32;
  --navy-deep: #0E1626;
  --card: #1D2A45;
  --card-line: #2C3C5E;
  --blue: #9FB4D4;
  --orange: #FF8A45;
  --white: #FFFFFF;
  --head: 'Space Grotesk', Inter, system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

a { color: var(--white); text-underline-offset: 3px; }
a:hover { color: var(--orange); }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 5;
  background: var(--white); color: var(--navy); padding: 10px 14px; border-radius: 10px; font-weight: 600;
}
.skip:focus { top: 12px; }

.top, main, .foot {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding-left: max(18px, env(safe-area-inset-left));
  padding-right: max(18px, env(safe-area-inset-right));
}

/* ---------- header ---------- */

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 18px; padding-bottom: 6px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); min-height: 48px; }
.brand:hover { color: var(--white); }
.brand-mark { flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--white); display: flex; align-items: center; justify-content: center; }
.brand-mark svg { display: block; }
.brand-text { display: flex; flex-direction: column; gap: 3px; }
.brand-name { font-family: var(--head); font-weight: 700; font-size: 30px; line-height: 0.95; letter-spacing: -0.02em; }
.brand-by { font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue); }
.top-link {
  font-size: 15px; font-weight: 600; color: var(--blue); text-decoration: none;
  padding: 12px 4px; min-height: 44px; display: inline-flex; align-items: center;
}
.top-link:hover { color: var(--white); }

/* ---------- hero ---------- */

.hero { padding-top: 22px; }

h1 {
  font-family: var(--head); font-weight: 700; letter-spacing: -0.03em;
  font-size: clamp(34px, 8.5vw, 56px); line-height: 1.02; margin: 0 0 20px;
}

.says { display: flex; align-items: flex-end; gap: 14px; }
.says-bird {
  flex: none; width: 84px; height: 84px; border-radius: 24px; background: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.says-bird svg { width: 58px; height: 63px; display: block; }
.says-bubble {
  position: relative; flex: 1; min-width: 0;
  background: var(--white); color: var(--navy);
  border-radius: 24px 24px 24px 6px; padding: 16px 20px;
}
.says-text { margin: 0; font-family: var(--head); font-weight: 600; font-size: clamp(19px, 4.6vw, 24px); line-height: 1.25; letter-spacing: -0.01em; }
.says-meta { margin: 8px 0 0; font-size: 14px; font-weight: 500; color: #4A5A78; }
.says-meta.is-stale { color: #9A3D00; font-weight: 600; }

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

.search { margin-top: 26px; }
.search-label { display: block; font-size: 14px; font-weight: 600; color: var(--blue); margin-bottom: 8px; }
.search-field {
  display: flex; align-items: center; gap: 10px;
  background: var(--navy-deep); border: 2px solid var(--card-line); border-radius: 18px; padding: 0 16px; color: var(--blue);
}
.search-field:focus-within { border-color: var(--orange); }
.search-field svg { flex: none; }
.search-field input {
  flex: 1; min-width: 0; height: 54px; border: 0; background: transparent; color: var(--white);
  font: inherit; font-size: 17px; outline: none;
}
.search-field input::placeholder { color: #8296B8; opacity: 1; }

/* ---------- sections ---------- */

.section-title {
  font-family: var(--head); font-weight: 700; font-size: 22px; letter-spacing: -0.01em;
  margin: 34px 0 14px;
}

.notice {
  margin: 22px 0 0; padding: 16px 18px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--card-line); color: var(--white);
}

.cards { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--card-line); border-radius: 24px; padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-code { font-family: var(--head); font-weight: 700; font-size: 34px; line-height: 1; letter-spacing: -0.02em; margin: 0; }
.card-city { display: block; font-family: var(--body); font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--blue); margin-top: 6px; }

.badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-size: 13px; font-weight: 700; line-height: 1; padding: 8px 12px 8px 9px; border-radius: 999px;
  border: 2px solid transparent;
}
.badge svg { width: 16px; height: 16px; flex: none; }
.badge-stop { background: var(--orange); color: var(--navy); }
.badge-closed { background: var(--white); color: var(--navy); }
.badge-program, .badge-delay { border-color: var(--orange); color: #FFB488; }
.badge-notice { border-color: var(--blue); color: var(--blue); }

.item { display: flex; flex-direction: column; gap: 8px; }
.item + .item { border-top: 1px solid var(--card-line); padding-top: 14px; }
.item-text { margin: 0; font-size: 17px; line-height: 1.45; }
.item-advice { margin: 0; font-size: 15px; font-weight: 600; color: #FFB488; }

.facts { margin: 0; display: grid; gap: 8px; border-top: 1px solid var(--card-line); padding-top: 14px; }
.fact { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 10px; font-size: 15px; }
.fact dt { color: var(--blue); font-weight: 500; }
.fact dd { margin: 0; }

.chips { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); }
.chip {
  display: flex; align-items: center; gap: 10px; min-height: 52px;
  background: var(--navy-deep); border: 1px solid var(--card-line); border-radius: 16px; padding: 8px 12px;
}
.chip svg { flex: none; width: 16px; height: 16px; color: var(--blue); }
.chip-code { font-family: var(--head); font-weight: 700; font-size: 16px; }
.chip-name { font-size: 13px; color: var(--blue); line-height: 1.25; }
.chip-text { display: flex; flex-direction: column; min-width: 0; }

.fine { font-size: 14px; color: var(--blue); margin: 14px 0 0; }
.fine.lead { margin: -6px 0 14px; max-width: 62ch; }

.outlook { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.watch {
  display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: start;
  background: var(--navy-deep); border: 1px solid var(--card-line); border-radius: 20px; padding: 16px 18px;
}
.watch.is-faa { border-color: var(--orange); }
.watch-code { font-family: var(--head); font-weight: 700; font-size: 24px; line-height: 1.1; letter-spacing: -0.01em; }
.watch-name { display: block; font-family: var(--body); font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--blue); margin-top: 4px; line-height: 1.25; }
.watch-lines { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.watch-line { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; line-height: 1.4; }
.watch-line svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--blue); }
.watch-line.is-faa svg { color: var(--orange); }
.watch-line.is-forecast, .watch-line.is-storm { color: #D5DEEE; font-size: 15px; }

/* ---------- footer ---------- */

.foot {
  margin-top: 44px; padding-top: 22px; padding-bottom: max(34px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--card-line); font-size: 14px; color: var(--blue);
}
.foot p { margin: 0 0 10px; max-width: 62ch; }
.foot-by { white-space: nowrap; }

.noscript { max-width: 1040px; margin: 0 auto; padding: 18px; }

@media (min-width: 760px) {
  .top { padding-top: 26px; }
  .hero { padding-top: 34px; }
  .says-bird { width: 104px; height: 104px; border-radius: 28px; }
  .says-bird svg { width: 72px; height: 78px; }
  .says-bubble { padding: 22px 26px; max-width: 640px; flex: 0 1 auto; }
  .search { max-width: 520px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .cards.is-single { grid-template-columns: minmax(0, 640px); }
  .outlook { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .outlook.is-single { grid-template-columns: minmax(0, 640px); }
  .watch { grid-template-columns: 92px minmax(0, 1fr); }
  .card { padding: 24px; }
}

@media (max-width: 380px) {
  .says-bird { width: 68px; height: 68px; border-radius: 20px; }
  .says-bird svg { width: 47px; height: 51px; }
  .fact { grid-template-columns: 92px minmax(0, 1fr); }
}
