:root {
  /* Exact architectural palette from benderaindonesia.com v3.2 */
  --bg: #FFFFFF;
  --surface: #F3F5F8;
  --surface-strong: #E7ECF2;
  --obsidian: #0B0D11;
  --obsidian-2: #141820;

  --ink: #0B0D11;
  --ink-muted: #475569;
  --ink-on-dark: #F8FAFC;
  --ink-on-dark-muted: #CBD5E1;

  --line: #DFE3EA;
  --line-strong: #B6C0CE;
  --line-dark: rgba(255, 255, 255, 0.14);
  --line-dark-strong: rgba(255, 255, 255, 0.28);

  --accent: #E42C2D;
  --accent-ink: #C21F20;
  --accent-hover: #C81E1F;
  --accent-soft: #FEF2F2;

  --wa: #15803D;
  --wa-hover: #166534;

  /* Strictly 2 font families */
  --font-display: "Montserrat", system-ui, -apple-system, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Strictly 3 body font sizes (h1 exempt for architectural editorial scale) */
  --text-heading: clamp(1.5rem, 2.5vw, 2rem);
  --text-body: 1rem;
  --text-sm: 0.875rem;

  --wrap: 1240px;
  --gut: clamp(20px, 3vw, 36px);
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-body);
  line-height: 1.68;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.on-dark :focus-visible {
  outline-color: #FFFFFF;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gut);
}

.num {
  font-variant-numeric: tabular-nums;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  margin: 0;
  color: inherit;
}

h1 {
  font-size: clamp(2.15rem, 4.3vw, 3.35rem);
  font-weight: 900;
  line-height: 1.07;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h2 {
  font-size: var(--text-heading);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.025em;
}

h3 {
  font-size: var(--text-body);
  font-weight: 700;
  line-height: 1.38;
  letter-spacing: -0.01em;
}

/* Buttons & text links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-body);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease), transform 180ms var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn svg {
  flex: none;
}

.btn-wa {
  background: var(--wa);
  color: #FFFFFF;
}

.btn-wa:hover {
  background: var(--wa-hover);
}

.btn-accent {
  background: var(--accent);
  color: #FFFFFF;
}

.btn-accent:hover {
  background: var(--accent-hover);
}

.btn-ink {
  background: var(--obsidian);
  color: #FFFFFF;
}

.btn-ink:hover {
  background: #232833;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-body);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
  transition: color 160ms var(--ease);
}

.text-link:hover {
  color: var(--accent-ink);
}

.on-dark .text-link:hover {
  color: #FFFFFF;
}

.text-link-sm {
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: color 160ms var(--ease);
}

.text-link-sm:hover {
  color: var(--accent-ink);
}

/* Fixed solid header matching scrolled state of v3.2 homepage */
.hdr {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 12px rgba(11, 13, 17, 0.04);
}

.hdr .wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 76px;
}

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

.hdr-brand img {
  width: 152px;
  height: auto;
}

.hdr-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  font-size: var(--text-sm);
  font-weight: 500;
}

.hdr-nav a {
  text-decoration: none;
  padding: 6px 0;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: border-color 160ms var(--ease), color 160ms var(--ease);
}

.hdr-nav a:hover,
.hdr-nav a[aria-current="page"] {
  border-bottom-color: var(--accent);
}

.hdr-nav a[aria-current="page"] {
  font-weight: 600;
  color: var(--ink);
}

.hdr-nav .nav-b2b {
  color: var(--accent-ink);
  font-weight: 600;
}

.hdr-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  background: var(--wa);
  border: 1px solid var(--wa);
  color: #FFFFFF;
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease);
}

.hdr-wa:hover {
  background: var(--wa-hover);
  border-color: var(--wa-hover);
}

.hdr-burger {
  display: none;
  margin-left: auto;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  align-items: center;
  justify-content: center;
  transition: background-color 160ms var(--ease);
}

.hdr-burger:hover {
  background: var(--surface);
}

.hdr-drawer {
  display: none;
  border-top: 1px solid var(--line);
  padding: 8px var(--gut) 24px;
  background: #FFFFFF;
  color: var(--ink);
}

.hdr.is-open .hdr-drawer {
  display: block;
}

.hdr-drawer a.dl {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--text-body);
}

.hdr-drawer .btn {
  width: 100%;
  margin-top: 16px;
}

/* Main canvas */
.page-main {
  padding-top: 76px;
}

/* Breadcrumb */
.crumb-bar {
  padding: 20px 0 0;
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

.crumb a {
  text-decoration: none;
  transition: color 160ms var(--ease);
}

.crumb a:hover {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.crumb-sep {
  color: var(--line-strong);
  user-select: none;
}

.crumb [aria-current="page"] {
  color: var(--ink);
  font-weight: 500;
}

/* Editorial Index Page (/artikel/) */
.idx-head {
  padding: clamp(28px, 4vw, 44px) 0 clamp(32px, 4vw, 48px);
}

.idx-head h1 {
  max-width: 22ch;
}

.idx-lead {
  margin-top: 16px;
  color: var(--ink-muted);
  max-width: 60ch;
}

.featured-guides {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 2px solid var(--accent);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.featured-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(24px, 3vw, 36px);
  text-decoration: none;
  transition: background-color 180ms var(--ease);
}

.featured-item + .featured-item {
  border-left: 1px solid var(--line);
}

.featured-item:hover {
  background: #ECEFF4;
}

.featured-item:hover h2 {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.featured-meta {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent-ink);
}

.featured-item p {
  color: var(--ink-muted);
  max-width: 48ch;
}

.featured-go {
  margin-top: auto;
  padding-top: 8px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
}

/* Segmented tabs (identical interaction grammar to v3.2 homepage) */
.idx-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 40px 0 28px;
}

.seg-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: #FFFFFF;
}

.seg-tabs button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-right: 1px solid var(--line-strong);
  background: transparent;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-muted);
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}

.seg-tabs button:last-child {
  border-right: 0;
}

.seg-tabs button:hover {
  color: var(--ink);
  background: var(--surface);
}

.seg-tabs button[aria-selected="true"] {
  background: var(--obsidian);
  color: #FFFFFF;
  font-weight: 600;
}

.tab-count {
  opacity: 0.72;
  margin-left: 4px;
}

.idx-count {
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

/* Directory hairline grid */
.idx-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1.5px solid var(--ink);
  border-left: 1px solid var(--line);
}

.idx-card {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #FFFFFF;
  transition: background-color 180ms var(--ease);
}

.idx-card[hidden] {
  display: none;
}

.idx-card:hover {
  background: #FAFBFD;
}

.idx-card-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
}

.idx-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.idx-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 280ms var(--ease);
}

.idx-thumb.is-contain {
  background: #FFFFFF;
}

.idx-thumb.is-contain img {
  object-fit: contain;
  padding: 18px;
}

.idx-card:hover .idx-thumb img {
  transform: scale(1.03);
}

.idx-card-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.idx-card-meta {
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

.idx-card-body h3 {
  color: var(--ink);
}

.idx-card:hover .idx-card-body h3 {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.idx-card-body p {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  line-height: 1.58;
}

.idx-card-go {
  margin-top: auto;
  padding-top: 8px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent-ink);
}

/* Dark closing band on index */
.idx-cta {
  margin-top: 72px;
  background: var(--obsidian);
  color: var(--ink-on-dark);
  border-top: 2px solid var(--accent);
  padding: clamp(48px, 6vw, 72px) 0;
}

.idx-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 24px 48px;
  align-items: center;
}

.idx-cta p {
  margin-top: 12px;
  color: var(--ink-on-dark-muted);
  max-width: 54ch;
}

.idx-cta-act {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

/* Single Article Page (/<slug>/) */
.art-head {
  padding: clamp(24px, 3.6vw, 40px) 0 clamp(28px, 4vw, 40px);
  max-width: 820px;
}

.art-meta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

.art-meta-dot {
  color: var(--line-strong);
  user-select: none;
}

.art-lead-media {
  margin: 0 0 40px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}

.art-lead-media img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.art-lead-media figcaption {
  padding: 12px 16px;
  font-size: var(--text-sm);
  color: var(--ink-muted);
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.art-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
  padding-top: 40px;
  padding-bottom: clamp(56px, 7vw, 88px);
  border-top: 1.5px solid var(--ink);
}

/* Article reading prose */
.entry {
  min-width: 0;
  max-width: 65ch;
}

.entry > * + * {
  margin-top: 20px;
}

.entry h2 {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.entry h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.entry h3 {
  margin-top: 28px;
  color: var(--ink);
}

.entry p {
  color: var(--ink);
  line-height: 1.74;
}

.entry a {
  color: var(--accent-ink);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: color 160ms var(--ease);
}

.entry a:hover {
  color: var(--ink);
}

.entry ul,
.entry ol {
  margin: 16px 0 0;
  padding-left: 24px;
  color: var(--ink);
  line-height: 1.72;
}

.entry li + li {
  margin-top: 8px;
}

.entry ol ol,
.entry ul ul {
  margin-top: 8px;
}

.entry blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  color: var(--ink);
}

.entry blockquote p {
  font-weight: 500;
}

.entry figure {
  margin: 32px 0;
}

.entry figure img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.entry figure.is-compact img {
  max-width: 240px;
  margin: 0;
  padding: 16px;
  background: #FFFFFF;
}

.entry figure.is-visual img {
  width: 100%;
  border: 0;
  background: transparent;
}

.entry details {
  margin: 18px 0 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.entry summary {
  padding: 13px 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
  transition: background-color 160ms var(--ease);
}

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

.entry summary::after {
  content: "+";
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent-ink);
}

.entry details[open] summary::after {
  content: "\2212";
}

.entry summary:hover {
  background: var(--surface-strong);
}

.entry details[open] summary {
  border-bottom: 1px solid var(--line);
  background: #FFFFFF;
}

.entry details > :not(summary) {
  padding: 16px 18px;
  margin: 0;
  background: #FFFFFF;
}

.entry details > :not(summary) + :not(summary) {
  padding-top: 0;
}

.entry figcaption {
  margin-top: 10px;
  font-size: var(--text-sm);
  color: var(--ink-muted);
  line-height: 1.5;
}

.entry hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 36px 0;
}

.entry .article-source {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

.entry .article-source ul {
  font-size: var(--text-sm);
  margin-top: 8px;
}

/* Architectural tables inside prose */
.table-scroll {
  overflow-x: auto;
  margin: 28px 0;
}

.entry table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1.5px solid var(--ink);
  font-size: var(--text-body);
}

.entry th,
.entry td {
  padding: 13px 16px 13px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.entry th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--ink);
  border-bottom: 1.5px solid var(--line-strong);
}

.entry td {
  color: var(--ink);
}

.entry tbody tr:hover td {
  background: #FAFBFD;
}

.color-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 2px;
  border: 1px solid var(--line-strong);
  vertical-align: -2px;
  margin-right: 8px;
}

.swatch-red {
  background: #FF0000;
  border-color: #C21F20;
}

.swatch-white {
  background: #FFFFFF;
}

/* Lite YouTube facade (zero third-party cookies until clicked) */
.video-wrap {
  margin: 32px 0;
}

.video-facade {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: var(--obsidian);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
}

.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: opacity 200ms var(--ease), transform 260ms var(--ease);
}

.video-facade:hover img {
  opacity: 1;
  transform: scale(1.03);
}

.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(11, 13, 17, 0.38);
  display: grid;
  place-items: center;
  transition: transform 180ms var(--ease), background-color 180ms var(--ease);
}

.video-facade:hover .video-play {
  transform: translate(-50%, -50%) scale(1.06);
  background: var(--accent-hover);
}

.video-wrap iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
  border-radius: var(--radius);
}

.art-download {
  margin-top: 24px;
}

/* Sticky Editorial Side Rail */
.art-rail {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.rail-toc {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.rail-title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.rail-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: var(--text-sm);
  line-height: 1.45;
}

.rail-toc a {
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 160ms var(--ease);
}

.rail-toc a:hover {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rail-shop {
  background: var(--surface);
  border-top: 2px solid var(--accent);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rail-shop p {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  line-height: 1.58;
}

.rail-shop .btn {
  width: 100%;
}

.rail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding-top: 4px;
}

/* Related guides section (matches homepage .articles hairline strip) */
.related-sec {
  padding: clamp(56px, 7vw, 84px) 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.related-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 28px;
}

.articles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1.5px solid var(--ink);
  border-bottom: 1px solid var(--line);
  background: #FFFFFF;
}

.article-item {
  padding: 28px 24px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 190px;
  transition: background-color 180ms var(--ease);
}

.article-item + .article-item {
  border-left: 1px solid var(--line);
}

.article-item:hover {
  background: #FAFBFD;
}

.article-item p {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  line-height: 1.58;
}

.article-item .article-go {
  margin-top: auto;
  padding-top: 12px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent-ink);
}

.article-item:hover h3 {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Footer (exact mirror of v3.2 homepage) */
.flag-hairline {
  height: 6px;
  background: linear-gradient(var(--accent) 50%, #FFFFFF 50%);
}

.ftr {
  background: var(--obsidian);
  color: var(--ink-on-dark-muted);
  padding: 64px 0 32px;
}

.ftr-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 36px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line-dark);
}

.ftr-brand img {
  width: 152px;
  height: auto;
  margin-bottom: 16px;
}

.ftr h3 {
  color: #FFFFFF;
  font-size: var(--text-sm);
  margin-bottom: 14px;
}

.ftr ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: var(--text-sm);
}

.ftr a {
  text-decoration: none;
  transition: color 160ms var(--ease);
}

.ftr a:hover {
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ftr-bot {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: var(--text-sm);
  color: rgba(203, 213, 225, 0.72);
}

/* Mobile bottom bar */
.mobile-bar {
  display: none;
}

/* Responsive */
@media (max-width: 1080px) {
  .hdr-nav {
    gap: 20px;
  }

  .idx-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ftr-top {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .ftr-top > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .hdr-nav,
  .hdr-wa {
    display: none;
  }

  .hdr-burger {
    display: inline-flex;
  }

  .hdr-brand img {
    width: 136px;
  }

  .featured-guides,
  .art-layout,
  .idx-cta-inner,
  .articles {
    grid-template-columns: minmax(0, 1fr);
  }

  .featured-item + .featured-item {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .art-rail {
    position: static;
    border-top: 1px solid var(--line);
    padding-top: 32px;
  }

  .rail-toc {
    padding-left: 0;
    border-left: 0;
  }

  .article-item + .article-item {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .idx-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .seg-tabs {
    width: 100%;
  }

  .seg-tabs button {
    flex: 1 1 auto;
    padding: 0 12px;
  }

  .ftr-top {
    grid-template-columns: 1fr 1fr;
  }

  .mobile-bar {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid var(--line);
  }

  body {
    padding-bottom: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
