/* ══════════════════════════════════════════════════════
   YABAI FINDS — main.css  (v9)
   Hugo theme: buzz
══════════════════════════════════════════════════════ */

/* ── Variables & Reset ─────────────────────────────── */
:root {
  --bg:        #ffffff;
  --bg-feed:   #faf8f4;
  --bg-card:   #ffffff;
  --ink:       #161412;
  --ink-2:     #525050;
  --ink-3:     #969290;
  --border:    #e6e4e2;
  --border-mid:#c2bebb;

  --sky:       #2e8ab8;
  --sky-pale:  #e8f4fb;
  --sky-dark:  #1e6a90;

  --char:      #252220;
  --char-2:    #3a3632;

  --shadow-xs: 0 1px 3px rgba(0,0,0,.05);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,.1),  0 1px 4px rgba(0,0,0,.05);

  --serif: 'DM Serif Display', Georgia, serif;
  --sans:  'Outfit', system-ui, sans-serif;
  --ui:    'DM Sans', system-ui, sans-serif;

  /* ── Type scale (1rem base × 1.25 ratio, major third) ── */
  --fs-2xs:  0.64rem;    /* ~10.2px — micro-caps: badges, sidebar meta  */
  --fs-xs:   0.8rem;     /* ~12.8px — UI text: nav, meta, dates, footer */
  --fs-sm:   0.875rem;   /* 14px    — sub-body: excerpts, annotations   */
  --fs-base: 1rem;       /* 16px    — body / reading text baseline      */
  --fs-md:   1.25rem;    /* 20px    — card/list titles, small headings  */
  --fs-lg:   1.5625rem;  /* 25px    — section headings, article numbers */
  --fs-xl:   1.953rem;   /* ~31px   — standfirsts, display              */

  --max:     1140px;
  --art-max: 700px;
  --r-sm:    6px;
  --r-md:    10px;
  --r-lg:    14px;
  --r-pill:  999px;
}

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

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

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

/* ══════════════════════════════════════════════════════
   NAV — sticky, white
══════════════════════════════════════════════════════ */
.site-nav {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-in {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2.5rem;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--serif);
  font-size: var(--fs-md);
  letter-spacing: -.01em;
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  padding-bottom: 2px;
  color: var(--ink);
}

.logo-text { line-height: 1; }

.logo-line {
  height: 2px;
  background: var(--sky);
  border-radius: 1px;
  width: 100%;
  display: block;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  font-family: var(--ui);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

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

/* ══════════════════════════════════════════════════════
   NAMEPLATE — scrolls away
══════════════════════════════════════════════════════ */
.nameplate {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 2.25rem 0 0;
}

.nameplate-in {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2.5rem;
}

.nameplate-name {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 8vw, 8rem);
  letter-spacing: -.04em;
  line-height: 1;
  font-weight: 400;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: .04em;
}

.nameplate-dot {
  color: var(--sky);
  font-size: .75em;
  line-height: 1;
}

.nameplate-deck {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 0 .85rem;
  border-top: 1px solid var(--border);
  margin-top: .6rem;
}

.nameplate-tagline {
  font-family: var(--ui);
  font-size: var(--fs-sm);
  color: var(--ink-3);
  letter-spacing: .01em;
}

.nameplate-meta {
  display: flex;
  gap: 1.75rem;
  align-items: center;
  font-family: var(--ui);
  font-size: var(--fs-xs);
  color: var(--ink-3);
}

.nameplate-meta-item {
  display: flex;
  align-items: center;
  gap: .4rem;
}

.nameplate-meta-item::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--sky);
  opacity: .6;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════
   MASTHEAD — white, editorial
══════════════════════════════════════════════════════ */
.masthead {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.masthead-in {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 2.5rem 0;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3.5rem;
  align-items: end;
}

.mast-left {
  padding-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.mast-hl {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.5vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -.04em;
  font-weight: 400;
  color: var(--ink);
}

.mast-hl em { font-style: italic; color: var(--sky); }

.mast-tagline {
  font-family: var(--ui);
  font-size: var(--fs-sm);
  color: var(--ink-2);
  line-height: 1.7;
  padding-top: .9rem;
  border-top: 1px solid var(--border);
}

.mast-right {
  border-left: 1px solid var(--border);
  padding: 0 0 2.5rem 2.5rem;
  display: flex;
  flex-direction: column;
}

.mast-right-lbl {
  font-family: var(--ui);
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: .9rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}

.mast-right-lbl::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.mast-item {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.mast-item:last-child { border-bottom: none; }

.mast-item:hover .mast-item-title { color: var(--sky); }

.mast-item-cats {
  display: flex;
  gap: .35rem;
  align-items: center;
}

.mast-item-title {
  font-family: var(--serif);
  font-size: var(--fs-base);
  line-height: 1.3;
  color: var(--ink);
  transition: color .15s;
}

/* ══════════════════════════════════════════════════════
   BADGES & META
══════════════════════════════════════════════════════ */
.cat {
  font-family: var(--ui);
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--sky);
  color: #fff;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  display: inline-block;
  flex-shrink: 0;
  box-shadow: var(--shadow-xs);
}

.cat-mood { background: var(--char-2); }

.cat-out {
  background: transparent;
  color: var(--ink-3);
  border: 1px solid var(--border-mid);
  box-shadow: none;
}

.cat-on-sky {
  background: rgba(255,255,255,.22);
  color: #fff;
  box-shadow: none;
}

.meta {
  font-family: var(--ui);
  font-size: var(--fs-xs);
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════
   SKY SHELF → FEED transition
══════════════════════════════════════════════════════ */
.feed-shelf { background: var(--sky); }

.feed-shelf-in {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2.5rem;
}

.feed-bar {
  background: var(--bg-feed);
  border-top: 0 solid var(--sky);
  border-radius: 20px 20px 0 0;
  padding: .9rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.feed-bar-l {
  font-family: var(--ui);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.feed-bar-r {
  font-family: var(--ui);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--sky);
  transition: color .15s;
}

.feed-bar-r:hover { color: var(--sky-dark); }

/* ══════════════════════════════════════════════════════
   FEED — article list on off-white
══════════════════════════════════════════════════════ */
.feed {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* Hero article */
.art-hero {
  padding: 2rem 1rem 1.75rem;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  cursor: pointer;
  transition: background .12s;
}

.art-hero:hover {
  background: var(--bg-card);
  border-bottom-color: transparent;
  box-shadow: var(--shadow-sm);
  border-color: var(--border-mid);
}

.art-hero:hover .art-hero-title { color: var(--sky); }

.art-hero-l {
  display: flex;
  flex-direction: column;
  gap: .8rem;
}

.art-hero-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -.03em;
  font-weight: 400;
  transition: color .15s;
}

.art-hero-title em { font-style: italic; color: var(--sky); }

.art-hero-cats {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
  align-items: center;
}

.art-hero-footer {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.art-hero-read {
  font-family: var(--ui);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--sky);
  background: var(--sky-pale);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  transition: .15s;
}

.art-hero:hover .art-hero-read { background: var(--sky); color: #fff; }

.art-hero-r {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: .2rem;
  gap: 1.25rem;
}

.art-hero-excerpt {
  font-family: var(--ui);
  font-size: var(--fs-sm);
  line-height: 1.75;
  color: var(--ink-2);
}

.art-hero-pull {
  border-left: 2px solid var(--sky);
  padding: .5rem 0 .5rem .9rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--fs-base);
  line-height: 1.5;
  color: var(--ink-2);
}

.art-hero-pull::before { content: '\201C'; }
.art-hero-pull::after  { content: '\201D'; }

/* Standard list rows */
.art-list { display: flex; flex-direction: column; }

.art-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 0 1.2rem;
  align-items: start;
  padding: 1.1rem 1rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .12s;
}

.art-row:last-child { border-bottom: none; }

.art-row:hover {
  background: var(--bg-card);
  box-shadow: var(--shadow-xs);
  border-bottom-color: transparent;
  box-shadow: var(--shadow-sm);
  border-color: var(--border-mid);
}

.art-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--fs-lg);
  color: var(--sky);
  opacity: .25;
  line-height: 1;
  padding-top: .15rem;
  text-align: right;
  transition: opacity .15s;
}

.art-row:hover .art-num { opacity: 1; }

.art-body {
  display: flex;
  flex-direction: column;
  gap: .32rem;
}

.art-cats {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
  align-items: center;
}

.art-title {
  font-family: var(--serif);
  font-size: var(--fs-md);
  line-height: 1.25;
  letter-spacing: -.02em;
  font-weight: 400;
  transition: color .15s;
}

.art-row:hover .art-title { color: var(--sky); }

.art-excerpt {
  font-size: var(--fs-sm);
  color: var(--ink-2);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.art-date {
  font-family: var(--ui);
  font-size: var(--fs-xs);
  color: var(--ink-3);
  white-space: nowrap;
  padding-top: .25rem;
}

/* ══════════════════════════════════════════════════════
   FEED ZONE — grey wrapper for feed + charcoal section
══════════════════════════════════════════════════════ */
.feed-zone { background: var(--bg-feed); }

/* ══════════════════════════════════════════════════════
   CHARCOAL SECTION
══════════════════════════════════════════════════════ */
.char-section {
  background: var(--char);
  padding: 2.5rem 0;
  margin-top: 1px;
}

.char-in {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2.5rem;
}

.char-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}

.char-title {
  font-family: var(--ui);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  display: flex;
  align-items: center;
  gap: .6rem;
}

.char-title::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sky);
  display: block;
  flex-shrink: 0;
}

.char-more {
  font-family: var(--ui);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  transition: color .15s;
}

.char-more:hover { color: #fff; }

.wcard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.wcard {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s;
}

.wcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.wcard-title {
  font-family: var(--serif);
  font-size: var(--fs-base);
  line-height: 1.25;
  letter-spacing: -.015em;
  transition: color .15s;
}

.wcard:hover .wcard-title { color: var(--sky); }

.wcard-excerpt {
  font-size: var(--fs-sm);
  color: var(--ink-2);
  line-height: 1.65;
}

/* ══════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════ */
.site-footer {
  background: var(--char-2);
  border-top: 3px solid var(--sky);
}

.foot-in {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.75rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--ui);
  font-size: var(--fs-xs);
}

.foot-logo {
  font-family: var(--serif);
  font-size: var(--fs-base);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.foot-logo-line {
  height: 2px;
  background: var(--sky);
  border-radius: 1px;
  width: 100%;
  display: block;
}

.foot-links {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
}

.foot-links a:hover { color: rgba(255,255,255,.9); }

.foot-copy { color: rgba(255,255,255,.22); }

/* ══════════════════════════════════════════════════════
   ARTICLE BAND (sky header)
══════════════════════════════════════════════════════ */
.art-band { background: var(--sky); }

.art-band-in {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 2.5rem 2.75rem;
}

.art-kicker {
  display: flex;
  gap: .45rem;
  align-items: center;
  margin-bottom: .85rem;
  flex-wrap: wrap;
}

.art-h1 {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 4vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -.03em;
  font-weight: 400;
  color: #fff;
  margin-bottom: .85rem;
}

.art-h1 em { font-style: italic; color: rgba(255,255,255,.7); }

.art-desc {
  font-family: var(--ui);
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.75);
  line-height: 1.65;
  margin-bottom: .85rem;
}

.art-byline {
  font-family: var(--ui);
  font-size: var(--fs-xs);
  color: rgba(255,255,255,.62);
  display: flex;
  gap: .4rem;
  align-items: center;
  padding-top: .55rem;
  border-top: 1px solid rgba(255,255,255,.2);
}

/* ══════════════════════════════════════════════════════
   ARTICLE BODY — 2-column (main + sidebar)
══════════════════════════════════════════════════════ */
.post-layout {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 0 3rem;
  padding: 2.5rem 2.5rem 4rem;
  align-items: start;
}

.post-main { min-width: 0; }

/* "What's going on" context block */
.context-block {
  margin-bottom: 2.25rem;
}

.context-label {
  font-family: var(--ui);
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--char);
  margin-bottom: .6rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.context-label::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--sky);
  display: block;
  flex-shrink: 0;
}

.context-block p {
  font-size: var(--fs-base);
  line-height: 1.8;
  color: var(--ink);
  margin-bottom: .75rem;
}

.context-block p:last-child { margin-bottom: 0; }

/* Context block — available for shortcode use in content */
.ctx {
  background: var(--sky-pale);
  border-left: 3px solid var(--sky);
  padding: 1rem 1.2rem;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin-bottom: 2.25rem;
  font-size: var(--fs-base);
  line-height: 1.8;
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}

/* ── Comments ──────────────────────────────────────── */
.comments {
}

.cmt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 3.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--sky);
}

.cmt-lbl {
  font-family: var(--ui);
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cmt-flow {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.75rem;
}

.cf {
  padding: .9rem 0;
  border-top: 1px solid var(--border);
  font-size: var(--fs-base);
  line-height: 1.8;
  color: var(--ink);
}

.cf em { font-style: italic; color: var(--char-2); }

.cf:first-child { 
  border: none;
}

.cf-reply,
.cf-officialcf-reply {
  padding: .7rem 0;
  margin-left: 2.6rem;
  font-size: var(--fs-base);
  line-height: 1.8;
  color: var(--ink);
}

 .cf-officialcf-reply {
  padding: .85rem 1rem;
  margin: 1rem 0 1rem 2.6rem;
  background: var(--sky-pale);
  border: none;
}


.cf-official {
  padding: .85rem 1rem;
  background: var(--sky-pale);
  border-radius: var(--r-md);
  margin: .25rem 0;
  box-shadow: var(--shadow-xs);
  border-bottom: none;
}

.off-lbl {
  font-family: var(--ui);
  font-size: var(--fs-2xs);
  font-weight: 500;
  color: var(--sky-dark);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .3rem;
  display: flex;
  align-items: center;
  gap: .3rem;
}

.off-dot {
  width: 11px;
  height: 11px;
  background: var(--sky);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 7px;
}

.cf-ja {
  font-family: var(--ui);
  font-size: var(--fs-xs);
  color: var(--ink-3);
  margin-top: .35rem;
  font-style: italic;
}

.cf-note {
  font-family: var(--ui);
  font-size: var(--fs-xs);
  color: var(--ink-2);
  padding: .5rem 0 .5rem 1rem;
  border-left: 2px solid var(--border-mid);
  margin: .1rem 0;
  line-height: 1.65;
}

/* ── Pull quote ────────────────────────────────────── */
.art-pull {
  margin: 2rem 0;
  padding: 1.2rem 0 1.2rem 1.4rem;
  border-left: 2px solid var(--sky);
}

.art-pull-q {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--fs-md);
  line-height: 1.4;
  letter-spacing: -.01em;
  color: var(--ink);
}

.art-pull-q::before { content: '\201C'; }
.art-pull-q::after  { content: '\201D'; }

.art-pull-src {
  font-family: var(--ui);
  font-size: var(--fs-xs);
  color: var(--ink-3);
  margin-top: .4rem;
}

/* ── My Take ───────────────────────────────────────── */
.my-take,
.personal-comment {
  border-top: 2px solid var(--char);
  margin-top: 2.5rem;
  padding-top: 1.4rem;
}

.my-take-lbl,
.personal-label {
  font-family: var(--ui);
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--char);
  margin-bottom: .55rem;
  display: flex;
  align-items: center;
  gap: .45rem;
}

.my-take-lbl::before,
.personal-label::before { content: '✦'; font-size: 8px; color: var(--sky); }

.my-take-txt,
.personal-comment-text {
  font-size: var(--fs-base);
  font-style: italic;
  color: var(--ink-2);
  line-height: 1.8;
}

/* ── Translation note ──────────────────────────────── */
.trans-note {
  font-family: var(--ui);
  font-size: var(--fs-xs);
  color: var(--ink-3);
  font-style: italic;
  margin: .5rem 0 1.5rem;
}

/* ── Source block ──────────────────────────────────── */
.src-block {
  border-top: 1px solid var(--border);
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  font-family: var(--ui);
  font-size: var(--fs-xs);
  color: var(--ink-3);
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.src-block a {
  color: var(--sky);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Tweet fallback ────────────────────────────────── */
.comment-tweet { margin-bottom: .65rem; }
.comment-tweet .twitter-tweet { margin: 0 !important; }

.tweet-fallback img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r-sm);
}

.tweet-archived-note {
  font-family: var(--ui);
  font-size: var(--fs-xs);
  color: var(--ink-3);
  font-style: italic;
  margin-bottom: .5rem;
}

/* ── JP toggle (injected by JS) ────────────────────── */
.ja-toggle {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--ui);
  font-size: var(--fs-xs);
  color: var(--ink-3);
  cursor: pointer;
  user-select: none;
}

.ja-toggle input { accent-color: var(--sky); }

/* ══════════════════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════════════════ */
.post-sidebar { min-width: 0; }

.sb-section {
  background: #faf8f6;
  border-radius: var(--r-md);
  padding: 1rem 1rem;
  margin-bottom: 1rem;
}

.sb-head {
  font-family: var(--ui);
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: .3rem;
  border-bottom: 1.5px solid var(--border-mid);
  margin-bottom: .5rem;
}

.sb-meta { display: flex; flex-direction: column; }

.sb-row {
  display: flex;
  justify-content: space-between;
  padding: .25rem 0;
  border-bottom: 1px solid var(--border);
}

.sb-row:last-child { border-bottom: none; }

.sb-label {
  font-family: var(--ui);
  font-size: var(--fs-2xs);
  color: var(--ink-3);
}

.sb-value {
  font-family: var(--ui);
  font-size: var(--fs-2xs);
  color: var(--ink-2);
  font-weight: 600;
}

.sb-recent-item {
  padding: .35rem 0;
  border-bottom: 1px solid var(--border);
}

.sb-recent-item:last-child { border-bottom: none; }

.sb-recent-title {
  font-family: var(--ui);
  font-size: var(--fs-xs);
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
  display: block;
}

.sb-recent-title:hover { color: var(--sky); }

.sb-recent-item time {
  font-family: var(--ui);
  font-size: var(--fs-2xs);
  color: var(--ink-3);
  display: block;
  margin-top: .1rem;
}

.sb-ad {
  background: var(--border);
  height: 90px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ui);
  font-size: var(--fs-2xs);
  color: var(--ink-3);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.sb-ad::before { content: 'Advertisement'; }

.sb-share { display: flex; flex-direction: column; gap: .4rem; }

.sb-btn {
  font-family: var(--ui);
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-align: center;
  padding: .4rem .5rem;
  border-radius: var(--r-sm);
  cursor: pointer;
  text-decoration: none;
  display: block;
  border: none;
  width: 100%;
  transition: opacity .15s;
}

.sb-btn:hover { opacity: .8; }

.sb-btn-x {
  background: var(--char);
  color: #fff;
}

.sb-btn-copy {
  background: var(--border);
  color: var(--ink-2);
}

/* ══════════════════════════════════════════════════════
   LIST PAGE (tag archives)
══════════════════════════════════════════════════════ */
.list-page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 2.5rem 4rem;
}

.list-page-head {
  font-family: var(--ui);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--sky);
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: .6rem;
}

.list-page-head::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sky);
  display: block;
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 780px) {
  .post-layout {
    grid-template-columns: 1fr;
    padding: 1.75rem 1.25rem 3rem;
  }

  .post-sidebar {
    order: 1;  /* main は order: 0 (デフォルト) なので sidebar が後ろへ */
    margin-top: 2rem;
  }
}
