/* =========================================================
   Node by Node — v3 "sổ tay giấy kraft"
   Vibe: giấy kraft be, chữ mono kiểu máy đánh chữ, tên site viết tay,
   gạch hồng Pink Panther vẽ tay, ảnh dán băng keo, và cây tre Việt Nam (sample 6).
   ========================================================= */

:root {
  --paper:    #e4ddcc;   /* nền giấy kraft (sample 5) */
  --paper-2:  #efe9dc;   /* mảnh giấy dán / thẻ */
  --paper-3:  #d7cdb7;   /* giấy tối hơn */
  --ink:      #22382d;   /* xanh rừng đậm — chữ chính */
  --ink-2:    #3f5a4c;
  --muted:    #6f7466;
  --line:     rgba(34, 56, 45, .16);
  --line-2:   rgba(34, 56, 45, .38);
  --pink:     #e8558f;   /* gạch chân vẽ tay — hồng Pink Panther (đổi 2026-09-09, trước là vàng #d9a41f) */
  --pink-2:   #f4a6c6;   /* hồng nhạt (thân Pink Panther) — bôi chọn */
  --green:    #7aa34f;   /* lá tre */
  --green-d:  #2f5d3f;   /* thân tre / Kinh tế học */
  --pink-d:   #b8286a;   /* Tâm lý học (chữ) — hồng đậm, trước là vàng mù tạt #a67c0f */
  --brick:    #a8472e;   /* Giao thoa */

  --f-script: "Monsieur La Doulaise", "Pinyon Script", cursive;
  --f-mono:   "IBM Plex Mono", "Courier Prime", ui-monospace, Menlo, monospace;
  --f-body:   "Be Vietnam Pro", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1120px;
  --tip: 0;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16.5px/1.7 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
/* vân giấy */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: .55; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .5 0 0 0 0 .4 0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }

a { color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--pink-2); color: var(--ink); }

h1, h2, h3, h4 { font-family: var(--f-mono); font-weight: 500; line-height: 1.2; margin: 0; letter-spacing: -.01em; }
.mono { font-family: var(--f-mono); }
.script { font-family: var(--f-script); font-weight: 400; letter-spacing: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

/* ---------- hoạ tiết vẽ tay (data-URI) ---------- */
.hl { position: relative; display: inline-block; padding-bottom: 8px; }
.hl::after {
  content: ""; position: absolute; left: -4px; right: -6px; bottom: -2px; height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6.5C40 3 80 8.5 120 5.5S180 3.5 198 6' fill='none' stroke='%23e8558f' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.sparks { display: inline-block; width: 22px; height: 22px; vertical-align: middle; color: var(--pink); margin: 0 4px 6px; }
.sparks.flip { transform: scaleX(-1); }
.kicker { font: 500 12px/1.5 var(--f-mono); letter-spacing: .14em; text-transform: lowercase; color: var(--ink-2); }

/* băng keo */
.tape {
  position: absolute; width: 86px; height: 24px; z-index: 3; pointer-events: none;
  background: rgba(236, 150, 186, .55); /* băng keo hồng — cùng độ sáng/độ trong với vàng cũ rgba(236,216,150,.55) */
  background-image: repeating-linear-gradient(90deg, transparent 0 7px, rgba(255,255,255,.22) 7px 8px);
  box-shadow: 0 1px 2px rgba(34,56,45,.12);
  transform: rotate(-5deg);
}
.tape.r { transform: rotate(6deg); }

/* mảnh giấy dán */
.paper {
  position: relative;
  background: var(--paper-2);
  border: 1px solid rgba(34,56,45,.12);
  box-shadow: 0 1px 0 rgba(255,255,255,.55) inset, 0 14px 26px -20px rgba(34,56,45,.55);
}
.paper.lined {
  background-image: repeating-linear-gradient(transparent 0 27px, rgba(34,56,45,.11) 27px 28px);
  background-position: 0 6px;
}
.tilt-l { transform: rotate(-.7deg); }
.tilt-r { transform: rotate(.6deg); }

/* vòng tròn vẽ tay */
.ring {
  display: inline-grid; place-items: center; font-family: var(--f-mono);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 4c26-1.5 45 19 45.5 45S75 96.5 49 96 4.5 77 5 50 24 5.5 50 4z' fill='none' stroke='%2322382d' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

/* svg sprite dùng qua <use> */
.dd { display: inline-block; vertical-align: middle; fill: currentColor; }
.dd.green { color: var(--green); }
.dd.ink { color: var(--ink); }
.dd.pink { color: var(--pink); }

/* ---------- Masthead ---------- */
.masthead { padding-top: 26px; }
.masthead .top { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .script { font-size: 40px; line-height: 1; margin-top: -6px; }
.brand .dd { width: 44px; height: 34px; }

.mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px 22px; flex-wrap: wrap; }
.mainnav a {
  font: 500 14px/1 var(--f-mono); letter-spacing: .04em; text-decoration: none; text-transform: lowercase;
  padding: 8px 2px; position: relative; color: var(--ink);
}
.mainnav a::after {
  content: ""; position: absolute; left: -3px; right: -3px; bottom: 0; height: 8px; opacity: 0; transition: opacity .15s;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6.5C40 3 80 8.5 120 5.5S180 3.5 198 6' fill='none' stroke='%23e8558f' stroke-width='4.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.mainnav a:hover::after, .mainnav a[aria-current="page"]::after { opacity: 1; }
.mainnav a[aria-current="page"] { font-weight: 600; }

/* thước kẻ mảnh dưới masthead */
.masthead .rule { height: 1px; background: var(--line-2); margin-top: 18px; opacity: .6; }

/* hero (trang chủ) */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: center; padding: 28px 0 8px; min-height: 420px; }
.hero-text { min-width: 0; }
.hero-text .kicker { margin-bottom: 18px; }
.hero-text h1 { font-family: var(--f-script); font-size: clamp(64px, 9.4vw, 122px); line-height: .95; font-weight: 400; margin: 0 0 6px -4px; }
.hero-text h1 .u { display: inline-block; position: relative; }
.hero-text h1 .u::after {
  content: ""; position: absolute; left: 6px; right: -10px; bottom: 4px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 7C40 3 80 9.5 120 6S180 4 198 7' fill='none' stroke='%23e8558f' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.hero-text .tagline { font: 400 16px/1.7 var(--f-mono); color: var(--ink-2); max-width: 520px; margin: 22px 0 18px; }
.hero-text .social { display: flex; gap: 18px; flex-wrap: wrap; }
.hero-text .social a { font: 500 13px/1 var(--f-mono); text-decoration: none; letter-spacing: .04em; border-bottom: 1px dashed var(--line-2); padding-bottom: 3px; }
.hero-text .social a:hover { border-bottom-style: solid; color: var(--green-d); }

.hero-art { position: relative; height: 440px; }
.hero-art .scrap {
  position: absolute; right: 8%; top: 10px; width: 62%; height: 300px; transform: rotate(7deg);
  background: var(--paper-2);
  background-image: repeating-linear-gradient(transparent 0 25px, rgba(34,56,45,.14) 25px 26px);
  clip-path: polygon(0 3%, 12% 0, 30% 2%, 52% 0, 70% 3%, 88% 1%, 100% 4%, 99% 30%, 100% 55%, 98% 80%, 100% 100%, 84% 98%, 60% 100%, 40% 97%, 18% 100%, 0 98%, 1% 70%, 0 40%);
  box-shadow: 0 16px 30px -22px rgba(34,56,45,.6);
}
.hero-art .bamboo {
  position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); height: 460px; width: auto;
  filter: drop-shadow(0 8px 10px rgba(34,56,45,.18));
}
.hero-art .sparks { position: absolute; }
.hero-art .sparks.a { left: 6%; top: 40px; width: 30px; height: 30px; }
.hero-art .sparks.b { right: 4%; bottom: 60px; width: 26px; height: 26px; }
.hero-art .stamp {
  position: absolute; left: 2%; bottom: 24px; font: 500 11px/1.5 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2); transform: rotate(-90deg); transform-origin: left bottom; white-space: nowrap;
}

/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding-top: 44px; padding-bottom: 60px; }
.layout.single { grid-template-columns: minmax(0, 760px); justify-content: center; }
.section-head { margin-bottom: 26px; }
.section-head h2, .section-head h1 { font-size: 30px; }
.section-head p { color: var(--ink-2); max-width: 600px; margin: 14px 0 0; }
.intro p { margin: 0; }

/* ---------- Bài viết (entry) ---------- */
.entry { padding: 30px 0; border-bottom: 1px dashed var(--line-2); }
.entry:first-child { padding-top: 0; }
.entry.featured { padding: 30px 32px; margin: 8px 0 26px; border-bottom: 0; }
.entry.featured .tape { top: -12px; left: 40px; }
.entry .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font: 400 12.5px/1.5 var(--f-mono); color: var(--muted); }
.entry h2 { font-size: 24px; margin: 12px 0 10px; }
.entry.featured h2 { font-size: 30px; }
.entry h2 a { text-decoration: none; }
.entry h2 a:hover { color: var(--green-d); }
.entry .excerpt { margin: 0; color: var(--ink-2); max-width: 640px; }
.entry .foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.readmore { font: 500 13px/1 var(--f-mono); text-decoration: none; letter-spacing: .04em; border-bottom: 1.5px solid var(--pink); padding-bottom: 3px; }
.readmore:hover { color: var(--green-d); }
.empty { font-family: var(--f-mono); color: var(--muted); font-size: 14px; }

.field { font: 500 12px/1.5 var(--f-mono); letter-spacing: .06em; text-transform: lowercase; }
.field::before { content: "[ "; } .field::after { content: " ]"; }
.field.economics { color: var(--green-d); }
.field.psychology { color: var(--pink-d); }
.field.both { color: var(--brick); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font: 400 12px/1 var(--f-mono); text-decoration: none; padding: 5px 9px; border: 1px dashed var(--line-2); border-radius: 3px; color: var(--ink-2);
  background: rgba(255,255,255,.18);
}
.chip:hover { border-style: solid; color: var(--green-d); border-color: var(--green-d); }
.chip.draft { border-style: dotted; color: var(--muted); }

/* bộ lọc */
.filters { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; margin: 4px 0 30px; }
.fbtn {
  font: 500 13px/1 var(--f-mono); background: none; border: 0; padding: 8px 8px; cursor: pointer; color: var(--ink-2); position: relative; letter-spacing: .03em;
}
.fbtn::before { content: "[ "; opacity: .45; } .fbtn::after { content: " ]"; opacity: .45; }
.fbtn.active { color: var(--ink); font-weight: 600; }
.fbtn.active::before, .fbtn.active::after { opacity: 1; color: var(--pink); }
.search { display: flex; align-items: center; gap: 8px; border-bottom: 1.5px solid var(--line-2); padding: 6px 2px; }
.search span { color: var(--muted); font-family: var(--f-mono); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font: 400 14px var(--f-mono); color: var(--ink); }
.search input::placeholder { color: var(--muted); }
.filters .search { margin-left: auto; min-width: 220px; }

/* ---------- Sidebar ---------- */
.sidebar { display: flex; flex-direction: column; gap: 34px; }
.widget { position: relative; padding: 22px 22px 20px; }
.widget .tape { top: -11px; left: 50%; margin-left: -43px; }
.widget h3 { font-size: 14px; letter-spacing: .06em; text-transform: lowercase; margin-bottom: 14px; }
.widget h3 .hl::after { height: 7px; bottom: -3px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 7px 0; border-bottom: 1px dotted var(--line-2); font-size: 14.5px; }
.widget li:last-child { border-bottom: 0; }
.widget li a { text-decoration: none; }
.widget li a:hover { color: var(--green-d); }
.widget li small { font-family: var(--f-mono); color: var(--muted); font-size: 12px; }
.widget .more { display: inline-block; margin-top: 12px; font: 500 12.5px/1 var(--f-mono); text-decoration: none; border-bottom: 1.5px solid var(--pink); padding-bottom: 3px; }
.w-about { display: flex; gap: 14px; align-items: flex-start; }
.w-about .photo { flex: none; width: 76px; }
.w-about p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.w-about strong { display: block; font-family: var(--f-mono); font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.w-quote { font-style: italic; font-size: 15px; line-height: 1.6; }
.w-quote cite { display: block; margin-top: 8px; font: 400 12px/1.5 var(--f-mono); font-style: normal; color: var(--muted); }
.widget.search-w { padding: 14px 18px; }

/* ảnh dán */
.photo { position: relative; display: inline-block; background: #fff; padding: 6px 6px 8px; box-shadow: 0 10px 20px -14px rgba(34,56,45,.7); transform: rotate(-3deg); }
.photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.photo .tape { top: -10px; left: 50%; margin-left: -43px; width: 70px; height: 20px; }

/* logo ảnh (assets/img/logo.png — thân tre dọc, nền trong suốt) */
img.dd.logo { object-fit: contain; object-position: center bottom; }
.brand img.logo { width: 32px; height: 48px; margin-top: -4px; }
.about-bamboo img.logo { width: 80px; height: 130px; right: 22px; bottom: 8px; opacity: .9; }
.site-footer img.logo.leafy { left: 8px; bottom: -18px; width: 44px; height: 100px; opacity: .75; }

/* nhãn hình thức nguồn (blog) */
.kind { font: 500 12px/1.5 var(--f-mono); letter-spacing: .06em; text-transform: lowercase; }
.kind::before { content: "[ "; } .kind::after { content: " ]"; }
.kind.interview { color: var(--pink-d); }
.kind.book { color: var(--green-d); }
.kind.thought { color: var(--brick); }
.meta .src { color: var(--ink-2); }
.meta .draft-tag { color: var(--pink-d); }

/* phiếu nguồn (đầu bài) */
.source-card { margin: 26px 0 8px; padding: 18px 22px 16px; max-width: 520px; }
.source-card .tape { top: -11px; left: 26px; }
.source-card .sc-head { font: 500 11.5px/1.5 var(--f-mono); letter-spacing: .14em; text-transform: lowercase; color: var(--muted); margin-bottom: 8px; }
.source-card dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; font-size: 14.5px; }
.source-card dt { font: 500 12px/1.8 var(--f-mono); letter-spacing: .06em; color: var(--muted); }
.source-card dd { margin: 0; line-height: 1.8; color: var(--ink); }
.source-card .more { display: inline-block; margin-top: 10px; font: 500 12.5px/1 var(--f-mono); text-decoration: none; border-bottom: 1.5px solid var(--pink); padding-bottom: 3px; }

/* hành trang (cuối bài) */
.prep { margin-top: 44px; padding: 24px 26px 22px; }
.prep .tape { top: -12px; right: 32px; }
.prep h3 { font-size: 15px; letter-spacing: .06em; text-transform: lowercase; margin-bottom: 14px; }
.prep .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; }
.prep h4 { font: 500 12px/1.5 var(--f-mono); letter-spacing: .14em; text-transform: lowercase; color: var(--pink-d); margin: 0 0 8px; }
.prep ul { list-style: none; margin: 0; padding: 0; }
.prep li { position: relative; padding: 6px 0 6px 18px; font-size: 15px; line-height: 1.6; border-bottom: 1px dotted var(--line); }
.prep li:last-child { border-bottom: 0; }
.prep li::before { content: "→"; position: absolute; left: 0; color: var(--pink); font-family: var(--f-mono); }
@media (max-width: 640px) { .prep .cols { grid-template-columns: 1fr; } }

/* ---------- Trang bài viết ---------- */
.article-head { margin-bottom: 26px; }
.article-head .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font: 400 12.5px/1.5 var(--f-mono); color: var(--muted); }
.article-head h1 { font-size: clamp(30px, 4.6vw, 42px); margin: 16px 0 14px; }
.article-head .lede { font-size: 19px; line-height: 1.6; color: var(--ink-2); margin: 0; font-style: italic; }
.article-body { font-size: 17.5px; line-height: 1.8; }
.article-body p { margin: 0 0 1.3em; }
.article-body h2 { font-size: 22px; margin: 2em 0 .8em; }
.article-body h3 { font-size: 18px; margin: 1.6em 0 .6em; }
.article-body strong { font-weight: 600; }
.article-body blockquote {
  position: relative; margin: 1.6em 0; padding: 18px 22px 18px 26px; font-style: italic; color: var(--ink-2);
  background: var(--paper-2); border: 1px solid rgba(34,56,45,.12); transform: rotate(-.4deg);
}
.article-body blockquote::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 5px; background: var(--pink); border-radius: 3px; }
.article-body ul, .article-body ol { padding-left: 1.4em; margin: 0 0 1.3em; }
.article-body li { margin-bottom: .5em; }
.article-body li p { margin: 0; }
.article-body li .arrow { display: block; font: 400 14px/1.6 var(--f-mono); color: var(--muted); margin-top: 2px; }
.article-body ol { list-style: none; counter-reset: n; padding-left: 0; }
.article-body ol li { counter-increment: n; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.article-body ol li::before { content: counter(n); font: 500 13px/32px var(--f-mono); width: 32px; height: 32px; text-align: center; margin-top: -3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 4c26-1.5 45 19 45.5 45S75 96.5 49 96 4.5 77 5 50 24 5.5 50 4z' fill='none' stroke='%2322382d' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%; }
.article-body hr { border: 0; height: 40px; margin: 1.8em auto; width: 140px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 46'%3E%3Cg fill='%237aa34f'%3E%3Cpath d='M80 44c1-14 2-24 3-32' stroke='%232f5d3f' stroke-width='1.4' fill='none'/%3E%3Cpath transform='translate(83 14) rotate(-160)' d='M0 0C25-12 62-14 92-3 62 5 30 8 0 0z'/%3E%3Cpath transform='translate(83 15) rotate(-120)' d='M0 0C25-12 62-14 88-3 62 5 30 8 0 0z'/%3E%3Cpath transform='translate(83 16) rotate(-60)' d='M0 0C25-12 62-14 84-3 60 5 30 8 0 0z'/%3E%3Cpath transform='translate(83 16) rotate(-20)' d='M0 0C25-12 62-14 90-3 62 5 30 8 0 0z'/%3E%3Cpath transform='translate(83 13) rotate(20)' d='M0 0C25-12 62-14 70-3 55 5 30 8 0 0z'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain; }
.hashtags { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 2em; font: 400 13px/1.6 var(--f-mono); color: var(--muted); }
.hashtags span::before { content: "#"; }

.term-link { position: relative; color: var(--green-d); text-decoration: none; border-bottom: 1.5px dashed var(--green); }
.term-link::after {
  content: attr(data-tip); position: absolute; left: 0; bottom: calc(100% + 10px); width: 280px; z-index: 6;
  background: var(--paper-2); color: var(--ink); border: 1px solid var(--ink); box-shadow: 3px 3px 0 var(--pink);
  font: 400 13px/1.5 var(--f-body); font-style: normal; padding: 10px 12px; border-radius: 2px;
  opacity: 0; pointer-events: none; transform: translateY(4px) rotate(-.6deg); transition: .15s;
}
.term-link:hover::after { opacity: 1; transform: rotate(-.6deg); }

.terms-box { margin-top: 44px; padding: 22px 24px; }
.terms-box .tape { top: -11px; right: 28px; }
.terms-box h3 { font-size: 14px; letter-spacing: .06em; text-transform: lowercase; margin-bottom: 12px; }
.terms-box ul { list-style: none; margin: 0; padding: 0; }
.terms-box li a { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 10px 0; text-decoration: none; border-bottom: 1px dotted var(--line-2); }
.terms-box li:last-child a { border-bottom: 0; }
.terms-box li strong { font-family: var(--f-mono); font-weight: 600; font-size: 14.5px; }
.terms-box li span { font-size: 14px; color: var(--ink-2); }
.terms-box li a:hover strong { color: var(--green-d); }

.author-card { display: flex; gap: 16px; align-items: center; margin-top: 40px; padding-top: 24px; border-top: 1px dashed var(--line-2); }
.author-card .photo { width: 72px; flex: none; }
.author-card strong { font-family: var(--f-mono); font-weight: 600; }
.author-card p { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.post-nav a { text-decoration: none; font-family: var(--f-mono); font-size: 14px; line-height: 1.4; padding: 14px 0; border-top: 1.5px solid var(--line-2); }
.post-nav a span { display: block; font-size: 11.5px; letter-spacing: .1em; color: var(--muted); margin-bottom: 6px; text-transform: lowercase; }
.post-nav a.next { text-align: right; }
.post-nav a:hover { color: var(--green-d); }

/* ---------- Knowledge Hub ---------- */
.venn { width: 100%; max-width: 420px; height: auto; margin: 0 auto; display: block; }
.venn text { font-family: var(--f-mono); font-size: 13px; fill: var(--ink); }
.venn a { cursor: pointer; }
.venn a:hover text { fill: var(--green-d); }
.hub-group { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 20px; margin: 10px 0 40px; }
.hub-group .badge { position: sticky; top: 20px; align-self: start; text-align: center; }
.hub-group .badge .ring { width: 84px; height: 84px; font-size: 26px; font-weight: 500; }
.hub-group .badge .kicker { display: block; margin-top: 8px; font-size: 11px; letter-spacing: .04em; }
.term-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 0; border-bottom: 1px dashed var(--line-2); }
.term-row h2 { font-size: 19px; margin-bottom: 6px; }
.term-row h2 a { text-decoration: none; }
.term-row h2 a:hover { color: var(--green-d); }
.term-row p { margin: 0; font-size: 15px; color: var(--ink-2); }
.term-row .count { flex: none; text-align: center; font: 400 11.5px/1.35 var(--f-mono); color: var(--muted); }
.term-row .count b { display: block; font-size: 20px; font-weight: 500; color: var(--ink); }

/* ---------- Trang thuật ngữ ---------- */
.term-head { margin-bottom: 30px; padding-bottom: 26px; border-bottom: 1.5px solid var(--line-2); }
.term-head .term-kick { display: flex; align-items: center; gap: 6px; }
.term-head h1 { font-size: clamp(30px, 4.6vw, 42px); margin: 14px 0 6px; }
.term-head .aka { font: 400 14px/1.6 var(--f-mono); color: var(--muted); }
.term-head .one { font-size: 19px; line-height: 1.6; margin: 16px 0 0; color: var(--ink-2); font-style: italic; }
.term-section { margin-bottom: 40px; }
.term-section > h2 { font-size: 18px; letter-spacing: .04em; text-transform: lowercase; margin-bottom: 16px; }
.term-section .article-body { font-size: 17px; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px dotted var(--line-2); }
.steps li::before { content: counter(s); font: 500 14px/38px var(--f-mono); width: 38px; height: 38px; text-align: center;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 4c26-1.5 45 19 45.5 45S75 96.5 49 96 4.5 77 5 50 24 5.5 50 4z' fill='none' stroke='%2322382d' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%; }
.steps li strong { display: block; font-family: var(--f-mono); font-weight: 600; font-size: 15px; margin-bottom: 3px; }
.origin { padding: 16px 20px; font-size: 15px; color: var(--ink-2); margin: 0; }
.origin::before { content: "nguồn — "; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.related-terms { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Góc nhìn (perspectives) ---------- */
.perspectives { margin-top: 56px; padding-top: 36px; border-top: 1.5px solid var(--line-2); }
.perspectives .head h2 { font-size: 22px; }
.perspectives .head h2 em { font-style: italic; color: var(--green-d); }
.perspectives .head p { color: var(--ink-2); margin: 10px 0 22px; }
.p-form { padding: 26px 26px 20px; }
.p-form .tape { top: -12px; left: 32px; }
.p-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 8px; }
.p-form input, .p-form select, .p-form textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1.5px solid var(--line-2); outline: 0; padding: 8px 2px;
  font: 400 15px/28px var(--f-body); color: var(--ink);
}
.p-form select { font-family: var(--f-mono); font-size: 13.5px; }
.p-form textarea { min-height: 112px; resize: vertical; line-height: 28px; }
.p-form input:focus, .p-form textarea:focus, .p-form select:focus { border-bottom-color: var(--pink); }
.p-form .foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.p-form small { font: 400 12px/1.5 var(--f-mono); color: var(--muted); }
.btn {
  font: 500 13.5px/1 var(--f-mono); letter-spacing: .04em; background: var(--ink); color: var(--paper-2); border: 1px solid var(--ink);
  padding: 11px 18px; cursor: pointer; text-decoration: none; display: inline-block; border-radius: 2px; box-shadow: 3px 3px 0 var(--pink);
  transition: transform .1s, box-shadow .1s;
}
.btn:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--pink); }
.btn.ghost { background: transparent; color: var(--ink); }
.p-list { margin-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.p-item { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding-bottom: 18px; border-bottom: 1px dotted var(--line-2); }
.p-item .av { width: 38px; height: 38px; font: 600 15px/38px var(--f-mono); text-align: center; color: var(--ink); border: 1.5px solid var(--ink); border-radius: 50%; }
.p-item .who { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.p-item .who strong { font-family: var(--f-mono); font-weight: 600; }
.p-item .lens { font: 400 12px/1.5 var(--f-mono); color: var(--green-d); }
.p-item .who small { font-family: var(--f-mono); color: var(--muted); font-size: 12px; }
.p-item p { margin: 6px 0 0; font-size: 15.5px; white-space: pre-wrap; }
.p-empty { font-size: 15px; color: var(--ink-2); }
.p-empty strong { display: block; font-family: var(--f-mono); font-weight: 600; margin-bottom: 4px; }
.p-notice { margin-top: 18px; font: 400 12.5px/1.6 var(--f-mono); color: var(--muted); }

/* ---------- Về mình ---------- */
.about-hero { display: grid; grid-template-columns: 280px 1fr; gap: 44px; align-items: start; }
.about-hero .photo { width: 100%; transform: rotate(-2.5deg); }
.about-hero .photo img { aspect-ratio: 4/5; }
.about-hero .caption { margin-top: 12px; font: 400 12px/1.6 var(--f-mono); color: var(--muted); text-align: center; }
.about-hero h1 { font-size: clamp(28px, 4vw, 36px); margin: 12px 0 14px; }
.about-hero .lead { font-size: 17px; line-height: 1.7; color: var(--ink-2); border-left: 3px solid var(--pink); padding-left: 14px; margin-bottom: 1.3em; }
.about-hero p { margin: 0 0 1.1em; }
.selves { list-style: none; margin: 0 0 1.3em; padding: 0; }
.selves li { position: relative; padding: 5px 0 5px 22px; line-height: 1.6; border-bottom: 1px dotted var(--line); }
.selves li:last-child { border-bottom: 0; }
.selves li::before { content: "→"; position: absolute; left: 0; color: var(--pink); font-family: var(--f-mono); }
.about-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.about-bamboo { position: relative; margin: 14px 0 64px; padding: 30px 30px 26px; }
.about-bamboo .tape { top: -12px; left: 30px; }
.about-bamboo .dd { position: absolute; right: 18px; bottom: 14px; width: 120px; height: 90px; opacity: .9; }
.about-bamboo h2 { font-size: 18px; letter-spacing: .04em; text-transform: lowercase; margin-bottom: 14px; }
.about-bamboo p { margin: 0; max-width: 560px; }
.about-bamboo p + p { margin-top: .85em; }
.about-bamboo .cite { font: 400 12px/1.6 var(--f-mono); color: var(--muted); margin-top: 1.1em; }
.about-bamboo blockquote { margin: 1em 0 .4em; padding: 4px 0 4px 16px; border-left: 3px solid var(--pink); font-style: italic; color: var(--ink); max-width: 560px; line-height: 1.65; }
.about-bamboo blockquote .tr { display: block; margin-top: 8px; font-style: normal; font-size: 14.5px; color: var(--ink-2); }
.about-bamboo .cite { margin-top: .2em; }

/* ---------- Footer ---------- */
.site-footer { position: relative; margin-top: 40px; padding: 30px 0 34px; border-top: 1.5px solid var(--line-2); overflow: hidden; }
.site-footer .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.site-footer .copy { font: 400 12.5px/1.6 var(--f-mono); color: var(--muted); }
.site-footer .thanks { font-family: var(--f-script); font-size: 34px; line-height: 1; color: var(--ink); text-align: center; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; justify-content: flex-end; }
.site-footer li a { font: 500 12.5px/1 var(--f-mono); text-decoration: none; border-bottom: 1px dashed var(--line-2); padding-bottom: 3px; }
.site-footer li a:hover { color: var(--green-d); border-bottom-style: solid; }
.site-footer .stalks { position: absolute; right: 2%; bottom: -8px; display: flex; gap: 14px; align-items: flex-end; opacity: .85; pointer-events: none; }
.site-footer .stalks .dd { width: 14px; }
.site-footer .leafy { position: absolute; left: 1%; bottom: -6px; width: 150px; height: 110px; opacity: .8; pointer-events: none; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); background: var(--ink); color: var(--paper-2); font: 500 13.5px/1 var(--f-mono);
  padding: 12px 18px; box-shadow: 3px 3px 0 var(--pink); opacity: 0; transition: .25s; z-index: 50; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; gap: 44px; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-text h1 { font-size: clamp(56px, 15vw, 96px); }
  .hero-art { height: 300px; margin-top: 14px; }
  .hero-art .bamboo { height: 310px; }
  .hero-art .scrap { height: 200px; }
  .site-footer .wrap { grid-template-columns: 1fr; text-align: center; }
  .site-footer ul { justify-content: center; }
  .site-footer .stalks, .site-footer .leafy { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .brand .script { font-size: 34px; }
  .mainnav ul { gap: 4px 14px; }
  .about-hero { grid-template-columns: 1fr; }
  .about-hero .photo { max-width: 240px; }
  .hub-group { grid-template-columns: 1fr; }
  .hub-group .badge { position: static; display: flex; align-items: center; gap: 12px; }
  .hub-group .badge .ring { width: 56px; height: 56px; font-size: 18px; }
  .hub-group .badge .kicker { margin: 0; }
  .p-form .row { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .entry.featured { padding: 24px 20px; }
  .filters .search { margin-left: 0; width: 100%; }
  .term-link::after { width: 220px; }
}

/* ---------- Nút chuyển ngôn ngữ + Google Translate ---------- */
.lang-toggle {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; cursor: pointer;
  display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 10px;
  background: var(--paper-2); color: var(--ink); border: 1px solid var(--ink); border-radius: 2px;
  box-shadow: 3px 3px 0 var(--pink); font-family: var(--f-mono); transform: rotate(-2deg);
}
.lang-toggle b { font-weight: 600; font-size: 14px; letter-spacing: .06em; }
.lang-toggle span { font-size: 11px; letter-spacing: .1em; color: var(--muted); text-transform: lowercase; }
.lang-toggle:hover { transform: rotate(0) translate(1px, 1px); box-shadow: 2px 2px 0 var(--pink); }
/* giấu thanh công cụ của Google, giữ nguyên bố cục trang */
#google_translate_element, body > .skiptranslate, iframe.skiptranslate, .goog-te-banner-frame, #goog-gt-tt, .goog-te-balloon-frame, .goog-tooltip, .goog-te-spinner-pos, .VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf { display: none !important; }
.VIpgJd-yAWNEb-VIpgJd-fmcmS-sn54Q { background: transparent !important; box-shadow: none !important; }
body { top: 0 !important; position: static !important; }
.goog-text-highlight { background: transparent !important; box-shadow: none !important; }
font[style] { background: transparent !important; }
@media (max-width: 640px) { .lang-toggle { right: 12px; bottom: 12px; padding: 7px 10px; } }

/* ---------- Trang 404 ---------- */
.notfound { padding: 40px 0 20px; }
.nf-card { position: relative; padding: 34px 36px 30px; max-width: 620px; margin: 0 auto; }
.nf-card .tape { top: -12px; left: 40px; }
.nf-card h1 { font-size: clamp(28px, 4vw, 38px); margin: 12px 0 14px; }
.nf-card p { margin: 0 0 22px; max-width: 460px; color: var(--ink-2); }
.nf-links { display: flex; flex-wrap: wrap; gap: 10px; }
.nf-card img.logo { position: absolute; right: 26px; bottom: 12px; width: 70px; height: 120px; opacity: .85; }
@media (max-width: 640px) { .nf-card { padding: 28px 22px 24px; } .nf-card img.logo { display: none; } }
