/* Tipografi dan warna */
@font-face {
  font-family: Inter;
  src: url("font/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fffefa;
  --white: #fff;
  --ink: #252a2f;
  --muted: #565c60;
  --gold: #805914;
  --line: #e0dfd7;
  --width: 1100px;
}

*,*::before,*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 6.2rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.55 Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
  -webkit-text-size-adjust: 100%;
}

h1,h2,h3,p,ul,ol,figure {
  margin: 0;
}

button,input {
  font: inherit;
}

button,summary {
  cursor: pointer;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration-thickness: .075em;
  text-underline-offset: .2em;
}

a:hover {
  text-decoration-thickness: .12em;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none!important;
}

.icon {
  display: inline-block;
  vertical-align: middle;
  flex: none;
}

summary {
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

:focus-visible {
  outline: 3px solid #966719;
  outline-offset: 3px;
}

.skip {
  position: fixed;
  top: .65rem;
  left: .65rem;
  transform: translateY(-180%);
  z-index: 30;
  border-radius: .4rem;
  padding: .65rem 1rem;
  background: white;
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(calc(100% - 3rem),var(--width));
  margin-inline: auto;
}

/* Header dan navigasi */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  box-shadow: 0 3px 18px #242b3410;
  border-bottom: 1px solid #eeeee8;
}

.head-inner,.desktop-nav,.head-actions {
  display: flex;
  align-items: center;
}

.head-inner {
  min-height: 4.65rem;
  gap: clamp(1.3rem,2.7vw,2.55rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  text-decoration: none;
}

.brand img {
  width: 9.6rem;
  height: auto;
  aspect-ratio: 295/55;
}

.desktop-nav {
  flex: 1;
  justify-content: space-between;
  gap: .7rem;
  min-width: 0;
}

.desktop-nav>a,.topic-menu>summary {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  white-space: nowrap;
  min-height: 44px;
  border-radius: 3px;
  text-decoration: none;
  font-size: .875rem;
  font-weight: 540;
  color: #393d3e;
}

.desktop-nav a[aria-current],.topic-menu>summary.in-section,.desktop-nav a:hover,.topic-menu>summary:hover {
  color: var(--gold);
}

.topic-menu,.mobile-nav {
  position: relative;
}

.topic-menu[open] summary svg {
  transform: rotate(180deg);
}

.topic-panel,.mobile-nav nav {
  position: absolute;
  top: 100%;
  left: -.6rem;
  width: min(19rem,80vw);
  padding: .5rem;
  border-radius: .65rem;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 10px 36px #25262322;
}

.topic-panel a,.mobile-nav nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: .48rem .7rem;
  color: var(--ink);
  border-radius: .4rem;
  text-decoration: none;
  font-size: .9rem;
  line-height: 1.35;
}

.topic-panel a:first-child {
  font-weight: 680;
  color: var(--gold);
}

.topic-panel a:hover,.mobile-nav nav a:hover {
  background: #f7f3e8;
}

.head-actions {
  gap: .35rem;
  margin-left: auto;
  flex: none;
}

.search-trigger,.mobile-nav>summary {
  display: flex;
  align-items: center;
  gap: .45rem;
  justify-content: center;
  min-height: 2.65rem;
  padding: .4rem .85rem;
  border: 1px solid #dedfd9;
  border-radius: .74rem;
  background: white;
  color: #44494a;
  text-decoration: none;
  font-size: .85rem;
}

.search-trigger:hover {
  border-color: #b29762;
}

.mobile-nav {
  display: none;
}

.mobile-nav nav {
  left: auto;
  right: 0;
  max-height: 75vh;
  overflow: auto;
}

/* Beranda dan kartu akses */
.home {
  padding-top: clamp(2.25rem,3.7vw,3.3rem);
  padding-bottom: 4.1rem;
}

.hub-title h1,.index-title h1,.article-title h1,.error-page h1 {
  font-weight: 720;
  letter-spacing: -.042em;
  line-height: 1.16;
}

.hub-title h1 {
  font-size: clamp(1.7rem,2.4vw,2.05rem);
}

.hub-title h1 span {
  color: #79561b;
}

.hub-title>p {
  margin-top: .32rem;
  color: var(--muted);
  font-size: 1rem;
}

.quick-mobile {
  display: none;
}

.rail {
  display: grid;
  grid-auto-flow: column;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #d0ba93 transparent;
}

.rail.enhanced {
  scrollbar-width: none;
}

.rail.enhanced::-webkit-scrollbar {
  display: none;
}

.rail:focus-visible {
  outline-offset: 4px;
  border-radius: .5rem;
}

.rail>* {
  scroll-snap-align: start;
}

.service-rail {
  grid-auto-columns: calc((100% - 3.2rem)/5.2);
  gap: .8rem;
  margin-top: 1.12rem;
  padding-block: 4px;
}

.service-tile {
  --deep: #71551f;
  --start: #f8e5b6;
  --end: #f5d48c;
  isolation: isolate;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 15rem;
  padding: 1rem .98rem .93rem;
  border: 1px solid #00000007;
  border-radius: .78rem;
  background: linear-gradient(135deg,var(--start),var(--end));
  color: #272a26;
  text-decoration: none;
  box-shadow: 0 3px 7px #20282509;
}

.service-tile:focus-visible,.card-visual:focus-visible {
  outline-offset: -4px;
}

.service-tile::after {
  position: absolute;
  content: "";
  z-index: -1;
  inset: 0;
  background: linear-gradient(34deg,#fff4,transparent 48%);
}

.service-tile:hover {
  box-shadow: inset 0 0 0 1.5px var(--deep);
}

.tile-symbol {
  display: grid;
  place-items: center;
  width: 2.68rem;
  height: 2.68rem;
  border-radius: 50%;
  background: #fff8;
  color: var(--deep);
  margin-bottom: .92rem;
}

.tile-ghost {
  position: absolute;
  z-index: -1;
  right: -1.3rem;
  top: .2rem;
  transform: rotate(-19deg);
  color: var(--deep);
  opacity: .085;
  pointer-events: none;
}

.tile-ghost svg {
  stroke-width: 1.15;
}

.service-tile h2 {
  font-size: 1.12rem;
  font-weight: 705;
  letter-spacing: -.029em;
  line-height: 1.3;
}

.service-tile p {
  margin: .48rem 0 1rem;
  font-size: .91rem;
  line-height: 1.48;
  max-width: 22ch;
  color: #363933;
}

.tile-action {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  text-align: center;
  margin-top: auto;
  min-height: 2.45rem;
  padding: .36rem .24rem;
  border: 1px solid #56574a30;
  border-radius: 2rem;
  background: #fffefc;
  color: #262a2c;
  font-size: .86rem;
  line-height: 1.25;
  font-weight: 640;
}

.mint {
  --deep: #20594e;
  --start: #e4f0e7;
  --end: #b5decd;
}

.lila {
  --deep: #56407a;
  --start: #eee6f4;
  --end: #d8c6ef;
}

.persik {
  --deep: #813d2b;
  --start: #fae4d7;
  --end: #efc0ae;
}

.langit {
  --deep: #315f7d;
  --start: #e3f1f7;
  --end: #bbdcec;
}

.mentega {
  --deep: #6c5a22;
  --start: #f8efcc;
  --end: #eadba6;
}

.hijau {
  --deep: #405f31;
  --start: #e9eedf;
  --end: #cddfb9;
}

.rail-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.75rem;
  margin-top: .14rem;
}

.rail-dots,.rail-arrows {
  display: flex;
  align-items: center;
}

.rail-dots button,.rail-arrows button {
  display: grid;
  place-items: center;
  min-width: 2.35rem;
  min-height: 2.35rem;
  border: 0;
  padding: 0;
  background: transparent;
}

.rail-dots button {
  min-width: 1.35rem;
}

.rail-dots button::before {
  content: "";
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: #c4c5be;
}

.rail-dots button[aria-current]::before {
  width: .8rem;
  height: .8rem;
  background: #a87925;
}

.rail-arrows {
  gap: .42rem;
}

.rail-arrows button {
  min-width: 2.25rem;
  min-height: 2.25rem;
  border: 1px solid #e6e3d9;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 7px #2222;
}

.rail-arrows button:disabled {
  opacity: .32;
  box-shadow: none;
  cursor: default;
}

.rail-arrows button:enabled:hover {
  border-color: #b09458;
  background: #faf5e8;
}

/* Artikel terbaru dan kelompok topik */
.latest {
  margin-top: clamp(2.1rem,3.7vw,3.4rem);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.13rem;
}

.section-head h2 {
  font-size: clamp(1.5rem,2.12vw,1.8rem);
  line-height: 1.22;
  font-weight: 705;
  letter-spacing: -.037em;
}

.all-link,.side-all {
  font-size: .94rem;
  line-height: 1.35;
  font-weight: 650;
  color: var(--gold);
  text-decoration: none;
}

.all-link:hover,.side-all:hover {
  text-decoration: underline;
}

.article-rail {
  gap: 1.5rem;
  grid-auto-columns: calc((100% - 1.5rem) / 2);
  padding-bottom: .3rem;
}

.story-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.card-visual {
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 2;
  border-radius: .72rem;
  background: #f5efe0;
  text-decoration: none;
}

.card-visual>img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-visual:hover {
  filter: brightness(.975);
}

.card-text {
  padding: .8rem .04rem 0;
}

.card-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  color: #746142;
  font-size: .79rem;
  font-weight: 615;
  line-height: 1.4;
}

.card-label a {
  color: inherit;
  text-decoration: none;
}

.card-label a:hover {
  text-decoration: underline;
}

.editor-pick {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .12rem .43rem;
  background: #f5e9cb;
  color: #72521a;
  border-radius: .26rem;
  font-size: .73rem;
}

.story-card h3 {
  font-size: clamp(1.06rem,1.55vw,1.25rem);
  line-height: 1.38;
  font-weight: 680;
  letter-spacing: -.027em;
  margin: .26rem 0 .2rem;
}

.story-card h3 a,.next-story a {
  color: inherit;
  text-decoration: none;
}

.story-card h3 a:hover,.next-story a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.story-card p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.52;
  margin: .28rem 0 .42rem;
}

.story-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .3rem;
  color: #606469;
  font-size: .85rem;
  line-height: 1.48;
}

.story-meta .sep {
  line-height: 1;
}

.story-card.text-only {
  padding: 1.2rem;
  border-radius: .7rem;
  border: 1px solid var(--line);
  background: #faf8ef;
}

.story-card.text-only .card-text {
  padding: 0;
}

.separate-pick {
  font-size: .93rem;
  color: var(--gold);
  margin-top: .8rem;
}

.topic-groups {
  margin-top: clamp(2.5rem,4.25vw,4rem);
}

.topic-group + .topic-group {
  margin-top: clamp(2.6rem,4.6vw,4rem);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 1.7rem 1.5rem;
}

.story-grid[data-count="2"] {
  grid-template-columns: repeat(2,minmax(0,1fr));
}

.story-grid .story-card h3 {
  font-size: 1.1rem;
}

.gold {
  --shade: #f2e4bb;
  --strong: #775826;
}

.blue {
  --shade: #d2e8e3;
  --strong: #365e53;
}

.green {
  --shade: #e1d9ee;
  --strong: #5b4b75;
}

.rust {
  --shade: #f3dbcf;
  --strong: #82503e;
}

.guide-visual {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8%;
  height: 100%;
  overflow: hidden;
  background: var(--shade,#f0ead8);
  color: var(--strong,#755b2c);
}

.guide-visual::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -12%;
  bottom: -70%;
  width: 65%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid currentColor;
  box-shadow: 0 0 0 14px #ffffff2b,0 0 0 29px #ffffff33,0 0 0 46px #ffffff24;
  opacity: .48;
}

.guide-emblem {
  width: 24%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 26%;
  background: #fffc;
  box-shadow: 3px 4px 0 #363d3029;
  transform: rotate(-6deg);
}

.guide-emblem svg {
  width: 58%;
  height: 58%;
}

.guide-words {
  display: grid;
  gap: .28rem;
  min-width: 33%;
}

.guide-words span {
  font-weight: 660;
  font-size: clamp(.8rem,1.12vw,1rem);
  line-height: 1.3;
  letter-spacing: -.025em;
  padding: .27rem .55rem;
  background: #fff9;
  border-left: 2px solid currentColor;
  border-radius: 2px;
}

/* Indeks, artikel, dan halaman panduan */
.crumb {
  font-size: .85rem;
  color: #5e615d;
}

.crumb ol {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .22rem .46rem;
  list-style: none;
  padding: 0;
}

.crumb li+li::before {
  content: "/";
  color: #96998f;
  margin-right: .46rem;
}

.crumb a {
  color: #77571e;
  text-decoration: none;
}

.crumb a:hover {
  text-decoration: underline;
}

.index-main,.reading-layout {
  padding-block: 2.2rem 4rem;
}

.index-title {
  max-width: 47rem;
  margin: 1.6rem 0 1.3rem;
}

.index-title h1,.error-page h1 {
  font-size: clamp(2rem,3.5vw,2.7rem);
  margin-bottom: .6rem;
}

.index-title p,.standfirst {
  font-size: 1.12rem;
  line-height: 1.55;
  color: #4c5253;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 1.25rem 0 1.6rem;
}

.filters a {
  display: inline-flex;
  align-items: center;
  min-height: 2.65rem;
  padding: .35rem .85rem;
  border: 1px solid #dcded6;
  border-radius: 2rem;
  text-decoration: none;
  font-size: .88rem;
  background: white;
}

.filters a[aria-current] {
  background: #73551f;
  color: #fff;
  border-color: #73551f;
}

.filters a:hover {
  border-color: #a88643;
}

.directory {
  margin-top: 2.8rem;
}

.directory ul,.reading-side ul,.toc ul,.search-results {
  list-style: none;
  padding: 0;
}

.directory ul {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 0 1.5rem;
}

.directory li {
  border-top: 1px solid var(--line);
}

.directory li a {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: 1rem 0;
  text-decoration: none;
}

.directory li a:hover strong {
  text-decoration: underline;
  color: var(--gold);
}

.directory-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.7rem;
  height: 2.7rem;
  color: var(--gold);
  background: #f3ecdb;
  border-radius: .55rem;
}

.directory strong,.directory small {
  display: block;
}

.directory strong {
  font-size: 1rem;
  line-height: 1.35;
}

.directory small {
  font-size: .9rem;
  color: var(--muted);
  margin-top: .3rem;
}

.reading-layout {
  display: grid;
  grid-template-columns: minmax(0,712px) minmax(0,1fr);
  gap: 1.7rem;
  align-items: start;
}

.reading-main {
  min-width: 0;
}

.article-title {
  padding: 1rem 0 1.1rem;
}

.article-category {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--gold);
  font-size: .84rem;
  font-weight: 650;
  text-decoration: none;
}

.article-category:is(a):hover {
  text-decoration: underline;
}

.article-title h1 {
  font-size: clamp(2rem,3.05vw,2.48rem);
  margin: .23rem 0 .62rem;
}

.article-meta {
  margin-top: .85rem;
  font-size: .9rem;
}

.article-meta .byline {
  display: inline-block;
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}

.article-meta .byline:hover {
  text-decoration: underline;
}

.article-meta>div {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .38rem;
  color: var(--muted);
  margin-top: .14rem;
}

.article-cover {
  width: 100%;
  aspect-ratio: 2;
  border-radius: .6rem;
  overflow: hidden;
  margin: .3rem 0 1.55rem;
}

.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prose {
  font-size: 1.125rem;
  line-height: 1.75;
  color: #303535;
  overflow-wrap: break-word;
}

.prose section+section,.prose .inline-toc+section {
  margin-top: 1.6rem;
}

.prose h2 {
  font-size: clamp(1.4rem,2.35vw,1.75rem);
  line-height: 1.28;
  letter-spacing: -.033em;
  margin: 0 0 .6rem;
  color: var(--ink);
}

.prose p+p,.prose ul+p,.prose ol+p {
  margin-top: .9rem;
}

.prose ul,.prose ol {
  padding-left: 1.5rem;
  margin-top: .65rem;
}

.prose li {
  padding-left: .12rem;
  margin: .4rem 0;
}

.prose strong {
  font-weight: 655;
}

.prose a,.error-page a {
  color: #78561b;
  text-decoration: underline;
}

.prose code,.prose .url {
  overflow-wrap: anywhere;
}

.prose code {
  font-size: .89em;
}

.baca-juga {
  border-left: 3px solid #b78c3d;
  border-radius: 0 .4rem .4rem 0;
  background: #f6f1e3;
  padding: .85rem 1rem;
  margin: 1.25rem 0;
}

.baca-juga strong,.baca-juga a {
  display: block;
}

.baca-juga strong {
  color: #77571e;
  font-size: .84rem;
}

.prose .action-link {
  display: inline-flex;
  align-items: center;
  padding: .52rem .9rem;
  min-height: 44px;
  background: #f3e4c0;
  border-radius: .47rem;
  color: #513d1b;
  font-weight: 620;
  text-decoration: none;
}

.next-story {
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
  margin-top: 2rem;
}

.next-story p {
  font-size: .86rem;
  color: var(--gold);
  font-weight: 650;
}

.next-story a {
  font-size: 1.2rem;
  font-weight: 665;
  letter-spacing: -.02em;
}

.reading-side {
  border-left: 1px solid var(--line);
  padding: .15rem 0 1.2rem 1.35rem;
}

.reading-side h2,.toc h2 {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.13rem;
  letter-spacing: -.025em;
  line-height: 1.35;
}

.reading-side ul,.toc ul {
  margin: .75rem 0 0;
}

.reading-side li,.toc li {
  border-bottom: 1px solid var(--line);
}

.reading-side li a,.toc li a {
  display: block;
  padding: .65rem 0;
  font-size: .95rem;
  line-height: 1.45;
  color: #484e4c;
  text-decoration: none;
}

.reading-side a:hover,.toc a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.reading-side .toc {
  margin-bottom: 1.45rem;
}

.side-all {
  display: inline-block;
  margin-top: .9rem;
  font-size: .89rem;
}

.inline-toc {
  display: none;
}

.error-page {
  width: min(44rem,calc(100% - 3rem));
  margin: 3rem auto;
  min-height: 40vh;
}

/* Footer */
.footer {
  background: #252a2c;
  color: #f7f7f1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.38fr repeat(3,1fr);
  gap: 2rem;
  padding: 3rem 0 2rem;
}

.footer-brand p {
  max-width: 16rem;
  margin-top: .7rem;
  font-size: .91rem;
  line-height: 1.55;
  color: #d4d5cd;
}

.footer-grid>div>strong {
  display: block;
  font-size: 1rem;
  margin-bottom: .65rem;
}

.footer-grid>div>a:not(.brand) {
  display: block;
  width: fit-content;
  padding: .2rem 0;
  color: #dedfd8;
  font-size: .89rem;
  text-decoration: none;
}

.footer-grid a:hover {
  text-decoration: underline;
}

.footer-bottom {
  font-size: .82rem;
  color: #cdd0c5;
  border-top: 1px solid #4a4f4f;
  padding: 1rem 0 1.3rem;
}

#pencarian {
  width: min(36rem,calc(100% - 2rem));
  max-height: min(84vh,43rem);
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: .8rem;
  box-shadow: 0 1rem 4rem #1a1b1930;
}

#pencarian::backdrop {
  background: #16181988;
}

.search-box {
  padding: 1.25rem 1.45rem;
}

.dialog-top,.search-field {
  display: flex;
  align-items: center;
  gap: .7rem;
}

.dialog-top {
  justify-content: space-between;
}

.dialog-top h2 {
  font-size: 1.5rem;
  letter-spacing: -.033em;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: .45rem;
  background: #f0ecdf;
}

.search-box label,.result-count,.search-foot {
  display: block;
  color: var(--muted);
  font-size: .875rem;
  margin: .65rem 0 .4rem;
}

.search-field {
  border: 1px solid #b5a88c;
  background: white;
  border-radius: .5rem;
  padding: .65rem .75rem;
}

.search-field:focus-within {
  outline: 2px solid #a07426;
  outline-offset: 1px;
}

.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
}

.search-results li {
  border-top: 1px solid var(--line);
}

.search-results a {
  display: grid;
  gap: .08rem;
  padding: .65rem 0;
  text-decoration: none;
}

.search-results a:hover strong {
  text-decoration: underline;
}

.search-label {
  font-size: .79rem;
  color: var(--gold);
}

.search-results strong {
  font-size: 1rem;
  font-weight: 630;
}

.search-foot a {
  color: var(--gold);
}

/* Penyesuaian layar tablet dan HP */
@media(max-width:1080px) {
  .head-inner {
    gap: 1rem;
  }
  .desktop-nav {
    gap: .52rem;
  }
  .brand img {
    width: 8.4rem;
  }
  .desktop-nav>a,.topic-menu>summary {
    font-size: .83rem;
  }
  .service-rail {
    grid-auto-columns: calc((100% - 2.5rem)/4.15);
  }
  .reading-layout {
    grid-template-columns: minmax(0,2.2fr) minmax(0,1fr);
  }
}

@media(max-width:900px) {
  .desktop-nav {
    display: none;
  }
  .mobile-nav {
    display: block;
  }
  .head-inner {
    min-height: 4rem;
  }
  .service-rail {
    grid-auto-columns: calc((100% - 1.6rem)/3.35);
  }
  .story-grid {
    gap: 1.25rem 1rem;
  }
  .reading-layout {
    display: block;
    width: min(calc(100% - 2.3rem),712px);
  }
  .reading-side {
    display: none;
  }
  .inline-toc {
    display: block;
  }
  .inline-toc .toc {
    margin: 1.4rem 0;
    padding: .9rem 1rem;
    border-radius: .5rem;
    background: #f5f1e6;
  }
  .inline-toc .toc ul {
    list-style: none;
    margin: .4rem 0 0;
    padding: 0;
  }
  .inline-toc .toc li {
    margin: 0;
    padding: 0;
  }
  .inline-toc .toc a {
    padding: .55rem 0;
  }
}

@media(max-width:700px) {
  :root {
    --paper: #fffefa;
  }
  .wrap {
    width: calc(100% - 2rem);
  }
  .head-inner {
    min-height: 3.8rem;
  }
  .brand img {
    width: 8.35rem;
  }
  .search-trigger,.mobile-nav>summary {
    min-height: 44px;
  }
  .search-trigger {
    width: 44px;
    border: 0;
    padding: 0;
  }
  .search-trigger>span {
    display: none;
  }
  .mobile-nav>summary {
    padding: .4rem .42rem;
    border-color: transparent;
  }
  .home {
    padding-block: 1.55rem 2.8rem;
  }
  .hub-title h1 {
    font-size: clamp(1.56rem,6.5vw,1.95rem);
  }
  .hub-title>p {
    font-size: 1rem;
    line-height: 1.45;
    margin-top: .36rem;
    max-width: 32rem;
  }
  .quick-mobile {
    display: flex;
    align-items: center;
    gap: .15rem .42rem;
    flex-wrap: wrap;
    margin-top: .3rem;
  }
  .quick-mobile a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #765418;
    font-weight: 605;
    font-size: .84rem;
    padding-inline: .2rem;
  }
  .service-rail {
    grid-auto-columns: clamp(12.2rem,62vw,14.3rem);
    gap: .65rem;
    margin-top: .14rem;
  }
  .service-tile {
    min-height: 13.65rem;
    padding: .85rem;
  }
  .tile-symbol {
    width: 2.4rem;
    height: 2.4rem;
    margin-bottom: .66rem;
  }
  .service-tile h2 {
    font-size: 1.09rem;
  }
  .service-tile p {
    font-size: .9rem;
    margin: .38rem 0 .68rem;
  }
  .tile-action {
    min-height: 44px;
  }
  .rail-controls {
    min-height: 44px;
    margin-top: 0;
  }
  .rail-arrows button {
    min-width: 44px;
    min-height: 44px;
  }
  .rail-dots button {
    min-height: 44px;
    min-width: 1.6rem;
  }
  .latest,.topic-groups,.topic-group+.topic-group {
    margin-top: 2rem;
  }
  .section-head {
    margin-bottom: .8rem;
  }
  .section-head h2 {
    font-size: 1.5rem;
  }
  .all-link {
    font-size: .86rem;
  }
  .article-rail {
    gap: .8rem;
    grid-auto-columns: min(90%,30rem);
  }
  .card-visual {
    border-radius: .58rem;
  }
  .card-text {
    padding-top: .6rem;
  }
  .story-card h3 {
    font-size: 1.12rem;
  }
  .story-meta {
    font-size: .81rem;
  }
  .story-grid,.story-grid[data-count="2"] {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }
  .topic-group .story-grid .story-card {
    display: grid;
    grid-template-columns: minmax(5.5rem,29%) minmax(0,1fr);
    align-items: center;
    gap: .8rem;
  }
  .topic-group .story-grid .story-card.text-only {
    display: flex;
  }
  .topic-group .story-grid .card-visual {
    aspect-ratio: 2;
    align-self: start;
    margin-top: .19rem;
  }
  .topic-group .story-grid .card-text {
    padding: 0;
  }
  .topic-group .story-grid .story-card h3 {
    font-size: 1rem;
    line-height: 1.4;
  }
  .topic-group .guide-visual .guide-words {
    display: none;
  }
  .topic-group .guide-emblem {
    width: 40%;
  }
  .index-main,.reading-layout {
    padding-block: 1.15rem 2.8rem;
  }
  .reading-layout {
    width: calc(100% - 2.25rem);
  }
  .index-title {
    margin: 1rem 0;
  }
  .index-title h1,.article-title h1 {
    font-size: clamp(1.91rem,7vw,2.24rem);
  }
  .standfirst,.index-title p {
    font-size: 1.07rem;
    line-height: 1.55;
  }
  .crumb {
    font-size: .78rem;
  }
  .article-title {
    padding: .8rem 0 .73rem;
  }
  .article-meta {
    margin-top: .64rem;
    font-size: .85rem;
  }
  .article-cover {
    margin: .4rem 0 1.1rem;
  }
  .prose {
    font-size: 1.09375rem;
    line-height: 1.72;
  }
  .directory ul {
    grid-template-columns: 1fr;
  }
  .filters {
    margin: .85rem 0 1.1rem;
  }
  .filters a {
    min-height: 44px;
  }
  .footer-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 1.3rem;
    padding-block: 2rem 1.5rem;
  }
  .footer-brand {
    grid-column: 1/-1;
  }
  .footer-grid>div>a:not(.brand) {
    min-height: 2.45rem;
    padding-block: .42rem;
  }
  .search-box {
    padding: 1rem;
  }
}

@media(min-width:701px) and (max-width:860px) {
  .topic-group .story-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior: auto!important;
  }
}

/* Sampul akses bersama dengan beranda AMP. */
.akses-sampul {
  display: grid;
  grid-template-columns: minmax(8.5rem, 11.5rem) 1fr;
  align-items: center;
  gap: clamp(1rem, 3.7vw, 3rem);
  margin-top: 2.8rem;
  padding: clamp(.9rem, 2.3vw, 1.5rem);
  background: #f5efdf;
  border: 1px solid #e3d7b8;
  border-radius: .8rem;
}
.akses-gambar {display: block;}
.akses-gambar img {width: 100%; height: auto; border-radius: .45rem;}
.akses-sampul h2 {font-size: clamp(1.25rem, 2.1vw, 1.8rem); line-height: 1.25; letter-spacing: -.035em;}
.akses-sampul p {max-width: 38rem; margin-top: .5rem; color: var(--muted);}
.akses-sampul nav {display: flex; flex-wrap: wrap; gap: .1rem 1.4rem; margin-top: .55rem;}
.akses-sampul nav a {display: inline-flex; align-items: center; min-height: 44px; color: #69480f; font-weight: 650;}
@media(max-width:600px) {
  .akses-sampul {grid-template-columns: 5.75rem minmax(0,1fr); align-items: start; gap: .85rem; margin-top: 2rem;}
  .akses-sampul p {font-size: .94rem;}
  .akses-sampul nav {display: block; margin-top: .2rem;}
  .akses-sampul nav a {display: flex; font-size: .92rem;}
}
