/* Article panel for pages that don't load custom.css (the homepage uses custom-index.css).
   Copy of the "article pages" block in custom.css — keep the two in sync. */
/* ---------------------------------------------------------------- article pages (/post/<slug>)
   Koto-style: the article is a panel that slides in from the right over a dimmed, blurred page.
   On the blog it opens over the list (js/article-drawer.js); opened directly, /post/<slug> shows the
   same panel over a blurred cover. Built by scrape/tools/build_articles.py. */
html.ar-lock, html.ar-lock body { overflow: hidden; }
/* the site header and clock sit under the article panel, like the vacancy drawer */
html.ar-lock .menu-2-copy, html.ar-lock .menu-2-copy-copy, html.ar-lock .city-clock-trigger,
html.vac-lock:has(.ar-drawer.is-open) .menu-2-copy, html.vac-lock:has(.ar-drawer.is-open) .menu-2-copy-copy, html.vac-lock:has(.ar-drawer.is-open) .city-clock-trigger { visibility: hidden; }
.ar-bg { position: fixed; inset: 0; z-index: 50; background: #0a0a0a center / cover no-repeat; transform: scale(1.12); filter: blur(48px) brightness(.4); }
.ar-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 60; width: max(560px, 50vw); max-width: 100vw; overflow-y: auto; overscroll-behavior: contain; background: #121212; color: #fff; font-family: Taktikasans, sans-serif; transform: translateX(100%); transition: transform .55s cubic-bezier(.65, 0, .35, 1); }
.ar-drawer.is-open { transform: translateX(0); }
.ar-drawer.is-static { transition: none; }
.ar-x { position: fixed; z-index: 61; top: 20px; right: calc(max(560px, 50vw) + 20px); width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 4px; background: #121212; color: #fff; font-size: 24px; line-height: 1; text-decoration: none; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s ease .25s, background-color .2s; }
.ar-x.is-open { opacity: 1; pointer-events: auto; }
.ar-x:hover { background: #262626; }
.ar-panel { padding: 0 28px 72px; }
/* sizes follow koto.com/latest (measured at 1440px): 32px title, 16/20 grey text, 14px source, 12px date, 12px button — all Taktika Sans, no caps (user) */
.ar-p-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; margin: 0 -28px; padding: 28px 28px 20px; background: #121212; }
.ar-p-logo { flex: none; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; border-radius: 4px; background: #f3f1ec; color: #0a0a0a; font-size: 12px; font-weight: 600; letter-spacing: -.01em; text-align: center; line-height: 1; }
.ar-p-src { min-width: 0; }
.ar-p-src b { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 400; line-height: 1.25; }
.ar-p-src time { font-size: 12px; color: #989898; }
.ar-p-full { flex: none; margin-left: auto; padding: 16px 18px; border-radius: 4px; background: #1e1e1e; color: #fff; font-size: 12px; text-decoration: none; transition: background-color .2s; }
.ar-p-full:hover { background: #2a2a2a; }
.ar-p-title { margin: 20px 0 12px; font-size: 32px; font-weight: 400; line-height: 1.15; letter-spacing: -.01em; }
.ar-p-lead { margin: 0 0 24px; font-size: 16px; line-height: 1.25; color: #989898; }
.ar-p-author { display: flex; gap: 10px; align-items: center; margin-bottom: 24px; }
.ar-p-avs { display: flex; flex: none; }
.ar-p-avs img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #121212; }
.ar-p-avs img + img { margin-left: -10px; }
.ar-p-author b { display: block; font-size: 14px; font-weight: 400; }
.ar-p-author span { font-size: 12px; color: #989898; }
.ar-p-cover { margin: 0 0 32px; border-radius: 4px; overflow: hidden; background: #1e1e1e; }
.ar-p-cover img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ar-p-body { font-size: 16px; line-height: 1.25; color: #989898; }
.ar-p-body p { margin: 0 0 12px; }
.ar-p-body h2 { margin: 32px 0 10px; font-size: 16px; font-weight: 500; line-height: 1.25; color: #fff; }
.ar-p-body ul { margin: 0 0 12px; padding-left: 20px; }
.ar-p-body li { margin-bottom: 6px; }
.ar-p-body b { font-weight: 500; color: #fff; }
.ar-p-body a, .ar-p-end a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ar-p-end { margin: 32px 0 0; font-size: 12px; line-height: 1.45; color: #6f6f6f; text-wrap: balance; }
.ar-p-rel { margin-top: 32px; border-top: 1px solid rgba(255,255,255,.1); }
.ar-p-rel a { display: flex; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); color: #fff; text-decoration: none; transition: opacity .2s; }
.ar-p-rel a:hover { opacity: .7; }
.ar-p-rel span { flex: none; width: 64px; font-size: 12px; color: #989898; }
.ar-p-rel b { font-size: 14px; font-weight: 400; }
.ar-p-rel i { margin-left: auto; font-style: normal; font-size: 14px; }
@media (max-width: 767px) {
  .ar-drawer { width: 100vw; }
  .ar-x { top: 14px; right: 14px; width: 44px; height: 44px; z-index: 62; background: rgba(40,40,40,.85); }
  .ar-panel { padding: 0 18px 60px; }
  .ar-p-head { margin: 0 -18px; padding: 70px 18px 16px; }
  .ar-p-logo { width: 48px; height: 48px; font-size: 11px; }
  .ar-p-full { padding: 13px 13px; }
  .ar-p-kind { display: none; }
  .ar-p-title { font-size: 28px; }
}
