@charset "UTF-8";

/*
 * Ken Tech / thelightway-v2607
 * Editorial Blog Feed
 */

/* -------------------------------------------------------------------------- */
/* Fonts                                                                       */
/* -------------------------------------------------------------------------- */

@font-face {
  font-family: "Pretendard Variable";
  src: url("./images/PretendardVariable.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 45 920;
  font-display: swap;
}

@font-face {
  font-family: "D2 Coding";
  src: url("./images/D2Coding-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Font Awesome 7 Free";
  src: url("./images/fa-solid-900.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: block;
}

@font-face {
  font-family: "Font Awesome 7 Brands";
  src: url("./images/fa-brands-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

.fa-solid,
.fas,
.fa-regular,
.far {
  display: inline-block;
  font-family: "Font Awesome 7 Free";
  font-style: normal;
  font-variant: normal;
  font-weight: 900;
  line-height: 1;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}

.fa-brands,
.fab {
  display: inline-block;
  font-family: "Font Awesome 7 Brands";
  font-style: normal;
  font-variant: normal;
  font-weight: 400;
  line-height: 1;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}

.fa-github::before {
  content: "\f09b";
}

.fa-magnifying-glass::before {
  content: "\f002";
}

.fa-circle-half-stroke::before {
  content: "\f042";
}

.fa-sun::before {
  content: "\f185";
}

.fa-moon::before {
  content: "\f186";
}

.fa-bars::before {
  content: "\f0c9";
}

.fa-xmark::before {
  content: "\f00d";
}

.fa-chevron-down::before {
  content: "\f078";
}

.fa-chevron-up::before {
  content: "\f077";
}

.fa-arrow-right::before {
  content: "\f061";
}

.fa-arrow-left::before {
  content: "\f060";
}

.fa-arrow-up::before {
  content: "\f062";
}

.fa-arrow-up-right-from-square::before {
  content: "\f35d";
}

.fa-layer-group::before {
  content: "\f5fd";
}

.fa-lock::before {
  content: "\f023";
}

.fa-envelope::before {
  content: "\f0e0";
}

.fa-file-lines::before {
  content: "\f15c";
}

.fa-address-card::before {
  content: "\f2bb";
}

.fa-copy::before {
  content: "\f0c5";
}

.fa-check::before {
  content: "\f00c";
}

.fa-list-check::before {
  content: "\f0ae";
}

.fa-flask::before {
  content: "\f0c3";
}

.fa-chart-line::before {
  content: "\f201";
}

.fa-scale-balanced::before {
  content: "\f24e";
}

.fa-triangle-exclamation::before {
  content: "\f071";
}

/* -------------------------------------------------------------------------- */
/* Theme tokens                                                                */
/* -------------------------------------------------------------------------- */

:root,
html[data-theme="light"] {
  color-scheme: light;
  --page-bg: #f8fafc;
  --surface: #ffffff;
  --surface-muted: #f1f5f9;
  --surface-raised: #ffffff;
  --text: #0f172a;
  --text-soft: #475569;
  --text-muted: #64748b;
  --text-quiet: #8b98a9;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --accent: #047857;
  --accent-hover: #065f46;
  --accent-soft: #d1fae5;
  --accent-line: rgba(4, 120, 87, 0.42);
  --header-bg: rgba(248, 250, 252, 0.96);
  --overlay-bg: rgba(15, 23, 42, 0.48);
  --floating-shadow: 0 18px 50px rgba(15, 23, 42, 0.14);
  --code-bg: #0f172a;
  --code-surface: #111c31;
  --code-border: #273449;
  --code-text: #e5edf7;
  --code-muted: #94a3b8;
  --selection-bg: #a7f3d0;
  --selection-text: #052e24;
  --info-bg: #eff6ff;
  --info-border: #60a5fa;
  --result-bg: #ecfdf5;
  --result-border: #10b981;
  --decision-bg: #f5f3ff;
  --decision-border: #8b5cf6;
  --warning-bg: #fffbeb;
  --warning-border: #f59e0b;
  --danger: #b91c1c;
  --focus-ring: rgba(4, 120, 87, 0.28);
  --page-width: 1200px;
  --article-width: 780px;
  --header-height: 64px;
  --tech-nav-height: 48px;
  --font-sans: "Pretendard Variable", Pretendard, "Noto Sans KR",
    "Apple SD Gothic Neo", "Segoe UI", sans-serif;
  --font-code: "D2 Coding", D2Coding, "SFMono-Regular", Consolas,
    "Liberation Mono", monospace;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --page-bg: #0b1120;
  --surface: #111827;
  --surface-muted: #172033;
  --surface-raised: #151f30;
  --text: #f1f5f9;
  --text-soft: #cbd5e1;
  --text-muted: #94a3b8;
  --text-quiet: #78869a;
  --border: #273449;
  --border-strong: #3a485e;
  --accent: #34d399;
  --accent-hover: #6ee7b7;
  --accent-soft: #113c32;
  --accent-line: rgba(52, 211, 153, 0.45);
  --header-bg: rgba(11, 17, 32, 0.94);
  --overlay-bg: rgba(2, 6, 23, 0.72);
  --floating-shadow: 0 20px 58px rgba(0, 0, 0, 0.38);
  --code-bg: #020617;
  --code-surface: #081125;
  --code-border: #26344c;
  --code-text: #e2e8f0;
  --code-muted: #94a3b8;
  --selection-bg: #065f46;
  --selection-text: #ecfdf5;
  --info-bg: #11233e;
  --info-border: #60a5fa;
  --result-bg: #0d2e27;
  --result-border: #34d399;
  --decision-bg: #27203d;
  --decision-border: #a78bfa;
  --warning-bg: #322713;
  --warning-border: #fbbf24;
  --danger: #fca5a5;
  --focus-ring: rgba(52, 211, 153, 0.3);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) {
    color-scheme: dark;
    --page-bg: #0b1120;
    --surface: #111827;
    --surface-muted: #172033;
    --surface-raised: #151f30;
    --text: #f1f5f9;
    --text-soft: #cbd5e1;
    --text-muted: #94a3b8;
    --text-quiet: #78869a;
    --border: #273449;
    --border-strong: #3a485e;
    --accent: #34d399;
    --accent-hover: #6ee7b7;
    --accent-soft: #113c32;
    --accent-line: rgba(52, 211, 153, 0.45);
    --header-bg: rgba(11, 17, 32, 0.94);
    --overlay-bg: rgba(2, 6, 23, 0.72);
    --floating-shadow: 0 20px 58px rgba(0, 0, 0, 0.38);
    --code-bg: #020617;
    --code-surface: #081125;
    --code-border: #26344c;
    --code-text: #e2e8f0;
    --code-muted: #94a3b8;
    --selection-bg: #065f46;
    --selection-text: #ecfdf5;
    --info-bg: #11233e;
    --info-border: #60a5fa;
    --result-bg: #0d2e27;
    --result-border: #34d399;
    --decision-bg: #27203d;
    --decision-border: #a78bfa;
    --warning-bg: #322713;
    --warning-border: #fbbf24;
    --danger: #fca5a5;
    --focus-ring: rgba(52, 211, 153, 0.3);
  }
}

/* -------------------------------------------------------------------------- */
/* Reset and accessibility                                                     */
/* -------------------------------------------------------------------------- */

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

html {
  min-width: 0;
  overflow-x: hidden;
  background: var(--page-bg);
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  overflow-wrap: break-word;
  color: var(--text);
  background: var(--page-bg);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: -0.018em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-scroll-locked,
body.drawer-open,
body.search-open,
body.mobile-drawer-open,
body.search-overlay-open {
  overflow: hidden;
}

#ken-tech {
  min-width: 0;
  min-height: 100vh;
  isolation: isolate;
}

::selection {
  color: var(--selection-text);
  background: var(--selection-bg);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding-left: 1.4em;
}

table {
  border-spacing: 0;
}

[hidden],
.is-hidden,
.screen-out,
.blind {
  display: none !important;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.skip-link {
  position: fixed;
  z-index: 10000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border: 2px solid var(--accent);
  background: var(--surface);
  font-weight: 700;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px var(--focus-ring);
}

:where(h1, h2, h3, h4, h5, [id]):target {
  scroll-margin-top: calc(var(--header-height) + 28px);
}

/* -------------------------------------------------------------------------- */
/* Header, topics, search and mobile drawer                                    */
/* -------------------------------------------------------------------------- */

.reading-progress {
  position: fixed;
  z-index: 1000;
  inset: 0 auto auto 0;
  width: var(--reading-progress, 0%);
  height: 2px;
  background: var(--accent);
  transform-origin: left center;
  pointer-events: none;
}

.site-header {
  position: sticky;
  z-index: 800;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  transition: border-color 180ms ease, background-color 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--border-strong);
}

.site-header .header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  width: min(calc(100% - 64px), var(--page-width));
  height: 100%;
  margin-inline: auto;
}

.site-header .brand {
  display: inline-flex;
  align-items: baseline;
  width: max-content;
  font-size: 21px;
  font-weight: 780;
  letter-spacing: -0.045em;
  line-height: 1;
}

.site-header .brand::after {
  width: 5px;
  height: 5px;
  margin-left: 5px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.site-header .desktop-nav {
  justify-self: center;
  display: flex;
  align-items: stretch;
  height: 100%;
  gap: 26px;
}

.desktop-nav a,
.desktop-nav button {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0;
  color: var(--text-soft);
  background: transparent;
  font-size: 13px;
  font-weight: 650;
}

.desktop-nav a:hover,
.desktop-nav button:hover,
.desktop-nav a[aria-current="page"],
.desktop-nav button[aria-expanded="true"] {
  color: var(--text);
}

.desktop-nav a[aria-current="page"]::after,
.desktop-nav button[aria-expanded="true"]::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button,
.header-link,
.mobile-menu-toggle {
  display: inline-grid;
  min-width: 38px;
  min-height: 38px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 4px;
  place-items: center;
  color: var(--text-soft);
  background: transparent;
  transition: color 160ms ease, border-color 160ms ease,
    background-color 160ms ease;
}

.header-link {
  grid-auto-flow: column;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 640;
}

.icon-button:hover,
.header-link:hover,
.mobile-menu-toggle:hover {
  border-color: var(--border);
  color: var(--accent);
  background: var(--surface);
}

.mobile-menu-toggle {
  display: none;
}

.tech-nav {
  position: relative;
  z-index: 300;
  height: var(--tech-nav-height);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.tech-nav .tech-nav-inner {
  display: flex;
  align-items: center;
  width: min(calc(100% - 64px), var(--page-width));
  height: 100%;
  margin-inline: auto;
}

.tech-nav .tech-nav-list,
.tech-nav .tech-nav-list ul {
  display: flex;
  align-items: stretch;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tech-nav .tech-nav-list > li {
  height: 100%;
}

.tech-nav .tech-nav-list a {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  margin-right: 31px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 590;
  white-space: nowrap;
}

.tech-nav .tech-nav-list a:hover,
.tech-nav .tech-nav-list a.is-current,
.tech-nav .tech-nav-list a[aria-current="page"] {
  color: var(--accent);
}

.tech-nav .tech-nav-list a.is-current::after,
.tech-nav .tech-nav-list a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
}

.tech-nav .tech-nav-more {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 620;
  white-space: nowrap;
}

.tech-nav .tech-nav-more:hover {
  color: var(--accent);
}

.topics-panel {
  position: fixed;
  z-index: 850;
  top: calc(var(--header-height) - 1px);
  left: 50%;
  width: min(calc(100% - 64px), 760px);
  max-height: min(70vh, 620px);
  padding: 22px 26px 24px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-raised);
  box-shadow: var(--floating-shadow);
  opacity: 0;
  transform: translate(-50%, -8px);
  visibility: hidden;
  transition: opacity 170ms ease, transform 170ms ease,
    visibility 170ms ease;
}

.topics-panel.is-open,
.topics-panel[aria-hidden="false"] {
  opacity: 1;
  transform: translate(-50%, 0);
  visibility: visible;
}

.topics-panel .topics-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 17px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.topics-panel .topics-heading strong {
  font-size: 16px;
  font-weight: 730;
}

.topics-panel .topics-list,
.topics-panel .topics-list ul,
.topics-panel .tt_category,
.topics-panel .category_list,
.topics-panel .sub_category_list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.topics-panel .topics-list > ul,
.topics-panel .category_list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 34px;
}

.topics-panel .topics-list a,
.topics-panel .link_tit,
.topics-panel .link_item,
.topics-panel .link_sub_item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 39px;
  border-bottom: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 580;
}

.topics-panel .topics-list a:hover,
.topics-panel .link_tit:hover,
.topics-panel .link_item:hover,
.topics-panel .link_sub_item:hover {
  color: var(--accent);
}

.topics-panel .sub_category_list {
  padding-left: 14px;
}

.topics-panel .c_cnt {
  margin-left: 8px;
  color: var(--text-quiet);
  font-size: 11px;
}

.drawer-backdrop {
  position: fixed;
  z-index: 880;
  inset: 0;
  background: var(--overlay-bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.drawer-backdrop.is-open,
.drawer-backdrop[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  z-index: 900;
  top: 0;
  right: 0;
  width: min(88vw, 360px);
  height: 100dvh;
  padding: 18px 22px 30px;
  overflow-y: auto;
  border-left: 1px solid var(--border);
  background: var(--surface-raised);
  box-shadow: var(--floating-shadow);
  transform: translateX(102%);
  visibility: hidden;
  transition: transform 190ms ease, visibility 190ms ease;
}

.mobile-drawer.is-open,
.mobile-drawer[aria-hidden="false"] {
  transform: translateX(0);
  visibility: visible;
}

.mobile-drawer .drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.mobile-drawer .drawer-header strong {
  font-size: 18px;
  font-weight: 750;
}

.mobile-drawer .drawer-nav,
.mobile-drawer .drawer-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-drawer .drawer-nav {
  padding-top: 10px;
}

.mobile-drawer .drawer-nav a,
.mobile-drawer .drawer-nav button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  padding: 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-soft);
  background: transparent;
  font-size: 14px;
  font-weight: 620;
  text-align: left;
}

.mobile-drawer .drawer-nav a:hover,
.mobile-drawer .drawer-nav button:hover,
.mobile-drawer .drawer-nav a[aria-current="page"] {
  color: var(--accent);
}

.mobile-drawer .sub_category_list {
  padding-left: 14px;
}

.search-overlay {
  position: fixed;
  z-index: 950;
  inset: 0;
  display: grid;
  padding: 24px;
  background: var(--overlay-bg);
  opacity: 0;
  place-items: start center;
  visibility: hidden;
  transition: opacity 170ms ease, visibility 170ms ease;
}

.search-overlay.is-open,
.search-overlay[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.search-overlay .search-dialog {
  width: min(100%, 640px);
  margin-top: min(16vh, 150px);
  padding: 24px 26px 26px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-raised);
  box-shadow: var(--floating-shadow);
  transform: translateY(-8px);
  transition: transform 170ms ease;
}

.search-overlay.is-open .search-dialog,
.search-overlay[aria-hidden="false"] .search-dialog {
  transform: translateY(0);
}

.search-overlay .search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.search-overlay .search-head strong {
  font-size: 18px;
  font-weight: 730;
}

.search-overlay .search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border-bottom: 2px solid var(--text);
}

.search-overlay .search-input {
  min-width: 0;
  height: 54px;
  padding: 0 4px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 20px;
  font-weight: 550;
}

.search-overlay .search-input::placeholder {
  color: var(--text-quiet);
}

.search-overlay .search-submit {
  padding: 0 6px;
  color: var(--accent);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.search-overlay .search-help {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}

/* -------------------------------------------------------------------------- */
/* Home and list pages                                                         */
/* -------------------------------------------------------------------------- */

.page-shell {
  width: min(calc(100% - 64px), var(--page-width));
  margin-inline: auto;
  padding: 40px 0 88px;
}

.page-shell.has-sidebar,
.page-shell.page-shell--with-sidebar,
.page-shell.home-layout,
.page-shell.list-layout,
.page-shell:has(> .blog-sidebar) {
  display: grid;
  grid-template-columns: minmax(0, 840px) 280px;
  gap: 80px;
}

.content-column,
.blog-sidebar {
  min-width: 0;
}

.section-header,
.list-header,
.cover-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  min-height: 40px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-strong);
}

.section-header h1,
.section-header h2,
.list-header h1,
.list-header h2,
.cover-header h2 {
  margin: 0;
  font-size: 27px;
  font-weight: 760;
  line-height: 1.25;
  letter-spacing: -0.045em;
}

.section-header h2,
.cover-header h2 {
  font-size: 25px;
}

.section-header a,
.list-header a,
.cover-header a,
.section-more {
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 620;
}

.section-header a:hover,
.list-header a:hover,
.cover-header a:hover,
.section-more:hover {
  color: var(--accent);
}

.list-description,
.search-description {
  margin: 9px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.post-feed,
.post-feed ul,
.post-feed ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.post-feed .post-row {
  min-width: 0;
  border-bottom: 1px solid var(--border);
}

.post-feed .post-row > a,
.post-feed .post-row .post-row-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 148px;
  padding: 20px 0 19px;
  gap: 30px;
}

.post-feed .post-content {
  min-width: 0;
}

.post-feed .post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 5px;
  color: var(--text-quiet);
  font-size: 12px;
  font-weight: 540;
  letter-spacing: -0.006em;
}

.post-feed .post-meta > * + *::before {
  margin: 0 7px;
  color: var(--border-strong);
  content: "·";
}

.post-feed .post-meta .category,
.post-feed .post-meta .post-category {
  color: var(--accent);
  font-weight: 690;
}

.post-feed .post-title {
  margin: 0;
  overflow: hidden;
  font-size: 22px;
  font-weight: 720;
  line-height: 1.42;
  letter-spacing: -0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 150ms ease;
}

.post-feed .post-summary {
  display: -webkit-box;
  max-width: 98%;
  margin: 6px 0 0;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 420;
  line-height: 1.64;
  word-break: keep-all;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.post-feed .post-thumb {
  display: block;
  width: 188px;
  height: 106px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface-muted);
}

.post-feed .post-thumb:empty {
  display: none;
}

.post-feed .post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.post-feed .post-row > a:hover .post-title,
.post-feed .post-row .post-row-inner:hover .post-title {
  color: var(--accent-hover);
}

.post-feed .post-row > a:hover .post-thumb img,
.post-feed .post-row .post-row-inner:hover .post-thumb img {
  transform: scale(1.025);
}

.post-feed .post-row.is-protected .post-title::before,
.post-feed .post-row.protected .post-title::before {
  margin-right: 7px;
  color: var(--text-muted);
  font-family: "Font Awesome 7 Free";
  font-size: 0.72em;
  font-weight: 900;
  content: "\f023";
}

.empty-state,
.no-search-result {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.empty-state strong,
.no-search-result strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 700;
}

.empty-state p,
.no-search-result p {
  margin: 0;
  color: var(--text-muted);
}

/* Sidebar keeps the familiar Tistory navigation grammar without card chrome. */

.blog-sidebar {
  padding-left: 31px;
  border-left: 1px solid var(--border);
}

.blog-sidebar .sidebar-inner {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.blog-sidebar .profile-block,
.blog-sidebar .sidebar-section {
  padding: 0 0 26px;
  border-bottom: 1px solid var(--border);
}

.blog-sidebar .profile-block + .sidebar-section,
.blog-sidebar .sidebar-section + .sidebar-section {
  padding-top: 24px;
}

.blog-sidebar .profile-block {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.blog-sidebar .profile-image {
  width: 64px;
  height: 64px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  background: var(--surface-muted);
  object-fit: cover;
}

.blog-sidebar .profile-name {
  display: block;
  font-size: 17px;
  font-weight: 740;
  letter-spacing: -0.025em;
}

.blog-sidebar .profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 7px;
}

.blog-sidebar .profile-links a {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

.blog-sidebar .profile-links a:hover {
  color: var(--accent);
}

.blog-sidebar .profile-links .email-copy,
.author-card .author-links .email-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: -6px 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: var(--text-muted);
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.blog-sidebar .profile-links .email-copy:hover,
.author-card .author-links .email-copy:hover,
.blog-sidebar .profile-links .email-copy.is-copied,
.author-card .author-links .email-copy.is-copied {
  color: var(--accent);
  background: var(--accent-soft);
}

.blog-sidebar .profile-links .email-copy.is-copy-failed,
.author-card .author-links .email-copy.is-copy-failed {
  color: var(--danger, #c2413b);
}

.blog-sidebar .sidebar-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 730;
  letter-spacing: -0.025em;
}

.blog-sidebar :where(ul, ol),
.blog-sidebar .tt_category,
.blog-sidebar .category_list,
.blog-sidebar .sub_category_list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-sidebar .category-list a,
.blog-sidebar .tt_category a,
.blog-sidebar .link_tit,
.blog-sidebar .link_item,
.blog-sidebar .link_sub_item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 31px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 530;
}

.blog-sidebar .sub_category_list {
  padding-left: 14px;
}

.blog-sidebar .link_sub_item {
  position: relative;
}

.blog-sidebar .link_sub_item::before {
  position: absolute;
  top: 50%;
  left: -12px;
  width: 5px;
  height: 1px;
  background: var(--border-strong);
  content: "";
}

.blog-sidebar .category-list a:hover,
.blog-sidebar .tt_category a:hover,
.blog-sidebar a[aria-current="page"],
.blog-sidebar .selected > a {
  color: var(--accent);
}

.blog-sidebar .c_cnt,
.blog-sidebar .count {
  margin-left: 8px;
  color: var(--text-quiet);
  font-size: 11px;
}

.blog-sidebar .recent-list li + li {
  margin-top: 13px;
}

.blog-sidebar .recent-list a {
  display: block;
}

.blog-sidebar .recent-list strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 590;
  line-height: 1.5;
  word-break: keep-all;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.blog-sidebar .recent-list a:hover strong {
  color: var(--accent);
}

.blog-sidebar .recent-list time {
  display: block;
  margin-top: 3px;
  color: var(--text-quiet);
  font-size: 10.5px;
}

.blog-sidebar .tag-links {
  display: flex;
  flex-wrap: wrap;
  column-gap: 11px;
  row-gap: 5px;
}

.blog-sidebar .tag-links a {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 540;
}

.blog-sidebar .tag-links a::before {
  color: var(--text-quiet);
  content: "#";
}

.blog-sidebar .tag-links a:hover,
.blog-sidebar .tag-links a:hover::before {
  color: var(--accent);
}

/* Category covers remain editorial groups, not a field of rounded cards. */

.cover-section,
.category-journal,
.projects-section,
.dev-life-section,
.home-profile-section {
  margin-top: 68px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 44px;
  padding-top: 24px;
}

.category-module {
  min-width: 0;
}

.category-module:nth-child(even) {
  padding-left: 44px;
  border-left: 1px solid var(--border);
}

.category-module:nth-child(n + 3) {
  margin-top: 48px;
  padding-top: 38px;
  border-top: 1px solid var(--border);
}

.category-module .category-name {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 720;
}

.category-module .featured-post {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 19px;
  border-bottom: 1px solid var(--border);
}

.category-module .featured-post:has(.featured-thumb:not(:empty)) {
  grid-template-columns: minmax(0, 1fr) 132px;
}

.category-module .featured-thumb {
  width: 132px;
  height: 84px;
  overflow: hidden;
  border-radius: 5px;
  background: var(--surface-muted);
}

.category-module .featured-thumb:empty {
  display: none;
}

.category-module .featured-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-module .featured-title {
  margin: 0;
  font-size: 18px;
  font-weight: 690;
  line-height: 1.48;
  letter-spacing: -0.035em;
}

.category-module .featured-meta {
  margin-top: 7px;
  color: var(--text-quiet);
  font-size: 11px;
}

.category-module .recent-post-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-module .recent-post-list li {
  border-bottom: 1px solid var(--border);
}

.category-module .recent-post-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 43px;
  gap: 16px;
  font-size: 13px;
  font-weight: 580;
}

.category-module a:hover .featured-title,
.category-module .recent-post-list a:hover {
  color: var(--accent);
}

.category-module .recent-post-list time {
  color: var(--text-quiet);
  font-size: 10.5px;
  font-weight: 500;
}

.project-list,
.dev-life-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-list li,
.dev-life-list li {
  border-bottom: 1px solid var(--border);
}

.project-list a,
.dev-life-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 70px;
  gap: 24px;
}

.project-list strong,
.dev-life-list strong {
  font-size: 16px;
  font-weight: 680;
}

.project-list p,
.dev-life-list p {
  margin: 3px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.project-list a:hover strong,
.dev-life-list a:hover strong {
  color: var(--accent);
}

.home-profile {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 28px 0;
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border);
}

.home-profile .profile-image {
  width: 72px;
  height: 72px;
  border-radius: 5px;
  object-fit: cover;
}

.home-profile .profile-name {
  display: block;
  font-size: 18px;
  font-weight: 730;
}

.home-profile .profile-actions {
  display: flex;
  gap: 16px;
}

.home-profile .profile-actions a {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 620;
}

.home-profile .profile-actions a:hover {
  color: var(--accent);
}

/* -------------------------------------------------------------------------- */
/* Article layout and editorial typography                                     */
/* -------------------------------------------------------------------------- */

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--article-width)) 256px;
  justify-content: center;
  gap: 80px;
  width: min(100%, 1116px);
  margin-inline: auto;
}

.article-layout .article-main {
  min-width: 0;
  width: 100%;
  max-width: var(--article-width);
}

.article-header {
  margin: 12px 0 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.article-header .article-category {
  display: inline-block;
  margin-bottom: 13px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 690;
}

.article-header .article-category:hover {
  color: var(--accent-hover);
}

.article-header .article-title {
  max-width: 18em;
  margin: 0;
  font-size: clamp(36px, 3.45vw, 48px);
  font-weight: 760;
  line-height: 1.22;
  letter-spacing: -0.052em;
  word-break: keep-all;
}

.article-header .article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 19px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 520;
}

.article-header .article-meta > * + *::before {
  margin: 0 8px;
  color: var(--border-strong);
  content: "·";
}

.article-header .article-meta .reading-time:empty {
  display: none;
}

.article-body,
#article-view,
.article-view {
  min-width: 0;
  max-width: var(--article-width);
  color: var(--text);
  font-size: 17.5px;
  font-weight: 400;
  line-height: 1.82;
  letter-spacing: -0.012em;
  word-break: normal;
  overflow-wrap: anywhere;
}

#ken-tech :where(.article-body, #article-view, .article-view) > :first-child {
  margin-top: 0;
}

#ken-tech :where(.article-body, #article-view, .article-view) > :last-child {
  margin-bottom: 0;
}

#ken-tech :where(.article-body, #article-view, .article-view) p {
  margin: 0 0 1.45em;
}

#ken-tech :where(.article-body, #article-view, .article-view)
  :where(h1, h2, h3, h4, h5) {
  position: relative;
  color: var(--text);
  font-family: var(--font-sans);
  text-wrap: balance;
  word-break: keep-all;
  scroll-margin-top: calc(var(--header-height) + 28px);
}

#ken-tech :where(.article-body, #article-view, .article-view) h1 {
  margin: 2.6em 0 0.88em;
  padding-bottom: 0.52em;
  border-bottom: 1px solid var(--border-strong);
  font-size: 34px;
  font-weight: 760;
  line-height: 1.3;
  letter-spacing: -0.048em;
}

#ken-tech :where(.article-body, #article-view, .article-view) h2 {
  margin: 2.7em 0 0.9em;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 29px;
  font-weight: 740;
  line-height: 1.34;
  letter-spacing: -0.044em;
}

#ken-tech :where(.article-body, #article-view, .article-view) h2::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--accent);
  content: "";
}

#ken-tech :where(.article-body, #article-view, .article-view) h3 {
  margin: 2.25em 0 0.78em;
  padding-left: 15px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.038em;
}

#ken-tech :where(.article-body, #article-view, .article-view) h3::before {
  position: absolute;
  top: 0.27em;
  bottom: 0.26em;
  left: 0;
  width: 3px;
  background: var(--accent);
  content: "";
}

#ken-tech :where(.article-body, #article-view, .article-view) h4 {
  margin: 2em 0 0.68em;
  font-size: 20.5px;
  font-weight: 690;
  line-height: 1.46;
  letter-spacing: -0.032em;
}

#ken-tech :where(.article-body, #article-view, .article-view) h4::before {
  display: inline-block;
  width: 9px;
  height: 2px;
  margin: 0 9px 0.25em 0;
  background: var(--accent);
  content: "";
}

#ken-tech :where(.article-body, #article-view, .article-view) h5 {
  margin: 1.8em 0 0.62em;
  color: var(--text-soft);
  font-size: 16.5px;
  font-weight: 720;
  line-height: 1.5;
  letter-spacing: 0.005em;
}

#ken-tech :where(.article-body, #article-view, .article-view) h5::before {
  margin-right: 7px;
  color: var(--accent);
  content: "·";
}

#ken-tech :where(.article-body, #article-view, .article-view)
  :where(a:not([class]), .text-link) {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-line);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

#ken-tech :where(.article-body, #article-view, .article-view)
  :where(a:not([class]), .text-link):hover {
  color: var(--accent-hover);
  text-decoration-color: currentColor;
}

#ken-tech :where(.article-body, #article-view, .article-view)
  :where(strong, b) {
  font-weight: 700;
}

#ken-tech :where(.article-body, #article-view, .article-view) mark {
  padding: 0.05em 0.18em;
  color: inherit;
  background: var(--accent-soft);
}

#ken-tech :where(.article-body, #article-view, .article-view) hr {
  height: 1px;
  margin: 3.2em 0;
  border: 0;
  background: var(--border);
}

#ken-tech :where(.article-body, #article-view, .article-view)
  :where(ul, ol) {
  margin: 0 0 1.5em;
  padding-left: 1.45em;
}

#ken-tech :where(.article-body, #article-view, .article-view)
  :where(ul, ol)
  :where(ul, ol) {
  margin: 0.35em 0 0.45em;
}

#ken-tech :where(.article-body, #article-view, .article-view) li {
  margin: 0.28em 0;
  padding-left: 0.16em;
}

#ken-tech :where(.article-body, #article-view, .article-view)
  li::marker {
  color: var(--accent);
  font-weight: 650;
}

#ken-tech :where(.article-body, #article-view, .article-view)
  .task-list-item {
  list-style: none;
}

#ken-tech :where(.article-body, #article-view, .article-view)
  input[type="checkbox"] {
  width: 1em;
  height: 1em;
  margin: 0 0.45em 0 -1.35em;
  accent-color: var(--accent);
}

/* Quotes */

#ken-tech :where(.article-body, #article-view, .article-view) blockquote {
  margin: 2em 0;
  padding: 2px 0 2px 22px;
  border-left: 3px solid var(--border-strong);
  color: var(--text-soft);
  font-size: 0.98em;
}

#ken-tech :where(.article-body, #article-view, .article-view)
  blockquote
  > :last-child {
  margin-bottom: 0;
}

#ken-tech :where(.article-body, #article-view, .article-view)
  blockquote[data-ke-style="style1"] {
  padding-top: 42px;
  border-left: 0;
  text-align: center;
}

#ken-tech :where(.article-body, #article-view, .article-view)
  blockquote[data-ke-style="style1"]::before {
  position: absolute;
  top: -2px;
  left: 50%;
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 48px;
  line-height: 1;
  content: "“";
  transform: translateX(-50%);
}

#ken-tech :where(.article-body, #article-view, .article-view)
  blockquote[data-ke-style="style2"] {
  padding: 18px 20px;
  border-top: 1px solid var(--border);
  border-right: 0;
  border-bottom: 1px solid var(--border);
  border-left: 0;
  background: var(--surface-muted);
}

#ken-tech :where(.article-body, #article-view, .article-view)
  blockquote[data-ke-style="style3"] {
  border-left-color: var(--accent);
}

/* Images, figures and embedded media */

#ken-tech :where(.article-body, #article-view, .article-view) figure {
  max-width: 100%;
  margin: 2.35em auto;
}

#ken-tech :where(.article-body, #article-view, .article-view)
  :where(figure.imageblock, figure[data-ke-type="image"]) {
  display: table;
  clear: both;
}

#ken-tech :where(.article-body, #article-view, .article-view)
  figure.imageblock.alignLeft,
#ken-tech :where(.article-body, #article-view, .article-view)
  figure[data-ke-align="alignLeft"] {
  margin-right: auto;
  margin-left: 0;
}

#ken-tech :where(.article-body, #article-view, .article-view)
  figure.imageblock.alignCenter,
#ken-tech :where(.article-body, #article-view, .article-view)
  figure[data-ke-align="alignCenter"] {
  margin-right: auto;
  margin-left: auto;
}

#ken-tech :where(.article-body, #article-view, .article-view)
  figure.imageblock.alignRight,
#ken-tech :where(.article-body, #article-view, .article-view)
  figure[data-ke-align="alignRight"] {
  margin-right: 0;
  margin-left: auto;
}

#ken-tech :where(.article-body, #article-view, .article-view)
  figure.imageblock.floatLeft {
  float: left;
  margin: 0.4em 1.7em 1em 0;
}

#ken-tech :where(.article-body, #article-view, .article-view)
  figure.imageblock.floatRight {
  float: right;
  margin: 0.4em 0 1em 1.7em;
}

#ken-tech :where(.article-body, #article-view, .article-view)
  :where(figure.imageblock, figure[data-ke-type="image"])
  img {
  display: block;
  max-width: 100%;
  border-radius: 5px;
}

#ken-tech :where(.article-body, #article-view, .article-view) figcaption {
  display: table-caption;
  caption-side: bottom;
  padding-top: 10px;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.55;
  text-align: center;
}

#ken-tech :where(.article-body, #article-view, .article-view)
  figure.imagegridblock
  .image-container,
#ken-tech :where(.article-body, #article-view, .article-view)
  figure[data-ke-type="imageGrid"]
  .image-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

#ken-tech :where(.article-body, #article-view, .article-view)
  figure.imagegridblock
  img,
#ken-tech :where(.article-body, #article-view, .article-view)
  figure[data-ke-type="imageGrid"]
  img {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  object-fit: cover;
}

#ken-tech :where(.article-body, #article-view, .article-view)
  :where(figure.imageslideblock, figure[data-ke-type="imageSlide"]) {
  max-width: 100%;
  overflow: hidden;
}

#ken-tech :where(.article-body, #article-view, .article-view)
  :where(.video-wrap, figure[data-ke-type="video"], .youtube-wrap) {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 2.35em 0;
  overflow: hidden;
  background: var(--surface-muted);
}

#ken-tech :where(.article-body, #article-view, .article-view)
  :where(.video-wrap, figure[data-ke-type="video"], .youtube-wrap)
  iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Tables */

#ken-tech :where(.article-body, #article-view, .article-view)
  :where(.table-wrap, .table-overflow) {
  max-width: 100%;
  margin: 2em 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

#ken-tech :where(.article-body, #article-view, .article-view) table {
  display: block;
  width: max-content;
  min-width: 100%;
  max-width: 100%;
  margin: 2em 0;
  overflow-x: auto;
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.55;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

#ken-tech :where(.article-body, #article-view, .article-view)
  :where(.table-wrap, .table-overflow)
  table {
  display: table;
  margin: 0;
  overflow: visible;
}

#ken-tech :where(.article-body, #article-view, .article-view)
  :where(th, td) {
  min-width: 96px;
  padding: 11px 13px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

#ken-tech :where(.article-body, #article-view, .article-view)
  :where(th, td):last-child {
  border-right: 0;
}

#ken-tech :where(.article-body, #article-view, .article-view) th {
  color: var(--text);
  background: var(--surface-muted);
  font-weight: 680;
}

#ken-tech :where(.article-body, #article-view, .article-view)
  table[data-ke-style="style4"]
  tr:nth-child(even)
  td,
#ken-tech :where(.article-body, #article-view, .article-view)
  table[data-ke-style="style5"]
  tr:nth-child(even)
  td,
#ken-tech :where(.article-body, #article-view, .article-view)
  table[data-ke-style="style6"]
  tr:nth-child(even)
  td,
#ken-tech :where(.article-body, #article-view, .article-view)
  table[data-ke-style="style12"]
  tr:nth-child(odd)
  td,
#ken-tech :where(.article-body, #article-view, .article-view)
  table[data-ke-style="style13"]
  tr:nth-child(odd)
  td,
#ken-tech :where(.article-body, #article-view, .article-view)
  table[data-ke-style="style14"]
  tr:nth-child(odd)
  td,
#ken-tech :where(.article-body, #article-view, .article-view)
  table[data-ke-style="style15"]
  tr:nth-child(odd)
  td {
  background: color-mix(in srgb, var(--surface-muted) 62%, transparent);
}

/* File blocks and expandable content */

#ken-tech :where(.article-body, #article-view, .article-view)
  figure.fileblock {
  display: block;
  width: min(100%, 520px);
  margin: 2em 0;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface);
}

#ken-tech :where(.article-body, #article-view, .article-view)
  figure.fileblock
  a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 76px;
  padding: 12px 16px;
  gap: 13px;
  color: var(--text);
  text-decoration: none;
}

#ken-tech :where(.article-body, #article-view, .article-view)
  figure.fileblock
  .image {
  display: grid;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 4px;
  place-items: center;
  color: var(--accent);
  background: var(--surface-muted);
}

#ken-tech :where(.article-body, #article-view, .article-view)
  figure.fileblock
  .filename,
#ken-tech :where(.article-body, #article-view, .article-view)
  figure.fileblock
  .name {
  display: block;
  overflow: hidden;
  font-size: 14px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#ken-tech :where(.article-body, #article-view, .article-view)
  figure.fileblock
  .size {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 11px;
}

#ken-tech :where(.article-body, #article-view, .article-view)
  :where(
    div[data-ke-type="moreLess"],
    .moreless_wrap,
    .moreless-fold,
    .moreless_block
  ) {
  margin: 2em 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

#ken-tech :where(.article-body, #article-view, .article-view)
  :where(.btn-toggle-moreless, .moreless_fold, .moreless_top, .moreless_bottom) {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 0;
  color: var(--accent);
  background: transparent;
  font-size: 13px;
  font-weight: 680;
  text-align: left;
}

#ken-tech :where(.article-body, #article-view, .article-view)
  :where(.moreless-content, .moreless_content) {
  padding: 4px 0 20px;
}

/* Inline code and code blocks */

#ken-tech :where(.article-body, #article-view, .article-view)
  :not(pre)
  > code {
  padding: 0.12em 0.34em;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--accent-hover);
  background: var(--surface-muted);
  font-family: var(--font-code);
  font-size: 0.88em;
  font-variant-ligatures: none;
  overflow-wrap: anywhere;
}

.code-block,
.code-wrap,
#ken-tech :where(.article-body, #article-view, .article-view) pre {
  position: relative;
  max-width: 100%;
}

.code-block,
.code-wrap {
  margin: 2.15em 0;
  overflow: hidden;
  border: 1px solid var(--code-border);
  border-radius: 7px;
  background: var(--code-bg);
}

.code-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 12px 0 16px;
  border-bottom: 1px solid var(--code-border);
  color: var(--code-muted);
  background: var(--code-surface);
}

.code-language,
.code-label {
  font-family: var(--font-code);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.code-copy,
.copy-code-button,
.code-copy-button {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 6px;
  gap: 6px;
  color: var(--code-muted);
  background: transparent;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 620;
}

.code-copy:hover,
.copy-code-button:hover,
.code-copy-button:hover,
.code-copy.is-copied,
.copy-code-button.is-copied,
.code-copy-button.is-copied {
  color: #6ee7b7;
}

.code-copy.is-copy-failed,
.copy-code-button.is-copy-failed,
.code-copy-button.is-copy-failed {
  color: #fca5a5;
}

#ken-tech :where(.article-body, #article-view, .article-view) pre {
  margin: 2.15em 0;
  padding: 21px 22px 23px;
  overflow: auto;
  border: 1px solid var(--code-border);
  border-radius: 7px;
  color: var(--code-text);
  background: var(--code-bg);
  font-family: var(--font-code);
  font-size: 14px;
  font-variant-ligatures: none;
  line-height: 1.72;
  tab-size: 2;
  white-space: pre;
  word-break: normal;
  overflow-wrap: normal;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.code-block pre,
.code-wrap pre {
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
}

#ken-tech :where(.article-body, #article-view, .article-view)
  pre[data-ke-language] {
  padding-top: 42px;
}

#ken-tech :where(.article-body, #article-view, .article-view)
  pre[data-ke-language]::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-bottom: 1px solid var(--code-border);
  color: var(--code-muted);
  background: var(--code-surface);
  font-family: var(--font-code);
  font-size: 10.5px;
  content: attr(data-ke-language);
}

#ken-tech :where(.article-body, #article-view, .article-view) pre code {
  display: block;
  min-width: max-content;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
}

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata,
.hljs-comment,
.hljs-quote {
  color: #718096;
}

.token.punctuation {
  color: #b8c3d3;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.hljs-number,
.hljs-literal {
  color: #fca5a5;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted,
.hljs-string,
.hljs-attr {
  color: #86efac;
}

.token.operator,
.token.entity,
.token.url,
.token.variable,
.hljs-variable,
.hljs-template-variable {
  color: #93c5fd;
}

.token.atrule,
.token.attr-value,
.token.function,
.token.class-name,
.hljs-title,
.hljs-function {
  color: #fde68a;
}

.token.keyword,
.hljs-keyword,
.hljs-selector-tag {
  color: #c4b5fd;
}

.token.regex,
.token.important,
.hljs-regexp {
  color: #fdba74;
}

/* Optional author-written summary and technical callouts */

.tl-summary,
.tl-callout {
  position: relative;
  margin: 2em 0;
  padding: 19px 21px 18px;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  color: var(--text-soft);
  background: var(--surface-muted);
  font-size: 15.5px;
  line-height: 1.72;
}

.tl-summary:empty,
.tl-callout:empty {
  display: none;
}

.tl-summary::before,
.tl-callout::before {
  display: block;
  margin-bottom: 7px;
  color: var(--text);
  font-size: 13px;
  font-weight: 740;
  letter-spacing: -0.01em;
}

.tl-summary::before {
  color: var(--accent);
  content: "한눈에 보기";
}

.tl-summary[data-title]::before,
.tl-callout[data-title]::before {
  content: attr(data-title);
}

.tl-callout--experiment {
  border-left-color: var(--info-border);
  background: var(--info-bg);
}

.tl-callout--experiment::before {
  content: "실험 환경";
}

.tl-callout--result {
  border-left-color: var(--result-border);
  background: var(--result-bg);
}

.tl-callout--result::before {
  content: "실험 결과";
}

.tl-callout--decision {
  border-left-color: var(--decision-border);
  background: var(--decision-bg);
}

.tl-callout--decision::before {
  content: "서비스 적용 판단";
}

.tl-callout--warning {
  border-left-color: var(--warning-border);
  background: var(--warning-bg);
}

.tl-callout--warning::before {
  content: "주의사항";
}

.tl-summary > :last-child,
.tl-callout > :last-child {
  margin-bottom: 0 !important;
}

/* Table of contents */

.toc-aside {
  min-width: 0;
}

.toc-aside #post-toc {
  position: sticky;
  top: calc(var(--header-height) + 28px);
  max-height: calc(100vh - var(--header-height) - 56px);
  padding-left: 19px;
  overflow: auto;
  border-left: 1px solid var(--border);
  scrollbar-width: thin;
}

#post-toc:empty,
#post-toc.is-empty,
.toc-aside.is-empty {
  display: none;
}

#post-toc .toc-title {
  display: block;
  margin: 0 0 13px;
  color: var(--text);
  font-size: 13px;
  font-weight: 720;
}

#post-toc .toc-toggle {
  display: none;
}

#post-toc :where(ol, ul) {
  margin: 0;
  padding: 0;
  list-style: none;
}

#post-toc :where(ol, ul) :where(ol, ul) {
  padding-left: 12px;
}

#post-toc li {
  position: relative;
}

#post-toc a {
  display: block;
  padding: 5px 0;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 520;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 150ms ease;
}

#post-toc a:hover,
#post-toc a.is-active,
#post-toc li.is-active > a,
#post-toc a[aria-current="location"] {
  color: var(--accent);
}

#post-toc .toc-level-3 > a,
#post-toc li[data-level="3"] > a {
  font-size: 11.5px;
}

#post-toc .toc-level-4 > a,
#post-toc .toc-level-5 > a,
#post-toc li[data-level="4"] > a,
#post-toc li[data-level="5"] > a {
  color: var(--text-quiet);
  font-size: 11px;
}

#post-toc .toc-marker {
  position: absolute;
  top: var(--toc-marker-top, 0);
  left: -20px;
  width: 2px;
  height: var(--toc-marker-height, 28px);
  background: var(--accent);
  transition: transform 180ms ease, height 180ms ease;
  transform: translateY(var(--toc-marker-y, 0));
  pointer-events: none;
}

.article-toc-slot {
  display: none;
}

/* Article footer */

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin-top: 64px;
  padding: 19px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.article-tags a {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 560;
}

.article-tags a::before {
  color: var(--text-quiet);
  content: "#";
}

.article-tags a:hover,
.article-tags a:hover::before {
  color: var(--accent);
}

.related-posts {
  margin-top: 52px;
}

.related-posts .related-title,
.giscus-host .comments-title {
  margin: 0 0 13px;
  font-size: 18px;
  font-weight: 720;
  letter-spacing: -0.03em;
}

.related-posts :where(ul, ol) {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
  list-style: none;
}

.related-posts li {
  border-bottom: 1px solid var(--border);
}

.related-posts a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 54px;
  gap: 20px;
  font-size: 14px;
  font-weight: 590;
}

.related-posts a:hover {
  color: var(--accent);
}

.related-posts time {
  color: var(--text-quiet);
  font-size: 11px;
  font-weight: 500;
}

.author-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 17px;
  margin-top: 48px;
  padding: 24px 0;
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border);
}

.author-card .author-image {
  width: 64px;
  height: 64px;
  border-radius: 5px;
  background: var(--surface-muted);
  object-fit: cover;
}

.author-card .author-name {
  display: block;
  font-size: 16px;
  font-weight: 720;
}

.author-card .author-links {
  display: flex;
  gap: 14px;
}

.author-card .author-links a {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 620;
}

.author-card .author-links a:hover {
  color: var(--accent);
}

.author-card .author-copy > span {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 12px;
}

.author-card:not(:has(.author-image)) {
  grid-template-columns: minmax(0, 1fr) auto;
}

.giscus-host {
  min-height: 0;
  margin-top: 58px;
}

.giscus-host:empty {
  display: none;
}

.giscus-host .giscus,
.giscus-host .giscus-frame {
  width: 100%;
}

/* Ads reserve no space until Tistory or AdSense actually supplies content. */

.ad-slot {
  margin: 50px 0;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.ad-slot::before {
  display: block;
  margin-bottom: 8px;
  color: var(--text-quiet);
  font-size: 10px;
  font-weight: 620;
  letter-spacing: 0.08em;
  content: "ADVERTISEMENT";
}

.ad-slot:empty,
.ad-slot[data-ad-status="empty"],
.ad-slot[data-ad-status="unfilled"],
.ad-slot:not(:has(> *)),
ins.adsbygoogle[data-ad-status="unfilled"] {
  display: none;
}

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

.site-footer {
  margin-top: 88px;
  border-top: 1px solid var(--border);
}

.site-footer .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 64px), var(--page-width));
  min-height: 108px;
  margin-inline: auto;
  color: var(--text-muted);
  font-size: 12px;
}

.site-footer .footer-links {
  display: flex;
  gap: 18px;
}

.site-footer a:hover {
  color: var(--accent);
}

/* -------------------------------------------------------------------------- */
/* Tistory editor compatibility                                                */
/* -------------------------------------------------------------------------- */

#ken-tech :where(.article-body, #article-view, .article-view)
  p[data-ke-size="size18"] {
  font-size: 1.06em;
}

#ken-tech :where(.article-body, #article-view, .article-view)
  p[data-ke-size="size16"] {
  font-size: 1em;
}

#ken-tech :where(.article-body, #article-view, .article-view)
  p[data-ke-size="size14"] {
  font-size: 0.9em;
}

#ken-tech :where(.article-body, #article-view, .article-view)
  span[data-lightbox] {
  cursor: zoom-in;
}

#ken-tech :where(.article-body, #article-view, .article-view)
  :where(figure[data-ke-type="emoticon"], figure.emoticon) {
  display: inline-block;
  margin: 0;
  vertical-align: middle;
}

#ken-tech :where(.article-body, #article-view, .article-view)
  :where(figure[data-ke-type="emoticon"], figure.emoticon)
  img {
  width: auto;
  max-height: 2.6em;
  border-radius: 0;
}

#ken-tech :where(.article-body, #article-view, .article-view)
  :where(figure[data-ke-type="opengraph"], figure[data-ke-type="contentSearch"]) {
  display: block;
  width: 100%;
  margin: 2em 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface);
}

#ken-tech :where(.article-body, #article-view, .article-view)
  :where(figure[data-ke-type="opengraph"], figure[data-ke-type="contentSearch"])
  > a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  min-height: 124px;
  color: inherit;
  text-decoration: none;
}

#ken-tech :where(.article-body, #article-view, .article-view)
  :where(.og-text, .cs-content) {
  min-width: 0;
  padding: 18px 20px;
}

#ken-tech :where(.article-body, #article-view, .article-view)
  :where(.og-title, .cs-title) {
  display: block;
  overflow: hidden;
  font-size: 15px;
  font-weight: 680;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#ken-tech :where(.article-body, #article-view, .article-view)
  :where(.og-desc, .cs-desc) {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#ken-tech :where(.article-body, #article-view, .article-view)
  :where(.og-host, .cs-url) {
  display: block;
  margin-top: 9px;
  overflow: hidden;
  color: var(--text-quiet);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#ken-tech :where(.article-body, #article-view, .article-view)
  :where(.og-image, .cs-image) {
  min-height: 124px;
  border-left: 1px solid var(--border);
  background-color: var(--surface-muted);
  background-position: center;
  background-size: cover;
}

#ken-tech :where(.article-body, #article-view, .article-view)
  :where(div[data-ke-type="map"], figure[data-ke-type="map"]) {
  max-width: 100%;
  margin: 2.25em 0;
  overflow: hidden;
  border: 1px solid var(--border);
}

#ken-tech :where(.article-body, #article-view, .article-view)
  :where(.footnote, .footnotes) {
  margin-top: 3em;
  padding-top: 19px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.65;
}

#ken-tech :where(.article-body, #article-view, .article-view)
  a.footnote {
  color: var(--accent);
  font-family: var(--font-code);
  font-size: 0.72em;
  text-decoration: none;
  vertical-align: super;
}

#ken-tech :where(.article-body, #article-view, .article-view)
  :where(.txc-textbox, .ke-textbox) {
  margin: 1.8em 0;
  padding: 16px 18px;
  border: 1px solid var(--border);
  color: var(--text-soft);
  background: var(--surface-muted);
}

.tt_article_useless_p_margin,
.tt_article_useless_p_margin p {
  max-width: 100%;
}

/* -------------------------------------------------------------------------- */
/* Pagination, tags, archives and simple utility pages                         */
/* -------------------------------------------------------------------------- */

.pagination,
.area-paging,
.paging {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 54px;
}

.pagination .page-numbers,
.pagination a,
.area-paging .link_page,
.area-paging .link_num,
.paging a {
  display: inline-grid;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  place-items: center;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 620;
}

.area-paging .paging_num {
  display: flex;
  gap: 4px;
}

.pagination a:hover,
.area-paging a:hover,
.paging a:hover {
  border-color: var(--border);
  color: var(--accent);
  background: var(--surface);
}

.pagination .current,
.pagination .selected,
.area-paging .link_num span,
.area-paging .link_num[aria-current="page"],
.paging .selected {
  border-color: var(--accent);
  color: var(--accent);
}

.pagination .disabled,
.area-paging .no-more-prev,
.area-paging .no-more-next,
.area-paging .no_more_prev,
.area-paging .no_more_next {
  opacity: 0.35;
  pointer-events: none;
}

.tag-page,
.area-tag,
.archive-page,
.local-log,
.notice-page,
.about-page,
.guestbook-page,
.protected-page,
.not-found-page {
  width: min(100%, var(--article-width));
  margin-inline: auto;
}

.page-title,
.title-search,
.tag-page h1,
.archive-page h1,
.guestbook-page h1,
.not-found-page h1 {
  margin: 0 0 35px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-strong);
  font-size: 30px;
  font-weight: 750;
  letter-spacing: -0.045em;
}

.tag-list,
.box-tag {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 17px;
}

.tag-list a,
.box-tag a {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 560;
}

.tag-list a::before,
.box-tag a::before {
  color: var(--text-quiet);
  content: "#";
}

.tag-list a:hover,
.tag-list a:hover::before,
.box-tag a:hover,
.box-tag a:hover::before {
  color: var(--accent);
}

.archive-list,
.notice-list,
.local-log :where(ul, ol) {
  margin: 0;
  padding: 0;
  list-style: none;
}

.archive-list li,
.notice-list li,
.local-log .spot,
.local-log .info,
#localog .spot,
#localog .info {
  border-bottom: 1px solid var(--border);
}

.archive-list a,
.notice-list a,
.local-log .spot,
.local-log .info,
#localog .spot,
#localog .info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  color: var(--text-soft);
  font-size: 14px;
}

.archive-list a:hover,
.notice-list a:hover,
.local-log a:hover,
#localog a:hover {
  color: var(--accent);
}

.archive-list time,
.notice-list time {
  color: var(--text-quiet);
  font-size: 11px;
}

.not-found-page {
  padding: 100px 0 140px;
  text-align: center;
}

.not-found-page h1 {
  border: 0;
  font-size: clamp(52px, 8vw, 88px);
}

.not-found-page p {
  margin: -18px 0 28px;
  color: var(--text-muted);
}

.not-found-page a,
.about-page .contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  color: var(--accent);
  background: var(--surface);
  font-size: 13px;
  font-weight: 660;
}

.not-found-page a:hover,
.about-page .contact-link:hover {
  border-color: var(--accent);
}

/* -------------------------------------------------------------------------- */
/* Protected posts                                                             */
/* -------------------------------------------------------------------------- */

.protected-post,
.area-protected {
  width: min(100%, 560px);
  margin: 48px auto 100px;
  padding: 35px 0;
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.protected-post .protected-title,
.area-protected .text-protected {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.protected-post .protected-description,
.area-protected .text-protected span {
  display: block;
  margin-top: 7px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 430;
}

.protected-form,
.protected_form {
  width: min(100%, 360px);
  margin: 25px auto 0;
}

.protected-form .protected-fields,
.protected_form .box-protected {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border-bottom: 2px solid var(--text);
}

.protected-form input,
.protected_form input {
  min-width: 0;
  height: 46px;
  padding: 0 4px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.protected-form button,
.protected_form button {
  padding: 0 7px;
  color: var(--accent);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

/* -------------------------------------------------------------------------- */
/* Guestbook and Tistory response forms                                        */
/* -------------------------------------------------------------------------- */

.guestbook,
#guestbook,
.area-reply {
  min-width: 0;
}

.guestbook-form,
.guest-write,
.reply-write,
.form-reply,
.area-reply form {
  margin-bottom: 42px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-strong);
}

.guestbook-form .form-row,
.guest-write .form-row,
.reply-write .form-row,
.form-reply .box_inp {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.guestbook :where(input[type="text"], input[type="password"], input[type="email"]),
.area-reply :where(input[type="text"], input[type="password"], input[type="email"]),
.comment-form :where(input[type="text"], input[type="password"], input[type="email"]) {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  outline: 0;
  color: var(--text);
  background: var(--surface);
}

.guestbook textarea,
.area-reply textarea,
.comment-form textarea {
  display: block;
  width: 100%;
  min-height: 132px;
  padding: 13px 14px;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: 4px;
  outline: 0;
  color: var(--text);
  background: var(--surface);
  line-height: 1.65;
}

.guestbook :where(input, textarea):focus,
.area-reply :where(input, textarea):focus,
.comment-form :where(input, textarea):focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.guestbook-form .form-submit,
.guest-write .form-submit,
.reply-write .form-submit,
.form-reply .writer_btn,
.area-reply form > button,
.comment-form button[type="submit"] {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.guestbook-form button[type="submit"],
.guest-write button[type="submit"],
.reply-write button[type="submit"],
.form-reply button,
.area-reply form > button,
.comment-form button[type="submit"] {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--surface);
  background: var(--accent);
  font-size: 13px;
  font-weight: 680;
}

html[data-theme="dark"] .guestbook-form button[type="submit"],
html[data-theme="dark"] .guest-write button[type="submit"],
html[data-theme="dark"] .reply-write button[type="submit"],
html[data-theme="dark"] .form-reply button,
html[data-theme="dark"] .area-reply form > button,
html[data-theme="dark"] .comment-form button[type="submit"] {
  color: #052e24;
}

.guest-list,
.comment-list,
.list-reply,
.guest-list ul,
.comment-list ul,
.list-reply ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.guest-item,
.comment-item,
.item-reply,
.list-reply > li {
  padding: 23px 0;
  border-bottom: 1px solid var(--border);
}

.guest-item .guest-meta,
.comment-item .comment-meta,
.item-reply .reply-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
}

.guest-item .name,
.comment-item .name,
.item-reply .name,
.list-reply .writer {
  font-size: 13px;
  font-weight: 700;
}

.guest-item time,
.comment-item time,
.item-reply time,
.list-reply .date {
  color: var(--text-quiet);
  font-size: 10.5px;
}

.guest-item .guest-content,
.comment-item .comment-content,
.item-reply .reply-content,
.list-reply .desc {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
}

.guest-item .guest-actions,
.comment-item .comment-actions,
.item-reply .reply-actions,
.list-reply .modify {
  display: flex;
  gap: 12px;
  margin-top: 9px;
}

.guest-item .guest-actions a,
.comment-item .comment-actions a,
.item-reply .reply-actions a,
.list-reply .modify a {
  color: var(--text-muted);
  font-size: 11px;
}

.guest-item .guest-actions a:hover,
.comment-item .comment-actions a:hover,
.item-reply .reply-actions a:hover,
.list-reply .modify a:hover {
  color: var(--accent);
}

.guest-list ul ul,
.comment-list ul ul,
.list-reply ul ul,
.list-reply .reply-list {
  margin: 18px 0 0 22px;
  padding-left: 18px;
  border-left: 2px solid var(--border);
}

/* -------------------------------------------------------------------------- */
/* About and project content                                                   */
/* -------------------------------------------------------------------------- */

.about-page .about-profile {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  align-items: start;
  gap: 42px;
  margin-bottom: 56px;
}

.about-page .about-photo {
  width: 100%;
  border-radius: 5px;
}

.about-page .about-name {
  margin: 0;
  font-size: 36px;
  font-weight: 760;
  letter-spacing: -0.045em;
}

.about-page .about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.about-page .about-section {
  margin-top: 54px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.about-page .about-section h2 {
  margin: 0 0 18px;
  font-size: 24px;
  font-weight: 720;
}

/* -------------------------------------------------------------------------- */
/* Tistory utility and owner controls                                          */
/* -------------------------------------------------------------------------- */

.admin-control,
.article-admin,
.btn_admin {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.admin-control a,
.article-admin a,
.btn_admin {
  color: var(--text-muted);
  font-size: 11px;
}

.admin-control a:hover,
.article-admin a:hover,
.btn_admin:hover {
  color: var(--accent);
}

.calendar {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.calendar caption {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 680;
}

.calendar th,
.calendar td {
  padding: 5px 2px;
  color: var(--text-muted);
  text-align: center;
}

.calendar a {
  color: var(--accent);
  font-weight: 680;
}

/* -------------------------------------------------------------------------- */
/* skin.html contract alignment                                                */
/* -------------------------------------------------------------------------- */

/* The sticky shell contains a 64px masthead and a 48px category row. */

.site-header {
  height: calc(var(--header-height) + var(--tech-nav-height));
}

.site-header .header-inner {
  height: var(--header-height);
}

.blog-sidebar .sidebar-inner,
.toc-aside #post-toc {
  top: calc(var(--header-height) + var(--tech-nav-height) + 24px);
}

:where(h1, h2, h3, h4, h5, [id]):target,
#ken-tech :where(.article-body, #article-view, .article-view)
  :where(h1, h2, h3, h4, h5) {
  scroll-margin-top: calc(
    var(--header-height) + var(--tech-nav-height) + 28px
  );
}

.mobile-menu-open {
  display: none;
}

.category-source {
  display: none !important;
}

.topics-panel .topics-panel-head,
.mobile-drawer .mobile-drawer-head,
.search-overlay .search-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topics-panel .topics-panel-head {
  margin-bottom: 17px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.topics-panel .topics-panel-head strong {
  font-size: 16px;
  font-weight: 730;
}

.mobile-drawer-backdrop {
  position: fixed;
  z-index: 880;
  inset: 0;
  background: var(--overlay-bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

#ken-tech:has(.mobile-drawer.is-open) .mobile-drawer-backdrop {
  display: block !important;
  opacity: 1;
  visibility: visible;
}

.mobile-drawer .mobile-drawer-head {
  min-height: 42px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.mobile-drawer .mobile-drawer-nav,
.mobile-drawer .mobile-category-list,
.mobile-drawer .mobile-category-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-drawer .mobile-drawer-nav {
  padding-top: 10px;
}

.mobile-drawer .mobile-drawer-nav a,
.mobile-drawer .mobile-drawer-nav button,
.mobile-drawer .mobile-category-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  padding: 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-soft);
  background: transparent;
  font-size: 14px;
  font-weight: 620;
  text-align: left;
}

.mobile-drawer .mobile-drawer-nav :where(a, button) i {
  width: 19px;
  margin-right: 9px;
  color: var(--text-muted);
  text-align: center;
}

.mobile-drawer .mobile-drawer-section {
  padding-top: 27px;
}

.mobile-drawer .mobile-drawer-section h2 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 720;
}

.mobile-drawer .mobile-drawer-nav a:hover,
.mobile-drawer .mobile-drawer-nav button:hover,
.mobile-drawer .mobile-category-list a:hover {
  color: var(--accent);
}

.search-overlay .search-dialog-head {
  margin-bottom: 18px;
}

.search-overlay .search-dialog-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 730;
}

.search-overlay .search-form {
  display: block;
  border: 0;
}

.search-overlay .search-form > label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.search-overlay .search-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  border-bottom: 2px solid var(--text);
}

.search-overlay .search-field > i {
  margin-right: 10px;
  color: var(--text-muted);
}

.search-overlay .search-hint {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}

.search-overlay kbd {
  font-family: var(--font-code);
  font-size: 0.9em;
}

/* Page shells with articles intentionally omit the general blog sidebar. */

.page-shell:has(.article-layout),
.page-shell:has(.protected-page) {
  display: block;
}

.page-shell:has(.article-layout) > .blog-sidebar,
.page-shell:has(.protected-page) > .blog-sidebar {
  display: none;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  min-height: 40px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-strong);
}

.section-heading :where(h1, h2, h3),
.cover-title {
  margin: 0;
  font-size: 25px;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -0.043em;
}

.list-eyebrow {
  margin: 0 0 3px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 680;
  letter-spacing: 0.04em;
}

.list-count {
  color: var(--text-muted);
  font-size: 12px;
}

/* The live Tistory feed uses sibling content and thumbnail nodes. */

.post-feed .post-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 148px;
  padding: 20px 0 19px;
  gap: 30px;
}

.post-feed .post-row .post-title a {
  display: block;
}

.post-feed .post-row:hover .post-title {
  color: var(--accent-hover);
}

.post-feed .post-row:hover .post-thumb img {
  transform: scale(1.025);
}

.post-feed .post-row.protected-row {
  grid-template-columns: minmax(0, 1fr);
}

/* Home cover composition: wide feeds, then two editorial category columns. */

.cover-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 68px 44px;
}

.cover-groups > .cover-section {
  min-width: 0;
  margin-top: 0;
}

.cover-groups > .cover-section--wide,
.cover-groups > .cover-section--latest,
.cover-groups > .cover-section--simple {
  grid-column: 1 / -1;
}

.cover-groups > .ad-slot {
  grid-column: 1 / -1;
}

.cover-section--category:nth-child(even of .cover-section--category) {
  padding-left: 44px;
  border-left: 1px solid var(--border);
}

.category-journal-feed .journal-item {
  min-height: 0;
  padding: 14px 0;
  gap: 18px;
}

.category-journal-feed .journal-item:first-child {
  min-height: 128px;
  padding: 18px 0;
}

.category-journal-feed .journal-item:first-child .post-title {
  font-size: 18px;
  line-height: 1.48;
  white-space: normal;
}

.category-journal-feed .journal-item:first-child .post-summary {
  font-size: 12.5px;
  -webkit-line-clamp: 2;
}

.category-journal-feed .journal-item:first-child .post-thumb {
  width: 112px;
  height: 76px;
}

.category-journal-feed .journal-item:not(:first-child) {
  grid-template-columns: minmax(0, 1fr);
}

.category-journal-feed .journal-item:not(:first-child) .post-meta {
  margin-bottom: 3px;
  font-size: 10.5px;
}

.category-journal-feed .journal-item:not(:first-child) .post-title {
  font-size: 13.5px;
  font-weight: 620;
  line-height: 1.5;
  white-space: normal;
}

.category-journal-feed
  .journal-item:not(:first-child)
  :where(.post-summary, .post-thumb) {
  display: none;
}

/* The current sidebar profile is a three-node grid. */

.blog-sidebar .profile-block .profile-links {
  grid-column: 2;
  margin-top: -8px;
}

.blog-sidebar .profile-copy > span {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 11px;
}

.blog-sidebar .profile-block:not(:has(.profile-image)) {
  grid-template-columns: minmax(0, 1fr);
}

.blog-sidebar .profile-block:not(:has(.profile-image)) .profile-links {
  grid-column: 1;
  margin-top: 0;
}

.blog-sidebar .sidebar-tag-list a::before {
  content: none;
}

.blog-sidebar .recent-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px;
}

.blog-sidebar .recent-list a > span {
  display: -webkit-box;
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 590;
  line-height: 1.5;
  word-break: keep-all;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.blog-sidebar .recent-list a:hover > span {
  color: var(--accent);
}

.blog-sidebar .recent-list time {
  white-space: nowrap;
}

/* Live article footer structures. */

.article-tags {
  align-items: center;
}

.article-tags > h2 {
  margin: 0 5px 0 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 720;
}

.article-tags .tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
}

.related-posts .section-heading {
  min-height: 0;
  margin-bottom: 0;
  padding-bottom: 13px;
}

.related-posts .related-post-list a {
  grid-template-columns: 88px minmax(0, 1fr);
  min-height: 76px;
  padding: 10px 0;
}

.related-posts .related-thumb {
  display: block;
  width: 88px;
  height: 56px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--surface-muted);
}

.related-posts .related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-posts .related-copy {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.related-posts .related-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.giscus-section {
  margin-top: 58px;
}

.giscus-section > h2 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 720;
  letter-spacing: -0.03em;
}

.giscus-section .giscus-host {
  margin-top: 0;
}

/* Live protected, tag, local and paging markup. */

.protected-page .protected-content {
  width: min(100%, 560px);
  margin: 0 auto 100px;
  padding: 36px 0;
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.protected-page .protected-content > i {
  color: var(--accent);
  font-size: 22px;
}

.protected-page .protected-content h2 {
  margin: 13px 0 5px;
  font-size: 19px;
}

.protected-page .protected-content p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

.protected-page .protected-form > label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.protected-page .protected-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border-bottom: 2px solid var(--text);
}

.protected-page .protected-field input {
  min-width: 0;
  height: 46px;
  padding: 0 4px;
  border: 0;
  outline: 0;
  background: transparent;
}

.protected-page .protected-field button {
  padding: 0 7px;
  color: var(--accent);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 17px;
}

.tag-cloud a {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 560;
}

.tag-cloud a:hover {
  color: var(--accent);
}

.local-page {
  width: min(100%, var(--article-width));
  margin-inline: auto;
}

.local-list {
  border-top: 1px solid var(--border);
}

.local-spot,
.local-item {
  display: flex;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 13px;
}

.local-item:hover {
  color: var(--accent);
}

.pagination .pagination-numbers {
  display: flex;
  gap: 4px;
}

.pagination .pagination-arrow,
.pagination .pagination-number {
  display: inline-grid;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  place-items: center;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 620;
}

.pagination .pagination-arrow:hover,
.pagination .pagination-number:hover {
  border-color: var(--border);
  color: var(--accent);
  background: var(--surface);
}

.pagination .pagination-number span,
.pagination .pagination-number[aria-current="page"] {
  color: var(--accent);
}

#post-toc .toc-content {
  display: block;
}

#post-toc.is-collapsed .toc-content,
#post-toc .toc-toggle[aria-expanded="false"] + .toc-content {
  display: none;
}

.noscript-notice {
  width: min(calc(100% - 36px), var(--page-width));
  margin: 18px auto;
  padding: 12px 14px;
  border-left: 3px solid var(--warning-border);
  color: var(--text-soft);
  background: var(--warning-bg);
  font-size: 13px;
}

/* -------------------------------------------------------------------------- */
/* Responsive                                                                  */
/* -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .site-header .header-inner,
  .tech-nav .tech-nav-inner,
  .page-shell,
  .site-footer .footer-inner {
    width: calc(100% - 48px);
  }

  .page-shell.has-sidebar,
  .page-shell.page-shell--with-sidebar,
  .page-shell.home-layout,
  .page-shell.list-layout,
  .page-shell:has(> .blog-sidebar) {
    grid-template-columns: minmax(0, 1fr) 264px;
    gap: 52px;
  }
}

@media (max-width: 1024px) {
  :root {
    --header-height: 62px;
  }

  .site-header .desktop-nav {
    gap: 18px;
  }

  .page-shell.has-sidebar,
  .page-shell.page-shell--with-sidebar,
  .page-shell.home-layout,
  .page-shell.list-layout,
  .page-shell:has(> .blog-sidebar) {
    display: block;
  }

  .blog-sidebar {
    display: none;
  }

  .article-layout {
    display: flex;
    width: min(100%, var(--article-width));
    flex-direction: column;
  }

  .article-layout .article-main {
    display: contents;
  }

  .article-layout .article-main > * {
    order: 4;
  }

  .article-layout .article-header {
    order: 1;
  }

  .article-layout .toc-aside {
    order: 2;
  }

  .article-layout
    :where(.article-body, #article-view, .article-view, .tl-summary) {
    order: 3;
  }

  .toc-aside {
    width: 100%;
    margin: -16px 0 36px;
  }

  .toc-aside #post-toc,
  .article-toc-slot #post-toc {
    position: static;
    max-height: none;
    padding: 0;
    overflow: visible;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    border-left: 0;
  }

  #post-toc .toc-title,
  #post-toc .toc-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 0;
    color: var(--text);
    background: transparent;
    font-size: 13px;
    font-weight: 700;
  }

  #post-toc .toc-body,
  #post-toc > :where(ol, ul) {
    padding: 0 0 15px;
  }

  #post-toc.is-collapsed .toc-body,
  #post-toc.is-collapsed > :where(ol, ul),
  #post-toc details:not([open]) > :where(ol, ul, .toc-body) {
    display: none;
  }

  #post-toc a {
    white-space: normal;
  }

  #post-toc .toc-marker {
    display: none;
  }

  .article-toc-slot {
    display: block;
  }

  .category-grid {
    gap: 0 32px;
  }

  .category-module:nth-child(even) {
    padding-left: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 58px;
    --tech-nav-height: 0px;
  }

  .site-header {
    transition: transform 180ms ease, border-color 180ms ease,
      background-color 180ms ease;
  }

  .site-header.is-hidden {
    transform: translateY(-101%);
  }

  .site-header .header-inner,
  .page-shell,
  .site-footer .footer-inner {
    width: calc(100% - 36px);
  }

  .site-header .brand {
    font-size: 19px;
  }

  .site-header .desktop-nav,
  .header-actions .desktop-only,
  .tech-nav {
    display: none;
  }

  .header-actions {
    gap: 3px;
  }

  .mobile-menu-toggle,
  .mobile-menu-open {
    display: inline-grid;
  }

  .page-shell {
    padding: 30px 0 64px;
  }

  .section-header,
  .list-header,
  .cover-header {
    min-height: 36px;
    padding-bottom: 10px;
  }

  .section-header h1,
  .list-header h1 {
    font-size: 24px;
  }

  .section-header h2,
  .cover-header h2 {
    font-size: 22px;
  }

  .post-feed .post-row > a,
  .post-feed .post-row .post-row-inner,
  .post-feed .post-row {
    min-height: 0;
    padding: 19px 0 18px;
    gap: 18px;
  }

  .post-feed .post-title {
    font-size: 20px;
    line-height: 1.45;
    white-space: normal;
  }

  .post-feed .post-summary {
    font-size: 13.5px;
  }

  .post-feed .post-thumb {
    width: 120px;
    height: 78px;
  }

  .cover-section,
  .category-journal,
  .projects-section,
  .dev-life-section,
  .home-profile-section {
    margin-top: 54px;
  }

  .category-grid {
    grid-template-columns: 1fr;
    padding-top: 19px;
  }

  .cover-groups {
    grid-template-columns: minmax(0, 1fr);
    gap: 54px;
  }

  .cover-groups > .cover-section {
    grid-column: 1;
  }

  .cover-section--category:nth-child(even of .cover-section--category) {
    padding-left: 0;
    border-left: 0;
  }

  .category-module:nth-child(even),
  .category-module:nth-child(n + 2) {
    margin-top: 36px;
    padding: 31px 0 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .category-module .featured-post:has(.featured-thumb:not(:empty)) {
    grid-template-columns: minmax(0, 1fr) 116px;
  }

  .category-module .featured-thumb {
    width: 116px;
    height: 76px;
  }

  .home-profile {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 15px;
  }

  .home-profile .profile-image {
    width: 58px;
    height: 58px;
  }

  .home-profile .profile-actions {
    grid-column: 2;
  }

  .article-header {
    margin-top: 3px;
    margin-bottom: 36px;
    padding-bottom: 25px;
  }

  .article-header .article-title {
    font-size: clamp(31px, 9.3vw, 39px);
    line-height: 1.25;
  }

  .article-header .article-meta {
    margin-top: 15px;
    font-size: 12px;
  }

  .article-body,
  #article-view,
  .article-view {
    font-size: 17px;
    line-height: 1.8;
  }

  #ken-tech :where(.article-body, #article-view, .article-view) h1 {
    font-size: 29px;
  }

  #ken-tech :where(.article-body, #article-view, .article-view) h2 {
    margin-top: 2.45em;
    font-size: 25px;
  }

  #ken-tech :where(.article-body, #article-view, .article-view) h3 {
    font-size: 22px;
  }

  #ken-tech :where(.article-body, #article-view, .article-view) h4 {
    font-size: 19px;
  }

  #ken-tech :where(.article-body, #article-view, .article-view) h5 {
    font-size: 16px;
  }

  #ken-tech :where(.article-body, #article-view, .article-view)
    figure.imageblock.floatLeft,
  #ken-tech :where(.article-body, #article-view, .article-view)
    figure.imageblock.floatRight {
    float: none;
    margin: 2em auto;
  }

  #ken-tech :where(.article-body, #article-view, .article-view)
    :where(figure[data-ke-type="opengraph"], figure[data-ke-type="contentSearch"])
    > a {
    grid-template-columns: minmax(0, 1fr) 120px;
  }

  #ken-tech :where(.article-body, #article-view, .article-view)
    :where(.og-image, .cs-image) {
    min-height: 112px;
  }

  #ken-tech :where(.article-body, #article-view, .article-view) pre {
    margin: 1.8em 0;
    padding: 18px 17px 20px;
    font-size: 13px;
    line-height: 1.68;
  }

  .tl-summary,
  .tl-callout {
    padding: 17px 17px 16px;
    font-size: 15px;
  }

  .author-card {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
  }

  .author-card .author-image {
    width: 54px;
    height: 54px;
  }

  .author-card .author-links {
    grid-column: 2;
  }

  .site-footer {
    margin-top: 64px;
  }

  .site-footer .footer-inner {
    align-items: flex-start;
    min-height: 128px;
    padding: 28px 0;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
  }

  .about-page .about-profile {
    grid-template-columns: 1fr;
  }

  .about-page .about-photo {
    max-width: 280px;
  }
}

@media (max-width: 520px) {
  .topics-panel {
    width: calc(100% - 24px);
    padding: 18px;
  }

  .topics-panel .topics-list > ul,
  .topics-panel .category_list {
    grid-template-columns: 1fr;
  }

  .search-overlay {
    padding: 12px;
  }

  .search-overlay .search-dialog {
    margin-top: 10vh;
    padding: 20px 18px 22px;
  }

  .post-feed .post-row > a,
  .post-feed .post-row .post-row-inner,
  .post-feed .post-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .post-feed .post-thumb {
    display: none;
  }

  .category-module .featured-post:has(.featured-thumb:not(:empty)) {
    grid-template-columns: minmax(0, 1fr);
  }

  .category-module .featured-thumb {
    display: none;
  }

  .project-list a,
  .dev-life-list a {
    grid-template-columns: minmax(0, 1fr);
    padding: 15px 0;
    gap: 3px;
  }

  .related-posts a {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px 0;
    gap: 2px;
  }

  #ken-tech :where(.article-body, #article-view, .article-view)
    :where(figure[data-ke-type="opengraph"], figure[data-ke-type="contentSearch"])
    > a {
    grid-template-columns: 1fr;
  }

  #ken-tech :where(.article-body, #article-view, .article-view)
    :where(.og-image, .cs-image) {
    min-height: 150px;
    border-top: 1px solid var(--border);
    border-left: 0;
    grid-row: 1;
  }

  #ken-tech :where(.article-body, #article-view, .article-view)
    figure.fileblock
    a {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .guestbook-form .form-row,
  .guest-write .form-row,
  .reply-write .form-row,
  .form-reply .box_inp {
    grid-template-columns: 1fr;
  }

  .pagination,
  .area-paging,
  .paging {
    gap: 2px;
  }

  .pagination .page-numbers,
  .pagination a,
  .area-paging .link_page,
  .area-paging .link_num,
  .paging a {
    min-width: 32px;
    height: 34px;
    padding: 0 5px;
  }
}

/* -------------------------------------------------------------------------- */
/* Progressive motion                                                          */
/* -------------------------------------------------------------------------- */

@media (min-width: 1025px) and (hover: hover) and (pointer: fine) {
  .post-feed .post-row {
    position: relative;
  }

  .post-feed .post-row.has-pointer-glow::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 1px;
    background: radial-gradient(
      110px circle at var(--glow-x, 50%) 50%,
      var(--accent),
      transparent 74%
    );
    content: "";
    opacity: 0.44;
    pointer-events: none;
  }

  .motion-ready :where(.post-row, .h2-reveal) {
    transition: opacity 420ms ease, transform 420ms ease;
    transition-delay: var(--reveal-delay, 0ms);
  }

  .motion-ready .will-reveal {
    opacity: 0;
    transform: translateY(14px);
  }

  .motion-ready :where(.post-row, .h2-reveal).is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .motion-ready [data-reveal] {
    opacity: 0;
    transform: translateY(14px);
  }

  .motion-ready [data-reveal].is-visible,
  .motion-ready [data-reveal][data-revealed="true"] {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 420ms ease, transform 420ms ease;
    transition-delay: var(--reveal-delay, 0ms);
  }

  .motion-ready
    :where(.article-body, #article-view, .article-view)
    h2:is([data-reveal], .h2-reveal).will-reveal::before {
    transform: scaleX(0);
    transform-origin: left center;
  }

  .motion-ready
    :where(.article-body, #article-view, .article-view)
    h2:is([data-reveal], .h2-reveal).is-visible::before {
    transform: scaleX(1);
    transition: transform 380ms ease 80ms;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .motion-ready [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .motion-ready .will-reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .post-feed .post-row.has-pointer-glow::after {
    display: none !important;
  }

  .reading-progress,
  #post-toc .toc-marker {
    transition: none !important;
  }
}

@media (prefers-reduced-data: reduce) {
  .post-feed .post-thumb img,
  [data-pointer-glow] {
    transition: none;
  }

  [data-pointer-glow]::after {
    display: none;
  }
}

@media (forced-colors: active) {
  :root,
  html[data-theme="light"],
  html[data-theme="dark"] {
    --page-bg: Canvas;
    --surface: Canvas;
    --surface-muted: Canvas;
    --surface-raised: Canvas;
    --text: CanvasText;
    --text-soft: CanvasText;
    --text-muted: CanvasText;
    --text-quiet: GrayText;
    --border: CanvasText;
    --border-strong: CanvasText;
    --accent: LinkText;
    --accent-hover: LinkText;
    --accent-soft: Canvas;
    --code-bg: Canvas;
    --code-surface: Canvas;
    --code-border: CanvasText;
    --code-text: CanvasText;
  }

  .reading-progress,
  #post-toc .toc-marker,
  .site-header .brand::after {
    background: Highlight;
  }

  .icon-button,
  .mobile-menu-toggle,
  .search-overlay .search-dialog,
  .topics-panel,
  .mobile-drawer {
    border: 1px solid CanvasText;
  }

  :where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
    outline: 3px solid Highlight;
    box-shadow: none;
  }
}

@media print {
  :root,
  html[data-theme="dark"] {
    color-scheme: light;
    --page-bg: #ffffff;
    --surface: #ffffff;
    --surface-muted: #f8fafc;
    --text: #000000;
    --text-soft: #222222;
    --text-muted: #444444;
    --border: #cbd5e1;
    --border-strong: #94a3b8;
    --accent: #065f46;
  }

  .site-header,
  .tech-nav,
  .reading-progress,
  .toc-aside,
  .article-toc-slot,
  .blog-sidebar,
  .article-tags,
  .related-posts,
  .author-card,
  .giscus-host,
  .ad-slot,
  .site-footer {
    display: none !important;
  }

  .page-shell {
    width: 100%;
    padding: 0;
  }

  .article-layout,
  .article-layout .article-main {
    display: block;
    width: 100%;
    max-width: none;
  }

  .article-header {
    margin-top: 0;
  }

  .article-body,
  #article-view,
  .article-view {
    max-width: none;
    color: #000000;
    font-size: 11pt;
  }

  #ken-tech :where(.article-body, #article-view, .article-view)
    :where(a:not([class]), .text-link) {
    color: #000000;
  }

  #ken-tech :where(.article-body, #article-view, .article-view)
    :where(a:not([class]), .text-link)::after {
    color: #555555;
    font-size: 0.75em;
    content: " (" attr(href) ")";
  }

  pre,
  blockquote,
  figure,
  table,
  .tl-summary,
  .tl-callout {
    break-inside: avoid;
  }
}
