.h-heroBand {
  background: radial-gradient(900px 420px at 14% -8%, #fffdf8 0%, rgba(255, 253, 248, 0) 72%);
}
.h-hero {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  align-items: center;
  gap: 48px;
  padding-block: 38px 34px;
}
.h-heroCopy {
  min-width: 0;
}
.h-eyebrow {
  color: var(--teal);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.2em;
  margin: 0 0 18px;
}
.h-hero h1 {
  font-size: clamp(34px, 3.75vw, 54px);
  line-height: 1.17;
  letter-spacing: -0.035em;
  margin: 0 0 18px;
}
.h-introduction {
  margin: 0 0 24px;
  max-width: 510px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
}
.h-heroSearch .c-search {
  box-shadow: 0 8px 24px #20565b12;
}
.h-locationHint {
  color: var(--muted);
  font-size: 13px;
  margin: 12px 0 0;
}
.h-heroVisual {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #d8e6de;
  box-shadow: 0 18px 40px #20565b1f;
}
.h-heroVisual > img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.7;
  object-fit: cover;
}
.h-heroVisual figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 40px 22px 16px;
  background: linear-gradient(transparent, #294639d4);
  color: #fffdf4;
  font-family: var(--serif);
  font-size: 17px;
}
.h-dailyInfo {
  margin-bottom: 26px;
}
.h-dailyHeader {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 12px;
}
.h-dailyHeader h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--teal);
}
.h-dailyHeader p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.h-infoPanel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 6px 20px #20565b0a;
}
/* Cells share the panel's row tracks so labels, figures and links line up across columns. */
.h-infoCell {
  position: relative;
  display: grid;
  grid-row: span 5;
  grid-template-rows: subgrid;
  grid-template-columns: auto minmax(0, 1fr);
  min-width: 0;
  padding: 20px clamp(16px, 1.6vw, 22px) 14px;
}
/* Dividers stop short of the panel edge so the four cells still read as one piece. */
.h-infoCell + .h-infoCell::before {
  content: "";
  position: absolute;
  inset: 22px auto 22px 0;
  width: 1px;
  background: var(--line);
}
.h-infoHead,
.h-infoDetail {
  display: contents;
}
.h-infoLabel {
  position: relative;
  grid-area: 1 / 1 / 2 / -1;
  margin: 0 0 10px;
  padding-left: 27px;
  color: var(--teal);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 20px;
  font-weight: 650;
  text-wrap: wrap;
}
.h-infoLabel svg {
  position: absolute;
  top: 0;
  left: 0;
}
.h-infoMetric {
  grid-area: 2 / 1;
  align-self: baseline;
  margin: 0;
  color: var(--teal-dark);
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.h-infoMetric > span {
  margin-left: 5px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
}
.h-infoMetric--degree > span {
  margin-left: 1px;
}
/* Sits beside the figure it qualifies; long place names would push it off the label row. */
.h-infoTag {
  display: inline-block;
  grid-area: 2 / 2;
  align-self: baseline;
  justify-self: start;
  margin-left: 10px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f3eee2;
  color: #765619;
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  white-space: nowrap;
}
.h-infoLine,
.h-infoSub {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  font-size: 14px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.h-infoDetail > :nth-child(1) {
  grid-row: 3;
  margin-top: 8px;
}
.h-infoDetail > :nth-child(2) {
  grid-row: 4;
}
.h-infoDetail time {
  white-space: nowrap;
}
.h-infoSub {
  color: var(--muted);
  font-size: 13px;
}
.h-infoChange {
  font-weight: 600;
}
.h-infoChange svg {
  margin-right: 4px;
  vertical-align: -2px;
}
.h-infoChange--up {
  color: #2a6b4a;
}
.h-infoChange--down {
  color: var(--rust);
}
.h-infoChange--flat {
  color: var(--muted);
}
.h-infoSource {
  display: inline-flex;
  grid-area: 5 / 1 / 6 / -1;
  align-items: center;
  align-self: end;
  justify-self: start;
  gap: 5px;
  margin-top: 10px;
  padding-block: 6px;
  font-size: 13px;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
}
.h-infoSource:hover {
  text-decoration: underline;
}
@media (min-width: 600px) and (max-width: 899px) {
  .h-infoPanel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .h-infoCell {
    padding-inline: 22px;
  }
  .h-infoCell:nth-child(odd)::before {
    content: none;
  }
  .h-infoCell:nth-child(n + 3)::after {
    content: "";
    position: absolute;
    inset: 0 22px auto;
    height: 1px;
    background: var(--line);
  }
}
@media (max-width: 599px) {
  .h-dailyInfo {
    margin-top: 18px;
    margin-bottom: 22px;
  }
  .h-dailyHeader h2 {
    font-size: 18px;
  }
  .h-infoPanel {
    grid-template-columns: minmax(0, 1fr);
    border-radius: 12px;
  }
  /* Each cell becomes a two-line row: label and link icon, then the figure with its detail. */
  .h-infoCell {
    grid-row: auto;
    grid-template: auto auto / auto minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 3px 12px;
    padding: 12px 16px;
  }
  .h-infoCell + .h-infoCell::before {
    inset: 0 16px auto;
    width: auto;
    height: 1px;
  }
  .h-infoHead {
    display: block;
    position: relative;
    grid-area: 1 / 1 / 2 / 3;
    padding-left: 27px;
    font-size: 14px;
    line-height: 20px;
  }
  .h-infoLabel {
    display: inline;
    position: static;
    margin: 0;
    padding: 0;
  }
  .h-infoTag {
    margin-left: 4px;
  }
  .h-infoSource {
    grid-area: 1 / 3;
    align-self: start;
    margin: -12px -13px -12px -9px;
    padding: 13px;
  }
  /* Malay and English labels leave no room for link text here; the icon keeps a 44px target and the text stays for assistive tech. */
  .h-infoSourceText {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .h-infoSource svg {
    width: 18px;
    height: 18px;
  }
  .h-infoMetric {
    grid-area: 2 / 1;
    font-size: 22px;
  }
  .h-infoDetail {
    display: flex;
    grid-area: 2 / 2 / 3 / 4;
    flex-wrap: wrap;
    gap: 0 12px;
  }
  .h-infoDetail > .h-infoLine {
    margin: 0;
  }
  .h-infoSub {
    display: none;
  }
}
.h-entries {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.h-entry {
  position: relative;
  display: flex;
  gap: 13px;
  min-width: 0;
  padding: 18px 16px 34px;
  border-radius: 10px;
  background: #e7efeb;
  color: var(--teal);
  text-decoration: none;
  transition: background 0.18s, transform 0.18s;
}
.h-entry:nth-child(even) {
  background: #eee8dc;
}
.h-entry:hover {
  background: #d9e8e1;
  transform: translateY(-2px);
}
.h-entry:nth-child(even):hover {
  background: #e6decd;
}
.h-entryIcon {
  display: flex;
  padding-top: 2px;
}
.h-entry:nth-child(even) .h-entryIcon {
  color: #916f2e;
}
.h-entryText {
  min-width: 0;
}
.h-entryText strong {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.35;
}
.h-entryText > span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.h-entryArrow {
  position: absolute;
  bottom: 10px;
  left: 17px;
  display: flex;
}
.h-notices {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 24px;
  margin-top: 22px;
  padding: 10px 20px;
  background: #f8e9df;
  border-left: 3px solid #b26748;
  border-radius: 8px;
}
.h-notices h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #9c4d35;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}
.h-noticesAll {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}
.h-notices ul {
  grid-column: 2;
  grid-row: 1;
  list-style: none;
  margin: 0;
  padding: 0;
}
.h-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 14px;
  padding: 5px 0;
}
.h-notice + .h-notice {
  border-top: 1px solid #ecd5c6;
}
.h-notice a {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.h-notice a:hover {
  text-decoration: underline;
}
.h-notice small {
  color: #685c51;
  font-size: 13px;
}
.h-section {
  margin-top: 46px;
}
.h-tiles {
  display: grid;
  gap: 18px;
}
.h-tiles--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.h-tiles--two > :last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.h-tiles--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.h-tiles--row {
  grid-template-columns: repeat(var(--h-count, 4), minmax(0, 1fr));
}
.h-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  transition: transform 0.18s, box-shadow 0.18s;
}
.h-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px #20565b17;
}
.h-tile:focus-within {
  outline: 3px solid #a97818;
  outline-offset: 3px;
}
.h-tileLink {
  text-decoration: none;
}
.h-tileLink:focus-visible {
  outline: none;
}
.h-tileLink::after {
  content: "";
  position: absolute;
  inset: 0;
}
.h-tileArt {
  position: relative;
  flex-shrink: 0;
  height: 172px;
  overflow: hidden;
  background: #e4eae0;
}
.h-tileArt img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.h-tile:hover .h-tileArt img {
  transform: scale(1.04);
}
.h-tileDate {
  position: absolute;
  top: 12px;
  left: 12px;
  display: grid;
  place-content: center;
  width: 54px;
  min-height: 58px;
  border: 3px solid var(--surface);
  border-radius: 10px;
  background: var(--teal);
  color: #fff;
  font-family: var(--sans);
  text-align: center;
}
.h-tileDate strong {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.15;
}
.h-tileDate span {
  font-size: 13px;
  line-height: 1.3;
}
.h-tileBody {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  padding: 16px 18px 18px;
}
.h-tile h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.4;
  text-wrap: pretty;
}
.h-tile:hover h3 a {
  text-decoration: underline;
}
.h-tileSummary {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.h-tileMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  margin: auto 0 0;
  padding-top: 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.h-tileMeta strong {
  color: var(--teal);
  font-weight: 650;
}
.h-tile--wide {
  flex-direction: row;
}
.h-tile--wide .h-tileArt {
  flex: 0 0 40%;
  height: auto;
  min-height: 172px;
}
.h-tile--wide .h-tileArt img {
  position: absolute;
  inset: 0;
}
.h-tile--wide h3 {
  font-size: 20px;
}
.h-tiles--three .h-tile--wide .h-tileArt {
  flex-basis: 36%;
}
.h-tiles--three .h-tile--wide h3 {
  font-size: 18px;
}
.h-faithSection {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  margin: 50px 0 44px;
  padding: 30px 32px;
  overflow: hidden;
  border-radius: 14px;
  background: #eeeadf;
}
.h-faithLeaf {
  position: absolute;
  bottom: -46px;
  left: -34px;
  color: #8a9a7d;
  opacity: 0.14;
  pointer-events: none;
  transform: rotate(-24deg);
}
.h-faithIntro {
  position: relative;
}
.h-faithIntro p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.h-faithIntro > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 650;
}
.h-faithCard {
  position: relative;
  min-width: 0;
}
.h-faithCard > img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 10px;
}
@media (max-width: 1100px) and (min-width: 768px) {
  .h-hero {
    gap: 28px;
  }
  .h-entry {
    gap: 9px;
    padding-inline: 12px;
  }
  .h-entryText strong {
    font-size: 16px;
  }
  .h-tiles--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .h-tiles--three > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .h-faithSection {
    gap: 24px;
    padding: 24px;
  }
}
@media (max-width: 899px) and (min-width: 768px) {
  .h-tiles--row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .h-hero {
    display: block;
    padding-block: 20px 4px;
  }
  .h-eyebrow,
  .h-introduction,
  .h-locationHint {
    display: none;
  }
  .h-hero h1 {
    font-size: clamp(30px, 8.4vw, 40px);
    line-height: 1.22;
    margin-bottom: 14px;
  }
  .h-heroVisual {
    margin-top: 16px;
    border-radius: 12px;
    box-shadow: none;
  }
  .h-heroVisual > img {
    aspect-ratio: 2.4;
  }
  .h-heroVisual figcaption {
    padding: 28px 14px 10px;
    font-size: 14px;
  }
  .h-entries {
    gap: 6px;
    margin-top: 18px;
  }
  .h-entry,
  .h-entry:nth-child(even),
  .h-entry:hover,
  .h-entry:nth-child(even):hover {
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 0 0 3px;
    background: transparent;
    text-align: center;
    transform: none;
  }
  .h-entryIcon {
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    padding: 0;
    border-radius: 50%;
    background: #e3eeea;
  }
  .h-entry:nth-child(even) .h-entryIcon {
    background: #eee6d7;
  }
  .h-entryText strong {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }
  .h-entryText > span,
  .h-entryArrow {
    display: none;
  }
  .h-notices {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin-top: 20px;
    padding: 12px 14px 2px;
  }
  .h-notices h2 {
    white-space: normal;
  }
  .h-notices ul {
    grid-column: 1;
    grid-row: 2;
    margin-top: 4px;
  }
  .h-noticesAll {
    grid-column: 1;
    grid-row: 3;
    justify-self: end;
  }
  .h-notice {
    padding: 8px 0;
  }
  .h-faithLeaf {
    left: auto;
    right: -30px;
    bottom: auto;
    top: -30px;
  }
  .h-section {
    margin-top: 34px;
  }
  .h-tiles {
    gap: 12px;
  }
  .h-tiles--two,
  .h-tiles--three {
    grid-template-columns: minmax(0, 1fr);
  }
  .h-tileBody {
    gap: 6px;
    padding: 12px 14px 14px;
  }
  .h-tile h3,
  .h-tile--wide h3 {
    font-size: 17px;
  }
  .h-tileSummary {
    font-size: 13px;
  }
  .h-tile--wide .h-tileArt,
  .h-tiles--three .h-tile--wide .h-tileArt {
    flex-basis: 34%;
    min-height: 124px;
  }
  .h-tiles--row {
    display: flex;
    margin-inline: -16px;
    padding: 3px 16px 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 16px;
    scroll-snap-type: x mandatory;
  }
  .h-tiles--row > .h-tile {
    flex: 0 0 64%;
    scroll-snap-align: start;
  }
  .h-tiles--row .h-tileArt {
    height: 136px;
  }
  .h-faithSection {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin: 36px 0 32px;
    padding: 22px 16px 16px;
  }
  .h-faithIntro p {
    font-size: 14px;
  }
}
@media (max-width: 359px) {
  .h-entries {
    gap: 2px;
  }
  .h-entryText strong {
    letter-spacing: -0.02em;
  }
}
