/*
Theme Name:  Cheer You Up
Theme URI:   https://cheeryouup.tw
Author:      Tia Lee
Author URI:  https://cheeryouup.tw
Description: 活著，就還有希望。健康，包含身體、心理與社會健康。WordPress theme for cheeryouup.tw
Version:     3.2.1
License:     GNU General Public License v2 or later
Text Domain: cheeryouup
Tags:        blog, mental-health, minimal, responsive
*/

/* ══════════════════════════════════════════════════════════════════
 * 1. DESIGN TOKENS
 * ══════════════════════════════════════════════════════════════════ */
:root {
  --bg:        #FAFAF7;
  --bg-2:      #F6F7F8;
  --ink:       #111111;
  --muted:     #6B6B6B;
  --line:      #E8E6E1;
  --cream:     #C9C1B1;
  --cream-d:   #B8AE9B;
  --sand:      #F2EFE6;
  --truffle:   #A35139;
  --moss:      #6E8C5E;
  --navy:      #2C3B4D;
  --orange:    #FFB162;
  --coral:     #D14B3C;
  --coral-bg:  #FBEFEC;
  --btn:       var(--orange);

  --page-pad:  clamp(18px, 4vw, 40px);
  --max-w:     1100px;
  --reading-w: 680px;

  --r-sm: 4px;
  --r-md: 8px;
  --r-pill: 999px;

  --shadow-sm: 0 4px 16px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.15);

  --serif: "Noto Serif TC", serif;
  --sans:  "Noto Sans TC", system-ui, sans-serif;
  --hand:  "Caveat", cursive;
}

/* ══════════════════════════════════════════════════════════════════
 * 2. RESET & BASE
 * ══════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg-2);
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  font-family: var(--sans);
  color: var(--ink);
  letter-spacing: .1px;
  -webkit-text-size-adjust: 100%;
}
img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; cursor: pointer; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; max-width: 100%; }

em { font-style: italic; }

/* ══════════════════════════════════════════════════════════════════
 * 3. LAYOUT PRIMITIVES
 * ══════════════════════════════════════════════════════════════════ */
.cyu-container,
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
}
.container--reading { max-width: var(--reading-w); }

.section { padding: clamp(36px, 5vw, 64px) var(--page-pad); }
.section--top { padding-top: clamp(36px, 6vw, 64px); }
.section--bottom-l { padding-bottom: 96px; }
.section--divided { border-top: 1px solid var(--line); }

.stack > * + * { margin-top: var(--gap, 16px); }
.row {
  display: flex; flex-wrap: wrap;
  align-items: center; gap: var(--gap, 12px);
}
.row--between { justify-content: space-between; }
.row--baseline { align-items: baseline; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.posts-grid-3,
.resources-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.resources-grid-3 { gap: 24px; }
.resources-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ══════════════════════════════════════════════════════════════════
 * 4. PROGRESS BAR & BACK-TO-TOP
 * ══════════════════════════════════════════════════════════════════ */
#progress-bar {
  position: fixed; top: 0; left: 0; height: 2px;
  background: var(--cream); width: 0; z-index: 100; transition: width .1s;
}

.back-top {
  position: fixed; right: 28px; bottom: 28px; z-index: 80;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: var(--bg); border: none;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .25s, transform .25s, background .2s;
  box-shadow: var(--shadow-md);
}
.back-top.show { opacity: 1; transform: none; pointer-events: auto; }
.back-top:hover { background: #1d2a39; }

/* ══════════════════════════════════════════════════════════════════
 * 5. SCROLLBAR
 * ══════════════════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--cream); border-radius: 3px; }

/* ══════════════════════════════════════════════════════════════════
 * 6. FADE-IN ANIMATION
 * ══════════════════════════════════════════════════════════════════ */
.fade { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.fade.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .fade { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ══════════════════════════════════════════════════════════════════
 * 7. FLUID TYPOGRAPHY
 * ══════════════════════════════════════════════════════════════════ */
.fluid-h1  { font-size: clamp(34px, 7vw, 96px); line-height: 1.08; }
.fluid-h2  { font-size: clamp(22px, 3vw, 30px); }
.fluid-h3  { font-size: clamp(28px, 5vw, 64px); line-height: 1.12; }
.fluid-article-h1 { font-size: clamp(26px, 5.2vw, 42px); line-height: 1.25; }
.fluid-body { font-size: clamp(15px, 1.6vw, 19px); line-height: 1.85; }
.fluid-prose { font-size: clamp(15px, 1.5vw, 17px); }

.serif-em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--navy);
}

/* ══════════════════════════════════════════════════════════════════
 * 8. SECTION LABEL
 * ══════════════════════════════════════════════════════════════════ */
.section-label {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
}
.section-label::before {
  content: ''; display: inline-block;
  width: 28px; height: 1px; background: var(--truffle);
}
.section-label span {
  font-size: 11px; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--truffle);
}

/* ══════════════════════════════════════════════════════════════════
 * 9. SITE HEADER & NAV
 * ══════════════════════════════════════════════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(16px, 3vw, 48px);
  align-items: center;
  padding: clamp(14px, 2vw, 22px) clamp(18px, 4vw, 40px);
  background: rgba(201, 193, 177, .95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.site-branding { display: flex; align-items: center; gap: 10px; }
.site-branding a { display: flex; align-items: center; gap: 10px; }
.site-branding .site-title {
  font-size: 15px; font-weight: 600; letter-spacing: -.2px;
}
.site-branding .site-tagline {
  font-size: 12px; color: rgba(17, 17, 17, .65); margin-left: 6px;
}
.main-navigation {
  display: flex; gap: clamp(14px, 2.5vw, 30px);
  justify-content: flex-end;
  font-size: 12px; letter-spacing: 1.4px; flex-wrap: wrap;
}
.main-navigation a {
  color: rgba(17, 17, 17, .65); font-weight: 500;
  transition: color .15s, border-color .15s;
  border-bottom: 1px solid transparent; padding-bottom: 4px;
}
.main-navigation a:hover,
.main-navigation a.current-menu-item { color: var(--ink); font-weight: 600; }
.main-navigation a.current-menu-item { border-bottom-color: var(--ink); }

/* ══════════════════════════════════════════════════════════════════
 * 10. BUTTONS
 * ══════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 500;
  border: none; transition: all .2s; line-height: 1;
  font-family: inherit; cursor: pointer;
  white-space: nowrap;
}
.btn-primary { background: var(--btn); color: var(--ink); }
.btn-primary:hover { background: var(--navy); color: #fff; }

.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

.btn-disabled {
  background: transparent; border: 1px solid var(--line);
  color: var(--muted); cursor: default;
  font-size: 12px; padding: 8px 16px;
}

.btn-sm { font-size: 12px; padding: 8px 16px; }
.btn-download { font-size: 12px; padding: 8px 16px; }

/* ══════════════════════════════════════════════════════════════════
 * 11. PILLS / FILTER BAR
 * ══════════════════════════════════════════════════════════════════ */
.pill {
  display: inline-block;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  transition: all .15s;
  cursor: pointer;
}
.pill:hover { border-color: var(--ink); }
.pill.is-active,
.pill[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.pill .pill-count {
  opacity: .55; font-size: 11px; margin-left: 4px;
}

.filter-bar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  margin: 36px 0 28px;
}
.filter-bar__pills {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.filter-bar__tools {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
}

/* ══════════════════════════════════════════════════════════════════
 * 12. SEARCH FIELD
 * ══════════════════════════════════════════════════════════════════ */
.search-field {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--bg);
  min-width: 220px;
}
.search-field input {
  flex: 1; border: none; background: transparent;
  font-size: 13px; outline: none; color: var(--ink);
}
.search-field svg { flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════════════
 * 13. SELECT
 * ══════════════════════════════════════════════════════════════════ */
.select-sort {
  appearance: none;
  background: var(--bg) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10' fill='none' stroke='%236B6B6B' stroke-width='1.5' stroke-linecap='round'><path d='M2 4l3 3 3-3'/></svg>") no-repeat right 12px center;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 8px 30px 8px 14px;
  font-size: 12.5px; color: var(--ink);
  cursor: pointer;
}

/* ══════════════════════════════════════════════════════════════════
 * 14. POST CARD (grid)
 * ══════════════════════════════════════════════════════════════════ */
.post-card {
  cursor: pointer; transition: transform .25s;
}
.post-card:hover { transform: translateY(-3px); }
.post-card .post-thumbnail {
  overflow: hidden; aspect-ratio: 4/3; display: block;
}
.post-card .post-thumbnail img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s;
}
.post-card:hover .post-thumbnail img { transform: scale(1.04); }
.post-card .entry-meta {
  display: flex; align-items: center; gap: 10px;
  margin: 18px 0 10px; flex-wrap: wrap;
}
.post-card .cat-links {
  font-size: 10px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--truffle);
}
.post-card .posted-on { font-size: 10px; color: #aaa; }
.post-card .entry-title {
  font-size: clamp(16px, 1.7vw, 19px);
  font-weight: 600; letter-spacing: -.2px;
  line-height: 1.45; margin: 0 0 10px;
  transition: color .15s;
}
.post-card:hover .entry-title { color: var(--navy); }
.post-card .entry-summary {
  font-size: clamp(13px, 1.3vw, 13.5px);
  color: var(--muted); line-height: 1.85; margin: 0;
}
.post-card .entry-footer {
  display: flex; align-items: center; gap: 14px;
  margin-top: 14px; font-size: 11px; color: #aaa;
}

/* ══════════════════════════════════════════════════════════════════
 * 15. POST LIST ROW
 * ══════════════════════════════════════════════════════════════════ */
.post-list-row {
  display: grid;
  grid-template-columns: 42px 100px 1fr 110px 80px 24px;
  gap: 24px; align-items: center;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  cursor: pointer; transition: padding-left .2s;
}
.post-list-row:first-child { border-top: none; }
.post-list-row:hover { padding-left: 14px; }
.post-list-row .pl-num  { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.post-list-row .pl-date { font-size: 12px; color: var(--muted); }
.post-list-row .entry-title {
  font-size: clamp(16px, 1.8vw, 19px);
  font-weight: 500; letter-spacing: -.2px;
  transition: color .15s;
}
.post-list-row:hover .entry-title { color: var(--navy); }
.post-list-row .entry-summary {
  font-size: 13px; color: var(--muted);
  margin-top: 6px; max-width: 540px; display: none;
}
.post-list-row:hover .entry-summary { display: block; }
.post-list-row .pl-cat   { font-size: 11px; color: var(--muted); letter-spacing: 1px; text-align: right; }
.post-list-row .pl-read  { font-size: 11px; color: var(--muted); text-align: right; }
.post-list-row .pl-arrow {
  font-size: 16px; color: var(--muted);
  transition: all .15s; text-align: right;
}
.post-list-row:hover .pl-arrow { color: var(--navy); transform: translateX(4px); }

/* ══════════════════════════════════════════════════════════════════
 * 16. FEATURED IMAGE & PLACEHOLDER
 * ══════════════════════════════════════════════════════════════════ */
.featured-img-wrap { width: 100%; overflow: hidden; }
.featured-img-wrap > * { width: 100%; height: 100%; }
.wp-post-thumbnail { width: 100%; height: 100%; object-fit: cover; display: block; }

.img-placeholder {
  width: 100%;
  background: repeating-linear-gradient(
    135deg, var(--sand), var(--sand) 10px, #E5DDD0 10px, #E5DDD0 20px
  );
  display: flex; align-items: center; justify-content: center;
  color: #8B8679;
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 11px; letter-spacing: .5px;
}

/* ══════════════════════════════════════════════════════════════════
 * 17. SERIES GRID
 * ══════════════════════════════════════════════════════════════════ */
.series-scroll {
  display: flex; gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.series-item {
  background: var(--bg); padding: 30px 26px;
  cursor: pointer; transition: background .2s;
  flex: 0 0 calc(25% - 0.75px); min-width: 240px;
  scroll-snap-align: start;
  text-decoration: none;
  color: var(--ink);
}
.series-item:hover { background: var(--cream); }
.series-item .series-icon {
  width: 32px; height: 32px; margin-bottom: 16px;
  filter: brightness(0) saturate(100%) invert(23%) sepia(25%) saturate(600%) hue-rotate(182deg) brightness(90%) contrast(90%);
}
.series-item .series-bar {
  width: 24px; height: 2px; background: var(--truffle); margin-bottom: 18px;
}
.series-item .series-name { font-size: 17px; font-weight: 600; letter-spacing: -.2px; }
.series-item .series-desc { font-size: 12px; opacity: .6; margin-top: 6px; }

/* ══════════════════════════════════════════════════════════════════
 * 18. TAG CLOUD
 * ══════════════════════════════════════════════════════════════════ */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; }
.tag-cloud a {
  display: inline-block; padding: 6px 14px; border-radius: var(--r-pill);
  background: transparent; color: var(--ink);
  border: 1px solid var(--line); transition: all .2s; cursor: pointer;
}
.tag-cloud a:hover {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}

/* ══════════════════════════════════════════════════════════════════
 * 19. RESOURCE CARD
 * ══════════════════════════════════════════════════════════════════ */
.resource-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  transition: border-color .2s, transform .2s;
  background: var(--bg); overflow: hidden;
  position: relative;
}
.resource-card:hover {
  border-color: var(--ink); transform: translateY(-3px);
}
.resource-card .rc-thumb {
  position: relative; aspect-ratio: 3/2;
  overflow: hidden; background: var(--sand); flex-shrink: 0;
}
.resource-card .rc-thumb a {
  display: block; width: 100%; height: 100%;
}
.resource-card .rc-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s;
}
.resource-card:hover .rc-thumb img { transform: scale(1.04); }

.resource-card .rc-thumb-fallback {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px;
  background: repeating-linear-gradient(135deg, var(--sand), var(--sand) 12px, #E5DDD0 12px, #E5DDD0 24px);
}
.resource-card .rc-thumb-fallback span {
  font-size: 10px; letter-spacing: 1.5px;
  text-transform: uppercase;
}

.resource-card .rc-badge-featured {
  position: absolute; top: 12px; left: 12px;
  font-size: 9px; letter-spacing: 1.8px; text-transform: uppercase;
  background: var(--ink); color: var(--bg);
  padding: 4px 10px; border-radius: var(--r-pill);
}
.resource-card .rc-pages {
  position: absolute; bottom: 10px; right: 12px;
  font-size: 10px; color: var(--muted);
  background: rgba(250, 250, 247, .85);
  padding: 3px 8px; border-radius: var(--r-pill);
  letter-spacing: .5px;
}
.resource-card .rc-body {
  padding: 20px 22px 22px;
  display: flex; flex-direction: column; gap: 10px; flex: 1;
}
.resource-card .rc-type-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.resource-card .rc-type {
  font-size: 9px; letter-spacing: 2px;
  text-transform: uppercase; font-weight: 600;
}
.resource-card .rc-cat-dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--line); display: inline-block;
}
.resource-card .rc-cat {
  font-size: 10px; color: var(--muted);
}
.resource-card h3 {
  font-size: clamp(15px, 1.5vw, 17px); font-weight: 600;
  letter-spacing: -.2px; line-height: 1.45; margin: 0;
  transition: color .15s;
}
.resource-card h3 a { color: inherit; }
.resource-card:hover h3 { color: var(--navy); }
.resource-card .rc-desc {
  font-size: 13px; color: var(--muted); line-height: 1.8; margin: 0; flex: 1;
}
.resource-card .rc-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 8px;
}
.resource-card .rc-date { font-size: 11px; color: var(--muted); }

/* Card hover 帶動下載按鈕 */
.resource-card:hover .btn-ghost {
  background: var(--ink); color: var(--bg);
}

/* ══════════════════════════════════════════════════════════════════
 * 20. RESOURCE PAGE / DETAIL
 * ══════════════════════════════════════════════════════════════════ */
.resource-page__hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: flex-end;
  padding: clamp(36px, 5vw, 64px) var(--page-pad) 56px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.resource-page__hero h1 {
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.08; letter-spacing: -.028em;
  font-weight: 500; margin: 0;
}
.resource-page__hero p {
  font-size: 14px; color: var(--muted); line-height: 1.95;
  max-width: 320px; margin: 0; padding-bottom: 6px;
}

.resource-section {
  padding: 0 var(--page-pad) 56px;
  max-width: var(--max-w); margin: 0 auto;
}
.resource-section--bordered {
  border-top: 1px solid var(--line);
  padding-bottom: 96px;
}
.resource-section__head {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 28px;
}
.resource-section__head h2 {
  font-size: 22px; font-weight: 500;
  letter-spacing: -.015em; margin: 0;
}
.resource-section__head .head-sub {
  font-size: 13px; color: var(--muted);
}

.results-count {
  font-size: 12px; color: var(--muted);
  margin-bottom: 28px; letter-spacing: .5px;
}
.results-count strong { color: var(--ink); }

.empty-state {
  padding: 80px 0; text-align: center;
  color: var(--muted); font-size: 14px;
}
.empty-state a {
  border-bottom: 1px solid var(--muted);
  margin-left: 6px;
}

.load-more-wrap {
  margin-top: 48px;
  display: flex; justify-content: center;
}

/* Resource 詳細頁 */
.resource-detail {
  max-width: var(--max-w); margin: 0 auto;
  padding: clamp(36px, 5vw, 56px) var(--page-pad) 96px;
}
.resource-detail__back {
  font-size: 13px; color: var(--muted);
  display: inline-block; margin-bottom: 28px;
}
.resource-detail__meta {
  font-size: 11px; color: var(--truffle);
  letter-spacing: 2px; text-transform: uppercase;
  margin: 20px 0 16px;
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.resource-detail__title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 500; letter-spacing: -.025em;
  line-height: 1.15; margin: 0 0 16px;
}
.resource-detail__excerpt {
  font-size: 17px; color: var(--muted);
  line-height: 1.85; margin: 0 0 32px;
  max-width: 640px;
}
.resource-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  margin-bottom: 56px;
  align-items: start;
}
.resource-detail__cover {
  width: 100%;
  aspect-ratio: 3/2;
  background: var(--sand);
  overflow: hidden;
  border-radius: var(--r-sm);
}
.resource-detail__cover img,
.resource-detail__cover .rc-thumb-fallback {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.resource-detail__sidebar { font-size: 14px; color: var(--ink); line-height: 1.85; }
.resource-detail__sidebar h3 {
  font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--muted);
  font-weight: 600; margin: 24px 0 10px;
}
.resource-detail__actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 24px;
}
.resource-detail__content {
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.95; color: #2a2a2a;
  max-width: 720px;
}
.resource-detail__content p { margin: 0 0 1.4em; }
.resource-detail__content h2 {
  font-size: 24px; font-weight: 600; margin: 40px 0 14px;
}

/* ══════════════════════════════════════════════════════════════════
 * 21. SINGLE POST
 * ══════════════════════════════════════════════════════════════════ */
.single-post {
  max-width: var(--reading-w);
  margin: 0 auto;
  padding: 56px var(--page-pad) 24px;
}
.single-post .back-link {
  font-size: 13px; color: var(--muted);
}
.single-post .entry-meta {
  font-size: 11px; color: var(--truffle);
  letter-spacing: 2px; text-transform: uppercase;
  margin: 40px 0 16px;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.single-post .entry-meta a { color: inherit; }
.single-post .entry-title {
  font-size: 42px; line-height: 1.22;
  letter-spacing: -.02em; font-weight: 500;
  margin: 0 0 24px;
}
.single-post .entry-byline {
  display: flex; align-items: center; gap: 16px;
  font-size: 12px; color: var(--muted);
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.single-post .post-thumbnail { margin-top: 32px; }

.single-post .entry-content {
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.95; color: #2a2a2a; margin-top: 40px;
}
.single-post .entry-content p { margin: 0 0 1.4em; }
.single-post .entry-content h2 {
  font-size: 26px; font-weight: 600; margin: 48px 0 16px; letter-spacing: -.2px;
}
.single-post .entry-content h3 {
  font-size: 22px; font-weight: 600; margin: 40px 0 16px; letter-spacing: -.2px;
}
.single-post .entry-content blockquote {
  font-size: 22px; line-height: 1.6; font-weight: 500;
  color: var(--ink); margin: 40px 0; padding: 0; border-left: none;
  font-family: var(--serif); font-style: italic;
}
.single-post .entry-content ul,
.single-post .entry-content ol { padding-left: 1.4em; }
.single-post .entry-content li { margin-bottom: .5em; }
.single-post .entry-content img {
  width: 100%; height: auto; display: block; margin: 32px 0;
}

.entry-tags {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--line);
}
.entry-tags__label,
.entry-share__label {
  font-size: 11px; color: var(--muted);
  letter-spacing: 2px; text-transform: uppercase;
}
.tag-link {
  font-size: 12px; padding: 4px 12px;
  background: transparent; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-pill);
}

.entry-share {
  display: flex; align-items: center; gap: 14px;
  margin-top: 32px; font-size: 12px; color: var(--muted);
}
.entry-share a {
  border-bottom: 1px solid var(--muted);
  padding-bottom: 1px;
}

.related-section {
  max-width: var(--max-w);
  margin: 48px auto 0;
  padding: 48px var(--page-pad) 0;
  border-top: 1px solid var(--line);
}
.related-section h2 {
  font-size: 24px; font-weight: 500; letter-spacing: -.015em;
  margin: 0 0 32px;
}
.related-section h2 .head-sub {
  color: var(--muted); font-size: 13px; font-weight: 400; margin-left: 10px;
}

/* Prev / Next */
.prev-next-nav {
  max-width: var(--max-w); margin: 56px auto 0;
  padding: 40px var(--page-pad) 96px;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.prev-next-nav a {
  display: block; padding: 24px 28px;
  border: 1px solid var(--line);
  transition: border-color .2s;
  text-decoration: none; color: var(--ink);
}
.prev-next-nav a:hover { border-color: var(--ink); }
.prev-next-nav .pn-label {
  font-size: 11px; color: var(--muted);
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 10px;
}
.prev-next-nav .pn-title {
  font-size: 16px; font-weight: 500; line-height: 1.5;
}
.prev-next-nav .pn-next { text-align: right; }

/* ══════════════════════════════════════════════════════════════════
 * 22. FOOTER
 * ══════════════════════════════════════════════════════════════════ */
.site-footer {
  padding: clamp(40px, 6vw, 64px) var(--page-pad) 32px;
  background: var(--cream); margin-top: 48px; color: var(--ink);
}
.site-footer .footer-grid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
}
.site-footer .footer-brand-row {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.site-footer .footer-brand .site-title {
  font-weight: 600; font-size: 15px;
}
.site-footer .footer-tagline {
  font-size: 13px; color: rgba(17, 17, 17, .7);
  max-width: 280px; margin: 6px 0 0; line-height: 1.85;
}
.site-footer .footer-col-title {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(17, 17, 17, .55); margin-bottom: 14px;
}
.site-footer .footer-nav a {
  display: block; font-size: 13px; margin-bottom: 8px;
  transition: color .15s;
}
.site-footer .footer-nav a:hover { color: var(--navy); }
.site-footer .footer-social {
  display: flex; gap: 18px; color: var(--ink);
}
.site-footer .footer-social a { transition: opacity .2s; }
.site-footer .footer-social a:hover { opacity: .6; }
.site-footer .footer-bottom {
  max-width: var(--max-w); margin: 48px auto 0;
  padding-top: 20px; border-top: 1px solid rgba(17, 17, 17, .15);
  font-size: 11px; color: rgba(17, 17, 17, .6);
  display: flex; justify-content: space-between;
}

/* ══════════════════════════════════════════════════════════════════
 * 23. FRONT PAGE / HOME
 * ══════════════════════════════════════════════════════════════════ */
.home-hero {
  padding: clamp(36px, 6vw, 56px) var(--page-pad) 72px;
  max-width: var(--max-w); margin: 0 auto;
}
.home-hero__banner {
  width: 100%; aspect-ratio: 21 / 9;
  overflow: hidden; border-radius: var(--r-sm);
  margin-bottom: clamp(36px, 5vw, 64px);
}
.home-hero__banner img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.home-hero__intro {
  font-family: var(--serif);
  font-weight: 400; font-size: 22px;
  line-height: 2.1; color: var(--ink);
  letter-spacing: .02em;
  max-width: 720px;
}
.home-hero__intro p { margin: 0 0 18px; line-height: 2; font-size: 14px; }
.home-hero__intro .divider {
  width: 60px; height: 1px; background: var(--line); margin: 10px 0;
}
.home-hero__intro .signature {
  font-family: var(--hand); color: var(--truffle); font-size: 32px;
}
.home-hero__cta {
  margin-top: 48px;
  display: flex; gap: 12px;
}

.home-section {
  padding: clamp(40px, 6vw, 72px) var(--page-pad);
  max-width: var(--max-w); margin: 0 auto;
  border-top: 1px solid var(--line);
}
.home-section__head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 40px; flex-wrap: wrap; gap: 12px;
}
.home-section__head h2 {
  font-size: 30px; font-weight: 500;
  letter-spacing: -.015em; margin: 0;
  display: flex; align-items: center; gap: 10px;
}
.home-section__head h2 img {
  width: 26px; height: 26px;
  filter: brightness(0) saturate(100%) invert(72%) sepia(60%) saturate(600%) hue-rotate(340deg) brightness(100%) contrast(95%);
}
.home-section__head .more-link {
  font-size: 13px; color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: color .15s, border-color .15s;
}
.home-section__head .more-link:hover { color: var(--navy); border-color: var(--navy); }

/* ══════════════════════════════════════════════════════════════════
 * 24. ABOUT PAGE
 * ══════════════════════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(36px, 6vw, 64px) var(--page-pad) 96px;
  max-width: var(--max-w); margin: 0 auto;
}
.about-photo {
  position: sticky; top: 96px; align-self: flex-start;
  width: 100%; aspect-ratio: 4/5;
  overflow: hidden; border-radius: var(--r-sm);
}
.about-photo img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center top; display: block;
}
.about-content { font-size: 17px; line-height: 1.95; color: #2a2a2a; }
.about-content h1 {
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1.1; letter-spacing: -.025em;
  font-weight: 500; margin: 0 0 32px;
}

/* About 內文段落 — 統一節奏 */
.about-content .entry-content p {
  margin: 0 0 1em;
  line-height: 1.95;
}

/* About 列表 — 用 ▶ 取代預設圓點，字體略縮、項目名稱加粗 */
.about-content .entry-content ul {
  list-style: none;
  padding-left: 0;
  margin: 8px 0 24px;
}
.about-content .entry-content ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  line-height: 1.85;
  font-size: 14px;          /* 比內文小一點 */
  color: #444;
}
.about-content .entry-content ul li::before {
  content: '▶';
  position: absolute;
  left: 4px;
  top: 2px;
  color: var(--ink);
  font-size: 10px;
  line-height: 1.95;
}
.about-content .entry-content ul li strong {
  font-weight: 600;
  color: var(--ink);        /* 粗體部分顏色更深一點 */
}

/* ══════════════════════════════════════════════════════════════════
 * 25. CONTACT PAGE
 * ══════════════════════════════════════════════════════════════════ */
.contact-grid {
  padding: clamp(36px, 6vw, 64px) var(--page-pad) 96px;
  max-width: var(--max-w); margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 5vw, 72px);
}
.contact-info h1 {
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.1; letter-spacing: -.025em;
  font-weight: 500; margin: 0 0 36px;
}
.contact-info p {
  font-size: 15px; color: var(--muted);
  line-height: 1.95; max-width: 340px;
}
.contact-info__channels {
  margin-top: 48px; font-size: 13px;
  color: var(--muted); line-height: 2;
}
.contact-info__channels a { color: var(--muted); }

/* Contact Form */
.contact-field {
  margin-bottom: 24px; padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.contact-field.has-error { border-bottom-color: var(--truffle); }
.contact-field label {
  display: block; font-size: 11px;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.contact-field input,
.contact-field textarea {
  width: 100%; border: none; background: transparent;
  font-size: 16px; outline: none;
  color: var(--ink); resize: vertical;
}
.contact-field .field-error {
  font-size: 12px; color: var(--truffle); margin-top: 6px;
}
.form-sent {
  display: none; margin-top: 20px;
  font-size: 14px; color: var(--moss);
}
.form-sent.is-visible { display: block; }

/* ══════════════════════════════════════════════════════════════════
 * 26. IN CASE / HOTLINES
 * ══════════════════════════════════════════════════════════════════ */
.incase-page {
  max-width: 820px; margin: 0 auto;
  padding: clamp(36px, 5vw, 50px) var(--page-pad) 96px;
}
.incase-page h1 {
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.1; letter-spacing: -.025em;
  font-weight: 500; margin: 0 0 24px;
}
.incase-intro {
  font-size: 15px; color: var(--muted);
  line-height: 1.95; max-width: 560px; margin: 0 0 8px;
}

.hotline-section { margin: 48px 0 0; }
.hotline-section--emergency {
  padding-top: 28px;
  border-top: 2px solid var(--ink);
}
.hotline-section h2 {
  font-size: 26px; font-weight: 500;
  letter-spacing: -.015em; margin: 0 0 8px;
}
.hotline-section__note {
  font-size: 13px; color: var(--muted);
  line-height: 1.85; margin: 0 0 16px;
  max-width: 560px;
}
.hotline-section--emergency .hotline-section__note {
  font-size: 17px; color: var(--ink); margin-bottom: 32px;
}
.hotline-section__emergency-label {
  font-size: 11px; letter-spacing: 2.4px;
  text-transform: uppercase; color: var(--truffle);
  font-weight: 600; margin-bottom: 16px;
}

.emergency-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.emergency-grid a {
  padding: 25px 4px 28px;
  text-decoration: none; color: var(--ink);
  transition: opacity .2s;
}
.emergency-grid a:first-child {
  border-right: 1px solid var(--line);
}
.emergency-grid a:hover { opacity: .6; }
.emergency-grid .em-num {
  font-family: var(--serif);
  font-weight: 500; font-size: 60px;
  line-height: 1; letter-spacing: -.01em;
}
.emergency-grid .em-label {
  font-size: 12px; color: var(--muted);
  margin-top: 14px; letter-spacing: 2px;
  text-transform: uppercase;
}

.hotline-list {
  border-top: 1px solid var(--line);
}
.hotline-row {
  display: grid;
  grid-template-columns: minmax(200px, auto) 1fr;
  gap: 24px; align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.hotline-number {
  font-family: var(--serif); font-size: 30px;
  font-weight: 500; letter-spacing: .01em;
  color: var(--ink); line-height: 1.1;
  white-space: nowrap;
  text-decoration: none; transition: opacity .2s;
  justify-self: center; text-align: center;
  opacity: .6;
}
.hotline-number:hover { opacity: 1; }
.hotline-info .hotline-name { font-size: 15px; color: var(--ink); margin-bottom: 4px; }
.hotline-info .hotline-name a {
  text-decoration: none; color: var(--ink); transition: opacity .2s;
}
.hotline-info .hotline-name a:hover { opacity: .6; }
.hotline-info .hotline-sub { color: var(--muted); margin-left: 8px; font-size: 13px; }
.hotline-info .hotline-link { font-size: 12px; color: var(--muted); }
.hotline-info .hotline-hours {
  font-size: 12px; color: var(--muted);
  line-height: 1.7; letter-spacing: .02em;
}

.disclaimer {
  margin-top: 80px; padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted); line-height: 2;
}
.disclaimer p { margin: 0 0 6px; }
.disclaimer p:last-child { margin: 0; }

/* ══════════════════════════════════════════════════════════════════
 * 27. PAGINATION
 * ══════════════════════════════════════════════════════════════════ */
.pagination {
  margin-top: 48px;
  display: flex; justify-content: center; gap: 8px; flex-wrap: wrap;
}
.pagination .page-numbers {
  padding: 8px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--line); font-size: 13px;
  color: var(--ink); transition: all .15s;
}
.pagination .page-numbers:hover { border-color: var(--ink); }
.pagination .page-numbers.current {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}

/* ══════════════════════════════════════════════════════════════════
 * 28. KEYFRAMES & UTILITIES
 * ══════════════════════════════════════════════════════════════════ */
@keyframes spin { to { transform: rotate(360deg); } }

.is-loading { opacity: .5; pointer-events: none; transition: opacity .2s; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ══════════════════════════════════════════════════════════════════
 * 29. RESPONSIVE
 * ══════════════════════════════════════════════════════════════════ */
@media (max-width: 980px) {
  .footer-grid    { grid-template-columns: 1fr 1fr !important; }
  .posts-grid-3   { grid-template-columns: 1fr 1fr !important; }
  .resources-grid-3 { grid-template-columns: 1fr 1fr !important; }
  .grid-3         { grid-template-columns: 1fr 1fr !important; }
  .about-grid     { grid-template-columns: 1fr !important; }
  .contact-grid   { grid-template-columns: 1fr !important; }
  .resource-detail__grid { grid-template-columns: 1fr !important; }
  .resource-page__hero   { grid-template-columns: 1fr !important; gap: 16px; }
  .about-photo { position: static; }
}

@media (max-width: 720px) {
  .post-list-row {
    grid-template-columns: 1fr !important;
    gap: 6px !important; padding: 18px 0 !important;
  }
  .post-list-row .pl-num,
  .post-list-row .pl-date,
  .post-list-row .pl-cat,
  .post-list-row .pl-read,
  .post-list-row .pl-arrow { text-align: left !important; }
  .prev-next-nav { grid-template-columns: 1fr !important; }
  .prev-next-nav .pn-next { text-align: left !important; }
}

@media (max-width: 640px) {
  .main-navigation { display: none !important; }
  .site-header { grid-template-columns: 1fr auto !important; padding: 14px 18px !important; }
  .posts-grid-3,
  .resources-grid-3,
  .grid-3 { grid-template-columns: 1fr !important; gap: 28px !important; }
  .series-item { flex: 0 0 80% !important; }
  .footer-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
  .back-top { right: 16px; bottom: 16px; width: 40px; height: 40px; }
  .single-post .entry-title { font-size: 30px; line-height: 1.25; }
  .filter-bar { flex-direction: column; align-items: flex-start; }
  .search-field { width: 100%; }
  .cyu-sort-bar { width: 100%; justify-content: flex-start; }
  .filter-bar__pills { width: 100%; }
  .emergency-grid .em-num { font-size: 44px; }
}

/* ══════════════════════════════════════════════════════════════════
 * 29.5 HOME HERO TYPOGRAPHY FIX (v3.1.4)
 *      強制覆蓋 Jetpack/Block Editor/Site Kit 注入的 system font stack。
 *      這些外掛用 :where(body)（特異度 0）注入英文系統字型，
 *      導致中文 fallback 不一致。下面用 html body.home main 的高特異度蓋掉。
 * ══════════════════════════════════════════════════════════════════ */
html body main .home-hero__intro,
html body main .home-hero__intro p,
html body main .home-hero__intro em,
html body main .home-hero__intro span,
html body main .home-hero__intro div {
  font-family:
    "Noto Sans TC",
    "PingFang TC",
    "Hiragino Sans CNS",
    "Microsoft JhengHei",
    "微軟正黑體",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  font-style: normal !important;
  line-height: 1.95 !important;
  letter-spacing: 0.01em !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* 段落間距 — 保持垂直節奏一致 */
html body main .home-hero__intro p {
  margin: 0 0 0.6em !important;
}

html body main .home-hero__intro p:last-child {
  margin-bottom: 0 !important;
}

/* 中段 em「好」「Tia」也用同字型，只改顏色與字重 */
html body main .home-hero__intro em.serif-em {
  font-family: inherit !important;
  font-style: normal !important;
  color: var(--navy) !important;
  font-weight: 500 !important;
}

/* 分隔線上下留呼吸 */
html body main .home-hero__intro .divider {
  margin: 1.5em 0 !important;
  width: 60px;
  height: 1px;
  background: var(--line);
}

/* 簽名「say Hi」用手寫字型 */
html body main .home-hero__intro .signature {
  font-family: var(--hand), cursive !important;
  color: var(--truffle) !important;
  font-size: 28px !important;
}

/* ══════════════════════════════════════════════════════════════════
 * 29.6 BLOG ARCHIVE — sort bar / spinner / all-loaded / h2 helper (v3.2)
 * ══════════════════════════════════════════════════════════════════ */

/* h2 helper（取代 inline style；archive / single 共用） */
.cyu-h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
  letter-spacing: -.015em;
  margin: 0;
}
.cyu-h2 .head-sub,
.related-section h2 .head-sub {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 10px;
}

/* 搜尋框圖示對齊 */
.search-field .cyu-search-icon { color: var(--muted); flex-shrink: 0; }

/* 排序列 */
.cyu-sort-bar {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px;
  flex-wrap: wrap;
}
.cyu-sort-label {
  color: var(--muted);
  letter-spacing: 1.5px;
  font-size: 11px;
  text-transform: uppercase;
}
.cyu-sort-btn { font-size: 12.5px; }

/* 載入指示器 */
.cyu-load-more {
  padding: 40px 0;
  text-align: center;
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}
.cyu-load-more[hidden] { display: none; }

.cyu-spinner {
  width: 14px; height: 14px;
  border: 2px solid var(--line);
  border-top-color: var(--truffle);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: inline-block;
}

/* 全部載完提示 */
.cyu-all-loaded {
  padding: 40px 0;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 2px;
}
.cyu-all-loaded[hidden] { display: none; }

/* Single post：分類連結 hover */
.single-post .entry-meta .cat-links a { color: var(--truffle); }
.single-post .entry-meta .cat-links a:hover { opacity: .7; }
.single-post .entry-meta .entry-sep { opacity: .6; }

/* Tag cloud — 標籤雲計數 */
.tag-cloud .cyu-tag-count {
  font-size: 11px;
  opacity: .55;
  margin-left: 4px;
}
.tag-cloud__desc {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 24px;
  line-height: 1.7;
}
.tag-cloud-section { padding-bottom: 24px; }

/* Post list row：標題 + 摘要堆疊（避免 hover 摘要彈出時擠位） */
.post-list-row > div {
  min-width: 0;
  overflow: hidden;
}
.post-list-row .entry-title {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
}
.post-list-row:hover .entry-title {
  white-space: normal;
}

/* Post list row：摘要 hover 才出現 */
.post-list-row .entry-summary {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
  max-width: 540px;
  display: none;
  line-height: 1.7;
}
.post-list-row:hover .entry-summary { display: block; }

/* Filter bar：兩列（搜尋框列 / pill+sort 列）的視覺節奏 */
.filter-bar + .filter-bar { padding-top: 4px; }

/* ══════════════════════════════════════════════════════════════════
 * 29.7 COMMENTS（v3.2.1）
 * ══════════════════════════════════════════════════════════════════ */
.cyu-comments {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.85;
}
.cyu-comments__title {
  font-size: 22px; font-weight: 500;
  letter-spacing: -.015em; margin: 0 0 24px;
}
.cyu-comments__title .head-sub { font-size: 13px; color: var(--muted); margin-left: 6px; }

.cyu-comments__list { list-style: none; padding: 0; margin: 0 0 32px; }
.cyu-comments__list li.comment,
.cyu-comments__list li.pingback {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.cyu-comments__list .comment-author {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 8px;
  font-weight: 600; font-size: 14px;
}
.cyu-comments__list .comment-author .avatar { border-radius: 50%; }
.cyu-comments__list .comment-meta { font-size: 11px; color: var(--muted); margin-bottom: 8px; letter-spacing: .5px; }
.cyu-comments__list .comment-meta a { color: inherit; }
.cyu-comments__list .reply { margin-top: 6px; font-size: 12px; }
.cyu-comments__list .reply a { color: var(--truffle); border-bottom: 1px solid var(--truffle); }
.cyu-comments__list .children { list-style: none; padding-left: 24px; margin-top: 16px; border-left: 1px solid var(--line); }

.cyu-comments__notes { font-size: 12px; color: var(--muted); margin: 0 0 16px; }
.cyu-comments__closed { font-size: 13px; color: var(--muted); padding: 16px 0; }

/* 留言表單 */
.comment-respond {
  margin-top: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.comment-respond .comment-reply-title {
  font-size: 18px; font-weight: 500; letter-spacing: -.015em;
  margin: 0 0 16px;
}
.comment-form-comment label,
.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
  display: block;
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.comment-form-comment textarea,
.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
  width: 100%; max-width: 100%;
  padding: 10px 12px;
  font-size: 14px; font-family: inherit;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  outline: none; transition: border-color .15s;
}
.comment-form-comment textarea:focus,
.comment-form-author input:focus,
.comment-form-email input:focus,
.comment-form-url input:focus { border-color: var(--ink); }
.comment-form > p { margin: 0 0 16px; }
.comment-form-cookies-consent label { font-size: 12px; color: var(--muted); display: inline; margin-left: 4px; letter-spacing: 0; text-transform: none; }
.form-submit { margin-top: 8px; }

/* ══════════════════════════════════════════════════════════════════
 * 30. WP CORE OVERRIDES
 * ══════════════════════════════════════════════════════════════════ */
.alignleft   { float: left; margin-right: 1.5em; }
.alignright  { float: right; margin-left: 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; display: block; }
.alignwide   { max-width: calc(var(--max-w) + 120px); margin-left: auto; margin-right: auto; }
.alignfull {
  width: 100vw; position: relative; left: 50%; right: 50%;
  margin-left: -50vw; margin-right: -50vw;
}

/* WP Admin Bar offset */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
