@import url('../../../css/basic-tools.css?v=20260924-3');

.wind-tool {
  max-width: 760px;
  margin: 0 auto;
}

/* =========================================================
   공통 카드
   ========================================================= */

.wind-input-panel,
.wind-section,
.wind-detail,
.wind-notice,
.wind-source {
  margin-top: 14px;
  padding: 15px;

  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;

  background: rgba(255, 255, 255, 0.74);
}

/* =========================================================
   입력
   ========================================================= */

.wind-input-title {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 12px;

  margin-bottom: 12px;
}

.wind-input-title strong {
  display: block;

  font-size: 15px;
}

.wind-input-title span:not(.wind-symbol) {
  display: block;

  margin-top: 2px;

  color: #64748b;

  font-size: 12px;
}

.wind-symbol {
  font-size: 28px;
}

.wind-input-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    130px;

  gap: 8px;
}

.wind-field {
  display: block;
}

.wind-field > span {
  display: block;

  margin-bottom: 5px;

  color: #64748b;

  font-size: 12px;
}

.wind-field input,
.wind-field select {
  width: 100%;
  height: 44px;

  box-sizing: border-box;

  padding: 0 11px;

  border: 1px solid rgba(15, 23, 42, 0.13);
  border-radius: 11px;

  background: #ffffff;

  color: inherit;

  font: inherit;
  font-size: 14px;

  outline: none;
}

.wind-field input:focus,
.wind-field select:focus {
  border-color: rgba(14, 165, 233, 0.5);

  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.08);
}

/* =========================================================
   빠른 선택
   ========================================================= */

.wind-quick-group {
  margin-top: 11px;
}

.wind-quick-label {
  display: block;

  margin-bottom: 6px;

  color: #94a3b8;

  font-size: 12px;
}

.wind-quick-buttons {
  display: flex;
  flex-wrap: wrap;

  gap: 5px;
}

.wind-quick-buttons button {
  padding: 6px 9px;

  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;

  background: rgba(15, 23, 42, 0.025);

  color: inherit;

  font: inherit;
  font-size: 12px;

  cursor: pointer;
}

.wind-quick-buttons button:hover {
  background: rgba(14, 165, 233, 0.07);
}

.wind-status {
  min-height: 17px;

  margin: 8px 0 0;

  color: #64748b;

  font-size: 12px;
}

/* =========================================================
   HERO
   ========================================================= */

.wind-hero {
  margin-top: 14px;
  padding: 20px;

  border-radius: 20px;

  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.wind-hero.level-low {
  background: linear-gradient(145deg, #f8fafc, #f1f5f9);

  color: #334155;
}

.wind-hero.level-mild {
  background: linear-gradient(145deg, #f0fdf4, #dcfce7);

  color: #17502d;
}

.wind-hero.level-moderate {
  background: linear-gradient(145deg, #fffbeb, #fef3c7);

  color: #503b12;
}

.wind-hero.level-strong {
  background: linear-gradient(145deg, #fff7ed, #ffedd5);

  color: #592c16;
}

.wind-hero.level-danger {
  background: linear-gradient(145deg, #fff1f2, #ffe4e6);

  color: #651c2b;
}

.wind-hero-main {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 14px;
}

.wind-kicker {
  margin-bottom: 5px;

  opacity: 0.65;

  font-size: 12px;
}

.wind-force-line {
  display: flex;

  align-items: center;

  gap: 11px;
}

.wind-force-line > strong {
  font-size: 48px;

  line-height: 1;
}

.wind-force-line h2 {
  margin: 0;

  font-size: 23px;
}

.wind-force-line span {
  display: block;

  margin-top: 2px;

  opacity: 0.65;

  font-size: 12px;
}

.wind-hero-icon {
  flex: 0 0 auto;

  font-size: 48px;
}

.wind-summary {
  margin: 13px 0 0;

  opacity: 0.82;

  font-size: 12px;
  line-height: 1.55;
}

.wind-main-speed {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 10px;

  margin-top: 14px;
  padding: 10px 12px;

  border-radius: 11px;

  background: rgba(255, 255, 255, 0.56);
}

.wind-main-speed span {
  opacity: 0.67;

  font-size: 12px;
}

.wind-main-speed strong {
  font-size: 17px;
}

/* =========================================================
   SECTION
   ========================================================= */

.wind-section-head {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 10px;

  margin-bottom: 10px;
}

.wind-section-head h3 {
  margin: 0;

  font-size: 15px;
}

.wind-section-head span {
  color: #94a3b8;

  font-size: 12px;
}

.wind-section-description {
  margin: -2px 0 11px;

  color: #64748b;

  font-size: 12px;
  line-height: 1.55;
}

/* =========================================================
   생활 체감
   ========================================================= */

.wind-feel-main {
  display: flex;

  align-items: center;

  gap: 12px;

  padding: 12px;

  border-radius: 13px;

  background: rgba(14, 165, 233, 0.045);
}

.wind-feel-icon {
  flex: 0 0 auto;

  display: flex;

  align-items: center;
  justify-content: center;

  width: 45px;
  height: 45px;

  border-radius: 12px;

  background: #ffffff;

  font-size: 23px;
}

.wind-feel-main strong {
  font-size: 14px;
}

.wind-feel-main p {
  margin: 4px 0 0;

  color: #64748b;

  font-size: 12px;
  line-height: 1.45;
}

/* =========================================================
   생활 요소
   ========================================================= */

.wind-life-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 7px;

  margin-top: 9px;
}

.wind-life-grid article {
  padding: 10px 7px;

  border-radius: 11px;

  background: rgba(15, 23, 42, 0.035);

  text-align: center;
}

.wind-life-grid span {
  display: block;

  color: #64748b;

  font-size: 12px;
}

.wind-life-grid strong {
  display: block;

  margin-top: 4px;

  font-size: 12px;
}

.wind-life-grid small {
  display: block;

  margin-top: 3px;

  color: #94a3b8;

  font-size: 12px;
  line-height: 1.35;
}

/* =========================================================
   단위 변환
   ========================================================= */

.wind-convert-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 7px;
}

.wind-convert-grid article {
  padding: 11px 6px;

  border-radius: 11px;

  background: rgba(15, 23, 42, 0.035);

  text-align: center;
}

.wind-convert-grid span {
  display: block;

  color: #64748b;

  font-size: 12px;
}

.wind-convert-grid strong {
  display: block;

  margin-top: 4px;

  font-size: 16px;
}

.wind-convert-grid small {
  display: block;

  margin-top: 2px;

  color: #94a3b8;

  font-size: 12px;
}

/* =========================================================
   Beaufort
   ========================================================= */

.beaufort-scale {
  display: grid;

  grid-template-columns: repeat(13, minmax(0, 1fr));

  gap: 3px;
}

.beaufort-cell {
  min-width: 0;

  padding: 8px 2px;

  border-radius: 7px;

  background: rgba(15, 23, 42, 0.045);

  color: #64748b;

  text-align: center;

  transition:
    transform 0.15s ease,
    background 0.15s ease;
}

.beaufort-cell strong {
  display: block;

  font-size: 12px;
}

.beaufort-cell span {
  display: block;

  margin-top: 2px;

  font-size: 12px;

  white-space: nowrap;
}

.beaufort-cell.is-current {
  transform: translateY(-3px);

  background: rgba(14, 165, 233, 0.16);

  color: #0f172a;

  box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.23);
}

/* =========================================================
   국가 기준
   ========================================================= */

.world-standard-grid {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 8px;
}

.standard-card {
  padding: 12px;

  border: 1px solid rgba(15, 23, 42, 0.07);

  border-radius: 13px;

  background: rgba(15, 23, 42, 0.025);
}

.standard-head {
  display: flex;

  align-items: center;

  gap: 8px;
}

.standard-flag {
  font-size: 25px;
}

.standard-head strong,
.standard-head small {
  display: block;
}

.standard-head strong {
  font-size: 12px;
}

.standard-head small {
  margin-top: 1px;

  color: #94a3b8;

  font-size: 12px;
}

/* =========================================================
   기준별 결과
   ========================================================= */

.criteria-list {
  display: grid;

  gap: 4px;

  margin-top: 10px;
}

.criteria-list > div {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 8px;

  padding: 6px 7px;

  border-radius: 8px;

  background: rgba(255, 255, 255, 0.65);
}

.criteria-list span {
  color: #64748b;

  font-size: 12px;
}

.criteria-list strong {
  text-align: right;

  font-size: 12px;
}

.criteria-safe {
  color: #166534;
}

.criteria-watch {
  color: #9a6700;
}

.criteria-warning {
  color: #c2410c;
}

.criteria-danger {
  color: #b91c1c;
}

/* =========================================================
   표준 결과
   ========================================================= */

.standard-result {
  display: inline-block;

  margin-top: 10px;

  padding: 5px 8px;

  border-radius: 999px;

  background: rgba(15, 23, 42, 0.06);

  font-size: 12px;
  font-weight: 800;
}

.standard-result.safe {
  background: rgba(34, 197, 94, 0.11);

  color: #166534;
}

.standard-result.watch {
  background: rgba(245, 158, 11, 0.13);

  color: #854d0e;
}

.standard-result.warning {
  background: rgba(249, 115, 22, 0.13);

  color: #9a3412;
}

.standard-result.danger {
  background: rgba(239, 68, 68, 0.13);

  color: #991b1b;
}

.standard-result.info {
  background: rgba(59, 130, 246, 0.1);

  color: #1d4ed8;
}

.standard-card > p {
  min-height: 32px;

  margin: 7px 0 9px;

  color: #64748b;

  font-size: 12px;
  line-height: 1.5;
}

.standard-reference {
  display: flex;

  justify-content: space-between;

  gap: 8px;

  padding: 5px 0;

  border-top: 1px solid rgba(15, 23, 42, 0.05);

  font-size: 12px;
}

.standard-reference span {
  color: #94a3b8;
}

.standard-reference b {
  text-align: right;

  font-weight: 700;
}

.standard-foot {
  display: block;

  margin-top: 6px;

  color: #94a3b8;

  font-size: 12px;
  line-height: 1.4;
}

.uk-matrix {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 4px;

  margin-top: 8px;
}

.uk-matrix span {
  padding: 5px 2px;

  border-radius: 7px;

  background: rgba(15, 23, 42, 0.04);

  text-align: center;

  font-size: 12px;
  font-weight: 700;
}

/* =========================================================
   열대저기압
   ========================================================= */

.tropical-notice {
  margin-bottom: 9px;
  padding: 9px 10px;

  border-radius: 11px;

  background: rgba(59, 130, 246, 0.055);
}

.tropical-notice strong {
  font-size: 12px;
}

.tropical-notice p {
  margin: 3px 0 0;

  color: #64748b;

  font-size: 12px;
  line-height: 1.5;
}

.tropical-grid {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 7px;
}

.tropical-card {
  padding: 11px;

  border: 1px solid rgba(15, 23, 42, 0.07);

  border-radius: 13px;

  background: rgba(15, 23, 42, 0.025);
}

.tropical-head {
  display: flex;

  align-items: center;

  gap: 7px;
}

.tropical-head > span {
  font-size: 23px;
}

.tropical-head strong,
.tropical-head small {
  display: block;
}

.tropical-head strong {
  font-size: 12px;
}

.tropical-head small {
  margin-top: 1px;

  color: #94a3b8;

  font-size: 12px;
}

.tropical-result {
  margin-top: 9px;

  font-size: 14px;
  font-weight: 800;
}

.tropical-card > p {
  min-height: 40px;

  margin: 5px 0 8px;

  color: #64748b;

  font-size: 12px;
  line-height: 1.45;
}

.tropical-foot {
  display: block;

  margin-top: 6px;

  color: #94a3b8;

  font-size: 12px;
  line-height: 1.4;
}

/* =========================================================
   미니 1~5 스케일
   ========================================================= */

.mini-scale {
  display: grid;

  gap: 3px;
}

.mini-scale.five {
  grid-template-columns: repeat(5, 1fr);
}

.mini-scale-cell {
  padding: 5px 1px;

  border-radius: 6px;

  background: rgba(15, 23, 42, 0.045);

  color: #94a3b8;

  text-align: center;

  font-size: 12px;
  font-weight: 700;
}

.mini-scale-cell.is-current {
  background: rgba(14, 165, 233, 0.16);

  color: #0f172a;

  box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.2);
}

/* =========================================================
   상세표
   ========================================================= */

.wind-detail summary {
  cursor: pointer;

  font-size: 13px;
  font-weight: 700;
}

.wind-table-wrap {
  overflow-x: auto;

  margin-top: 11px;
}

.wind-table {
  width: 100%;

  border-collapse: collapse;

  font-size: 12px;
}

.wind-table th,
.wind-table td {
  padding: 8px 6px;

  border-bottom: 1px solid rgba(15, 23, 42, 0.07);

  text-align: left;
}

.wind-table th {
  color: #64748b;

  font-size: 12px;
}

.wind-table tr.is-current {
  background: rgba(14, 165, 233, 0.07);
}

.wind-table td:first-child {
  width: 38px;

  text-align: center;

  font-weight: 800;
}

.wind-table td:nth-child(3) {
  white-space: nowrap;
}

/* =========================================================
   참고 / 출처
   ========================================================= */

.wind-notice strong {
  display: block;

  font-size: 12px;
}

.wind-notice p {
  margin: 5px 0 0;

  color: #64748b;

  font-size: 12px;
  line-height: 1.55;
}

.wind-source {
  color: #64748b;

  font-size: 12px;
  line-height: 1.55;
}

.wind-source strong {
  color: #334155;
}

.wind-source p {
  margin: 5px 0 0;
}

/* =========================================================
   반응형
   ========================================================= */

@media (max-width: 680px) {
  .wind-life-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .wind-convert-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tropical-grid {
    grid-template-columns: 1fr;
  }

  .beaufort-scale {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

@media (max-width: 500px) {
  .world-standard-grid {
    grid-template-columns: 1fr;
  }

  .wind-input-grid {
    grid-template-columns:
      minmax(0, 1fr)
      105px;
  }

  .wind-hero {
    padding: 16px 13px;
  }

  .wind-force-line > strong {
    font-size: 41px;
  }

  .wind-force-line h2 {
    font-size: 20px;
  }

  .wind-hero-icon {
    font-size: 38px;
  }

  .beaufort-scale {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
