/* Medis Medika landing page: the page CSS on top of the taste-skill kit. */

/* logo image in the nav and footer */
.nav__logo { display: inline-flex; align-items: center; }
.nav__img { display: block; height: 28px; width: auto; }

/* produk pilihan: .pgrid / .pcard live in pcard.css (shared with the inner pages) */

/* kategori dan merek: ruled rows that are links */
.rows-label { margin-bottom: var(--s-3); }
.rows--links > li { display: block; padding: 0; }
.rows--links > li > a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-5); align-items: baseline;
  padding-block: var(--s-3); color: var(--ink); text-decoration: none;
  position: relative; transition: color var(--dur) var(--ease);
}
.rows--links > li > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease); }
.rows--links > li:first-child > a { padding-top: 0; }
.rows--links > li > a:hover, .rows--links > li > a:focus-visible { color: var(--accent); }
.rows--links > li > a:hover::after, .rows--links > li > a:focus-visible::after { transform: scaleX(1); }
.rows--links .rows__value { color: var(--muted); }

/* toko: the brand band, the address set large */
.ground-brand {
  --bg: var(--p-accent); --surface: var(--p-accent); --ink: var(--p-accent-ink); --muted: rgb(255 255 255 / .78); --card: var(--p-accent);
  --accent: #ffffff; --accent-ink: var(--p-accent); --action: #ffffff; --action-ink: var(--p-accent);
  --line: rgb(255 255 255 / .28); --line-strong: rgb(255 255 255 / .5);
  background: var(--bg); color: var(--ink);
}
.ground-brand > .wrap { display: flex; flex-direction: column; }
.toko { flex: 1 1 auto; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr auto; column-gap: var(--gutter); row-gap: var(--s-6); }
.toko__label { grid-column: 1 / -1; grid-row: 1; margin: 0; }
.toko__address {
  grid-column: 1 / -1; grid-row: 2; align-self: end; position: relative; display: block; width: 100%;
  font: var(--display-weight) clamp(44px, 8vw, 128px)/1.0 var(--font-display); letter-spacing: var(--display-tracking-xl);
  color: var(--ink); text-decoration: none; text-wrap: balance;
}
.toko__address::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.toko__address:hover::after, .toko__address:focus-visible::after { transform: scaleX(1); }
.toko__side { grid-column: 1 / -1; grid-row: 3; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s-5); align-items: end; margin-top: var(--s-6); }
.toko__side .hours dd { color: var(--ink); }
.toko__side .hours { grid-column: 1 / span 4; }
.toko__photo { grid-column: 9 / -1; grid-row: 1; width: 100%; height: auto; border-radius: var(--r-lg); display: block; }
.toko__markets { grid-column: 5 / span 4; color: var(--muted); max-width: 46ch; }
.toko__markets .link { color: var(--ink); }
@media (max-width: 1023px) {
  .toko__side { grid-template-columns: 1fr; } .toko__side .hours, .toko__markets, .toko__photo { grid-column: 1; grid-row: auto; }
}

/* close photo: the instruments, cropped by the kit's band */
.close__media { --pos: 50% 31%; }

html [data-moment="photo-chapters"] .mo-ph__head, html [data-moment="photo-chapters"] .mo-ph__head h2 { max-width: none; }
@media (max-width: 639px) { .hero--photo { --photo: 34svh; } }
@media (max-width: 639px) {
  #kebutuhan:not(.is-live) { min-height: 200svh; }
  html [data-moment="photo-chapters"]:not(.is-live) .mo-ph__pic > img { aspect-ratio: 5 / 4; }
}
