/* =========================================================
   blog-towadenki — gaya situs publik
   Palet diambil dari situs Towa Denki (navy + biru langit).
   ========================================================= */

:root {
  --navy-900: #0d1740;
  --navy-800: #162562;   /* bar logo */
  --navy-700: #1d2c6b;   /* submenu */
  --navy-600: #273b88;   /* blok menu aktif / hover */
  --navy-500: #35499b;
  --sky-600:  #1f6fa8;
  --sky-500:  #2e80b2;
  --sky-400:  #4ea3e5;
  --sky-300:  #6cc1ff;
  --nav-sub:  #93a9dd;   /* sub-teks Inggris di menu */

  --ink:      #1b2235;
  --ink-soft: #4a5370;
  --line:     #e2e7f0;
  --bg:       #f3f6fb;
  --card:     #ffffff;

  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(13, 23, 64, .06), 0 2px 8px rgba(13, 23, 64, .05);
  --shadow-md: 0 6px 24px rgba(13, 23, 64, .10);
  --wrap: 1200px;
  --font: "Segoe UI", "Noto Sans", Roboto, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--sky-600); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

.visually-hidden, .skip-link:not(:focus) {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 8px; left: 8px; z-index: 999;
  background: #fff; color: var(--navy-800); padding: 10px 16px; border-radius: 6px; box-shadow: var(--shadow-md);
}
:focus-visible { outline: 3px solid var(--sky-400); outline-offset: 2px; }

/* ---------------- header & menu ---------------- */

.site-header {
  background: var(--navy-800);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 10px rgba(13, 23, 64, .25);
}
.header-inner {
  width: min(100% - 0px, 1440px);
  margin-inline: auto;
  display: flex; align-items: stretch; gap: 0;
}

.brand {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 28px 14px 20px; color: #fff; text-decoration: none; flex: 0 0 auto;
}
.brand:hover { text-decoration: none; }
.brand-mark { display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-tagline { font-size: 11px; letter-spacing: .14em; color: var(--nav-sub); text-transform: uppercase; }
.brand-name { font-size: 24px; font-weight: 700; letter-spacing: .02em; }

.main-nav { margin-left: auto; display: flex; }
.nav-list { display: flex; align-items: stretch; margin: 0; padding: 0; list-style: none; }

.nav-item { position: relative; display: flex; }
.nav-item > a {
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px;
  padding: 18px 20px; min-width: 104px; height: 100%;
  color: #fff; text-decoration: none;
  border-left: 1px solid rgba(255, 255, 255, .16);
  background: var(--navy-600);
  transition: background .18s ease;
}
.nav-list > .nav-item:last-child > a,
.nav-list > .nav-item:last-child { border-right: 1px solid rgba(255, 255, 255, .16); }
.nav-id { font-size: 15.5px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.nav-en { font-size: 10.5px; letter-spacing: .16em; color: var(--nav-sub); text-transform: uppercase; white-space: nowrap; }
.nav-item > a:hover,
.nav-item.is-active > a { background: var(--navy-500); }
.nav-item.is-active > a { box-shadow: inset 0 -3px 0 var(--sky-300); }
.nav-item > a:hover .nav-en { color: #cfe0ff; }

.sub-nav {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  margin: 0; padding: 8px 0; list-style: none;
  background: var(--navy-700);
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav-item.has-sub:hover .sub-nav,
.nav-item.has-sub:focus-within .sub-nav,
.nav-item.has-sub.open .sub-nav { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-nav a {
  display: block; padding: 10px 22px; color: #e6edff; font-size: 14.5px; text-decoration: none;
}
.sub-nav a::before { content: "›"; color: var(--sky-300); margin-right: 10px; font-weight: 700; }
.sub-nav a:hover { background: var(--navy-600); text-decoration: none; }

.nav-search { align-items: center; }
.nav-search form { display: flex; align-items: center; gap: 0; padding: 0 16px 0 18px;
  border-left: 1px solid rgba(255, 255, 255, .16); height: 100%; }
.nav-search input {
  width: 160px; padding: 9px 12px; font: inherit; font-size: 14px; color: #fff;
  background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 20px 0 0 20px; border-right: 0;
}
.nav-search input::placeholder { color: #b9c6e8; }
.nav-search button {
  display: grid; place-items: center; width: 40px; height: 38px; color: var(--navy-800);
  background: var(--sky-300); border: 0; border-radius: 0 20px 20px 0; cursor: pointer;
}
.nav-search button:hover { background: #8ed2ff; }

.nav-toggle { display: none; }

/* subkategori di sidebar & footer & daftar */
.widget-subcats { margin: 4px 0 6px 12px; padding: 0 0 0 10px; list-style: none; border-left: 2px solid var(--line); }
.widget-subcats a { padding: 6px 0; font-size: 13.5px; color: var(--ink-soft); border-bottom: 0; }
.widget-subcats a:hover { color: var(--sky-600); }
.widget-subcats span { background: transparent; color: #9aa6c2; font-weight: 600; }

.footer-sub { display: block; margin: 2px 0 8px; font-size: 12.5px; color: #8b9ac0; line-height: 1.8; }
.footer-sub a { font-size: 12.5px; color: #8b9ac0; }

.subcat-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.subcat-pills a {
  display: inline-block; padding: 7px 16px; background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; color: var(--navy-700); font-size: 14px; text-decoration: none;
}
.subcat-pills a:hover { background: var(--navy-800); color: #fff; border-color: var(--navy-800); text-decoration: none; }

.cat-sub { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.cat-sub a { display: inline-block; padding: 3px 10px; background: #eef3fb; border-radius: 12px;
  font-size: 12.5px; color: var(--sky-600); text-decoration: none; }
.cat-sub a:hover { background: var(--sky-400); color: #fff; text-decoration: none; }

/* ---------------- hero ---------------- */

.hero {
  background:
    linear-gradient(115deg, rgba(13, 23, 64, .92) 0%, rgba(22, 37, 98, .86) 45%, rgba(46, 128, 178, .78) 100%),
    radial-gradient(circle at 78% 15%, #6cc1ff 0%, #2e80b2 38%, #162562 78%);
  color: #fff;
}
.hero-inner { width: min(100% - 32px, var(--wrap)); margin-inline: auto; padding: 64px 0 72px; max-width: 980px; }
.hero-kicker { display: flex; flex-direction: column; margin: 0 0 10px; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: #cfe3ff; }
.hero-kicker span { font-size: 10.5px; color: var(--nav-sub); }
.hero-title { margin: 0 0 14px; font-size: clamp(28px, 4.2vw, 46px); line-height: 1.2; letter-spacing: -.01em; }
.hero-sub { margin: 0 0 26px; font-size: 17px; color: #dce7ff; max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-block; padding: 12px 26px; border-radius: 26px;
  font-weight: 600; font-size: 15px; text-decoration: none; transition: .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--sky-300); color: var(--navy-800); }
.btn-primary:hover { background: #8ed2ff; }
.btn-ghost { border: 1.5px solid rgba(255, 255, 255, .6); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }

/* ---------------- kepala halaman ---------------- */

.page-head { background: linear-gradient(100deg, var(--navy-800), var(--navy-600)); color: #fff; padding: 38px 0 34px; }
.page-head h1 { margin: 0; font-size: clamp(24px, 3.4vw, 34px); line-height: 1.25; display: flex; flex-direction: column; }
.page-head h1 span { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--nav-sub); font-weight: 500; margin-top: 4px; }
.page-head-article { padding-bottom: 28px; }
.page-head-article h1 { font-size: clamp(24px, 3.6vw, 38px); }
.article-meta { margin: 12px 0 0; color: #c7d5f5; font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------------- breadcrumb ---------------- */

.breadcrumb { padding: 14px 0 6px; font-size: 13.5px; color: var(--ink-soft); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.breadcrumb li { display: flex; align-items: center; gap: 6px; max-width: 46ch; }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--navy-600); }
.breadcrumb .sep { color: #9aa6c2; }
.breadcrumb [aria-current="page"] {
  color: var(--navy-700); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46ch;
}

/* ---------------- tata letak isi + sidebar kanan ---------------- */

.with-aside {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px;
  align-items: start; padding: 10px 0 56px;
}
.main-col { min-width: 0; }

.section-title {
  display: flex; flex-direction: column; margin: 0 0 18px;
  font-size: 21px; color: var(--navy-800); letter-spacing: -.01em;
  padding-left: 14px; border-left: 4px solid var(--sky-400);
}
.section-title span { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--sky-500); font-weight: 600; }

.lede { margin: 0 0 22px; font-size: 17px; color: var(--ink-soft); }
.empty { background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--ink-soft); }

/* kartu artikel */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 22px; margin-bottom: 34px; }
.card-grid-3 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: .2s ease; display: flex; flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card-media { display: block; aspect-ratio: 16 / 9; background: #dde5f3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media-fallback {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--navy-700), var(--sky-500));
}
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.chip {
  align-self: flex-start; background: #e8f1fb; color: var(--sky-600);
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 4px; text-decoration: none;
}
.chip:hover { background: var(--sky-400); color: #fff; text-decoration: none; }
.chip-light { background: rgba(255, 255, 255, .16); color: #d8e8ff; }
.card-title { margin: 0; font-size: 17px; line-height: 1.4; }
.card-title a { color: var(--navy-800); }
.card-title a:hover { color: var(--sky-600); text-decoration: none; }
.card-excerpt { margin: 0; color: var(--ink-soft); font-size: 14.5px; }
.card-meta { margin: auto 0 0; color: #7c87a4; font-size: 13px; display: flex; gap: 8px; flex-wrap: wrap; }

/* kartu unggulan */
.featured { margin-bottom: 38px; }
.feature-card {
  display: grid; grid-template-columns: 1fr; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
}
.feature-media { display: block; background: #dde5f3; aspect-ratio: 16 / 9; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-body { padding: 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.feature-body h3 { margin: 0; font-size: 23px; line-height: 1.3; }
.feature-body h3 a { color: var(--navy-800); }
.feature-body p { margin: 0; color: var(--ink-soft); }

.more-link { text-align: right; margin: -14px 0 32px; }
.more-link a { font-weight: 600; }

/* deretan kategori */
.cat-strip ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; align-items: start; }
.cat-strip li { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--sky-400); border-radius: 8px; padding-bottom: 12px; }
.cat-strip li > a {
  display: flex; flex-direction: column; gap: 2px; padding: 16px 18px 10px;
  color: var(--navy-800); text-decoration: none;
}
.cat-strip li > a:hover strong { color: var(--sky-600); }
.cat-sub { padding: 0 18px; }
.cat-strip strong { font-size: 16px; }
.cat-strip span { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--sky-500); }

.cat-strip em { font-style: normal; font-size: 13px; color: #7c87a4; }


/* ---------------- artikel ---------------- */

.article { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px 34px; box-shadow: var(--shadow-sm); }
.article-cover { margin: 0 0 24px; }
.article-cover img { width: 100%; border-radius: 8px; }
.article-cover figcaption { margin-top: 8px; font-size: 13px; color: #7c87a4; }

.toc { background: #f6f9ff; border: 1px solid #dbe6f7; border-radius: 8px; padding: 18px 22px; margin: 0 0 28px; }
.toc h2 { margin: 0 0 10px; font-size: 15px; color: var(--navy-800); letter-spacing: .04em; text-transform: uppercase; }
.toc ul { margin: 0; padding-left: 20px; list-style: none; }
.toc li::before { content: "▸"; color: var(--sky-400); margin-right: 8px; }
.toc li { margin: 4px 0; }
.toc .lvl-3 { margin-left: 18px; font-size: 14.5px; }
.toc .lvl-3::before { content: "·"; }

.article-body { font-size: 17px; }
.article-body h2 { margin: 34px 0 12px; font-size: 24px; color: var(--navy-800); padding-left: 12px; border-left: 4px solid var(--sky-400); }
.article-body h3 { margin: 26px 0 10px; font-size: 19px; color: var(--navy-700); }
.article-body p { margin: 0 0 16px; }
.article-body ul, .article-body ol { margin: 0 0 18px; padding-left: 26px; }
.article-body li { margin: 6px 0; }
.article-body img { border-radius: 8px; }
.article-body blockquote {
  margin: 22px 0; padding: 14px 22px; background: #f6f9ff;
  border-left: 4px solid var(--sky-400); color: var(--ink-soft); font-style: italic;
}
.article-body table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.article-body th { background: #eef3fb; color: var(--navy-800); }
.article-body pre { background: var(--navy-900); color: #e6edff; padding: 16px; border-radius: 8px; overflow: auto; font-size: 14px; }
.article-body code { background: #eef3fb; padding: 2px 6px; border-radius: 4px; font-size: .92em; }
.article-body pre code { background: none; padding: 0; }
.article-body .anchor { opacity: 0; color: var(--sky-400); text-decoration: none; font-weight: 400; transition: opacity .15s; }
.article-body h2:hover .anchor, .article-body h3:hover .anchor { opacity: 1; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tag-cloud a {
  display: inline-block; padding: 5px 12px; background: #eef3fb; color: var(--sky-600);
  border-radius: 20px; font-size: 13.5px; text-decoration: none;
}
.tag-cloud a:hover { background: var(--sky-400); color: #fff; text-decoration: none; }
.article-tags { margin: 26px 0 0; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }
.share span { color: var(--ink-soft); font-weight: 600; }
.share a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 20px; color: var(--navy-700); }
.share a:hover { background: var(--navy-800); color: #fff; border-color: var(--navy-800); text-decoration: none; }

.related { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }

/* ---------------- sidebar kanan ---------------- */

.sidebar { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 118px; }
.widget { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.widget-title {
  display: flex; flex-direction: column; margin: 0 0 14px; padding-bottom: 10px;
  font-size: 16px; color: var(--navy-800); border-bottom: 2px solid var(--sky-400);
}
.widget-title span { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--sky-500); font-weight: 600; }

.widget-search form { display: flex; }
.widget-search input { flex: 1; min-width: 0; padding: 10px 12px; font: inherit; font-size: 14px; border: 1px solid var(--line); border-right: 0; border-radius: 6px 0 0 6px; }
.widget-search button { padding: 10px 16px; font: inherit; font-weight: 600; color: #fff; background: var(--navy-600); border: 0; border-radius: 0 6px 6px 0; cursor: pointer; }
.widget-search button:hover { background: var(--navy-800); }

.widget-posts { margin: 0; padding: 0; list-style: none; counter-reset: pop; }
.widget-posts li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.widget-posts li:last-child { border-bottom: 0; padding-bottom: 0; }
.widget-posts .rank {
  flex: 0 0 26px; height: 26px; display: grid; place-items: center;
  background: var(--navy-800); color: #fff; border-radius: 50%; font-size: 13px; font-weight: 700;
}
.widget-posts .t { display: block; color: var(--navy-800); font-size: 14.5px; line-height: 1.45; font-weight: 600; }
.widget-posts a:hover .t { color: var(--sky-600); }
.widget-posts time { display: block; color: #7c87a4; font-size: 12.5px; }
.widget-posts a { text-decoration: none; }

.widget-cats { margin: 0; padding: 0; list-style: none; }
.widget-cats a {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 9px 0; color: var(--navy-800); border-bottom: 1px dashed var(--line); font-size: 15px; text-decoration: none;
}
.widget-cats li:last-child a { border-bottom: 0; }
.widget-cats a:hover { color: var(--sky-600); }
.widget-cats span { background: #eef3fb; color: var(--sky-600); font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 12px; }

.widget-cta { background: linear-gradient(140deg, var(--navy-800), var(--sky-600)); color: #fff; border: 0; }
.widget-cta .widget-title { color: #fff; border-bottom-color: rgba(255, 255, 255, .35); }
.widget-cta .widget-title span { color: var(--sky-300); }
.widget-cta p { margin: 0 0 16px; font-size: 14.5px; color: #dbe7ff; }
.btn-cta { display: inline-block; background: var(--sky-300); color: var(--navy-800); font-weight: 700; padding: 10px 20px; border-radius: 22px; text-decoration: none; }
.btn-cta:hover { background: #fff; text-decoration: none; }

/* ---------------- paginasi ---------------- */

.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 10px 0 0; }
.page {
  min-width: 40px; padding: 9px 14px; text-align: center; background: var(--card);
  border: 1px solid var(--line); border-radius: 6px; color: var(--navy-700); font-size: 14.5px; text-decoration: none;
}
.page:hover { background: var(--navy-600); color: #fff; border-color: var(--navy-600); text-decoration: none; }
.page.is-current { background: var(--navy-800); border-color: var(--navy-800); color: #fff; font-weight: 700; }

/* ---------------- 404 ---------------- */

.notfound { text-align: center; padding: 80px 0 100px; }
.notfound .code { margin: 0; font-size: 92px; font-weight: 800; line-height: 1; color: var(--navy-800); opacity: .18; }
.notfound h1 { margin: 6px 0 10px; color: var(--navy-800); }
.notfound .actions { display: flex; gap: 12px; justify-content: center; margin-top: 22px; }
.notfound .btn-ghost { border-color: var(--navy-600); color: var(--navy-700); }
.notfound .btn-ghost:hover { background: var(--navy-800); color: #fff; }

/* ---------------- footer ---------------- */

.site-footer { background: var(--navy-900); color: #c3cfe9; margin-top: 10px; }
.footer-top {
  width: min(100% - 32px, var(--wrap)); margin-inline: auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; padding: 48px 0 36px;
}
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li { margin: 7px 0; }
.footer-col a { color: #c3cfe9; font-size: 14.5px; }
.footer-col a:hover { color: var(--sky-300); }
.footer-title {
  display: flex; flex-direction: column; margin: 0 0 14px; font-size: 15px; color: #fff;
  padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.footer-title span { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--nav-sub); font-weight: 500; }
.footer-brand { margin: 10px 0 6px; font-size: 18px; font-weight: 700; color: #fff; }
.footer-about p { margin: 0 0 14px; font-size: 14.5px; }
.social { display: flex; flex-wrap: wrap; gap: 10px; }
.social a { padding: 5px 12px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 18px; font-size: 13px; }
.footer-col address { font-style: normal; font-size: 14.5px; }
.footer-col address p { margin: 0 0 8px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.footer-bottom p { margin: 0; font-size: 13.5px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  width: min(100% - 32px, var(--wrap)); margin-inline: auto; padding: 18px 0 24px;
}
.footer-admin a { color: var(--nav-sub); }

/* ---------------- responsif ---------------- */

@media (max-width: 1340px) {
  .nav-item > a { padding: 16px 16px; min-width: 96px; }
  .nav-id { font-size: 14.5px; }
  .nav-en { font-size: 9.5px; letter-spacing: .12em; }
  .brand { padding-right: 16px; }
  .brand-name { font-size: 21px; }
  .nav-search input { width: 118px; }
}

@media (max-width: 1080px) {
  .with-aside { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .feature-card { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    margin-left: auto; margin-right: 14px; width: 44px; background: none; border: 0; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--navy-700);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .main-nav.open { max-height: 80vh; overflow-y: auto; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-item > a { background: transparent; border-left: 0; border-bottom: 1px solid rgba(255, 255, 255, .1);
    align-items: flex-start; padding: 14px 20px; min-width: 0; }
  .nav-item.is-active > a { box-shadow: inset 3px 0 0 var(--sky-300); }
  .sub-nav { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: rgba(0, 0, 0, .18); }
  .nav-search form { border-left: 0; padding: 14px 20px; }
  .nav-search input { width: 100%; }
  .brand-name { font-size: 20px; }
  .article { padding: 22px 18px 26px; }
  .footer-top { grid-template-columns: 1fr; gap: 26px; }
}

@media print {
  .site-header, .sidebar, .site-footer, .share, .breadcrumb, .related { display: none; }
  .article { border: 0; box-shadow: none; padding: 0; }
}
