/* 随轩 · chrome
   Everything that frames a page in any room: the skip link, the bar's two menus (hanging boards for the topics,
   book spines for the series), the phone drawer that rolls down like a blind, the search overlay, footer extras,
   pagination, page heads, card grids, link and tag previews, and the plain WordPress content inside the text. */

/* ---------- skip link ---------- */
.skip { position: absolute; left: 12px; top: -64px; z-index: 100; padding: 10px 16px; background: #1F1B17; color: #FFFFFF; font: 500 14px/1.4 var(--f-ui, sans-serif); text-decoration: none; border-radius: 0 0 8px 8px; transition: top .2s; }
.skip:focus { top: 0; outline: 2px solid #C23A2E; outline-offset: 2px; }

.yh { position: relative; }

/* ---------- the bar's menu ---------- */
.nav { display: flex; align-items: center; gap: 22px; }
.nav__i { display: flex; align-items: center; gap: 1px; }
.nav__x {
  display: inline-grid; place-items: center; width: 22px; height: 28px; margin-right: -6px; border-radius: 5px;
  color: inherit; opacity: .62; transition: transform .3s cubic-bezier(.3, 1.4, .5, 1), opacity .2s, background-color .2s;
}
.nav__x svg { width: 14px; height: 14px; }
.nav__x:hover, .nav__i.is-open .nav__x { opacity: 1; background: color-mix(in srgb, currentColor 11%, transparent); }
.nav__i.is-open .nav__x { transform: rotate(180deg); }

/* both drop-downs hang from the bar and keep the hall's own colours in every room */
.dd {
  --ink: #1F1B17; --muted: #57534D; --line: rgba(31, 27, 23, .16);
  position: absolute; z-index: 46; top: 100%; left: max(20px, calc((100% - 1240px) / 2 - 10px));
  width: max-content; max-width: calc(100% - 40px);
  padding: 0 26px 16px; color: var(--ink);
  background: #ECEDE8 url("../img/tex-plaster.png");
  border-radius: 0 0 12px 12px;
  box-shadow: 0 34px 60px -28px rgba(20, 16, 12, .6), 0 1px 0 rgba(31, 27, 23, .12), 0 0 0 1px rgba(31, 27, 23, .1);
  font: 400 15px/1.6 var(--f-ui); letter-spacing: 0; text-transform: none; text-align: left;
  visibility: hidden; opacity: 0; clip-path: inset(0 -60px 100% -60px);
  transition: clip-path .28s cubic-bezier(.4, 0, .2, 1), opacity .2s .08s, visibility 0s .3s;
}
.nav__i.is-open > .dd {
  visibility: visible; opacity: 1; clip-path: inset(0 -60px -90px -60px);
  transition: clip-path .46s cubic-bezier(.16, 1, .3, 1), opacity .12s, visibility 0s;
}
.dd__foot { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed rgba(31, 27, 23, .28); font-size: 14px; }
.dd__foot a { color: var(--ink); text-decoration: none; border-bottom: 1px solid rgba(31, 27, 23, .4); }
.dd__foot a:hover { color: #C23A2E; border-bottom-color: currentColor; }

/* 主题: eight boards drop from a wooden rail and swing */
.dd--rooms::before {
  content: ""; display: block; height: 12px; margin: 0 -14px 0;
  background: linear-gradient(#6A4C39, #3A281D); border-radius: 0 0 4px 4px; box-shadow: 0 6px 10px -6px rgba(0, 0, 0, .55);
}
.dd__plaques { display: grid; grid-template-columns: repeat(8, 74px); gap: 12px; }
.dd .plq { padding-top: 24px; animation: none; }
.dd .plq::before { height: 24px; top: 0; }
.dd .plq::after { display: none; }
.dd .plq > a { height: 188px; padding: 14px 2px 10px; transform-origin: 50% -24px; }
.dd .plq__name { font-size: 17px; letter-spacing: .1em; }
.dd .plq.sk-cult .plq__name, .dd .plq.sk-web3 .plq__name, .dd .plq.sk-site .plq__name { font-size: 18px; }
.dd .plq.sk-teach .plq__name { font-size: 22px; }
.dd .plq.sk-life .plq__name { font-size: 19px; }
.dd .plq.sk-phil > a::after { bottom: 30px; }
.dd .plq__n { font-size: 11px; }
.dd .plq.sk-teach .plq__n, .dd .plq.sk-life .plq__n { font-size: 15px; }
.nav__i.is-open .dd .plq { animation: dd-drop .8s cubic-bezier(.34, 1.56, .64, 1) both; }
.dd .plq:nth-child(2) { animation-delay: 35ms; } .dd .plq:nth-child(3) { animation-delay: 70ms; } .dd .plq:nth-child(4) { animation-delay: 105ms; }
.dd .plq:nth-child(5) { animation-delay: 140ms; } .dd .plq:nth-child(6) { animation-delay: 175ms; } .dd .plq:nth-child(7) { animation-delay: 210ms; }
.dd .plq:nth-child(8) { animation-delay: 245ms; }
@keyframes dd-drop { from { opacity: 0; transform: translateY(-40px) rotate(-8deg); } 45% { opacity: 1; } 70% { transform: translateY(3px) rotate(2deg); } to { opacity: 1; transform: none; } }

/* 精选: seven spines stand up on a shelf */
.dd--series { padding-top: 22px; }
.dd__spines {
  display: flex; align-items: flex-end; gap: 7px; padding: 0 12px; min-height: 214px;
  border-bottom: 13px solid #5A3E2D; box-shadow: 0 12px 14px -10px rgba(0, 0, 0, .45);
  background: linear-gradient(rgba(58, 40, 29, 0) 70%, rgba(58, 40, 29, .12));
}
.spine { --h: 196px; flex: none; }
.spine > a {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  width: 52px; height: var(--h); padding: 14px 0 10px; color: var(--sk-ink); background: var(--sk-bg); text-decoration: none;
  border-radius: 3px 3px 1px 1px; transform-origin: 50% 100%;
  box-shadow: inset 4px 0 0 rgba(255, 255, 255, .16), inset -5px 0 0 rgba(0, 0, 0, .16), 0 0 0 1px rgba(0, 0, 0, .12);
  transition: transform .34s cubic-bezier(.3, 1.6, .5, 1);
}
.spine > a::before, .spine > a::after { content: ""; position: absolute; left: 6px; right: 6px; height: 2px; background: currentColor; opacity: .35; }
.spine > a::before { top: 7px; } .spine > a::after { bottom: 30px; }
.spine > a:hover, .spine > a:focus-visible { transform: translateY(-12px) rotate(-3deg); }
.spine__t { writing-mode: vertical-rl; max-height: calc(var(--h) - 58px); overflow: hidden; font-family: var(--sk-ft); font-weight: var(--sk-fw); font-size: 16px; line-height: 1.1; letter-spacing: .1em; white-space: nowrap; }
.spine__n { font-size: 11px; color: var(--sk-muted); font-variant-numeric: tabular-nums; }
.spine.sk-phil > a { background: #EFECE4 url("../img/tex-paper.png"); }
.spine.sk-phil .spine__t { font-family: var(--f-serif); font-weight: 900; }
.spine.sk-hps > a { background: linear-gradient(90deg, #4E171B, #6A2328 40%, #4E171B); color: #EADBB4; }
.spine.sk-hps .spine__n { color: #C9B27C; }
.spine.sk-cult > a { background: #FFD23F; color: #141414; box-shadow: inset 0 0 0 2px #141414; }
.spine.sk-ai > a { background: #F7F8F9; border-top: 9px solid transparent; border-image: repeating-linear-gradient(-45deg, #F2541B 0 6px, #121619 6px 12px) 9; }
.spine.sk-web3 > a { background: #1D2B53; color: #FFA300; box-shadow: 0 0 0 3px #FFF1E8 inset; }
.spine.sk-web3 .spine__t { font-family: var(--f-pixel); font-size: 15px; letter-spacing: 0; }
.spine.sk-web3 .spine__n { color: #29ADFF; font-family: var(--f-pixel); }
.spine.sk-life > a { background: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(46, 43, 40, .18); }
.spine.sk-life > a::before { left: -4px; right: -4px; top: -6px; height: 14px; opacity: 1; background: repeating-linear-gradient(45deg, rgba(247, 198, 181, .95) 0 5px, rgba(242, 178, 158, .95) 5px 10px); transform: rotate(-4deg); }
.nav__i.is-open .spine { animation: dd-rise .6s cubic-bezier(.2, 1.3, .4, 1) both; }
.spine:nth-child(2) { animation-delay: 40ms; } .spine:nth-child(3) { animation-delay: 80ms; } .spine:nth-child(4) { animation-delay: 120ms; }
.spine:nth-child(5) { animation-delay: 160ms; } .spine:nth-child(6) { animation-delay: 200ms; } .spine:nth-child(7) { animation-delay: 240ms; }
@keyframes dd-rise { from { opacity: 0; transform: translateY(56px); } 40% { opacity: 1; } to { opacity: 1; transform: none; } }
:lang(en) .spine__t { font-size: 12px; line-height: 1.25; letter-spacing: .01em; white-space: normal; }

/* no script: the menus still open on hover and keyboard focus */
html:not(.js) .nav__i:hover > .dd, html:not(.js) .nav__i:focus-within > .dd { visibility: visible; opacity: 1; clip-path: inset(0 -60px -90px -60px); }

/* ---------- phone drawer: a blind that rolls down ---------- */
.drawer { position: fixed; inset: 0; z-index: 80; display: flex; justify-content: flex-end; background: rgba(20, 16, 12, 0); transition: background-color .35s; }
.drawer[hidden] { display: none; }
.drawer.is-open { background: rgba(20, 16, 12, .5); }
.drawer__in {
  --ink: #1F1B17; --muted: #57534D; --line: rgba(31, 27, 23, .16);
  position: relative; width: min(430px, 100%); height: 100%; overflow-y: auto; overscroll-behavior: contain;
  padding: 0 22px 44px; color: var(--ink); background: #ECEDE8 url("../img/tex-plaster.png");
  font: 400 15px/1.6 var(--f-ui);
  clip-path: inset(0 0 100% 0); transition: clip-path .55s cubic-bezier(.65, 0, .35, 1);
}
.drawer.is-open .drawer__in { clip-path: inset(0 0 0 0); }
.drawer__top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; margin: 0 -22px; padding: 10px 16px 10px 22px; background: #ECEDE8; border-bottom: 10px solid #4A3426; box-shadow: 0 6px 10px -6px rgba(0, 0, 0, .5); }
.drawer__home { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--f-brush); font-size: 24px; }
.drawer__home img { width: 36px; height: 36px; mix-blend-mode: multiply; }
.drawer__x { width: 42px; height: 42px; padding: 0; justify-content: center; border: 1px solid var(--line); border-radius: 21px; }
.drawer__search { display: flex; gap: 8px; margin: 18px 0 8px; }
.drawer__search input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 23px; background: #F6F7F3; font: inherit; color: var(--ink); }
.drawer__search button { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 23px; background: var(--ink); color: #F6F7F3; }
.drawer__search svg { width: 18px; height: 18px; }
.drawer__nav { display: grid; }
.drawer__big { display: block; padding: 12px 2px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-family: var(--f-disp); font-size: 26px; letter-spacing: .08em; }
.drawer__big:hover { color: #C23A2E; }
.drawer__rooms { display: flex; flex-wrap: wrap; gap: 7px; padding: 12px 0 16px; border-bottom: 1px solid var(--line); }
.drawer__series { display: grid; gap: 2px; padding: 8px 0 14px; border-bottom: 1px solid var(--line); }
.drawer__series a { display: flex; align-items: center; gap: 10px; padding: 7px 2px; color: var(--ink); text-decoration: none; font-size: 15px; }
.drawer__series i { width: 10px; height: 26px; flex: none; background: var(--sk-bg); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); }
.drawer__series .sk-cult { background: #FFD23F; } .drawer__series .sk-hps { background: #6A2328; } .drawer__series .sk-web3 { background: #1D2B53; }
.drawer__lang { margin-top: 22px; }
.drawer__lang a { color: var(--ink); }
.drawer.is-open .drawer__nav > * { animation: dr-in .5s cubic-bezier(.2, .8, .2, 1) both; }
.drawer.is-open .drawer__nav > :nth-child(2) { animation-delay: .05s; } .drawer.is-open .drawer__nav > :nth-child(3) { animation-delay: .1s; }
.drawer.is-open .drawer__nav > :nth-child(4) { animation-delay: .15s; } .drawer.is-open .drawer__nav > :nth-child(5) { animation-delay: .2s; }
.drawer.is-open .drawer__nav > :nth-child(6) { animation-delay: .25s; } .drawer.is-open .drawer__nav > :nth-child(7) { animation-delay: .3s; }
.drawer.is-open .drawer__nav > :nth-child(8) { animation-delay: .35s; } .drawer.is-open .drawer__nav > :nth-child(9) { animation-delay: .4s; }
.drawer.is-open .drawer__nav > :nth-child(n+10) { animation-delay: .45s; }
@keyframes dr-in { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }

/* ---------- search overlay ---------- */
.sov { position: fixed; inset: 0; z-index: 90; display: grid; justify-items: center; align-items: start; padding: 9vh 16px 16px; background: rgba(20, 16, 12, .52); opacity: 0; transition: opacity .2s; }
.sov[hidden] { display: none; }
.sov.is-open { opacity: 1; }
.sov__in {
  --ink: #1F1B17; --muted: #5B5650; --line: rgba(31, 27, 23, .13);
  display: flex; flex-direction: column; width: min(740px, 100%); max-height: min(78vh, 760px); overflow: hidden;
  color: var(--ink); background: #F6F7F3; border-radius: 14px; font: 400 15px/1.6 var(--f-ui);
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .5) inset;
  transform: translateY(-18px) scale(.97); transition: transform .34s cubic-bezier(.2, .9, .25, 1.15);
}
.sov.is-open .sov__in { transform: none; }
.sov__form { display: flex; align-items: center; gap: 12px; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--line); }
.sov__form > svg { width: 22px; height: 22px; flex: none; color: var(--muted); }
.sov__form input { flex: 1; min-width: 0; height: 46px; border: 0; background: transparent; font: inherit; font-size: 20px; color: var(--ink); }
.sov__form input:focus { outline: none; }
.sov__form input::-webkit-search-cancel-button { display: none; }
.sov__x { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border-radius: 8px; font-size: 13px; color: var(--muted); }
.sov__x:hover { background: #E7E9E2; color: var(--ink); }
.sov__x kbd { font: 11px/16px var(--f-mono); padding: 0 5px; border: 1px solid var(--line); border-radius: 4px; }
.sov__body { overflow-y: auto; overscroll-behavior: contain; padding: 8px 10px 14px; }
.sov__list:empty { display: none; }
.sov__grp { padding: 12px 10px 4px; font-size: 12.5px; color: var(--muted); }
.sov__opt > a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 10px 12px; border-radius: 9px; color: var(--ink); text-decoration: none; }
.sov__opt b { font-weight: 500; font-size: 16px; line-height: 1.45; }
.sov__opt small { grid-column: 1; font-size: 12.5px; color: var(--muted); }
.sov__opt .bdg { grid-row: 1 / span 2; grid-column: 2; }
.sov__opt[aria-selected="true"] > a, .sov__opt > a:hover { background: #E5E8E0; }
.sov__opt[aria-selected="true"] > a { box-shadow: inset 3px 0 0 #C23A2E; }
.sov__opt mark { padding: 0 1px; background: #F6E39B; color: inherit; border-radius: 2px; }
.sov__tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 8px 6px; }
.sov__tag > a { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); text-decoration: none; font-size: 14px; }
.sov__tag[aria-selected="true"] > a, .sov__tag > a:hover { border-color: var(--ink); background: #E5E8E0; }
.sov__tag small { color: var(--muted); font-size: 12px; }
.sov__all > a { display: block; margin: 8px 2px 0; padding: 12px; border-radius: 9px; color: var(--ink); text-align: center; text-decoration: none; background: #E9EBE5; font-size: 14px; }
.sov__all[aria-selected="true"] > a, .sov__all > a:hover { background: #1F1B17; color: #F6F7F3; }
.sov__msg { padding: 18px 12px; color: var(--muted); }
.sov__empty { padding: 14px 10px 6px; }
.sov.has-q .sov__empty { display: none; }
.sov__hint { font-size: 14px; color: var(--muted); }
.sov__rooms { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }

/* ---------- footer extras ---------- */
.ft__links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; }
.ft__brand p { max-width: 22em; }
.sub { margin-top: 8px; }
.sub__row { display: flex; gap: 8px; }
.sub input[type="email"] { flex: 1; min-width: 0; height: 42px; padding: 0 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--field, color-mix(in srgb, var(--bg) 70%, #FFFFFF)); font: inherit; font-size: 15px; color: var(--ink); }
.sub input[type="email"]::placeholder { color: var(--muted); opacity: .8; }
/* dark pages: a field that is a shade lighter than the page, not grey */
.w-about, .w-study, .w-hps, .w-web3 { --field: rgba(255, 255, 255, .07); }
.sub button { flex: none; height: 42px; padding: 0 18px; border-radius: 8px; background: var(--ink); color: var(--bg); font-size: 15px; transition: background-color .2s; }
.sub button:hover { background: var(--acc); color: var(--acc-ink); }
.sub button[disabled] { opacity: .6; cursor: progress; }
.sub__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sub__note { margin-top: 8px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.sub.is-ok .sub__note { color: var(--acc); }
.sub.is-err .sub__note { color: #B3261E; }

/* ---------- pagination ---------- */
.pg { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 52px; font-variant-numeric: tabular-nums; }
.pg__i { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 13px; border: 1px solid var(--line); border-radius: 21px; color: var(--ink); text-decoration: none; font-size: 14.5px; transition: border-color .2s, background-color .2s, color .2s; }
.pg__i:hover { border-color: var(--ink); }
.pg__i.is-cur { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.pg__gap { align-self: center; padding: 0 4px; color: var(--muted); }
.pg--in { justify-content: flex-start; margin-top: 36px; }

/* ---------- page heads and grids for house pages ---------- */
.ph { padding: 64px 0 8px; }
.ph__k, .ph__up { display: inline-block; margin-bottom: 10px; font-size: 14px; color: var(--muted); text-decoration: none; }
.ph__k a, .ph__up { border-bottom: 1px solid currentColor; text-decoration: none; color: inherit; }
.ph__t { font-family: var(--f-disp); font-weight: 400; font-size: clamp(36px, 5.2vw, 64px); line-height: 1.15; letter-spacing: .04em; text-wrap: balance; }
.ph__t i { margin: 0 .25em; font-style: normal; color: var(--seal); }
.ph__lede { margin-top: 16px; max-width: 40em; font-size: 17px; line-height: 1.85; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 34px 26px; align-items: stretch; }
.cx__none { padding: 40px 0; font-size: 17px; color: var(--muted); }

/* ---------- link previews and tag popovers ---------- */
.lp {
  position: absolute; z-index: 60; width: 320px; pointer-events: auto;
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .28));
  animation: lp-in .22s cubic-bezier(.2, .9, .3, 1.2) both;
}
.lp .card { transform: none; }
.lp .card__x { -webkit-line-clamp: 4; }
.lp__len { font-size: 12.5px; color: var(--sk-muted); }
@keyframes lp-in { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }

.tp {
  --ink: #1F1B17; --muted: #5B5650; --line: rgba(31, 27, 23, .14);
  position: absolute; z-index: 60; width: min(360px, calc(100vw - 24px)); padding: 16px 18px 14px;
  color: var(--ink); background: #F6F7F3; border-radius: 12px; font: 400 14px/1.6 var(--f-ui); text-align: left;
  box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .45), 0 0 0 1px var(--line);
  animation: lp-in .22s cubic-bezier(.2, .9, .3, 1.2) both;
}
.tp h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 18px; font-weight: 700; }
.tp h3 small { font-size: 12.5px; font-weight: 400; color: var(--muted); }
.tp h4 { margin: 12px 0 6px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.tp__tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tp__tags a { padding: 2px 9px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; font-size: 13px; }
.tp__tags a:hover { border-color: var(--ink); }
.tp__posts { display: grid; gap: 2px; }
.tp__posts a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 5px 0; color: var(--ink); text-decoration: none; border-bottom: 1px dashed var(--line); }
.tp__posts a:hover span { text-decoration: underline; }
.tp__posts time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tp__go { display: flex; gap: 16px; margin-top: 12px; font-size: 13.5px; }
.tp__go a { color: var(--ink); }
.tp__x { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 14px; color: var(--muted); }
.tp__x:hover { background: #E5E8E0; color: var(--ink); }

/* ---------- copied toast ---------- */
.toast { position: fixed; z-index: 95; left: 50%; bottom: 28px; padding: 10px 18px; border-radius: 22px; background: #1F1B17; color: #F6F7F3; font: 500 14px/1.4 var(--f-ui); transform: translateX(-50%); animation: toast 1.8s ease both; pointer-events: none; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 12px); } 12%, 82% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -6px); } }

/* ---------- WordPress content inside the text ---------- */
.prose img { height: auto; }
.prose :where(.wp-block-image, .wp-caption, figure) { max-width: 100%; }
.prose :where(.aligncenter) { margin-inline: auto; text-align: center; }
.prose :where(.aligncenter) img { margin-inline: auto; }
.prose :where(img.aligncenter) { display: block; }
.prose .wp-caption { width: auto !important; }
.prose .wp-caption-text, .prose .wp-element-caption { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--muted); text-align: center; text-indent: 0; }
.prose :where(iframe, video, embed, object) { display: block; max-width: 100%; }
.prose iframe[src*="youtube"], .prose iframe[src*="bilibili"], .prose iframe[src*="vimeo"], .prose iframe[src*="youku"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.prose .wp-block-embed__wrapper { position: relative; }
.prose .wp-block-gallery, .prose .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; padding: 0; }
.prose .wp-block-gallery figure, .prose .gallery figure { margin: 0; }
.prose .wp-block-gallery img, .prose .gallery img { width: 100%; height: 100%; object-fit: cover; }
.prose hr { height: 0; margin: 2.2em auto; border: 0; border-top: 1px solid var(--line); width: 40%; }
.prose pre { overflow-x: auto; padding: 14px 16px; font: 14px/1.7 var(--f-mono); background: color-mix(in srgb, var(--ink) 6%, transparent); border-radius: 6px; text-align: left; white-space: pre; }
.prose :not(pre) > code { padding: 1px 5px; font: .88em var(--f-mono); background: color-mix(in srgb, var(--ink) 7%, transparent); border-radius: 4px; }
.prose .tbl { max-width: 100%; overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9em; line-height: 1.7; text-align: left; }
.prose th, .prose td { padding: 8px 10px; border: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 700; background: color-mix(in srgb, var(--ink) 5%, transparent); }
.prose .has-text-align-center { text-align: center; }
.prose .has-text-align-right { text-align: right; }
.prose .wp-block-footnotes { font-size: 14.5px; line-height: 1.8; color: var(--muted); }
.prose .yhbl-note { text-indent: 0; }
.prose .fn a, .prose a[href^="#_ftn"]:not([href^="#_ftnref"]) { text-decoration: none; }
.prose .sn { position: relative; margin: .5em 0 1.3em !important; padding: 10px 14px 10px 16px; font-size: 14px; line-height: 1.75; color: var(--muted); text-align: left; text-indent: 0; border-left: 2px solid var(--acc); background: color-mix(in srgb, var(--ink) 4%, transparent); }
.prose .sn b { margin-right: 6px; color: var(--acc); }
@media (min-width: 900px) {
  .prose .alignleft { float: left; max-width: 46%; margin: .4em 1.6em 1em 0; }
  .prose .alignright { float: right; max-width: 46%; margin: .4em 0 1em 1.6em; }
}

/* the contents list folds into the text column on narrow screens */
.toc-m { display: none; }

/* ---------- phone ---------- */
@container yh (max-width: 760px) {
  .ph { padding-top: 36px; }
  .ph__lede { font-size: 16px; }
  .grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .pg { gap: 5px; }
  .pg__i { min-width: 38px; height: 38px; padding: 0 10px; }
  .sub__row { flex-wrap: nowrap; }
  .lp { display: none; }
}
@media (max-width: 760px) {
  .sov { padding: 0; align-items: stretch; }
  .sov__in { width: 100%; max-height: none; height: 100%; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .dd, .nav__i.is-open > .dd, .drawer__in, .sov__in { transition-duration: .01ms !important; }
  .nav__i.is-open .dd .plq, .nav__i.is-open .spine, .drawer.is-open .drawer__nav > * { animation: none !important; }
}

/* hidden means hidden, whatever display a component sets */
.yh [hidden] { display: none !important; }

/* file downloads and buttons inside the text */
.prose .wp-block-file { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 16px; border: 1px solid var(--line); text-indent: 0; text-align: left; }
.prose .wp-block-file > a:first-of-type:not(.wp-block-file__button) { font-weight: 600; word-break: break-all; }
.prose .wp-block-file__button, .prose .wp-block-button__link { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 18px; background: var(--ink); color: var(--bg) !important; text-decoration: none !important; font-size: 14px; }
.prose .wp-block-file__embed, .prose .wp-block-file object { display: none; }
.prose .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 10px; }

/* answering from your own site (Webmention), folded under every comment form */
.yh-wm { margin-top: 16px; font-size: 13.5px; line-height: 1.7; color: var(--muted); }
.yh-wm summary { cursor: pointer; width: fit-content; }
.yh-wm summary:hover { color: var(--ink); }
.yh-wm form { display: grid; gap: 8px; margin-top: 10px; max-width: 560px; }
.yh-wm label { display: block; font-size: 12.5px; }
.yh-wm input[type="url"] { width: 100%; height: 38px; padding: 0 10px; border: 1px solid var(--line); background: transparent; font: inherit; color: var(--ink); }
.yh-wm input[type="submit"], .yh-wm button[type="submit"] { height: 36px; padding: 0 16px; border: 0; background: var(--ink); color: var(--bg); font: inherit; font-size: 14px; cursor: pointer; }

/* tag chips (end matter, tag pages) */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border: 1px solid var(--line); font-size: 14px; text-decoration: none; }
.tags a:hover { border-color: var(--ink); }

