/* The Newsroom page: a live, illustrated view of The Morning Dispatch newsroom. */
.nr { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.nr-head { text-align: center; padding: 18px 0 6px; }
.nr-head h1 { margin: 0; font-family: "UnifrakturMaguntia", serif; font-weight: 400; font-size: 46px; line-height: 1.05; color: var(--cream); }
.nr-sub { margin: 2px 0 10px; font-style: italic; color: var(--cream-dim); letter-spacing: .04em; }
.nr-clock { font-size: 12.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--cream-dim); }
.nr-phase { font-family: "UnifrakturMaguntia", serif; font-size: 28px; margin: 2px 0; color: var(--cream); }
.nr-what { margin: 0 auto; max-width: 760px; font-style: italic; font-size: 16px; color: var(--cream-dim); min-height: 1.5em; }

.nr-controls { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; align-items: center; margin: 14px 0 8px; }
.nr-controls .grp { display: flex; gap: 8px; align-items: center; }
.nr-controls .key.on { background: var(--cream); color: #1d1a16; box-shadow: inset 0 0 0 2px var(--cream), inset 0 0 0 3px #1d1a16; }
.tm { display: flex; gap: 8px; align-items: center; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--cream-dim); }
.tm input { width: 200px; accent-color: var(--brass); }
.nr-zones { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 4px 0 6px; }
.nr-zones button { font: 12px "Old Standard TT", serif; letter-spacing: .12em; text-transform: uppercase; color: var(--cream-dim); background: none;
  border: 1px solid rgba(239, 230, 207, .35); border-radius: 2px; padding: 5px 10px; cursor: pointer; }
.nr-zones button.on, .nr-zones button:hover { color: #1d1a16; background: var(--cream); }

.nr .stage { perspective: 1800px; display: flex; justify-content: center; padding: 6px 0 4px; overflow: hidden; }
.roomwrap { width: 100%; transition: transform .9s ease; transform-origin: 50% 55%; }
.iso .roomwrap { transform: rotateX(50deg) rotateZ(-30deg) scale(.86); }
#room { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 30px rgba(0,0,0,.55)); transition: none; }
.nr-hint { text-align: center; font-style: italic; font-size: 14px; color: var(--cream-dim); margin: 6px 0 0; }

/* Drawing */
#room .lbl { font: 700 13px "Old Standard TT", serif; letter-spacing: .12em; text-transform: uppercase; fill: #5c5244; }
/* Name tags: a small cream press badge with the full name under each person */
#room .tagplate rect { fill: #fbf6e8; stroke: #3a332b; stroke-width: .9; }
#room .nm { font: 700 8.5px "Old Standard TT", serif; letter-spacing: .6px; fill: #1d1a16; text-anchor: middle; pointer-events: none; }
#room .bubble rect { fill: #fffaf0; stroke: #1d1a16; stroke-width: 1.2; }
#room .bubble text { font: italic 12px "Libre Caslon Text", Georgia, serif; fill: #1d1a16; }
#room .bubble { pointer-events: none; animation: pop .35s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(4px); } }

/* The crew: each person glides between spots */
.who { cursor: pointer; }
.who .turn { transform-box: view-box; transform-origin: 0 0; }
.who:hover .body, .who:focus .body { stroke: #d8b46a; stroke-width: 2.5; }
.who:focus { outline: none; }
.hot { cursor: pointer; fill: transparent; }
.hot:hover, .hot:focus { fill: rgba(216, 180, 106, .14); outline: none; }

@keyframes type { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-2.5px) } }
.typing .hands { animation: type .18s infinite; }
@keyframes ring { 0%,100% { opacity: 0 } 10%,40% { opacity: 1 } }
.ringwave { opacity: 0; }
.ringing .ringwave { animation: ring 1.2s infinite; }
@keyframes steam { 0% { opacity: 0; transform: translateY(4px) } 40% { opacity: .7 } 100% { opacity: 0; transform: translateY(-14px) } }
.steam { animation: steam 2.6s infinite; }
.steam.b { animation-delay: 1.3s; }
@keyframes glow { 0%,100% { opacity: .35 } 50% { opacity: 1 } }
.redlight.on { animation: glow 1.8s infinite; }
@keyframes wire { 0% { transform: scaleY(.3) } 100% { transform: scaleY(1) } }
.wirepaper.on { transform-origin: top; animation: wire 3s infinite linear; }
@keyframes nod { 0%,100% { transform: rotate(0) } 50% { transform: rotate(7deg) } }
.talking .head { animation: nod 1.4s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes stride { 0%,100% { transform: translateX(-1.5px) } 50% { transform: translateX(1.5px) } }
.walking .body, .walking .head { animation: stride .35s infinite; }
@media (prefers-reduced-motion: reduce) { .who { transition: none; } .typing .hands, .ringing .ringwave, .steam, .redlight.on, .wirepaper.on, .talking .head, .walking .body, .walking .head { animation: none; } }

/* What they filed: a newspaper clipping card */
.nr-card { position: relative; max-width: 620px; margin: 16px auto 0; padding: 0 30px 22px; color: #1d1a16; background: var(--cream);
  box-shadow: 0 14px 34px rgba(0,0,0,.5); transform: rotate(-.4deg); font-family: "Libre Caslon Text", Georgia, serif; }
.nr-card[hidden] { display: none; }
.nr-card .x { position: absolute; top: 10px; right: 12px; font: bold 12px "Old Standard TT", serif; letter-spacing: .14em; text-transform: uppercase;
  background: transparent; border: 1px solid rgba(29,26,22,.5); padding: 4px 9px; cursor: pointer; color: #1d1a16; }
.nr-card .tag { margin: 0 -30px 14px; padding: 12px 30px 9px; border-bottom: 2px dashed rgba(29,26,22,.45); font: 11.5px "Old Standard TT", serif; letter-spacing: .2em; text-transform: uppercase; color: #6b5f4d; }
.nr-card h2 { margin: 0; font-family: "Old Standard TT", serif; text-transform: uppercase; font-size: 24px; line-height: 1.1; }
.nr-card .role { margin: 2px 0 10px; font-style: italic; color: #5c5244; }
.nr-card ul { margin: 6px 0 10px; padding-left: 20px; }
.nr-card li { margin: 4px 0; line-height: 1.4; }
.nr-card a { color: #1d1a16; }
.nr-card p { line-height: 1.55; margin: 6px 0; }

.nr-note { text-align: center; font-style: italic; font-size: 13.5px; color: #8f8168; max-width: 760px; margin: 18px auto 4px; }
.nr-dedication { text-align: center; font-size: 17px; line-height: 1.5; color: var(--cream); margin: 14px auto 0; font-style: italic; }
.nr-dedication b { font-style: normal; font-family: "Old Standard TT", serif; letter-spacing: .06em; }

@media (max-width: 700px) {
  .nr-head h1 { font-size: 36px; }
  .nr-phase { font-size: 23px; }
  .tm input { width: 150px; }
  .iso .roomwrap { transform: rotateX(45deg) rotateZ(-24deg) scale(.92); }
  .nr-card { padding: 0 18px 18px; transform: none; }
  .nr-card .tag { margin: 0 -18px 12px; padding-left: 18px; }
}

/* A link like newsroom.html?find=walt rings that person in gold */
.ring { opacity: 0; pointer-events: none; }
.found .ring { opacity: 1; animation: ringpulse 1.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ringpulse { 0% { transform: scale(.7); opacity: 1 } 100% { transform: scale(1.5); opacity: 0 } }
#honorRing { opacity: 0; } #honorRing.on { opacity: 1; animation: ringpulse 1.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
#room .bubble-measure { font: italic 12px "Libre Caslon Text", Georgia, serif; }
