/* ==========================================================================
   CAS · Attention & Alignment — attention-alignment.css
   Layout block per the series contract + this lecture's demo styles.
   ========================================================================== */

.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 130;
  display: flex; align-items: center; gap: 1.4rem;
  padding: 0.55rem clamp(1rem, 3vw, 2rem);
  background: rgba(5, 8, 14, 0.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topnav-brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--text); flex: none; }
.topnav-brand:hover { text-decoration: none; }
.topnav-brand img { width: 2.1rem; height: 2.1rem; border-radius: 7px; }
.topnav-brand .tb-txt { display: flex; flex-direction: column; line-height: 1.1; }
.topnav-brand .tb-txt strong { font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.05em; }
.topnav-brand .tb-txt small { font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.14em; color: var(--text-3); text-transform: uppercase; }
.topnav-links { display: flex; gap: 0.2rem; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.topnav-links::-webkit-scrollbar { display: none; }
.topnav-links a { font-size: 0.82rem; font-weight: 500; color: var(--text-2); text-decoration: none; padding: 0.35rem 0.65rem; border-radius: 7px; white-space: nowrap; transition: color 0.15s, background 0.15s; }
.topnav-links a:hover { color: var(--text); background: var(--panel-2); text-decoration: none; }
.topnav-links a.active { color: var(--teal); }
.topnav-back { flex: none; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--line-2); border-radius: 8px; padding: 0.4rem 0.8rem; color: var(--text); text-decoration: none; transition: border-color 0.2s, color 0.2s; }
.topnav-back:hover { border-color: var(--teal); color: var(--teal); text-decoration: none; }
@media (max-width: 900px) { .topnav-links { display: none; } }

main { padding-top: 3.2rem; }
.scroll-progress { top: 3.2rem; }
.rail-toggle { top: 4.4rem; }
.rail { padding-top: 4.6rem; }

.sec-hero { text-align: center; padding-top: clamp(3rem, 8vh, 5.5rem); }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--teal); border: 1px solid rgba(94, 234, 212, 0.35); border-radius: 999px; padding: 0.42rem 1.1rem; background: rgba(94, 234, 212, 0.06); margin-bottom: 1.6rem; }
.sec-hero .hero-title { margin-inline: auto; }
.sec-hero .hero-sub { margin-inline: auto; text-align: center; }
.sec-hero .def-banner { text-align: left; margin-inline: auto; }
.sec-hero .hero-stage-grid { margin-inline: auto; text-align: left; }
.hero-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 1rem; max-width: 980px; margin: 0 auto 2.6rem; }
.hstat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1rem 0.95rem; text-align: center; transition: border-color 0.25s, transform 0.25s; }
.hstat:hover { border-color: rgba(94, 234, 212, 0.45); transform: translateY(-3px); }
.hstat b { display: block; font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--teal); letter-spacing: -0.02em; }
.hstat span { display: block; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); margin-top: 0.3rem; }
.hstat small { display: block; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.08em; color: var(--text-3); margin-top: 0.15rem; }
.flow-strip { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.45rem; max-width: 1060px; margin: 2rem auto 2.4rem; }
.fs-step { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; color: var(--text-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 0.42rem 0.8rem; background: rgba(8, 13, 24, 0.55); }
.fs-hl { color: var(--teal); border-color: rgba(94, 234, 212, 0.4); background: rgba(94, 234, 212, 0.06); }
.fs-model { color: #05231f; background: var(--teal); border-color: var(--teal); font-weight: 700; }
.fs-arw { color: var(--text-3); font-size: 0.8rem; }

.tok-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.tok-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tok-chip { position: relative; font-family: var(--font-mono); font-size: 0.85rem; color: var(--text); background: rgba(94, 234, 212, 0.08); border: 1px solid rgba(94, 234, 212, 0.35); border-radius: 8px; padding: 0.42rem 0.6rem 0.3rem; animation: tokPop 0.25s ease; }
.tok-chip.qsel { border-color: var(--teal); background: rgba(94, 234, 212, 0.18); color: var(--teal); font-weight: 700; }
.tok-chip.ok { border-color: rgba(52, 211, 153, 0.6); background: rgba(52, 211, 153, 0.1); color: var(--green); }
.tok-chip.pick { border-color: var(--amber); background: rgba(251, 191, 36, 0.1); color: var(--amber); }
@keyframes tokPop { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.tok-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 0.8rem; margin-top: 1.1rem; }
.pn-presets { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.7rem; }
.pn-preset { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; color: var(--text-2); border: 1px solid var(--line); border-radius: 999px; padding: 0.32rem 0.75rem; background: rgba(8, 13, 24, 0.45); cursor: pointer; transition: all 0.15s; }
.pn-preset:hover { color: var(--teal); border-color: rgba(94, 234, 212, 0.4); }
.pn-preset.on { color: #05231f; background: var(--teal); border-color: var(--teal); font-weight: 700; }
.qk-row { display: grid; grid-template-columns: minmax(5.4rem, 12rem) minmax(6rem, 1fr); gap: 0.8rem; align-items: center; padding: 0.26rem 0.5rem; border-bottom: 1px dashed var(--line); }
.qk-row:last-child { border-bottom: 0; }
.qk-row.win { background: rgba(94, 234, 212, 0.05); border-radius: 6px; }
.qk-tok { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text); }
.qk-w { display: flex; align-items: center; gap: 0.5rem; }
.qk-w i { display: block; height: 10px; border-radius: 5px; flex: 1; max-width: calc(100% - 4rem); min-width: 3px; background: linear-gradient(90deg, rgba(94, 234, 212, 0.4), rgba(94, 234, 212, 0.9)); }
.qk-w b { font-family: var(--font-mono); font-size: 0.74rem; color: var(--text); min-width: 3.6rem; text-align: right; }
.range-wrap { display: flex; flex-direction: column; gap: 0.35rem; margin-top: 1.1rem; }
.range-header { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; color: var(--text-2); }
.range-val { color: var(--teal); font-weight: 700; }
.range-wrap input[type="range"] { width: 100%; accent-color: var(--teal); }
.tok-punct-lab { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.6rem; font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-2); cursor: pointer; }
.tok-punct-lab input { accent-color: var(--teal); }

/* ------------------------------------------------- §01 hero alignment grid */
.ha-grid { display: grid; gap: 3px; margin-top: 0.8rem; }
.ha-rowlab { font-family: var(--font-mono); font-size: 0.6rem; color: var(--text-2); display: flex; align-items: center; justify-content: flex-end; padding-right: 0.4rem; overflow: hidden; white-space: nowrap; }
.ha-cell { height: 26px; border-radius: 4px; background: rgba(94, 234, 212, calc(0.06 + var(--a) * 0.85)); border: 1px solid rgba(148, 163, 184, 0.12); transition: transform 0.1s; cursor: crosshair; }
.ha-cell:hover { transform: scale(1.12); }
.ha-cell.flip { outline: 1.5px solid var(--amber); outline-offset: -1px; }

/* ------------------------------------------------- §02 gap */
.gp-vec { display: flex; gap: 6px; align-items: center; margin-top: 0.2rem; }
.gp-vec b { font-family: var(--font-mono); font-size: 1.3rem; color: var(--amber); margin-left: 0.7rem; }
.gp-dim { width: 64px; height: 40px; border-radius: 8px; border: 1px dashed var(--line-2); background:
  linear-gradient(180deg, rgba(251, 113, 133, calc(var(--load, 0.1) * 0.55)), rgba(251, 113, 133, calc(var(--load, 0.1) * 0.1)));
  transition: background 0.4s; }

/* ------------------------------------------------- §05 score steps */
.sc-steps { display: flex; flex-direction: column; gap: 0.3rem; }
.sc-step-row { display: grid; grid-template-columns: minmax(4.5rem, 6.5rem) 1fr 1fr minmax(6rem, 8rem); gap: 0.8rem; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: rgba(8, 13, 24, 0.45); padding: 0.4rem 0.7rem; }
.sc-cell { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-cell.sc-e { color: var(--text); font-size: 0.76rem; text-align: right; }
.sc-cell.sc-e b { color: var(--teal); }
@media (max-width: 860px) { .sc-step-row { grid-template-columns: 1fr 1fr; } .sc-cell.sc-e { text-align: left; } }

/* ------------------------------------------------- §06 model */
.md-wrap { border: 1px solid var(--line); border-radius: var(--radius-s); background: rgba(5, 8, 14, 0.5); padding: 0.8rem; }
.md-svg { width: 100%; max-width: 780px; height: auto; display: block; margin: 0 auto; font-family: var(--font-mono); }
.md-r { fill: rgba(8, 13, 24, 0.6); stroke: var(--line-2); stroke-width: 1.3; transition: fill 0.15s, stroke 0.15s; }
.md-t { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.05em; fill: var(--text); }
.md-s { font-family: var(--font-mono); font-size: 8.5px; fill: var(--text-3); }
.md-a { stroke: #5b7290; stroke-width: 1.6; fill: none; }
.md-a.search { stroke: var(--sky); stroke-width: 2; }
.md-a.blend { stroke: var(--sky); stroke-width: 1.8; }
.md-a.md-loop { stroke: var(--amber); stroke-width: 2; }
.md-lab { font-family: var(--font-mono); font-size: 9.5px; fill: var(--text-3); }
.md-cap { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; fill: var(--text-3); }
.md-kvl { font-family: var(--font-mono); font-size: 9.5px; fill: var(--sky); }
.md-blk { cursor: pointer; outline: none; }
.md-blk.on .md-r { stroke: var(--teal); stroke-width: 2.2; fill: rgba(94, 234, 212, 0.1); }
.md-blk.on .md-t { fill: var(--teal); }
.md-blk.enc .md-t, .md-blk.dec .md-t { fill: var(--violet); }
.md-blk.att .md-r { stroke: rgba(94, 234, 212, 0.5); fill: rgba(94, 234, 212, 0.06); }
.md-blk.att .md-t { fill: var(--teal); }
.md-blk.mem .md-r { stroke: rgba(56, 189, 248, 0.5); fill: rgba(56, 189, 248, 0.06); }
.md-blk.mem .md-t { fill: var(--sky); }
.md-blk.out .md-r { stroke: rgba(52, 211, 153, 0.5); fill: rgba(52, 211, 153, 0.05); }
.md-blk.out .md-t { fill: var(--green); }

/* ------------------------------------------------- §07 bidir */
.bn-row-wrap { position: relative; padding-top: 8px; }
.bi-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.bi-f { fill: none; stroke: var(--sky); stroke-width: 1.6; opacity: 0.6; }
.bi-b { fill: none; stroke: var(--violet); stroke-width: 1.6; opacity: 0.6; }

/* ------------------------------------------------- §08 matrix */
.mx-grid { display: grid; gap: 3px; }
.mx-corner { }
.mx-collab { font-family: var(--font-mono); font-size: 0.62rem; color: var(--text-2); text-align: center; overflow: hidden; white-space: nowrap; padding: 0 1px; }
.mx-rowlab { font-family: var(--font-mono); font-size: 0.64rem; color: var(--text-2); display: flex; align-items: center; justify-content: flex-end; padding-right: 0.4rem; overflow: hidden; white-space: nowrap; }
.mx-cell { height: 30px; border-radius: 4px; cursor: crosshair; transition: transform 0.1s;
  background: rgba(94, 234, 212, calc(0.05 + var(--a) * 0.85 * var(--on))); border: 1px solid rgba(148, 163, 184, calc(0.1 + var(--a) * 0.3)); }
.mx-cell:hover { transform: scale(1.1); }
.mx-cell.flip { outline: 1.5px solid var(--amber); outline-offset: -1px; }

/* ------------------------------------------------- §09/§10 meters + results */
.kv-meters { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 0.9rem; }
.kv-meter-row { display: grid; grid-template-columns: minmax(15rem, 24rem) 1fr minmax(7rem, auto); gap: 0.9rem; align-items: center; }
.kv-meter-row span { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-2); }
.kv-barwrap { height: 14px; border-radius: 7px; background: rgba(148, 163, 184, 0.1); overflow: hidden; }
.kv-barwrap i { display: block; height: 100%; border-radius: 7px; transition: width 0.3s; }
.kv-barwrap i.no { background: linear-gradient(90deg, rgba(251, 113, 133, 0.5), var(--rose)); }
.kv-barwrap i.yes { background: linear-gradient(90deg, rgba(94, 234, 212, 0.5), var(--teal)); }
.kv-meter-row b { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text); text-align: right; }
.rs-lab { display: grid; grid-template-columns: minmax(340px, 1.3fr) minmax(280px, 1fr); gap: 1.4rem; align-items: start; }
@media (max-width: 920px) { .rs-lab { grid-template-columns: 1fr; } }
#rsCanvas { display: block; border: 1px solid var(--line); border-radius: var(--radius-s); background: rgba(5, 8, 14, 0.6); }
.rs-row { display: grid; grid-template-columns: minmax(8rem, 11rem) minmax(3.4rem, auto) 1fr; gap: 1rem; align-items: baseline; padding: 0.42rem 0.2rem; border-bottom: 1px dashed var(--line); }
.rs-row:last-child { border-bottom: 0; }
.rs-row b { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text); }
.rs-bleu { font-family: var(--font-mono); font-size: 0.9rem; font-weight: 700; color: var(--teal); }
.rs-note { font-size: 0.8rem; color: var(--text-3); }

/* ------------------------------------------------- footer */
.cite-note { font-size: 0.8rem; color: var(--text-3); max-width: 70ch; line-height: 1.6; }

.sec-head .kicker { gap: 0.4rem; letter-spacing: 0.22em; }
.sec-head .kicker .knum { display: inline; border: 0; background: none; padding: 0; min-width: 0; height: auto; border-radius: 0; white-space: nowrap; }
.sec-head .kicker .knum::before { content: "— SECTION "; }
.sec-head .kicker .knum::after { content: " ·"; }

html.static .tok-chip { animation: none; transition: none; }

/* ------------------------------------------------- Urdu support */
@import url('https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu:wght@400;600&display=swap');
.urdu, .urdu-inline, .urdu-strip, .urdu-line, .ha-rowlab.urdu, .mx-rowlab.urdu, .tok-chip.urdu, svg .urdu {
  font-family: 'Noto Nastaliq Urdu', 'Noto Naskh Arabic', serif;
}
.urdu-inline { font-size: 1.05em; }
.urdu-strip { direction: rtl; }
.tok-chip.urdu { line-height: 1.9; padding: 0.3rem 0.65rem 0.45rem; font-size: 0.82rem; }
.urdu-line { line-height: 2.1; }

/* ------------------------------------------------- §06 the running machine */
.md-out { border: 1px solid var(--line); border-radius: var(--radius-s); background: rgba(5, 8, 14, 0.5); padding: 0.6rem 0.9rem; min-height: 3rem; justify-content: flex-end; }
.md-poster { max-width: 820px; }
.md-r { fill: rgba(8, 13, 24, 0.6); stroke: var(--line-2); stroke-width: 1.3; transition: fill 0.3s, stroke 0.3s; }
.md-word { fill: rgba(148, 163, 184, 0.06); stroke: rgba(148, 163, 184, 0.4); }
.md-h { fill: rgba(94, 234, 212, calc(0.05 + var(--a, 0) * 0.8)); stroke: rgba(94, 234, 212, calc(0.25 + var(--a, 0) * 0.6)); }
.md-t { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.05em; fill: var(--text); }
.md-s { font-family: var(--font-mono); font-size: 8.5px; fill: var(--text-3); }
.md-a { stroke: #5b7290; stroke-width: 1.5; fill: none; transition: opacity 0.15s; }
.md-fwd { stroke: var(--sky); stroke-width: 1.7; }
.md-bwd { stroke: var(--violet); stroke-width: 1.7; }
.md-dirlab { font-family: var(--font-mono); font-size: 13px; font-weight: 700; fill: var(--sky); }
.md-dirlab2 { font-family: var(--font-mono); font-size: 13px; font-weight: 700; fill: var(--violet); }
.md-q { stroke: var(--teal); stroke-width: 1.9; }
.md-search { stroke: rgba(56, 189, 248, 0.55); stroke-width: 1.4; }
.md-wline { stroke: var(--teal); stroke-width: 0.8; opacity: 0.08; transition: opacity 0.35s, stroke-width 0.35s; }
.md-wline.dim { opacity: 0.05; }
.md-loop { stroke: var(--amber); stroke-width: 2.2; }
.md-loop2 { stroke: var(--amber); stroke-width: 1.5; stroke-dasharray: 5 4; }
.md-lab { font-family: var(--font-mono); font-size: 9.5px; fill: var(--text-3); }
.md-cap { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; fill: var(--text-3); }
.md-kvl { font-family: var(--font-mono); font-size: 10px; fill: var(--amber); }
.md-plus-c { fill: rgba(5, 8, 14, 0.85); stroke: #878d93; stroke-width: 1.5; }
.md-plus { stroke: #9aa4ad; stroke-width: 1.5; }
.md-flow { stroke: var(--teal); stroke-width: 2.2; stroke-dasharray: 2 12; stroke-linecap: round; fill: none; opacity: 0.7; animation: mdFlow 1.25s linear infinite; pointer-events: none; }
@keyframes mdFlow { to { stroke-dashoffset: -14; } }
@media (prefers-reduced-motion: reduce) { .md-flow { animation: none; opacity: 0; } }
html.static .md-flow { animation: none; opacity: 0; }
.md-blk { cursor: pointer; outline: none; }
.md-blk.att .md-r { stroke: rgba(94, 234, 212, 0.55); fill: rgba(94, 234, 212, 0.07); }
.md-blk.att .md-t { fill: var(--teal); }
.md-blk.dec .md-r { stroke: rgba(167, 139, 250, 0.5); fill: rgba(167, 139, 250, 0.06); }
.md-blk.dec .md-t { fill: var(--violet); }
.md-blk.out .md-r { stroke: rgba(52, 211, 153, 0.5); fill: rgba(52, 211, 153, 0.05); }
.md-blk.out .md-t { fill: var(--green); }
.md-blk.loop .md-r { stroke: rgba(251, 191, 36, 0.5); fill: rgba(251, 191, 36, 0.05); }
.md-blk.loop .md-t { fill: var(--amber); }
.md-blk.sel .md-r { stroke: var(--teal); stroke-width: 2.4; }
.md-blk.sel .md-t { fill: var(--teal); }
.md-svg.trace .md-blk { opacity: 0.4; }
.md-svg.trace .md-blk.hot, .md-svg.trace .md-blk:hover { opacity: 1; }
.md-svg.trace .md-a { opacity: 0.12; }
.md-svg.trace .md-a.hot { opacity: 1; stroke: var(--teal); }
.md-svg.trace .md-wline { opacity: 0.04; }
.md-svg.trace .md-flow { opacity: 0.12; }
.md-run-grid { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(260px, 1.2fr); gap: 1.3rem; margin-top: 1.1rem; }
@media (max-width: 880px) { .md-run-grid { grid-template-columns: 1fr; } }
.tok-chip.ghost { opacity: 0.25; border-style: dashed; }

/* ------------------------------------------------- §01 seq2seq alignment map hero */
.paper-mast {
  max-width: 640px; margin: 0 auto 1.6rem; text-align: center;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(8, 13, 24, 0.45); padding: 1rem 1.2rem 0.9rem;
}
.pm-title { margin: 0; font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; color: var(--text); letter-spacing: 0.02em; line-height: 1.35; }
.pm-authors { margin: 0.55rem 0 0; font-size: 0.8rem; color: var(--text-2); line-height: 1.6; }
.pm-authors b { color: var(--text); font-weight: 600; }
.pm-meta { margin: 0.5rem 0 0; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; color: var(--text-3); }
.hm-stage { position: relative; display: flex; flex-direction: column; gap: 0; padding: 0.4rem 0 0.2rem; }
.hm-row { justify-content: center; }
.hm-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 1; }
.hm-arc { fill: none; stroke: var(--teal); transition: opacity 0.15s, stroke 0.15s; }
.hm-arc.hot { stroke: var(--amber); stroke-width: 3.5; opacity: 1; }
.hm-chip { cursor: pointer; position: relative; z-index: 2; }
.hm-arch {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem; flex-wrap: wrap;
  margin: 0.2rem 0; padding: 0 1rem; z-index: 2;
}
.hma-box {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; color: var(--text-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.7rem; background: rgba(8, 13, 24, 0.85);
}
.hma-h { color: var(--sky); border-color: rgba(56, 189, 248, 0.45); }
.hma-a { color: var(--teal); border-color: rgba(94, 234, 212, 0.45); }
.hma-d { color: var(--violet); border-color: rgba(167, 139, 250, 0.45); }
.hma-arw { color: var(--text-3); font-size: 0.7rem; }

/* paper links: badge + masthead card are buttons to the paper */
.hero-badge-link { text-decoration: none; transition: all 0.18s; }
.hero-badge-link:hover { border-color: var(--teal); background: rgba(94, 234, 212, 0.14); color: var(--teal); transform: translateY(-2px); text-decoration: none; }
.paper-mast-link { text-decoration: none; display: block; cursor: pointer; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.paper-mast-link:hover { border-color: rgba(94, 234, 212, 0.5); transform: translateY(-3px); box-shadow: 0 10px 34px rgba(94, 234, 212, 0.1); text-decoration: none; }
.pm-open {
  margin: 0.7rem 0 0; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em;
  color: var(--teal); border: 1px solid rgba(94, 234, 212, 0.45); border-radius: 999px;
  padding: 0.4rem 0.95rem; display: inline-block; background: rgba(94, 234, 212, 0.06);
}
.paper-mast-link:hover .pm-open { background: var(--teal); color: #05231f; }
