/* Focused layout changes requested for the unit and weather tools. */
body[data-tool=unitcalculator], body[data-tool=weatherpreparation] { min-height: 100vh; display: flow-root; }
body[data-tool=unitcalculator] .wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 40px auto;
  padding: 24px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0,0,0,.1);
}
body[data-tool=unitcalculator] .hero {
  display: block;
  padding: 0 0 24px;
  border: 0;
  border-bottom: 1px solid #ddd;
  border-radius: 0;
  box-shadow: none;
}
body[data-tool=unitcalculator] h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; letter-spacing: -.025em; }
body[data-tool=unitcalculator] .toolbar { position: static; box-shadow: none; padding: 0; border: 0; }
body[data-tool=unitcalculator] .grid { display: block; }
body[data-tool=unitcalculator] .card {
  display: grid;
  grid-template-columns: minmax(150px, .8fr) minmax(0, 1.5fr);
  align-items: center;
  gap: 12px 24px;
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid #ddd;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}
body[data-tool=unitcalculator] .card[hidden] { display: none; }
body[data-tool=unitcalculator] .card-top { margin: 0; }
body[data-tool=unitcalculator] .card-top .badge { display: none; }
body[data-tool=unitcalculator] .under { grid-column: 2; margin: 0; }
body[data-tool=unitcalculator] .section-title { font-size: 1.35rem; }
body[data-tool=unitcalculator] .section-head { margin-bottom: 0; }
body[data-tool=unitcalculator] .footer-note { border: 0; border-radius: 0; background: transparent; padding: 18px 0 0; }
body[data-tool=weatherpreparation] .weather-container {
  width: min(900px, calc(100% - 32px));
  max-width: 900px;
  margin: 40px auto;
  padding: 24px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 15px rgba(0,0,0,.1);
}
.weather-header { text-align: center; margin-bottom: 24px; }
.weather-header img { object-fit: contain; }
.weather-header h1 { font-size: 1.8rem; margin: 12px 0; }
.weather-header p { color: #555; line-height: 1.5; margin: 0; }
body[data-tool=weatherpreparation] .weather-list { gap: 12px; }
body[data-tool=weatherpreparation] .weather-card { padding: 18px; box-shadow: none; background: #f8fafc; border-radius: 4px; }
body[data-tool=weatherpreparation] .weather-card:hover { background: #edf4fb; border-color: #8eafda; transform: none; }
body[data-tool=weatherpreparation] .details h3 { font-size: 1.05rem; }
body[data-tool=weatherpreparation] .icon { width: 42px; height: 42px; font-size: 24px; }
body[data-tool=weatherpreparation] .open-hint { display: none; }
body[data-tool=weatherpreparation] .card-main { grid-template-columns: auto minmax(0, 1fr); gap: 14px; }
@media(max-width: 680px) {
  body[data-tool=unitcalculator] .wrap, body[data-tool=weatherpreparation] .weather-container { margin: 16px auto; padding: 18px; }
  body[data-tool=unitcalculator] .card { grid-template-columns: 1fr; }
  body[data-tool=unitcalculator] .under { grid-column: 1; }
}
