/* ============================================================
   Giga AI Studio — 共用樣式（2026-10 改版）
   六個頁面共用：index.html、speeches.html、class_material/index.html、contact.html、courses.html、tools.html
   ============================================================ */
:root {
  --bg: #EDEDE9;
  --bg-2: #F7F7F4;
  --ink: #16181B;
  --ink-2: #5A5E64;
  --ink-3: #8A8E94;
  --line: #D3D3CD;
  --line-strong: #B9B9B2;
  --blue: #1E4FD6;
  --blue-deep: #173FA8;
  --sage: #8D9A88;
  --sage-deep: #67735F;
  --white: #FFFFFF;
  --max: 1180px;
  --gutter: 24px;
  --radius: 6px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  font-family: 'Inter', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'PingFang TC', sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.75; font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- 導覽 ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(237,237,233,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: .02em; font-size: 1.05rem; }
.brand .mark { width: 30px; height: 30px; border-radius: 50%; background: var(--sage); position: relative; flex-shrink: 0; }
.brand .mark::after { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: var(--bg); }
.brand small { font-weight: 400; color: var(--ink-3); font-size: .8rem; margin-left: 4px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a { text-decoration: none; font-size: .93rem; font-weight: 500; color: var(--ink-2); padding: 8px 12px; border-radius: 4px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: rgba(0,0,0,.05); }
.nav-links a.cta { margin-left: 10px; border: 1.5px solid var(--ink); color: var(--ink); font-weight: 600; padding: 8px 18px; border-radius: 999px; }
.nav-links a.cta:hover { background: var(--ink); color: var(--bg); }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--ink); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: .85rem; cursor: pointer; }
@media (max-width: 880px) {
  .nav-toggle { display: inline-block; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 18px; gap: 2px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 10px; }
  .nav-links a.cta { margin: 8px 0 0; text-align: center; }
}

/* ---------- 文字層級 ---------- */
h1, h2, h3, h4 { font-family: 'Noto Sans TC', 'Inter', sans-serif; line-height: 1.2; letter-spacing: -.01em; }
.h-section { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; }
.h-sub { font-size: 1.05rem; font-weight: 700; }
.lead { color: var(--ink-2); font-size: 1.05rem; }
.muted { color: var(--ink-3); }
.sec { padding: 72px 0; border-top: 1px solid var(--line); }
.sec.tight { padding: 48px 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.sec-head .lead { margin-top: 8px; }
.sec-head .more { font-size: .98rem; font-weight: 600; text-decoration: none; color: var(--blue); white-space: nowrap; border-bottom: 1.5px solid var(--blue); padding-bottom: 2px; }
.sec-head .more:hover { color: var(--blue-deep); border-color: var(--blue-deep); }

/* ---------- 按鈕 ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 4px; font-weight: 600; font-size: .95rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.2; }
.btn.primary { background: var(--blue); color: #fff; box-shadow: 0 4px 14px rgba(30, 79, 214, .22); }
.btn.primary:hover { background: var(--blue-deep); }
.btn.ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }
.btn.line { background: #06C755; color: #fff; }
.btn.line:hover { background: #05B04C; }
.btn.fb { background: #1877F2; color: #fff; }
.btn.fb:hover { background: #1464CC; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn .arrow { font-family: 'Inter', sans-serif; }
.textlink { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--blue); padding-bottom: 1px; }
.textlink:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- 格線（細框共用邊） ---------- */
.cells { display: grid; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cells > * { background: var(--bg-2); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 22px 60px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 8px; min-height: 100%; position: relative; }
.cells > a:hover { background: var(--white); }
.cells .foot { position: absolute; left: 22px; right: 22px; bottom: 24px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .85rem; color: var(--ink-3); }
.cells .foot span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cells .foot b { color: var(--blue); font-weight: 600; font-size: .92rem; white-space: nowrap; }
.cells > a:hover .foot b { text-decoration: underline; text-underline-offset: 3px; }
/* 有「適合：…」的教材卡：說明下空一行放對象，按鈕固定右下 */
.cells.fit .foot { position: static; display: block; margin-top: 14px; }
.cells.fit .foot span { white-space: normal; overflow: visible; display: block; }
.cells.fit .foot b { position: absolute; right: 22px; bottom: 24px; }
.cells .k { font-size: .8rem; font-weight: 600; color: var(--blue); letter-spacing: .02em; }
.cells h3 { font-size: 1.08rem; font-weight: 700; }
.cells p { color: var(--ink-2); font-size: .93rem; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

/* ---------- 分隔欄（服務／特色） ---------- */
.split { display: grid; grid-template-columns: repeat(4, 1fr); }
.split > div { padding: 6px 28px 6px 0; margin-right: 28px; border-right: 1px solid var(--line); }
.split > div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.split h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.split p { font-size: .92rem; color: var(--ink-2); }
@media (max-width: 960px) { .split { grid-template-columns: repeat(2, 1fr); row-gap: 28px; } .split > div:nth-child(2) { border-right: 0; } }
@media (max-width: 600px) { .split { grid-template-columns: 1fr; } .split > div { border-right: 0; margin-right: 0; padding-right: 0; } }

/* ---------- 機構牆 ---------- */
.logos { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.logos > div { background: var(--bg); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 16px; text-align: center; font-weight: 600; color: var(--ink-2); font-size: .95rem; }
@media (max-width: 760px) { .logos { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 色帶 ---------- */
.band { background: var(--sage); color: #fff; }
.band.deep { background: var(--sage-deep); }
.band .h-section, .band h3 { color: #fff; }
.band .lead, .band p { color: rgba(255,255,255,.85); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 36px 0; }
.stats > div { display: flex; align-items: center; gap: 14px; }
.stats .n { font-family: 'Inter', sans-serif; font-size: 2.2rem; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.stats .l { font-size: .85rem; color: rgba(255,255,255,.85); line-height: 1.35; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 流程（有序步驟） ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 36px; }
.steps > div { border-top: 2px solid rgba(255,255,255,.55); padding-top: 18px; }
.steps .num { font-family: 'Inter', sans-serif; font-size: .85rem; font-weight: 600; opacity: .8; }
.steps h3 { font-size: 1.25rem; margin: 6px 0 8px; }
.steps p { font-size: .95rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- 演講紀錄（列表式） ---------- */
.article { display: grid; grid-template-columns: 1fr 220px; gap: 28px; padding: 28px 0; border-top: 1px solid var(--line); align-items: start; }
.article:first-of-type { border-top: 0; }
.article-content h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.article-content p { color: var(--ink-2); font-size: .95rem; margin-bottom: 12px; }
.article-content a { font-size: .9rem; font-weight: 600; color: var(--blue); text-decoration: none; border-bottom: 1.5px solid var(--blue); }
.article-content a:hover { color: var(--blue); border-color: var(--blue); }
.article img, .article .article-images img { width: 100%; height: 150px; object-fit: cover; border-radius: var(--radius); max-width: none !important; }
.article .article-images { display: grid !important; grid-template-columns: 1fr; gap: 8px !important; }
.article .article-images img { height: 110px; }
.article.hidden { display: none; }
@media (max-width: 700px) { .article { grid-template-columns: 1fr; } .article img { height: 200px; } }
details.more { border-top: 1px solid var(--line); margin-top: 8px; }
details.more > summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: '+'; font-family: 'Inter', sans-serif; font-size: 1.3rem; color: var(--ink-3); }
details.more[open] > summary::after { content: '−'; }
details.more > summary:hover { color: var(--blue); }

/* ---------- 頁首區（內頁） ---------- */
.page-hero { padding: 72px 0 48px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; }
.page-hero .lead { margin-top: 16px; }
.page-hero .crumb { font-size: .88rem; color: var(--ink-3); margin-bottom: 18px; }
.page-hero .crumb a { color: var(--ink-3); text-decoration: none; }
.page-hero .crumb a:hover { color: var(--ink); }

/* ---------- 表單區 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.contact-side .h-section { margin-bottom: 8px; }
.contact-lead { margin-bottom: 36px; }
.contact-grid iframe { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.contact-side h3 { font-size: 1rem; font-weight: 700; margin: 24px 0 6px; }
.contact-side p { color: var(--ink-2); font-size: .95rem; }
.contact-side .btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
.eyebrow { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.trial-grid { grid-template-columns: 1fr 1.2fr; }
.trial-grid .lead { margin-bottom: 8px; }
.trial-grid .trial-form { padding-top: 36px; }
@media (max-width: 880px) { .trial-grid .trial-form { padding-top: 0; } }
.trial-grid iframe { height: 720px; padding: 8px 4px; overflow: auto; }
@media (max-width: 880px) { .trial-grid { grid-template-columns: 1fr; } .trial-grid iframe { height: 620px; } }
.form-fallback { font-size: .85rem; color: var(--ink-3); margin-top: 10px; }

/* ---------- 頁尾 ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 48px 0 28px; margin-top: 72px; }
.footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 32px; }
.footer h4 { color: #fff; font-size: .85rem; font-weight: 700; margin-bottom: 12px; letter-spacing: .02em; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 6px; font-size: .92rem; }
.footer a { color: rgba(255,255,255,.75); text-decoration: none; }
.footer a:hover { color: #fff; }
.footer .brand { color: #fff; margin-bottom: 10px; }
.footer .brand .mark::after { background: var(--ink); }
.footer .copy { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 18px; font-size: .82rem; color: rgba(255,255,255,.5); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer .nl { display: flex; gap: 8px; margin-top: 8px; }
.footer .nl input { flex: 1; padding: 10px 12px; border-radius: 4px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; font: inherit; font-size: .9rem; min-width: 0; }
.footer .nl button { padding: 10px 14px; border-radius: 4px; border: 0; background: var(--blue); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
@media (max-width: 880px) { .footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer .cols { grid-template-columns: 1fr; } }

/* ---------- 共用小元件 ---------- */
.pill { display: inline-block; font-size: .76rem; font-weight: 600; padding: 3px 10px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink-2); }
.pill.solid { background: var(--ink); color: #fff; border-color: var(--ink); }
.hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
.cta-strip { border: 1px solid var(--line); background: var(--bg-2); padding: 36px 40px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 56px; }
.cta-strip h3 { font-size: 1.35rem; font-weight: 800; }
.cta-strip p { color: var(--ink-2); margin-top: 4px; }
.cta-strip .btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- 首頁 Hero ---------- */
.hero { padding: 56px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr 190px; gap: 40px; align-items: center; }
.hello { font-size: 1.05rem; color: var(--ink-2); }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.05; margin: 6px 0 14px; white-space: nowrap; }
.hero h1 .en { display: inline-block; font-family: 'Inter', sans-serif; font-weight: 800; color: var(--blue); letter-spacing: .04em; font-size: .78em; margin-left: .22em; vertical-align: baseline; }
.role { font-size: .92rem; letter-spacing: .16em; font-weight: 600; color: var(--ink-2); margin-bottom: 22px; }
.hero-lead { font-size: 1.08rem; color: var(--ink-2); margin-bottom: 28px; }
.hero .btns { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero-note { margin-top: 24px; font-size: .9rem; color: var(--ink-3); }
.hero-note a { color: var(--ink); font-weight: 600; }
.hero-photo { position: relative; height: 480px; margin-bottom: -64px; align-self: end; }
.hero-photo .disc { position: absolute; left: 50%; bottom: 8%; width: 86%; aspect-ratio: 1; border-radius: 50%; background: var(--sage); transform: translateX(-50%); }
.hero-photo img { position: absolute; left: 50%; bottom: 0; height: 104%; width: auto; max-width: none; transform: translateX(-50%); }
.hero { overflow: hidden; }
.hero-stats { display: flex; flex-direction: column; gap: 24px; text-align: right; border-left: 1px solid var(--line); padding-left: 24px; }
.hero-stats b { display: block; font-family: 'Inter', 'Noto Sans TC', sans-serif; font-size: 1.9rem; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.hero-stats span { font-size: .82rem; color: var(--ink-2); line-height: 1.35; display: block; margin-top: 5px; white-space: nowrap; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-photo { margin-bottom: 0; }
  .hero-stats { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; text-align: left; border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 20px; }
}
@media (max-width: 640px) {
  .hero { padding: 40px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-photo { height: 360px; }
  .hero-stats { flex-wrap: wrap; gap: 16px 28px; }
}

/* ---------- 首頁文案區塊（2026-10-29 瘦身版：標題＋文案＋一顆按鈕） ---------- */
.pitch { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: start; }
.pitch .k { display: block; font-size: .8rem; font-weight: 600; color: var(--blue); letter-spacing: .04em; margin-bottom: 12px; }
.pitch .copy { font-size: 1.12rem; color: var(--ink-2); max-width: 62ch; }
.pitch .copy strong { color: var(--ink); font-weight: 700; }
.pitch .copy p + p { margin-top: 14px; }
.pitch .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pitch .proof { margin-top: 18px; font-size: .92rem; color: var(--ink-3); line-height: 1.9; }
.pitch .proof b { color: var(--ink-2); font-weight: 600; }
.pitch .links { list-style: none; margin-top: 22px; border-top: 1px solid var(--line); }
.pitch .links li { border-bottom: 1px solid var(--line); }
.pitch .links a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; text-decoration: none; font-weight: 600; font-size: .98rem; color: var(--ink); }
.pitch .links a:hover { color: var(--blue); }
.pitch .links span { color: var(--ink-3); font-weight: 400; font-size: .85rem; white-space: nowrap; }
.pitch .services { list-style: none; margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.pitch .services li { font-size: .95rem; color: var(--ink-2); padding-left: 16px; position: relative; }
.pitch .services li::before { content: ''; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.pitch .services b { color: var(--ink); }
.pitch .btns { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 28px; }
.band .btns { margin-top: 36px; }
.btn.light { background: #fff; color: var(--ink); }
.btn.light:hover { background: var(--bg); }
@media (max-width: 880px) { .pitch { grid-template-columns: 1fr; gap: 20px; } .pitch .services { grid-template-columns: 1fr; } }

/* ---------- 關於頁（about.html）：沿用站內元件，只加自述兩欄 ---------- */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.about-text p { font-size: 1.05rem; color: var(--ink-2); }
.about-text p + p { margin-top: 16px; }
.about-text strong { color: var(--ink); }
.about-photo { margin: 0; }
.about-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 40%; border-radius: var(--radius); border: 1px solid var(--line); }
.about-photo figcaption { margin-top: 10px; font-size: .85rem; color: var(--ink-3); }
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- 文章（articles.html＋articles/*.html，2026-11-02）：沿用 page-hero／cells／cta-strip，只加閱讀欄與篩選鈕 ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.chip { font: inherit; font-size: .9rem; font-weight: 600; padding: 8px 16px; border: 1.5px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--ink-2); cursor: pointer; }
.chip span { font-family: 'Inter', sans-serif; font-weight: 500; color: var(--ink-3); margin-left: 4px; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.on span { color: rgba(255,255,255,.7); }
.cells > a[hidden] { display: none; }
.post-hero { padding-bottom: 32px; }
.post-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); max-width: 26em; }
.post-hero .post-meta { margin-top: 14px; font-size: .9rem; color: var(--ink-3); }
.post-hero .lead { max-width: 60ch; }
.post-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; align-items: start; }
.post { max-width: 70ch; min-width: 0; font-size: 1.05rem; line-height: 1.9; color: var(--ink); }
.post hr + h2 { border-top: 0; padding-top: 0; margin-top: 1.2em; }
.post > :first-child { margin-top: 0; }
.post p, .post ul, .post ol, .post table, .post pre, .post blockquote, .post hr, .post img { margin-bottom: 1.25em; }
.post h2 { font-size: 1.5rem; font-weight: 800; margin: 2.4em 0 .8em; padding-top: .8em; border-top: 1px solid var(--line); }
.post h3 { font-size: 1.15rem; font-weight: 700; margin: 1.8em 0 .6em; }
.post h4 { font-size: 1rem; font-weight: 700; margin: 1.4em 0 .4em; color: var(--ink-2); }
.post ul, .post ol { padding-left: 1.4em; }
.post li { margin-bottom: .35em; }
.post li p { margin-bottom: .4em; }
.post a { color: var(--blue); text-decoration: none; border-bottom: 1.5px solid rgba(30,79,214,.35); }
.post a:hover { border-color: var(--blue); }
.post strong { font-weight: 700; }
.post em { color: var(--ink-2); }
.post > p:first-child > em:only-child { display: block; font-style: normal; font-family: 'Inter', sans-serif; font-size: .78rem; font-weight: 600; letter-spacing: .08em; color: var(--blue); }
.post blockquote { border-left: 3px solid var(--blue); padding: 4px 0 4px 20px; color: var(--ink-2); }
.post blockquote p:last-child { margin-bottom: 0; }
.post hr { border: 0; border-top: 1px solid var(--line); }
.post img { border: 1px solid var(--line); border-radius: var(--radius); }
.post code { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86em; background: rgba(0,0,0,.05); padding: .1em .4em; border-radius: 3px; }
.post pre { background: var(--ink); color: #E8E8E3; padding: 18px 20px; border-radius: var(--radius); overflow-x: auto; font-size: .85rem; line-height: 1.6; }
.post pre code { background: none; padding: 0; font-size: inherit; color: inherit; }
.post table { width: 100%; border-collapse: collapse; font-size: .92rem; display: block; overflow-x: auto; }
.post th, .post td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; background: var(--bg-2); }
.post th { background: var(--bg); font-weight: 700; white-space: nowrap; }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.post-side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 24px; }
.toc { font-size: .9rem; border-left: 1px solid var(--line); padding-left: 18px; }
.toc b { display: block; font-size: .78rem; letter-spacing: .06em; color: var(--ink-3); margin-bottom: 10px; }
.toc ol { list-style: none; counter-reset: toc; }
.toc li { margin-bottom: 8px; counter-increment: toc; }
.toc a { color: var(--ink-2); text-decoration: none; display: flex; gap: 10px; line-height: 1.45; }
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: 'Inter', sans-serif; font-size: .78rem; color: var(--ink-3); flex-shrink: 0; padding-top: .15em; }
.toc a:hover { color: var(--blue); }
.post-box { border: 1px solid var(--line); background: var(--bg-2); padding: 22px; }
.post-box b { display: block; font-size: 1.02rem; font-weight: 800; margin-bottom: 8px; }
.post-box p { font-size: .9rem; color: var(--ink-2); margin-bottom: 16px; }
@media (max-width: 960px) {
  .post-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .post-side { position: static; }
  .toc { display: none; }
}

/* Dot Agent OS chat widget (bottom-right). Its configured colour (#EDEDE9) is the
   same as the page background, so the launcher disappears. Use the site blue. */
.dotw-btn, .dotw-teaser-x { --dotw-accent: var(--blue); }
.dotw-btn.dotw-icon { box-shadow: 0 8px 24px rgba(15, 18, 30, .28); }
