/* ---------- What's new (design canvas: VersionNew, UpdatePost, VersionWrite + phone takes) ----------
   The page scrolls as a whole: no inner scroll boxes, nothing folds. Colours are roles only, so
   palettes, night and custom themes repaint it; the three kinds of change use the ink roles. */

.wn-page { --wn-new: var(--ink-blue); --wn-better: var(--ink-purple); --wn-fixed: var(--ink-green); --wn-rule: color-mix(in srgb, var(--ink) 16%, transparent); }
.wn-page { padding-left: max(24px, calc((100% - 1392px) / 2)); padding-right: max(24px, calc((100% - 1392px) / 2)); }

.wn-grid { display: grid; grid-template-columns: 296px minmax(0, 1fr); gap: 40px; align-items: start; }
.wn-rail { display: flex; flex-direction: column; gap: 22px; }
.wn-main { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
/* the scroll trigger for older updates: takes no room, so it eats the gap it adds */
.wn-endwatch { height: 0; margin-top: -28px; }

/* the rail: this version, the writer, every update, what's coming */
.wn-now { padding: 22px 18px; display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
.wn-now p { margin: 0; }
.wn-stamp {
    display: grid; place-content: center; width: 150px; height: 150px;
    border: 3px dashed var(--line); border-radius: 50%; rotate: -6deg; color: var(--accent-strong);
}
.wn-stamp .num { font-family: var(--font-marker); font-weight: 700; font-size: 2.4rem; line-height: 1; }
.wn-stamp .tag { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-top: 2px; }
/* a strip of see-through tape, like the wall's (not the striped staff tape) */
.wn-beta {
    padding: 2px 16px; rotate: -2deg; color: var(--ink); font-size: .95rem;
    background: color-mix(in srgb, var(--blue-100) 85%, transparent);
    border-inline: 2px dashed color-mix(in srgb, var(--black) 12%, transparent);
}
.wn-plats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.wn-plat { font-size: .88rem; padding: 3px 12px; border: 2px solid var(--line); border-radius: 14px 10px 14px 9px; background: var(--paper); }
.wn-plat.soon { color: var(--ink-soft); }
.wn-nowline { color: var(--ink-soft); }
.wn-write { justify-content: center; min-height: 50px; font-size: 1.1rem; gap: 8px; }
.wn-jump summary {
    display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer;
    font-family: var(--font-marker); font-weight: 700; font-size: 1.4rem; margin-bottom: 8px;
}
.wn-jump summary::-webkit-details-marker { display: none; }
.wn-tl { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2.5px dashed var(--wn-rule); display: flex; flex-direction: column; gap: 2px; }
.wn-tl a { position: relative; display: flex; flex-direction: column; gap: 1px; padding: 6px 8px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.wn-tl a:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); }
.wn-tl a::before {
    content: ""; position: absolute; left: -22px; top: 12px; width: 11px; height: 11px; border-radius: 50%;
    background: var(--paper); border: 2.5px solid var(--line);
}
.wn-tl a.fresh::before { background: var(--accent-strong); border-color: var(--accent-strong); }
.wn-tl .v { font-size: .82rem; color: var(--ink-soft); }
.wn-tl .v b { font-weight: 400; color: var(--accent-strong); }
.wn-tl .t { font-size: 1rem; line-height: 1.25; }
.wn-next {
    padding: 14px 16px; background: var(--hi-yellow); color: var(--ink); border: 2px solid var(--line);
    border-radius: 4px 16px 4px 16px; rotate: -.6deg; box-shadow: 3px 4px 0 color-mix(in srgb, var(--line) 20%, transparent);
    display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
}
.wn-next p { margin: 0; color: var(--ink); }
.wn-nexthead { font-family: var(--font-marker); font-weight: 700; font-size: 1.45rem; line-height: 1; }
.wn-next .wn-nowline { margin-top: 4px; }
.wn-page .narrow-only { display: none; }
.wn-jump summary .wide-only { display: inline; }

/* "since you last looked" */
.wn-since {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; color: var(--accent-strong);
    background: color-mix(in srgb, var(--accent-strong) 10%, var(--paper));
    border: 2.5px solid var(--accent-strong); border-radius: 14px 10px 16px 12px;
}
.wn-sincewords { flex: 1; min-width: 180px; }
.wn-sincewords b { font-family: var(--font-marker); font-weight: 700; font-size: 1.6rem; line-height: 1; }
.wn-sincewords .small { color: var(--ink); margin-top: 3px; }

/* one update */
.wn-post {
    position: relative; display: flex; flex-direction: column; gap: 24px; padding: 28px 40px 20px; scroll-margin-top: 16px;
    background: var(--paper); color: var(--ink); border: 2.5px solid var(--line);
    border-radius: 6px 6px 14px 18px / 6px 6px 18px 14px; box-shadow: var(--shadow-hard-lg);
}
.wn-post.fresh { box-shadow: 5px 6px 0 var(--accent-strong); }
.wn-top { display: flex; flex-direction: column; gap: 10px; }
.wn-head { display: flex; align-items: center; gap: 12px; }
.wn-ver {
    font-family: var(--font-marker); font-weight: 700; font-size: 1.4rem; line-height: 1; padding: 5px 12px 4px; flex-shrink: 0;
    color: var(--accent-strong); border: 2.5px solid var(--accent-strong); background: var(--surface);
    border-radius: 50% 46% 52% 44% / 60% 54% 46% 40%; rotate: -4deg;
}
.wn-when { color: var(--ink-soft); white-space: nowrap; }
.wn-when b { font-weight: 400; color: var(--ink); }
.wn-fresh {
    display: inline-block; padding: 1px 9px; font-size: .82rem; letter-spacing: .05em; white-space: nowrap; color: var(--gray-900);
    background: repeating-linear-gradient(-45deg, var(--blue-100) 0 10px, var(--sky-300) 10px 20px); border: 2px solid var(--gray-900); rotate: 2deg;
}
.wn-tools { display: flex; gap: 6px; margin-left: auto; }
.wn-tool {
    min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 8px;
    border: 2px solid transparent; border-radius: 12px 9px 13px 10px; background: transparent; color: var(--ink);
    font: inherit; font-size: .88rem; cursor: pointer; text-decoration: none;
}
.wn-tool:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); }
.wn-tool.boxed { border-color: var(--line); background: var(--surface); }
.wn-tool.boxed:hover { background: var(--hi-yellow); }
.wn-tool.danger:hover { background: color-mix(in srgb, var(--danger) 25%, var(--paper)); }
.wn-confirm {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px;
    background: color-mix(in srgb, var(--danger) 12%, var(--paper)); border: 2px solid var(--danger); border-radius: 10px;
}
.wn-confirm .btn.danger { margin-left: auto; }
.wn-title { margin: 0; font-family: var(--font-marker); font-weight: 700; font-size: 2.9rem; line-height: 1; letter-spacing: -.01em; }
.wn-intro { margin: 0; font-size: 1.2rem; line-height: 1.5; max-width: 720px; }
.wn-cover, .wn-shot { display: block; width: 100%; border: 2px solid var(--line); border-radius: 8px; background: var(--wall); object-fit: cover; }
.wn-cover { max-height: 420px; }
.wn-shot { max-height: 280px; }

.wn-feats { display: flex; flex-direction: column; }
.wn-feat { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 36px; align-items: center; padding: 22px 0; border-top: 2px dashed var(--wn-rule); }
.wn-feat:first-child { border-top: none; padding-top: 0; }
.wn-feat:last-child { padding-bottom: 0; }
.wn-feat.nopic { grid-template-columns: minmax(0, 720px); }
.wn-feattxt { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.wn-feat h3 { margin: 0; font-family: var(--font-marker); font-weight: 700; font-size: 1.9rem; line-height: 1.05; }
.wn-feat p { margin: 0; font-size: 1.06rem; line-height: 1.5; }
.wn-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.wn-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; background: currentColor; }
.wn-dot.new { color: var(--wn-new); }
.wn-dot.better { color: var(--wn-better); }
.wn-dot.fixed { color: var(--wn-fixed); }
.wn-acts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.wn-try {
    display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 16px; text-decoration: none;
    border: 2px solid var(--line); border-radius: var(--wobble-1); background: var(--accent-strong); color: var(--on-accent); box-shadow: 2px 2px 0 var(--line);
}
.wn-try:hover { color: var(--on-accent); background: color-mix(in srgb, var(--accent-strong) 85%, var(--black)); }
.wn-req { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 4px; color: var(--ink-soft); font-size: .9rem; text-decoration: none; }
.wn-req:hover { color: var(--ink); }
.wn-req b { font-weight: 400; color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }

.wn-more { display: flex; flex-direction: column; gap: 14px; }
.wn-rule { border-top: 2px dashed var(--wn-rule); }
.wn-morehead { margin: 0; font-family: var(--font-marker); font-weight: 700; font-size: 1.65rem; line-height: 1; }
.wn-groups { display: flex; flex-direction: column; gap: 16px; }
.wn-group { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; align-items: start; }
.wn-glbl { display: flex; align-items: center; gap: 8px; white-space: nowrap; padding-top: 1px; }
.wn-glbl small { color: var(--ink-soft); }
.wn-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; max-width: 820px; }
.wn-list li { position: relative; padding-left: 18px; line-height: 1.45; }
.wn-list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 2.5px; border-radius: 2px; background: var(--ink-faint); }
/* a long post folds: the first big change fades out, then "read more" (one open at a time) */
.wn-feats.cut { position: relative; max-height: 220px; overflow: hidden; }
.wn-feats.cut::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 110px; pointer-events: none; background: linear-gradient(transparent, var(--paper) 85%); }
.wn-fold { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 14px; border-top: 2px dashed var(--wn-rule); }
.wn-feats.cut + .wn-fold { margin-top: -10px; }
.wn-foldbtn {
    display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; white-space: nowrap; cursor: pointer;
    font: inherit; color: var(--gray-900); background: var(--hi-yellow); border: 2.5px solid var(--line); border-radius: var(--wobble-1); box-shadow: 2px 2px 0 var(--line);
}
.wn-foldbtn:hover { transform: translate(-1px, -1px); box-shadow: var(--shadow-hard); }
.wn-foldbtn.less { color: var(--ink); background: var(--paper); }
.wn-foldbtn .icon { transition: rotate .15s; }
.wn-foldbtn.less .icon { rotate: 180deg; }
.wn-foldhint { min-width: 0; font-size: .94rem; color: var(--ink-soft); }
.wn-foldkind { white-space: nowrap; }
.wn-foldhint .wn-dot { display: inline-block; width: 8px; height: 8px; margin: 0 4px 0 8px; vertical-align: 1px; }
.wn-reacts { padding-top: 14px; border-top: 2px dashed var(--wn-rule); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 34px; }
.wn-ghost { font-size: .88rem; color: var(--ink-faint); }

.wn-end { text-align: center; color: var(--ink-faint); padding: 4px; min-height: 1.4em; }
.wn-older {
    width: 100%; min-height: 52px; font: inherit; color: var(--ink); cursor: pointer;
    border: 2.5px dashed var(--line); border-radius: 14px 10px 16px 12px; background: var(--paper);
}
.wn-older:hover:not(:disabled) { background: color-mix(in srgb, var(--hi-yellow) 30%, transparent); }
.wn-older:disabled { color: var(--ink-soft); cursor: default; }
.wn-older.slim { min-height: 40px; margin-top: 8px; border-width: 2px; background: transparent; }
.wn-thanks { margin-top: 12px; }

/* ---------- the staff writer ---------- */
.wn-tabs { display: none; }
.wn-wgrid { display: grid; grid-template-columns: 600px minmax(0, 1fr); gap: 40px; align-items: start; }
.wn-form { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.wn-preview { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.wn-prevhead { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); }
.wn-card { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.wn-cardhead { margin: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-family: var(--font-marker); font-weight: 700; font-size: 1.65rem; line-height: 1; }
.wn-cardhead small { font-family: var(--font-hand); font-weight: 400; font-size: .88rem; color: var(--ink-soft); }
.wn-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.wn-writer textarea, .wn-writer select { width: 100%; box-sizing: border-box; resize: vertical; }
.wn-titlefield input { font-family: var(--font-marker); font-weight: 700; font-size: 1.7rem; }
.wn-n { font-size: .82rem; color: var(--ink-soft); text-align: right; }
.wn-n.over { color: var(--danger-text); }
.wn-picfield { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.wn-picfield small { color: var(--ink-soft); }
.wn-picrow { display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; padding: 6px 8px; border: 2px solid var(--line); border-radius: 10px; background: var(--wall); }
.wn-picrow img { width: 72px; height: 44px; object-fit: cover; border-radius: 5px; border: 1.5px solid var(--line); }
.wn-picrow span { flex: 1; min-width: 0; }
.wn-bigedit { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 2px solid var(--line); border-radius: 4px 14px 4px 14px; background: var(--hi-yellow); }
.wn-bigtop { display: flex; align-items: center; gap: 6px; }
.wn-grow { flex: 1; }
.wn-lineedit { display: flex; align-items: flex-start; gap: 8px; }
.wn-linetext { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wn-linetext textarea { resize: none; }
.wn-add {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; width: 100%;
    border: 2.5px dashed var(--line); border-radius: 14px; background: transparent; font: inherit; color: var(--ink); cursor: pointer;
}
.wn-add:hover { background: color-mix(in srgb, var(--hi-yellow) 30%, transparent); }
.wn-add.slim { min-height: 40px; border-width: 2px; }
.wn-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

@media (max-width: 1180px) {
    .wn-feat { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
    .wn-wgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
}

@media (max-width: 900px) {
    .wn-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .wn-rail { gap: 12px; }
    .wn-page .wide-only { display: none; }
    .wn-page .narrow-only { display: flex; }
    .wn-jump summary .narrow-only { display: inline; }
    .wn-jump summary .wide-only { display: none; }
    .wn-jump { padding: 6px 12px 6px 14px; background: var(--paper); border: 2.5px solid var(--line); border-radius: 14px 10px 16px 12px; box-shadow: var(--shadow-hard); }
    .wn-jump summary { font-family: var(--font-hand); font-weight: 400; font-size: 1rem; min-height: 40px; margin: 0; }
    .wn-jump[open] summary { margin-bottom: 6px; }
    .wn-tl { margin-left: 12px; }
    .wn-main { gap: 18px; }
    .wn-endwatch { margin-top: -18px; }
    .wn-feat { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .wn-feat.nopic { grid-template-columns: minmax(0, 1fr); }
    /* the writer: write / preview tabs */
    .wn-tabs { display: flex; margin-bottom: 14px; border: 2.5px solid var(--line); border-radius: 14px 10px 14px 9px; overflow: hidden; background: var(--paper); }
    .wn-tabs button { flex: 1; min-height: 44px; border: none; background: transparent; font: inherit; color: var(--ink); cursor: pointer; }
    .wn-tabs button + button { border-left: 2px solid var(--line); }
    .wn-tabs button.on { background: var(--hi-yellow); color: var(--gray-900); }
    .wn-wgrid { grid-template-columns: minmax(0, 1fr); }
    .wn-thanks { margin-top: 0; }
    .wn-writer.show-write .wn-preview, .wn-writer.show-preview .wn-form { display: none; }
    .wn-preview { position: static; }
    .wn-prevhead { display: none; }
}

@media (max-width: 600px) {
    .wn-page { padding-left: 12px; padding-right: 12px; }
    .wn-post { padding: 18px 16px 14px; gap: 18px; box-shadow: var(--shadow-hard); }
    .wn-post.fresh { box-shadow: 3px 3px 0 var(--accent-strong); }
    .wn-head { gap: 8px; }
    .wn-ver { font-size: 1.2rem; padding: 4px 10px 3px; }
    .wn-when { font-size: .88rem; }
    .wn-tool-word { display: none; }
    .wn-title { font-size: 2rem; }
    .wn-intro { font-size: 1.06rem; }
    .wn-feat { padding: 16px 0; }
    .wn-feat h3 { font-size: 1.55rem; }
    .wn-feat p { font-size: 1rem; }
    .wn-shot { max-height: 200px; }
    .wn-feats.cut { max-height: 260px; }
    .wn-fold { gap: 8px; }
    .wn-foldbtn { width: 100%; justify-content: center; }
    .wn-group { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .wn-card { padding: 14px; }
    .wn-row2 { grid-template-columns: minmax(0, 1fr); }
}
