/* www.naver.com home. Two-column grid under the search header. */

.page-home {
  background: #fff;
}

.home-grid {
  display: grid;
  grid-template-columns: 820px 416px;
  gap: 20px;
  width: 1256px;
  margin: 0 auto 40px;
  align-items: start;
}

.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 16px 18px;
  margin-bottom: 12px;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  font-size: 15px;
  color: #767676;
}

.card-head.small {
  font-size: 14px;
  margin-bottom: 10px;
}

.card-head .on {
  color: var(--text-strong);
  font-weight: 700;
}

.card-head .right {
  margin-left: auto;
  font-size: 13px;
  color: #767676;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.card-head .muted {
  color: var(--text-muted);
  font-weight: 400;
}

.promo-banner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  height: 96px;
  padding: 0 26px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: linear-gradient(105deg, #14161a 0%, #1f2a44 55%, #2c3f6b 100%);
  color: #fff;
}

.promo-title {
  font-size: 20px;
  font-weight: 800;
}

.promo-sub {
  font-size: 13px;
  color: #c9d2e3;
}

/* Newsstand */
.newsstand-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: #555;
}

.ns-select {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 12px;
}

.ns-head {
  font-weight: 700;
  color: #333;
}

.ns-line {
  color: #666;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ns-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.ns-grid li {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ns-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 6px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
}

.ns-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding-top: 12px;
  font-size: 13px;
  color: #666;
}

/* Tile rows (shopping, books) */
.tile-row {
  display: flex;
  gap: 10px;
}

.tile-row li {
  flex: 1;
  min-width: 0;
}

.tile-row img {
  width: 100%;
  height: 118px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--fill);
}

.tile-row a {
  display: block;
  font-size: 12px;
  color: #333;
  line-height: 1.35;
}

.tile-row span {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.books-row img {
  height: 148px;
}

.books-row .a {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 11px;
}

.sub-title {
  margin: 4px 0 12px;
  font-size: 15px;
  font-weight: 700;
}

/* Sidebar */
.login-card {
  text-align: center;
}

.login-lede {
  margin-bottom: 12px;
  font-size: 13px;
  color: #555;
}

.login-btn {
  display: block;
  height: 46px;
  line-height: 46px;
  border-radius: 8px;
  background: var(--naver-green);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.login-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 12px;
  font-size: 12px;
  color: #767676;
}

.weather-now {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.weather-now .temp {
  font-size: 34px;
  font-weight: 300;
  letter-spacing: -1px;
}

.weather-now .temp span {
  font-size: 22px;
}

.weather-now .cond {
  font-size: 14px;
  color: #444;
}

.weather-now .minmax {
  margin-left: auto;
  font-size: 13px;
  color: #767676;
}

.weather-now .minmax em {
  color: #2f6fed;
  font-style: normal;
}

.weather-hours {
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: #666;
  text-align: center;
}

.weather-hours li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.weather-hours b {
  color: #333;
}

.stock-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  font-size: 13px;
  border-bottom: 1px solid #f4f4f4;
}

.stock-list .nm {
  flex: 1;
  color: #444;
}

.stock-list .pr {
  font-weight: 700;
}

.stock-list .up {
  color: #e0342c;
  font-size: 12px;
}

.stock-list .down {
  color: #2f6fed;
  font-size: 12px;
}

.stock-more {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 10px;
  font-size: 12px;
  color: #767676;
}

.mobile-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #333;
}

.mobile-link .mark {
  display: inline-flex;
}

.mobile-link svg:last-child {
  margin-left: auto;
}

/* Logged-in profile card (replaces the login card on the home right rail). */
.me-card { padding: 18px; }
.me-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.me-id { flex: 1; }
.me-id b { display: block; font-size: 15px; font-weight: 700; }
.me-id span { font-size: 12px; color: var(--text-muted); }
.me-setting { display: inline-flex; align-items: center; }
.me-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 14px; text-align: center; }
.me-services a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0; border-radius: 8px; font-size: 12px; color: #444; }
.me-services a:hover { background: var(--fill-soft); }
.me-svc-ico { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; }
.me-badge { position: absolute; top: 4px; right: 22px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px; background: #ff3b30; color: #fff; font-size: 10px; line-height: 15px; font-weight: 700; }
.me-pay { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--fill-soft); }
.me-pay-l { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.me-pay-l b { font-weight: 600; color: #333; }
.me-pay-r { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; color: #555; }
.me-pay-r b { font-size: 15px; font-weight: 800; color: #03c75a; }
