/* ══════════════════════════════════════════
   The Rio Times V6 — home.css
   EXTRACTED FROM riotimes_redesign_v6_final.html
   Homepage only. Do not modify without
   checking reference HTML file.
   ══════════════════════════════════════════ */

/* ── Main container ── */
.main {
  max-width: 1360px;
  margin: 0 auto;
  padding: 32px 40px;
}

/* ── Hero section ── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px; /* must match .main>.tc grid — hero/column right edges align */
  padding-bottom: 32px;
  border-bottom: 1px solid var(--g200);
}
.hero-lead { display: flex; flex-direction: column; gap: 14px; }
.hero-lead h1 {
  font-family: var(--disp);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.12;
  color: var(--ink);
}
.hero-lead .exc {
  font-size: 16px;
  line-height: 1.65;
  color: var(--g500);
  max-width: 580px;
}
.meta {
  font-size: 11.5px;
  color: var(--g400);
  display: flex;
  gap: 10px;
  align-items: center;
}
.meta .dot { color: var(--g300); }

/* Hero sidebar articles */
.hero-side {
  border-left: 1px solid var(--g200);
  padding-left: 28px;
  display: flex;
  flex-direction: column;
}
.si {
  padding: 14px 0;
  border-bottom: 1px solid var(--g100);
  cursor: pointer;
  transition: all .1s;
}
.si:hover {
  background: var(--cream);
  margin: 0 -10px;
  padding: 14px 10px;
  border-radius: 4px;
}
.si:last-child { border-bottom: none; }
.si h3 {
  font-family: var(--disp);
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  margin-top: 5px;
}
.si .meta { margin-top: 6px; font-size: 11px; }

/* ── Market Snapshot ── */
.mkt { margin: 32px 0; }
.mkt-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.mkt-hdr h2 {
  font-family: var(--body);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--slate);
}
.mkt-hdr .ts {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--g400);
}
.mkt-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  background: var(--cream);
  border: 1px solid var(--g200);
  border-radius: 6px;
  overflow: hidden;
}
.mc {
  padding: 16px 14px;
  border-right: 1px solid var(--g200);
  border-bottom: 1px solid var(--g200);
  text-align: center;
  transition: background .1s;
}
.mc:hover { background: var(--g100); }
.mc:nth-child(8n) { border-right: none; }
.mc:nth-last-child(-n+8) { border-bottom: none; }
.mc .lb {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--g400);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 6px;
}
.mc .val {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.mc .ch {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  margin-top: 3px;
}
.mc .ch.up { color: var(--grn); }
.mc .ch.dn { color: var(--red); }

/* ── Section header ── */
.sh {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 24px 0 14px;
  border-bottom: 1.5px solid var(--slate);
  margin-bottom: 24px;
}
.sh h2 {
  font-family: var(--disp);
  font-size: 24px;
  font-weight: 600;
  color: var(--slate);
}
.sh .sa {
  font-size: 11px;
  font-weight: 600;
  color: var(--burg);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .08em;
  transition: opacity .1s;
}
.sh .sa:hover { opacity: .7; }

/* ── Article grid (3-col) ── */
.ag {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}
.ac { cursor: pointer; transition: transform .1s; }
.ac:hover { transform: translateY(-2px); }
.ac h3 {
  font-family: var(--disp);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  margin: 8px 0;
}
.ac .exc {
  font-size: 13.5px;
  color: var(--g500);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ac .meta { margin-top: 12px; }

/* ── Newsletter CTA ── */
.nl {
  background: var(--slate);
  color: #fff;
  padding: 44px 48px;
  border-radius: 6px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  margin: 36px 0;
}
.nl h2 {
  font-family: var(--disp);
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 8px;
}
.nl p { font-size: 14.5px; opacity: .8; line-height: 1.55; font-weight: 300; }
.nl-form { display: flex; gap: 8px; }
.nl-form input {
  padding: 13px 18px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-family: var(--body);
  font-size: 13.5px;
  border-radius: 4px;
  width: 260px;
  outline: none;
  transition: border-color .15s;
}
.nl-form input:focus { border-color: rgba(255,255,255,.5); }
.nl-form input::placeholder { color: rgba(255,255,255,.45); }
.nl-form button {
  padding: 13px 28px;
  background: var(--burg);
  color: #fff;
  border: none;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}
.nl-form button:hover { background: var(--burg-d); }

/* ── Two-column: Most Read + Sidebar ── */
.main > .tc {
  display: grid;
  grid-template-columns: 1fr minmax(0, 300px);
  gap: 40px;
  margin-bottom: 40px;
}

/* Most Read list */
.ali {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--g100);
  cursor: pointer;
  transition: all .1s;
}
.ali:hover {
  background: var(--cream);
  margin: 0 -10px;
  padding: 16px 10px;
  border-radius: 4px;
}
.ali-n {
  font-family: var(--disp);
  font-size: 30px;
  font-weight: 600;
  color: var(--g200);
  line-height: 1;
  flex-shrink: 0;
  width: 36px;
}
.ali-c h3 {
  font-family: var(--disp);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  margin-top: 4px;
}
.ali-c .meta { margin-top: 6px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .main { padding: 20px 16px; }
  .hero { grid-template-columns: 1fr; gap: 24px; }
  .hero-lead h1 { font-size: 30px; }
  .hero-side {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--g200);
    padding-top: 16px;
  }
  .ag { grid-template-columns: 1fr; }
  .main > .tc { grid-template-columns: 1fr; }
  .nl {
    grid-template-columns: 1fr;
    padding: 28px;
    gap: 24px;
  }
  .nl-form { flex-direction: column; }
  .nl-form input { width: 100%; }
}
@media (max-width: 600px) {
  .mkt-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Hero featured image ── */
.hero-img {
  margin: 0 0 16px 0;
  border-radius: 6px;
  overflow: visible;
  line-height: 0;
  height: auto;
  max-height: none;
  background: var(--g100, #f4f1ed);
}
.hero-img picture,
.hero-img picture img,
.hero-img img.hero-thumb {
  display: block;
  width: 100%;
  height: auto !important;
  max-height: none !important;
  object-fit: unset;
  border-radius: 6px;
}
.hero-img-link {
  text-decoration: none;
  display: block;
}

/* Hide broken images gracefully */
.hero-img img[src=""],
.hero-img img:not([src]) {
  display: none;
}
.hero-img:empty {
  display: none;
}
