/* home.css: public page (P-01..P-09). Mobile-first; breakpoints 640px and 960px. */

.site-main > * + * { margin-top: var(--space-5); }
.home-notice { margin-bottom: 0; }

/* P-02 Profile */
.profile__skeleton,
.profile__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}
.profile__avatar,
.profile__avatar-skeleton {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 50%;
}
.profile__avatar {
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.profile__text { min-width: 0; flex: 1 1 auto; width: 100%; }
.profile__bio { margin-top: var(--space-2); color: var(--text); }

@media (min-width: 640px) {
  .profile__skeleton,
  .profile__content { flex-direction: row; align-items: center; gap: var(--space-5); }
  .profile__avatar,
  .profile__avatar-skeleton { width: 96px; height: 96px; }
}

/* P-03 Links */
.section-title { margin-bottom: var(--space-3); }
.link-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.link-list li { min-width: 0; max-width: 100%; }
.pill-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  max-width: 100%;
  min-height: 44px;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.pill-link:hover { border-color: var(--accent); color: var(--accent); }
.pill-link__icon { flex: none; width: 14px; height: 14px; color: var(--text-muted); }

/* P-04 Widgets grid */
.widgets__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 640px) {
  .widgets__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .widgets__grid > .widget:nth-child(3) { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .widgets__grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .widgets__grid > .widget:nth-child(3) { grid-column: auto; }
}
.widget { min-height: 11rem; }
.widget__subtitle { font-size: var(--fs-sm); color: var(--text-muted); margin-top: calc(-1 * var(--space-2)); margin-bottom: var(--space-3); }
.widget__list { list-style: none; }
.widget__list > li + li { border-top: 1px solid var(--border); }

/* P-05 Weather rows */
.weather-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "icon place temp"
    "icon cond  cond";
  column-gap: var(--space-3);
  align-items: center;
  padding: var(--space-2) 0;
}
.weather-row--noicon { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "place temp" "cond cond"; }
.weather-row__icon { grid-area: icon; width: 32px; height: 32px; color: var(--text-muted); }
.weather-row__place { grid-area: place; min-width: 0; overflow-wrap: break-word; }
.weather-row__country { display: block; font-size: var(--fs-sm); color: var(--text-muted); }
.weather-row__temp { grid-area: temp; font-size: var(--fs-xl); font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; white-space: nowrap; }
.weather-row__cond { grid-area: cond; color: var(--text-muted); font-size: var(--fs-sm); }
.weather-row__na { grid-area: temp; color: var(--text-muted); font-size: var(--fs-sm); text-align: right; }
@media (min-width: 400px) {
  .weather-row { grid-template-areas: "icon place temp" "icon place cond"; }
  .weather-row--noicon { grid-template-areas: "place temp" "place cond"; }
  .weather-row__cond { text-align: right; }
}

/* P-06 FX rows */
.fx-row { padding: var(--space-2) 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.fx-row__code { font-weight: 600; }
.fx-row__date { font-size: var(--fs-sm); color: var(--text-muted); margin-left: var(--space-2); }
.fx-row--na { color: var(--text-muted); }

/* P-07 Quote */
.quote { margin: 0; }
.quote__text {
  margin: 0;
  font-size: var(--fs-lg);
  quotes: "\201C" "\201D" "\2018" "\2019";
  overflow-wrap: anywhere;
}
.quote__text::before { content: open-quote; }
.quote__text::after { content: close-quote; }
.quote__author { margin-top: var(--space-2); color: var(--text-muted); overflow-wrap: anywhere; }

/* Footer lines */
.site-footer p + p { margin-top: var(--space-1); }

/* 404 page */
.not-found > * + * { margin-top: var(--space-4); }
