/* Editorial homepage for roslinsah.my */
:root {
  --ed-cream: #fbf3ee;
  --ed-cream-strong: #f7e7df;
  --ed-white: #ffffff;
  --ed-coral: #e65f43;
  --ed-coral-dark: #c94732;
  --ed-navy: #18233a;
  --ed-charcoal: #24262b;
  --ed-muted: #666b74;
  --ed-line: #ded8d2;
  --ed-blue-soft: #eaf0f6;
  --ed-shadow: 0 12px 34px rgba(24, 35, 58, 0.08);
  --ed-container: 1180px;
}

html { scroll-behavior: smooth; }
body.ed-home {
  margin: 0;
  overflow-x: hidden;
  background: var(--ed-white);
  color: var(--ed-charcoal);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif;
}
body.ed-lock { overflow: hidden; }
.ed-home * { box-sizing: border-box; }
.ed-home a { color: inherit; text-decoration: none; }
.ed-home button, .ed-home input { font: inherit; }
.ed-home img { display: block; max-width: 100%; }
.ed-home p { max-width: none; }
.ed-container {
  width: min(100% - 40px, var(--ed-container));
  margin-inline: auto;
}
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Sticky shell */
.ed-shell {
  position: sticky;
  top: 0;
  z-index: 300;
  background: var(--ed-cream);
}
.ed-topline { height: 10px; background: var(--ed-coral); }
.ed-header {
  background: rgba(251, 243, 238, 0.97);
  border-bottom: 1px solid rgba(24, 35, 58, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.ed-header__inner {
  width: min(100% - 36px, 1180px);
  min-height: 82px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
}
.ed-icon-button {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ed-charcoal);
  cursor: pointer;
}
.ed-icon-button:hover { background: rgba(24, 35, 58, 0.06); }
.ed-icon-button:focus-visible {
  outline: 3px solid rgba(230, 95, 67, 0.35);
  outline-offset: 2px;
}
.ed-wordmark {
  justify-self: center;
  display: inline-flex;
  align-items: baseline;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.065em;
  color: var(--ed-charcoal);
  line-height: 1;
}
.ed-wordmark strong {
  margin-left: 0.08em;
  color: var(--ed-coral);
  font-weight: 900;
}
.ed-wordmark--menu { justify-self: start; font-size: 1.9rem; }
.ed-wordmark--footer { justify-self: start; color: #fff; font-size: 2.65rem; }
.ed-wordmark--footer strong { color: #fff; background: rgba(255,255,255,0.15); padding: 0.05em 0.15em 0.08em; }

/* Menu */
.ed-overlay {
  position: fixed;
  inset: 0;
  z-index: 395;
  background: rgba(24, 35, 58, 0.48);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.ed-overlay[hidden] { display: none; }
.ed-menu {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 400;
  width: min(430px, 92vw);
  padding: 26px 30px 34px;
  background: var(--ed-cream);
  transform: translateX(-104%);
  transition: transform 260ms ease;
  overflow-y: auto;
  box-shadow: 20px 0 60px rgba(24,35,58,0.18);
}
.ed-menu.is-open { transform: translateX(0); }
.ed-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ed-line);
}
.ed-menu__nav { display: grid; margin-top: 18px; }
.ed-menu__nav a {
  padding: 14px 0;
  border-bottom: 1px solid rgba(24,35,58,0.10);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.ed-menu__nav a:hover { color: var(--ed-coral-dark); }
.ed-menu__support {
  margin-top: 28px;
  padding: 20px;
  border-radius: 16px;
  background: var(--ed-navy);
  color: #fff;
}
.ed-menu__support p { margin: 0 0 10px; color: rgba(255,255,255,0.78); line-height: 1.55; }
.ed-menu__support a { color: #fff; font-weight: 800; border-bottom: 2px solid var(--ed-coral); }

/* Search */
.ed-search {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: 12vh 20px 40px;
  background: rgba(24,35,58,0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.ed-search[hidden] { display: none; }
.ed-search__dialog {
  width: min(760px, 100%);
  max-height: 76vh;
  overflow: auto;
  padding: clamp(22px, 4vw, 36px);
  border-radius: 22px;
  background: var(--ed-white);
  box-shadow: 0 30px 90px rgba(0,0,0,0.28);
}
.ed-search__head { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.ed-search__head h2 { margin: 0; font-size: clamp(1.5rem,3vw,2.1rem); color: var(--ed-navy); }
.ed-search__field {
  margin-top: 22px;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid var(--ed-line);
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--ed-cream);
}
.ed-search__field input {
  flex: 1;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ed-charcoal);
  font-size: 1rem;
}
.ed-search__results { display: grid; gap: 10px; margin-top: 18px; }
.ed-search__hint { color: var(--ed-muted); }
.ed-search-result {
  display: block;
  padding: 15px 16px;
  border: 1px solid var(--ed-line);
  border-radius: 12px;
}
.ed-search-result:hover { border-color: var(--ed-coral); background: var(--ed-cream); }
.ed-search-result span { display: block; color: var(--ed-coral-dark); font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.ed-search-result strong { display: block; margin-top: 5px; color: var(--ed-navy); line-height: 1.35; }

/* Hero */
.ed-hero {
  padding: clamp(72px, 10vw, 140px) 0 clamp(78px, 10vw, 130px);
  background: var(--ed-cream);
  text-align: center;
}
.ed-hero__inner { max-width: 980px; }
.ed-eyebrow {
  margin: 0 0 22px;
  color: var(--ed-coral-dark);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.ed-hero h1 {
  max-width: 14ch;
  margin: 0 auto;
  font-size: clamp(3rem, 8vw, 6.25rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
  color: var(--ed-charcoal);
  font-weight: 900;
  text-wrap: balance;
}
.ed-hero h1 span { display: block; }
.ed-accent { color: var(--ed-coral); }
.ed-hero__lead {
  max-width: 62ch;
  margin: clamp(34px, 5vw, 56px) auto 0;
  color: #3e4148;
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  line-height: 1.72;
}

/* Shared section heading */
.ed-section-title {
  border-top: 3px solid var(--ed-charcoal);
  padding-top: 18px;
  margin-bottom: 32px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}
.ed-section-title h2 {
  margin: 0;
  color: var(--ed-charcoal);
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.045em;
}
.ed-section-title > a {
  font-weight: 800;
  color: var(--ed-coral-dark);
  border-bottom: 2px solid currentColor;
}
.ed-section-title p { margin: 0; color: rgba(255,255,255,0.74); }

/* Latest */
.ed-latest { padding: clamp(66px, 8vw, 112px) 0; background: #fff; }
.ed-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--ed-line);
}
.ed-featured__image {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--ed-blue-soft);
}
.ed-featured__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 420ms ease; }
.ed-featured:hover .ed-featured__image img { transform: scale(1.025); }
.ed-featured__body h3 {
  margin: 12px 0 16px;
  color: var(--ed-charcoal);
  font-size: clamp(1.8rem, 3.5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}
.ed-featured__body h3 a:hover { color: var(--ed-coral-dark); }
.ed-featured__body > p { margin: 0; color: var(--ed-muted); line-height: 1.7; font-size: 1.02rem; }
.ed-category {
  display: inline-block;
  color: var(--ed-coral-dark);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.075em;
}
.ed-article-meta {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  color: var(--ed-muted);
  font-size: 0.82rem;
}
.ed-article-meta span + span::before { content: "•"; margin-right: 10px; }
.ed-card-grid {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.ed-card { min-width: 0; }
.ed-card__image {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ed-blue-soft);
}
.ed-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 360ms ease; }
.ed-card:hover .ed-card__image img { transform: scale(1.035); }
.ed-card__body { padding: 16px 2px 0; }
.ed-card h3 { margin: 9px 0 11px; font-size: 1.14rem; line-height: 1.32; letter-spacing: -0.025em; color: var(--ed-charcoal); }
.ed-card h3 a:hover { color: var(--ed-coral-dark); }
.ed-card p { margin: 0; color: var(--ed-muted); font-size: 0.9rem; line-height: 1.55; }
.ed-card__date { display: block; margin-top: 12px; color: var(--ed-muted); font-size: 0.78rem; }

/* Topics */
.ed-topics {
  padding: clamp(72px, 9vw, 120px) 0;
  background: var(--ed-navy);
  color: #fff;
}
.ed-section-title--light { border-top-color: rgba(255,255,255,0.92); }
.ed-section-title--light h2 { color: #fff; }
.ed-topic-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 44px; }
.ed-topic-list > a {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 25px 0;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.ed-topic-list > a:nth-child(-n+2) { border-top-color: rgba(255,255,255,0.42); }
.ed-topic-list > a > span { color: var(--ed-coral); font-weight: 900; font-size: 1.15rem; }
.ed-topic-list strong { display: block; color: #fff; font-size: 1.2rem; }
.ed-topic-list p { margin: 7px 0 0; color: rgba(255,255,255,0.68); line-height: 1.55; font-size: 0.93rem; }
.ed-topic-list a:hover strong { color: #ffb4a4; }

/* Report */
.ed-report { padding: clamp(72px, 9vw, 120px) 0; background: var(--ed-blue-soft); }
.ed-report__grid { display: grid; grid-template-columns: 1fr minmax(300px, 430px); gap: clamp(34px, 7vw, 90px); align-items: center; }
.ed-report__copy h2 {
  max-width: 17ch;
  margin: 0 0 22px;
  color: var(--ed-navy);
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}
.ed-report__copy > p { max-width: 58ch; color: #4b5361; line-height: 1.72; }
.ed-text-link { display: inline-block; margin-top: 20px; color: var(--ed-coral-dark); font-weight: 850; border-bottom: 2px solid currentColor; }
.ed-report__card {
  display: block;
  padding: clamp(28px, 5vw, 46px);
  border-radius: 20px;
  background: #fff;
  border: 1px solid #ccd8e5;
  box-shadow: var(--ed-shadow);
}
.ed-report__card > span { color: var(--ed-coral-dark); font-size: 0.78rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.075em; }
.ed-report__card strong { display: block; margin-top: 18px; color: var(--ed-navy); font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.03; letter-spacing: -0.05em; }
.ed-report__card p { margin: 18px 0 8px; color: #495160; line-height: 1.55; }
.ed-report__card small { color: var(--ed-muted); }

/* Principles */
.ed-principles { padding: clamp(70px, 8vw, 110px) 0; background: #fff; }
.ed-principles__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ed-principles article { padding: 28px; border: 1px solid var(--ed-line); background: var(--ed-cream); }
.ed-principles article > span { color: var(--ed-coral-dark); font-weight: 900; }
.ed-principles h3 { margin: 38px 0 10px; color: var(--ed-navy); font-size: 1.3rem; }
.ed-principles p { margin: 0; color: var(--ed-muted); line-height: 1.6; }

/* About */
.ed-about { padding: clamp(72px, 9vw, 120px) 0; background: var(--ed-cream); }
.ed-about__grid { display: grid; grid-template-columns: 180px 1fr; gap: 38px; align-items: center; max-width: 860px; }
.ed-about img { width: 180px; height: 180px; object-fit: cover; border-radius: 50%; border: 7px solid #fff; box-shadow: var(--ed-shadow); }
.ed-about h2 { margin: 0 0 14px; color: var(--ed-navy); font-size: 2.2rem; }
.ed-about p:not(.ed-eyebrow) { margin: 0; color: #4d5057; line-height: 1.75; }

/* Soft CTA */
.ed-soft-cta { padding: clamp(64px, 8vw, 100px) 0; background: var(--ed-navy); color: #fff; }
.ed-soft-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 42px; }
.ed-soft-cta h2 { max-width: 22ch; margin: 0; color: #fff; font-size: clamp(1.9rem, 4vw, 3.4rem); line-height: 1.08; letter-spacing: -0.04em; }
.ed-soft-cta .ed-eyebrow { color: #ffb29f; }
.ed-soft-cta__actions { display: flex; flex-direction: column; gap: 12px; min-width: 230px; }
.ed-button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 12px 20px; border-radius: 8px; font-weight: 850; }
.ed-button--light { background: #fff; color: var(--ed-navy); }
.ed-button--outline-light { border: 1px solid rgba(255,255,255,0.72); color: #fff; }

/* Footer */
.ed-footer {
  padding: clamp(70px, 8vw, 104px) 0 28px;
  background: var(--ed-coral-dark);
  color: #fff;
}
.ed-footer__intro { display: grid; grid-template-columns: 1.2fr auto; gap: 40px; align-items: end; }
.ed-footer__intro > div:first-child > p { max-width: 760px; margin: 26px 0 0; color: rgba(255,255,255,0.86); font-size: 1.05rem; line-height: 1.72; }
.ed-socials { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.ed-socials a {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--ed-coral-dark);
}
.ed-socials a:hover { transform: translateY(-2px); }
.ed-socials span { font-size: 1.35rem; font-weight: 900; }
.ed-footer__links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  margin-top: 56px;
  padding-top: 42px;
  border-top: 1px solid rgba(255,255,255,0.34);
}
.ed-footer__links h3 { margin: 0 0 18px; color: #fff; font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.07em; }
.ed-footer__links a { display: block; width: fit-content; margin: 11px 0; color: rgba(255,255,255,0.86); }
.ed-footer__links a:hover { color: #fff; text-decoration: underline; }
.ed-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.34);
  color: rgba(255,255,255,0.72);
  font-size: 0.78rem;
  line-height: 1.55;
}
.ed-footer__bottom span:last-child { max-width: 620px; text-align: right; }

/* Responsive */
@media (max-width: 980px) {
  .ed-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 22px; }
  .ed-topic-list { grid-template-columns: 1fr; }
  .ed-topic-list > a:nth-child(2) { border-top-color: rgba(255,255,255,0.18); }
  .ed-report__grid { grid-template-columns: 1fr; }
  .ed-report__copy h2 { max-width: 20ch; }
}
@media (max-width: 760px) {
  .ed-container { width: min(100% - 32px, var(--ed-container)); }
  .ed-topline { height: 8px; }
  .ed-header__inner { width: calc(100% - 24px); min-height: 72px; grid-template-columns: 48px 1fr 48px; }
  .ed-wordmark { font-size: 1.8rem; }
  .ed-hero { padding-top: 76px; padding-bottom: 84px; }
  .ed-hero h1 { font-size: clamp(3rem, 13vw, 4.7rem); max-width: 11ch; }
  .ed-hero__lead { font-size: 1rem; line-height: 1.68; }
  .ed-section-title { align-items: flex-start; flex-direction: column; gap: 12px; }
  .ed-featured { grid-template-columns: 1fr; }
  .ed-featured__body h3 { font-size: 2rem; }
  .ed-card-grid { grid-template-columns: 1fr; }
  .ed-card { display: grid; grid-template-columns: 122px 1fr; gap: 15px; align-items: start; }
  .ed-card__image { aspect-ratio: 1 / 1; }
  .ed-card__body { padding-top: 0; }
  .ed-card p { display: none; }
  .ed-card h3 { font-size: 1rem; margin-bottom: 8px; }
  .ed-principles__grid { grid-template-columns: 1fr; }
  .ed-about__grid { grid-template-columns: 90px 1fr; gap: 20px; }
  .ed-about img { width: 90px; height: 90px; border-width: 4px; align-self: start; }
  .ed-about h2 { font-size: 1.8rem; }
  .ed-about p:not(.ed-eyebrow) { grid-column: 1 / -1; }
  .ed-soft-cta__inner { align-items: flex-start; flex-direction: column; }
  .ed-soft-cta__actions { width: 100%; min-width: 0; }
  .ed-footer__intro { grid-template-columns: 1fr; align-items: start; }
  .ed-socials { justify-content: flex-start; }
  .ed-footer__links { grid-template-columns: 1fr 1fr; }
  .ed-footer__bottom { flex-direction: column; }
  .ed-footer__bottom span:last-child { text-align: left; }
}
@media (max-width: 480px) {
  .ed-header__inner { grid-template-columns: 44px 1fr 44px; }
  .ed-icon-button { width: 42px; height: 42px; }
  .ed-hero h1 { font-size: clamp(2.75rem, 13.5vw, 4rem); }
  .ed-featured__body h3 { font-size: 1.75rem; }
  .ed-card { grid-template-columns: 104px 1fr; }
  .ed-topic-list > a { grid-template-columns: 38px 1fr; gap: 12px; }
  .ed-report__card strong { font-size: 2.35rem; }
  .ed-footer__links { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
