/* lopobae.com, multi-page layout (Dec 2026, direction B). Loaded after styles.css by every page on the new layout.
   One content width (72rem), left aligned. A conventional top menu on every page (Fitur, Untuk ART dan sopir,
   Untuk Eyang, Rencana, Cerita, Bantuan), a menu button on phones (<details>, no script). The approved cast
   (brand/guide.md §6.2, cast sheet 2 Dec) appears as people; scenes come from the approved illustrations; a real app
   screen always overlaps a scene, so a drawing is never mistaken for the app. */
:root {
  --s-warm: #F2E2BA;          /* Dutch White */
  --s-deep: #214E34;          /* Forest Green */
  --s-on-deep: #FBF6EA;
  --s-on-deep-soft: #D9E3D4;
  --s-bezel: #1F2A22;
  --s-wrap: 72rem;
  --s-gutter: max(1rem, min(4vw, 2.5rem));
  --s-shadow: 0 1.5rem 3rem -1.25rem rgba(31, 42, 34, .35);
}
@media (prefers-color-scheme: dark) {
  :root { --s-warm: #22261F; --s-deep: #173523; --s-on-deep: #F3EFE4; --s-on-deep-soft: #C3CDBE; --s-bezel: #3A3F36; --s-shadow: none; }
}

.s main:where(:not(.doc)), .s :where(footer) { max-width: none; padding: 0; margin: 0; }
.s main:where(:not(.doc)) section { border-top: 0; padding-top: 0; padding-bottom: 0; }
/* Text pages (Rencana, Bantuan, Privasi, Ketentuan, Tentang) keep a reading column under the new bar. */
.s main.doc { max-width: 46rem; margin: 0 auto; padding: 2rem var(--s-gutter) 3.5rem; }
.wrap { max-width: var(--s-wrap); margin: 0 auto; padding-left: var(--s-gutter); padding-right: var(--s-gutter); }
.skip { position: absolute; left: -999px; top: .5rem; z-index: 10; background: var(--teras-card); padding: .75rem 1rem; border-radius: .5rem; }
.skip:focus { left: .5rem; }
.s [id] { scroll-margin-top: 5rem; }

/* Top menu */
.bar { position: sticky; top: 0; z-index: 5; background: var(--teras-background); border-bottom: 1px solid var(--teras-divider); }
.bar-in { display: flex; align-items: center; gap: 1.5rem; min-height: 4.25rem; }
.bar-brand { display: inline-flex; align-items: center; min-height: var(--teras-target-min); margin-right: .5rem; }
.bar .wordmark { width: 5.25rem; }
.bar-links { display: none; }
.bar-links a, .bar-end .lang { color: var(--teras-text); text-decoration: none; font-weight: 600; font-size: .9375rem; display: inline-flex; align-items: center; min-height: var(--teras-target-min); white-space: nowrap; }
.bar-links a:hover, .bar-end .lang:hover { text-decoration: underline; text-underline-offset: .3em; }
.bar-links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .45em; }
.bar-end { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.bar-end .lang { color: var(--teras-link); }
.bar-end .button { white-space: nowrap; display: none; padding: .5rem 1.125rem; font-size: .9375rem; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: var(--teras-target-min); padding: 0 1rem; border-radius: 999px; border: 1px solid var(--teras-divider); font-weight: 700; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--teras-card); }
.menu nav { max-height: calc(100dvh - 5rem); overflow-y: auto; position: absolute; right: 0; top: calc(100% + .5rem); width: min(18rem, 86vw); background: var(--teras-card); border-radius: 1rem; padding: .5rem; box-shadow: 0 1rem 2rem -1rem rgba(31, 42, 34, .4); display: grid; }
.menu nav a { color: var(--teras-text); text-decoration: none; font-weight: 600; padding: .75rem 1rem; border-radius: .625rem; min-height: var(--teras-target-min); }
.menu nav a:hover { background: var(--teras-background); }
@media (min-width: 68em) {
  .bar-links { display: flex; gap: 1.25rem; }
  .menu { display: none; }
}

.s .button:hover { filter: brightness(1.12); }
.button.light { background: var(--s-on-deep); color: var(--s-deep); }
.button.ghost { background: transparent; color: var(--teras-text); box-shadow: inset 0 0 0 1.5px currentColor; }

/* Type */
.s h1 { font-size: clamp(2.25rem, 5.2vw, 4rem); line-height: 1.05; letter-spacing: -.025em; font-weight: 800; margin: 0 0 1.25rem; text-wrap: balance; }
.s h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.12; letter-spacing: -.02em; font-weight: 800; margin: 0 0 1rem; text-wrap: balance; }
.s h3 { font-size: 1.125rem; line-height: 1.35; font-weight: 700; margin: 0 0 .375rem; }
.s .lead { margin: 0 0 1.75rem; max-width: 36rem; font-size: clamp(1.125rem, 1.6vw, 1.3125rem); color: var(--teras-secondary-text); text-align: left; }
.kicker { font-weight: 700; color: var(--teras-action); margin: 0 0 .75rem; }
.muted { color: var(--teras-secondary-text); }
.prose { max-width: 38rem; }
.prose p { text-wrap: pretty; }

/* Sections */
.s .sec { padding-top: clamp(3.5rem, 8vw, 6rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.s .band { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.band.warm { background: var(--s-warm); }
.band.deep { background: var(--s-deep); color: var(--s-on-deep); }
.band.deep a:not(.button) { color: var(--s-on-deep); }
.band.deep .muted, .band.deep .lead { color: var(--s-on-deep-soft); }
.band.deep .kicker { color: var(--s-on-deep); }
div.head { max-width: 40rem; margin-bottom: 2.5rem; }
div.head p { color: var(--teras-secondary-text); font-size: 1.125rem; }
.band.deep .head p { color: var(--s-on-deep-soft); }
.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 56em) { .split { grid-template-columns: 1fr 1fr; column-gap: 5rem; } .split.flip > :first-child { order: 2; } }
.two { display: grid; gap: 1rem; }
@media (min-width: 56em) { .two { grid-template-columns: 22rem 1fr; column-gap: 5rem; } .two > .head { position: sticky; top: 6rem; align-self: start; } }

/* Pictures */
.scene { display: block; width: 100%; height: auto; border-radius: 1.75rem; }
.stage { position: relative; padding-bottom: 2rem; }
.stage .scene { aspect-ratio: 4 / 4.2; object-fit: cover; object-position: 50% 60%; }
.phone { margin: 0; }
.phone img { display: block; width: 100%; height: auto; border: 0; border-radius: 1.6rem; background: var(--teras-card); outline: .45rem solid var(--s-bezel); box-shadow: var(--s-shadow); }
.stage .phone { position: absolute; width: 38%; left: -1.5rem; bottom: 0; }
@media (max-width: 40em) { .stage .phone { left: .75rem; width: 42%; } }

/* Home hero: the whole household in a row under the promise line. The memorable thing on the site. */
.s .hero-home { padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.hero-home .top { display: grid; gap: 1.5rem; align-items: end; }
@media (min-width: 56em) { .hero-home .top { grid-template-columns: 1.15fr 1fr; column-gap: 4rem; align-items: center; } }
.hero-home h1 { max-width: 14ch; }
.s .launch { text-align: left; }
.launch-line { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.launch-line h2 { font-size: 1rem; letter-spacing: 0; margin: 0; flex-basis: 100%; }
.s .countdown { margin: 0; gap: .375rem; max-width: 20rem; flex: 1 1 16rem; }
.s .countdown div { padding: .5rem .25rem; text-align: center; box-shadow: inset 0 0 0 1px var(--teras-divider); }
.s .countdown span { font-size: 1.5rem; }
.s .countdown small { font-size: .8125rem; }
.s .after { margin: 0; flex-basis: 100%; }
.s .cta { margin: 0; }
.s .launch .note, .s .note { margin: 1rem 0 0; }
.s .note.muted a { text-decoration: underline; }
.household { margin: 3rem 0 0; }
.household img { display: block; width: 100%; height: auto; }
/* The cast drawings are cut out (transparent), so they stand on any background in light and dark mode; the caption
   rule under them is the ground line. */
.household figcaption { display: grid; grid-template-columns: 48fr 25fr 29fr; gap: .5rem; border-top: 2px solid var(--teras-text); padding-top: 1rem; font-size: .9375rem; }
.household figcaption span b { display: block; }
@media (max-width: 40em) { .household figcaption { grid-template-columns: 1fr; } }

/* People cards: who uses Lopo, each with its own page. */
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
@media (min-width: 48em) { .people { grid-template-columns: repeat(3, 1fr); } }
.people li { background: var(--teras-card); border-radius: 1.5rem; overflow: hidden; display: flex; flex-direction: column; }
.people .pic { background: var(--s-warm); height: 16rem; display: flex; justify-content: center; align-items: flex-end; padding: 1.5rem 1.25rem 0; box-shadow: inset 0 -2px 0 var(--teras-divider); }
.people .pic img { height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: bottom; }
.people .txt { padding: 1.5rem; display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.people .txt p { color: var(--teras-secondary-text); margin: 0 0 .75rem; }
.people .txt a { margin-top: auto; font-weight: 700; min-height: var(--teras-target-min); display: inline-flex; align-items: center; }

/* Steps (a real sequence, so numbered) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; counter-reset: step; }
@media (min-width: 48em) { .steps { grid-template-columns: repeat(3, 1fr); column-gap: 1.75rem; } }
.steps li { counter-increment: step; }
div.tile { background: var(--s-warm); border-radius: 1.5rem; padding: 2rem 2rem 0; height: 22rem; overflow: hidden; margin-bottom: 1.25rem; }
div.tile img { display: block; width: 100%; max-width: 15rem; margin: 0 auto; height: auto; border-radius: 1.4rem 1.4rem 0 0; outline: .4rem solid var(--s-bezel); }
.steps h3::before { content: counter(step) ". "; color: var(--teras-action); }
.steps p { color: var(--teras-secondary-text); margin: 0; }
.then { list-style: none; padding: 1.5rem 0 0; margin: 2.5rem 0 0; border-top: 1px solid var(--teras-divider); display: grid; gap: 1rem; color: var(--teras-secondary-text); }
.then b { color: var(--teras-text); }
@media (min-width: 48em) { .then { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }

/* Feature groups: a screen beside a detailed list. */
.fgroup { display: grid; gap: 2rem; padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--teras-divider); }
.fgroup:first-of-type { border-top: 0; }
.fgroup .phone { width: min(16rem, 64vw); }
@media (min-width: 56em) { .fgroup { grid-template-columns: 18rem 1fr; column-gap: 5rem; align-items: start; } .fgroup .phone { width: 100%; } }
.flist { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0; }
.flist li { padding: 1.125rem 0; border-top: 1px solid var(--teras-divider); display: grid; gap: .25rem; }
@media (min-width: 40em) { .flist li { grid-template-columns: 12rem 1fr; column-gap: 2rem; } }
.flist h3 { margin: 0; }
.flist p { margin: 0; color: var(--teras-secondary-text); }
.flist p + p { margin-top: .375rem; }
.flist .eg { color: var(--teras-text); }
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
@media (min-width: 36em) { .cards { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; } }
@media (min-width: 64em) { .cards.four { grid-template-columns: repeat(4, 1fr); column-gap: 2rem; } }
.cards li { border-top: 2px solid var(--teras-divider); padding: 1rem 0 .25rem; }
.cards p { margin: 0; color: var(--teras-secondary-text); }
.band.deep .cards li { border-color: rgba(251, 246, 234, .25); }
.band.deep .cards p { color: var(--s-on-deep-soft); }
.not-yet { background: var(--teras-card); border-radius: 1.5rem; padding: 1.5rem 1.75rem; }
.not-yet ul { margin: .5rem 0 0; padding-left: 1.25rem; }

/* A day, hour by hour (POV pages): times are a real sequence. */
.day { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.day li { display: grid; grid-template-columns: 4.5rem 1fr; column-gap: 1.25rem; padding: 1.25rem 0; border-top: 1px solid var(--teras-divider); }
.band.deep .day li { border-color: rgba(251, 246, 234, .22); }
.day time { font-weight: 800; font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.day p { margin: 0; }
.day .who { font-weight: 700; }
.day .say { color: var(--teras-secondary-text); margin-top: .25rem; }
.band.deep .day .say { color: var(--s-on-deep-soft); }
.story-note { font-size: .9375rem; color: var(--teras-secondary-text); margin-top: 1.5rem; }
.s .pov-hero { padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(2rem, 5vw, 3rem); }
.pov-hero .pair { display: grid; gap: 1rem; grid-template-columns: 1fr 1.4fr; align-items: end; }
.pov-hero .pair .cast { background: var(--s-warm); border-radius: 1.75rem; height: 100%; display: flex; align-items: flex-end; justify-content: center; padding-top: 1.5rem; }
.pov-hero .pair .cast img { width: 90%; height: auto; }
.pov-hero .pair .scene { aspect-ratio: 4 / 5; object-fit: cover; }
.quoteline { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 700; line-height: 1.35; }
.ask-box { background: var(--teras-card); border-radius: 1.5rem; padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; gap: 1rem; }
@media (min-width: 56em) { .ask-box { grid-template-columns: 1fr 1fr; column-gap: 3rem; align-items: center; } }
.ask-box blockquote { margin: 0; padding: 1.25rem 1.5rem; background: var(--teras-background); border-radius: 1rem; font-weight: 500; }

/* Questions */
.s .faq details { border-top: 1px solid var(--teras-divider); }
.s .faq details:last-of-type { border-bottom: 1px solid var(--teras-divider); }
.grid4 { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 36em) { .grid4 { grid-template-columns: 1fr 1fr; } }
.grid4 li { background: var(--teras-card); border-radius: var(--teras-card-radius); padding: 1.5rem; font-weight: 500; }

/* Story index (Cerita) */
.posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
@media (min-width: 48em) { .posts { grid-template-columns: repeat(3, 1fr); } }
.posts li { display: flex; flex-direction: column; gap: .5rem; }
.posts img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 1.25rem; }
.posts a { color: var(--teras-text); text-decoration: none; }
.posts a:hover h2 { text-decoration: underline; }
.posts p { margin: 0; color: var(--teras-secondary-text); }

/* Closing card */
.closing { display: grid; gap: 2rem; align-items: center; background: var(--s-deep); color: var(--s-on-deep); border-radius: 2rem; padding: clamp(1.5rem, 5vw, 4rem); margin: clamp(3.5rem, 8vw, 6rem) 0 4rem; }
.closing .note { color: var(--s-on-deep-soft); }
.closing .scene { border-radius: 1.25rem; }
@media (min-width: 56em) { .closing { grid-template-columns: 1fr 1.1fr; column-gap: 4rem; } }

/* Footer: four columns on wide screens */
.foot { border-top: 1px solid var(--teras-divider); text-align: left; padding: 3.5rem 0 2rem; font-size: .9375rem; color: var(--teras-secondary-text); }
.foot-in { display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; }
.foot-brand { grid-column: 1 / -1; }
@media (min-width: 56em) { .foot-in { grid-template-columns: 1.4fr 1fr 1fr 1fr; } .foot-brand { grid-column: auto; } }
.foot .mark { width: 2.75rem; height: 2.75rem; }
.foot h2 { font-size: .9375rem; letter-spacing: 0; font-weight: 700; color: var(--teras-text); margin: 0 0 .5rem; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li a { display: inline-flex; align-items: center; min-height: var(--teras-target-min); color: var(--teras-text); text-decoration: none; }
.foot li a:hover { text-decoration: underline; }
.foot .copy { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--teras-divider); }

@media (prefers-reduced-motion: no-preference) {
  .hero-home .top > * { animation: settle .6s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-home .household { animation: settle .8s cubic-bezier(.2, .7, .2, 1) .25s both; }
}
/* Contents list: a block link keeps the number beside the first line when a title wraps. */
.s .doc .toc a { display: block; }
/* Review fixes, 3 Dec: the Instagram button joins the bar only where the whole row fits; focus stays visible on
   the deep green; standalone links keep a 48px target. */
@media (min-width: 80em) { .bar-end .button { display: inline-flex; } }
.band.deep :focus-visible, .closing :focus-visible { outline-color: var(--s-on-deep); }
.foot-brand a, .fgroup .muted a, div.head p > a { display: inline-flex; align-items: center; min-height: var(--teras-target-min); }
.posts h2 { font-size: 1.1875rem; margin: .25rem 0 0; }
/* Narrow phones (320px): "Bahasa Indonesia" and Menu must fit beside the wordmark. */
@media (max-width: 24em) {
  .bar .wordmark { width: 4.25rem; }
  .bar-in { gap: .75rem; }
  .bar-end { gap: .5rem; }
  .bar-end .lang { font-size: .875rem; }
  .menu summary { padding: 0 .75rem; }
}
