:root {
  color-scheme: light;
  --bg: #eef2f4;
  --surface: #ffffff;
  --text: #18222b;
  --muted: #69747d;
  --line: #e1e7ea;
  --brand: #0f766e;
  --accent: #d98b1f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app {
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--surface);
  box-shadow: 0 18px 42px rgba(26, 39, 50, .08);
}

.home-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  min-height: 68px;
  padding: calc(12px + env(safe-area-inset-top)) 18px 12px;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(225, 231, 234, .75);
  backdrop-filter: blur(14px);
}

.home-header span {
  display: block;
  margin-bottom: 2px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.home-header h1 {
  margin: 0;
  font-size: 23px;
  line-height: 1.15;
  letter-spacing: 0;
}

.hero {
  position: relative;
  height: 218px;
  overflow: hidden;
  background: #dce7e4;
}

.banner-track {
  display: flex;
  height: 100%;
  transition: transform .35s ease;
}

.banner-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
}

.banner-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(12, 28, 35, .18));
  pointer-events: none;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banner-empty {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #244b45;
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, #dcebe7 0%, #f3f7f2 52%, #e7eef3 100%);
}

.banner-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 7px;
}

.banner-dots span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .65);
}

.banner-dots .active {
  width: 18px;
  background: #fff;
}

.news-section {
  padding: 20px 16px 32px;
  background: #f7f9fa;
}

.news-section h1 {
  margin: 0 0 15px;
  font-size: 21px;
  letter-spacing: 0;
}

.news-list {
  display: grid;
  gap: 12px;
}

.news-card {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 13px;
  min-height: 104px;
  padding: 12px;
  border: 1px solid rgba(225, 231, 234, .95);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  background: #fff;
  box-shadow: 0 8px 20px rgba(29, 45, 55, .045);
}

.news-card:active {
  transform: scale(.99);
}

.news-card img,
.news-cover-placeholder {
  width: 104px;
  height: 80px;
  border-radius: 6px;
  object-fit: cover;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, .15), rgba(217, 139, 31, .14)),
    #e8eeee;
}

.news-card h2 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.empty {
  padding: 42px 12px;
  text-align: center;
  color: var(--muted);
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.detail-app {
  padding: calc(10px + env(safe-area-inset-top)) 16px 34px;
}

.back {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
}

.back::before {
  content: "<";
  margin-right: 6px;
}

.article h1 {
  margin: 12px 0 16px;
  font-size: 24px;
  line-height: 1.32;
  letter-spacing: 0;
}

.article img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 8px;
  margin: 2px 0 17px;
}

.article .summary {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-left: 4px solid var(--accent);
  border-radius: 7px;
  background: #f8f5ee;
  color: var(--muted);
  line-height: 1.65;
}

.article .content {
  white-space: pre-wrap;
  font-size: 16px;
  line-height: 1.8;
}

.location-prompt {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, .42);
}

.location-prompt.hidden {
  display: none;
}

.location-prompt > div {
  position: relative;
  width: min(100%, 360px);
  padding: 22px 18px 18px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(10, 24, 32, .22);
}

.location-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  min-height: 34px;
  border-radius: 999px;
  padding: 0;
  background: #f1f4f5;
  color: #53616b;
  font-size: 22px;
  line-height: 1;
}

.location-prompt h2 {
  margin: 0 38px 8px 0;
  font-size: 20px;
}

.location-prompt p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.55;
}

.location-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

button {
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  padding: 0 16px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}

.ghost-button {
  background: #eef2f4;
  color: #33424c;
}

@media (max-width: 360px) {
  .news-card {
    grid-template-columns: 92px 1fr;
  }

  .news-card img,
  .news-cover-placeholder {
    width: 92px;
    height: 74px;
  }
}
