/* ==========================================================================
   Singapore Top 10 Lah 2.0: brand-led blog layer on top of main.css
   ========================================================================== */
:root {
  --ink: #14161A;
  --soft: #555B65;
  --paper: #F7F6F3;
  --line: #E9E7E3;
  --t-food: #D9541E;
  --t-home: #E02A2E;
  --t-money: #1E8A57;
  --t-tech: #2C5BE0;
  --t-life: #8A3C8E;
  --hand: "Caveat", cursive;
}
.hero-grid { display: none; } /* retired background grid lines */
.narrow { max-width: 820px; }

/* Header ---------------------------------------------------------------- */
.hd-util { border-bottom: 1px solid var(--line); font-size: 13px; color: var(--soft); }
.hd-util-in { display: flex; justify-content: space-between; gap: 1rem; padding-top: 8px; padding-bottom: 8px; }
@media (max-width: 700px) { .hd-util { display: none; } }
.hd { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.admin-bar .hd { top: 32px; }
@media (max-width: 782px) { .admin-bar .hd { top: 46px; } }
.hd.is-scrolled { box-shadow: 0 8px 30px -22px rgba(20,22,26,.35); }
.hd-in { display: flex; align-items: center; gap: 30px; min-height: 74px; }
.hd .brand-mark { width: 40px; height: 40px; font-size: 15px; }
.hd-nav { display: none; align-items: center; gap: 22px; font: 500 15px var(--sans); }
.hd-nav > a { padding: 6px 0; color: var(--ink); text-decoration: none; border-bottom: 2px solid transparent; }
.hd-nav > a:hover, .hd-nav > a[aria-current] { color: var(--red-deep); border-bottom-color: var(--red); }
@media (min-width: 1180px) { .hd-nav { display: flex; } .hd .menu-toggle { display: none !important; } }
.hd-in { position: relative; }
.hd-drop { position: static; }
.hd-drop-btn { display: inline-flex; align-items: center; gap: 4px; font: 500 15px var(--sans); color: var(--ink); background: none; border: 0; padding: 6px 0; cursor: pointer; }
.hd-drop-btn .ic { transition: transform .2s; }
.hd-mega { position: absolute; right: 0; top: calc(100% - 6px); width: min(860px, 92vw); display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 26px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s var(--ease); }
.hd-mega::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.hd-drop:hover .hd-mega, .hd-drop:focus-within .hd-mega, .hd-drop.open .hd-mega { opacity: 1; visibility: visible; transform: none; }
.hd-drop:hover .hd-drop-btn .ic, .hd-drop.open .hd-drop-btn .ic { transform: rotate(180deg); }
.hd-col-title { display: block; font: 700 14px var(--sans); color: var(--ink); text-decoration: none; margin-bottom: 6px; }
.hd-col-title:hover { color: var(--red-deep); }
.hd-col ul { list-style: none; margin: 0; padding: 0; }
.hd-col li a { display: block; padding: 4px 0; font-size: 14px; color: var(--soft); text-decoration: none; }
.hd-col li a:hover { color: var(--red-deep); }
.hd-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.hd-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.hd-icon:hover { border-color: var(--ink); color: var(--ink); }
.drawer-label { font: 700 12px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); margin: 1.2rem 0 .2rem; }

/* Shared bits ----------------------------------------------------------- */
.tag-topic { display: inline-flex; align-items: center; gap: 7px; font: 600 13px var(--sans); color: var(--ink); }
.tag-topic::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--red)); }
.t-food { --c: var(--t-food); } .t-home { --c: var(--t-home); } .t-money { --c: var(--t-money); } .t-tech { --c: var(--t-tech); } .t-life { --c: var(--t-life); }
.fp-meta { font-size: 13.5px; color: var(--soft); }
.fp-hand { font-family: var(--hand); font-size: 30px; line-height: 1; color: var(--red); margin: 0 0 12px; transform: rotate(-2deg); display: inline-block; }
.fp-hand-light { color: #FF8A8C; font-size: 26px; }

/* Hero ------------------------------------------------------------------ */
.fp-hero, .tp-hero { overflow-x: clip; }
.fp-hero { padding: 56px 0 64px; }
.fp-hero-in { display: grid; gap: 48px; align-items: center; }
@media (min-width: 980px) { .fp-hero-in { grid-template-columns: 1.08fr .92fr; gap: 56px; } }
.fp-title { font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 8vw, 5.6rem); line-height: .93; letter-spacing: -.05em; margin: 0 0 22px; }
.fp-title em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--red); letter-spacing: -.01em; font-size: 1.06em; }
.fp-lede { font-size: 19px; line-height: 1.6; color: var(--soft); max-width: 48ch; margin: 0 0 26px; }
.fp-search { display: flex; align-items: center; gap: 10px; max-width: 540px; border: 2px solid var(--ink); border-radius: 999px; padding: 6px 6px 6px 20px; background: #fff; box-shadow: 5px 5px 0 var(--ink); }
.fp-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: 500 16px var(--sans); background: transparent; color: var(--ink); }
.fp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.fp-chips a { border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 14px; color: var(--ink); text-decoration: none; background: #fff; }
.fp-chips a:hover { border-color: var(--ink); }
.fp-stack { position: relative; height: 560px; max-width: 520px; }
@media (max-width: 979px) { .fp-stack { height: 520px; margin: 0 auto; width: 100%; } }
.fp-pola { position: absolute; margin: 0; background: #fff; padding: 11px 11px 42px; box-shadow: 0 18px 40px rgba(20,22,26,.16); width: 262px; transition: transform .35s var(--ease); }
.fp-pola img { height: 210px; width: 100%; object-fit: cover; }
.fp-pola figcaption { font-family: var(--hand); font-size: 24px; margin: 7px 4px 0; color: var(--ink); }
.fp-pola::before { content: ""; position: absolute; top: -12px; left: 50%; width: 92px; height: 24px; background: rgba(224,42,46,.22); transform: translateX(-50%) rotate(-3deg); }
.fp-p1 { left: 0; top: 30px; transform: rotate(-6deg); }
.fp-p2 { left: 205px; top: 0; transform: rotate(5deg); }
.fp-p3 { left: 120px; top: 292px; transform: rotate(-2deg); z-index: 1; }
.fp-stack:hover .fp-p1 { transform: rotate(-8deg) translateX(-6px); }
.fp-stack:hover .fp-p2 { transform: rotate(7deg) translateX(6px); }
@media (max-width: 560px) { .fp-pola { width: 190px; } .fp-pola img { height: 160px; } .fp-p2 { left: auto; right: 0; } .fp-p3 { left: 22%; top: 235px; } .fp-stack { height: 460px; } .fp-seal { width: 96px; height: 96px; font-size: 13px; } }
.fp-seal { position: absolute; z-index: 2; right: 6px; bottom: 40px; width: 118px; height: 118px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; text-align: center; font: 800 15px/1.05 var(--display); transform: rotate(12deg); border: 3px dashed #fff; outline: 3px solid var(--red); padding: 12px; }

/* Topic strip ----------------------------------------------------------- */
.fp-topics { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.fp-topics-in { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .fp-topics-in { grid-template-columns: repeat(5, 1fr); } }
.fp-tp { display: flex; align-items: center; gap: 14px; padding: 18px 16px; color: var(--ink); text-decoration: none; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .fp-tp { border-bottom: 0; } .fp-tp:last-child { border-right: 0; } }
.fp-tp img { width: 54px; height: 54px; border-radius: 14px; object-fit: cover; flex: none; }
.fp-tp b { display: block; font: 700 16px var(--display); letter-spacing: -.01em; }
.fp-tp small { display: block; font-size: 13px; color: var(--soft); line-height: 1.35; }
.fp-tp:hover b { color: var(--red-deep); }

/* Sections -------------------------------------------------------------- */
.fp-sec { padding: 72px 0; }
.fp-pt0 { padding-top: 0; }
.fp-paper { background: var(--paper); }
.fp-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 20px; margin-bottom: 28px; }
.fp-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; margin: 0; }
.fp-head p { margin: 6px 0 0; color: var(--soft); }
.fp-more { font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--red); padding-bottom: 2px; white-space: nowrap; }
.fp-more:hover { color: var(--red-deep); }

/* Featured reads */
.fp-feat { display: grid; gap: 40px; }
@media (min-width: 960px) { .fp-feat { grid-template-columns: 1.35fr 1fr; } }
.fp-lead { display: block; color: var(--ink); text-decoration: none; }
.fp-lead img { height: clamp(240px, 34vw, 430px); width: 100%; object-fit: cover; border-radius: 22px; margin-bottom: 18px; }
.fp-lead h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.07; margin: 10px 0 12px; font-weight: 800; }
.fp-lead p { color: var(--soft); font-size: 17px; margin: 0 0 12px; max-width: 58ch; }
.fp-picks { display: grid; gap: 22px; align-content: start; }
.fp-pick { display: grid; grid-template-columns: 140px 1fr; gap: 18px; padding-bottom: 22px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.fp-pick:last-child { border-bottom: 0; }
.fp-pick img { height: 110px; width: 100%; object-fit: cover; border-radius: 14px; }
.fp-pick b { display: block; font: 700 19px/1.25 var(--display); letter-spacing: -.02em; margin: 6px 0; }
.fp-lead:hover h3, .fp-pick:hover b, .fp-card:hover b { color: var(--red-deep); }
@media (max-width: 520px) { .fp-pick { grid-template-columns: 104px 1fr; } .fp-pick img { height: 90px; } }

/* Top 10 shelf */
.fp-tens { display: grid; gap: 22px; }
@media (min-width: 760px) { .fp-tens { grid-template-columns: repeat(3, 1fr); } }
.fp-ten { display: flex; flex-direction: column; background: #fff; border: 2px solid var(--ink); border-radius: 22px; overflow: hidden; box-shadow: 6px 6px 0 var(--ink); color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.fp-ten:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); color: var(--ink); }
.fp-ten-ph { position: relative; height: 170px; }
.fp-ten-ph img { width: 100%; height: 100%; object-fit: cover; }
.fp-badge { position: absolute; left: 14px; top: 14px; background: var(--red); color: #fff; font: 800 13px var(--display); padding: 6px 11px; border-radius: 999px; }
.fp-ten-bd { padding: 18px 20px 20px; display: block; }
.fp-ten-bd > b { display: block; font: 800 22px/1.15 var(--display); letter-spacing: -.02em; margin: 8px 0 12px; }
.fp-ten ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fp-ten li { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.fp-ten li i { font-style: normal; width: 24px; height: 24px; border-radius: 7px; background: var(--paper); display: grid; place-items: center; font: 700 12px var(--display); flex: none; }
.fp-ten li:first-child i { background: var(--red); color: #fff; }

/* Help */
.fp-help { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .fp-help { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .fp-help { grid-template-columns: repeat(4, 1fr); } }
.fp-hp { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line); border-radius: 18px; padding: 18px; color: var(--ink); text-decoration: none; transition: border-color .2s; }
.fp-hp:hover { border-color: var(--ink); color: var(--ink); }
.fp-ib { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); flex: none; }
.fp-hp b { display: block; font: 700 17px var(--display); letter-spacing: -.01em; }
.fp-hp small { font-size: 13.5px; color: var(--soft); }

/* Latest grid */
.fp-grid3 { display: grid; gap: 28px; }
@media (min-width: 700px) { .fp-grid3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .fp-grid3 { grid-template-columns: repeat(3, 1fr); } }
.fp-card { display: block; color: var(--ink); text-decoration: none; }
.fp-card img { height: 220px; width: 100%; object-fit: cover; border-radius: 18px; margin-bottom: 14px; }
.fp-card b { display: block; font: 700 21px/1.2 var(--display); letter-spacing: -.02em; margin: 8px 0; }
.fp-ex { display: block; color: var(--soft); font-size: 15px; margin-bottom: 10px; }

/* Newsletter */
.fp-news { background: var(--ink); color: #C9CDD3; border-radius: 28px; padding: 44px 48px; display: grid; gap: 30px; align-items: center; }
@media (min-width: 900px) { .fp-news { grid-template-columns: 1.2fr 1fr; gap: 40px; } }
@media (max-width: 600px) { .fp-news { padding: 30px 22px; } }
.fp-news h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; margin: 0 0 8px; }
.fp-news p { margin: 0; }
.fp-news form { display: flex; gap: 10px; background: #fff; border-radius: 999px; padding: 6px; }
.fp-news input[type=email] { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 16px; font: 500 15px var(--sans); color: var(--ink); background: transparent; }
.fp-news small { display: block; margin-top: 10px; color: #9AA0A8; font-size: 13px; }
.fp-news small a { color: #fff; }
.fp-news .form-notice { margin-bottom: 12px; }

/* Topic pages ----------------------------------------------------------- */
.tp-hero { padding: 36px 0 52px; }
.tp-hero-in { display: grid; gap: 30px; align-items: center; }
@media (min-width: 900px) { .tp-hero-in { grid-template-columns: 1.4fr .6fr; } }
.tp-title { font-size: clamp(2.6rem, 6.5vw, 4.6rem); }
.tp-pola { position: relative; transform: rotate(4deg); justify-self: center; }
.tp-empty { border: 1.5px dashed var(--line); border-radius: 18px; padding: 28px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.tp-empty p { margin: 0; max-width: 60ch; color: var(--soft); }
.tp-empty b { color: var(--ink); }

/* Footer ---------------------------------------------------------------- */
.ft { border-top: 1px solid var(--line); margin-top: 48px; padding: 52px 0 28px; font-size: 14.5px; color: var(--soft); background: #fff; }
.ft-grid { display: grid; gap: 30px; grid-template-columns: 1fr 1fr; }
.ft-brand { grid-column: 1 / -1; }
@media (min-width: 960px) { .ft-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .ft-brand { grid-column: auto; } }
.ft .brand { margin-bottom: 14px; }
.ft-brand p { margin: 0 0 14px; max-width: 36ch; }
.ft address { font-style: normal; display: grid; gap: 4px; }
.ft address a { color: var(--ink); }
.ft h3 { font: 700 14px var(--display); color: var(--ink); margin: 0 0 12px; letter-spacing: 0; }
.ft h3.ft-gap { margin-top: 22px; }
.ft ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ft a { color: var(--soft); text-decoration: none; }
.ft a:hover { color: var(--red-deep); }
.ft-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); margin-top: 36px; padding-top: 20px; font-size: 13.5px; }
.ft-base a { color: var(--red-deep); font-weight: 600; }

/* List-page sticky rank bar sits under the new header */
.rank-nav { top: 74px; }
.admin-bar .rank-nav { top: 106px; }

/* Inline photos inside guides */
.post-figure { margin: 2rem 0; }
.post-figure img { width: 100%; height: auto; border-radius: 18px; }
.post-figure figcaption { font-size: 14px; color: var(--soft); margin-top: 8px; }
