/* The homepage (docs/insingapura-homepage-mock.html) in the site's theme: tokens from site16.css. Rename (home3.css) whenever it changes: Cloudflare keeps static files. */
.site-wrap.home-top { display: grid; gap: 16px; margin-top: 16px; }  /* .site-wrap in site16.css loads later and would reset the margin */
.home-top .home-hero { margin-top: 0; }
@media (min-width: 1024px) {
  .site-wrap.home-top { grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); align-items: stretch; gap: 20px; }
  .home-top .home-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); min-height: 380px; }
  .home-top .home-hero-photo { max-height: none; }  /* the photo fills the card's height, no dark gap under it */
  .home-top .home-hero-copy { padding: 28px; }
  .home-top .home-hero h2 { font-size: clamp(1.4rem, 2vw, 1.8rem); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; }
}

.home-now { display: flex; flex-direction: column; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.home-now h2 { margin: 0 0 6px; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.home-now > div { flex: 1; display: flex; }
.home-now-list { display: flex; flex-direction: column; justify-content: space-around; width: 100%; margin: 0; padding: 0; list-style: none; }
.home-now-list li + li { border-top: 1px solid var(--line); }
.home-now-list a { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 56px; padding: 6px 4px; color: var(--ink); text-decoration: none; }
.home-now-list a:hover { background: var(--wash); }
.home-now-list b { display: block; font-size: .95rem; }
.home-now-list small { display: block; color: var(--soft); font-size: .82rem; }
.home-now-list .is-alert .tool-icon { background: var(--accent); }
.home-now-list .tool-icon svg, .home-tools .tool-icon svg { width: 18px; height: 18px; fill: currentColor; }
.home-now-more { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin-top: 12px; padding: 0 14px; border-radius: 8px; background: var(--night); color: #fff; font-weight: 750; font-size: .92rem; text-decoration: none; }
.home-now-more:hover { background: var(--ink); color: #fff; }
.home-now-more svg { width: 16px; height: 16px; fill: currentColor; }

.home-band { margin-top: 32px; scroll-margin-top: 80px; }
.home-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 2px solid var(--ink); margin-bottom: 12px; }
.home-head .section-title { margin: 0; padding-bottom: 6px; border-bottom: 0; }
.home-head a { flex: none; font-size: .88rem; font-weight: 700; color: var(--link); }

.home-cards { display: grid; gap: 12px; }
@media (min-width: 640px) { .home-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .home-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } .home-cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.home-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.home-card:hover { border-color: #b9c2cc; box-shadow: 0 4px 14px rgba(15, 42, 67, .1); color: var(--ink); }
.home-card:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.home-card .photo-preview { aspect-ratio: 16 / 9; border-radius: 0; }
.home-card-copy { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.home-card b { font-size: 1rem; line-height: 1.3; }
.home-card small { color: var(--soft); font-size: .85rem; line-height: 1.4; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.home-card .home-ends { font-weight: 700; color: var(--ink); }
.home-card .home-ends.is-today { color: var(--accent); }

.home-around { display: grid; gap: 16px; padding: 20px; border-radius: 13px; background: var(--night); color: #fff; }
.home-around h2 { margin: 0 0 6px; font-size: clamp(1.25rem, 3vw, 1.6rem); color: #fff; }
.home-around p { margin: 0; opacity: .9; }
.home-eyebrow { margin-bottom: 6px !important; font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.home-areas { display: flex; flex-wrap: wrap; align-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.home-areas a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; color: #fff; font-weight: 700; font-size: .92rem; text-decoration: none; }
.home-areas a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.home-areas a.is-all { background: #fff; border-color: #fff; color: var(--ink); }
@media (min-width: 1024px) { .home-around { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); padding: 28px; } }

.home-tools { display: grid; gap: 4px 12px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .home-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .home-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.home-popular ol { margin: 0; padding: 0; list-style: none; counter-reset: pop; }
.home-popular li { counter-increment: pop; display: grid; grid-template-columns: 28px minmax(0, 1fr); padding: 10px 0; border-bottom: 1px solid var(--line); }
.home-popular li::before { content: counter(pop); font-weight: 800; color: var(--accent); }
.home-popular a { color: var(--ink); font-size: .95rem; font-weight: 600; text-decoration: none; line-height: 1.4; }
.home-popular a:hover { color: var(--link); }
.home-subscribe { margin-top: 24px; padding: 18px; border-radius: 13px; background: var(--wash); }
.home-subscribe h2 { margin: 0 0 4px; font-size: 1.05rem; }
.home-subscribe p { margin: 0 0 12px; color: var(--soft); font-size: .92rem; }
.home-sub-button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 7px; background: var(--night); color: #fff; font-size: .92rem; font-weight: 750; text-decoration: none; }
.home-sub-button:hover { background: var(--ink); color: #fff; }
