/* press.css - the press page (/press/, /it/stampa/). Plan: site/plan/press.md. Loaded after site.css; reads the
   site's tokens (--p-*, the kit's --bg --surface --ink --muted --accent --line), never redefines them.
   0. hero: the lit frame, the drawn study view (after the real app) and the result card
   1. in brief: the split with the still chat and the tools row (marquee-row) under it
   2. team and key facts: the initials tiles and the fact rows on the light sheet
   3. press contact: the mark and the wordmark on a flat panel
   The accent appears once in the study view (the "Now" chip). No new colour. */

/* ================================================================ shared: the lit ground behind UI on this dark site
   (the kit's sand / sky / sage grounds are for light pages; here a dark surface with one soft teal light, as the
   home's still ground) */
.pr-hero .hero__art,
.pr-chatframe {
  background:
    radial-gradient(70% 60% at 16% 8%, rgb(23 234 217 / .14), transparent 70%),
    radial-gradient(60% 50% at 92% 100%, rgb(23 234 217 / .06), transparent 70%),
    #1a2130;
  border: 1px solid var(--line);
}

/* ================================================================ 0. hero */
.pr-hero .hero__proof { font-size: var(--t-small); line-height: 1.5; color: var(--muted); }

/* the study view: the home window's dark UI (the same tokens), drawn after the real app's Lesson tab */
.pr-win, .pr-card {
  --fx-bg: var(--p-surface); --fx-surface: var(--p-bg); --fx-ink: var(--p-ink); --fx-muted: #9aa1ab;
  --fx-accent: var(--p-accent); --fx-accent-ink: var(--p-accent-ink); --ui-font: var(--font-text); --ui-radius: 12px;
  font: 400 13px/20px var(--font-text); color: var(--u-ink);
}
.pr-win {
  display: grid; grid-template-rows: 40px auto; min-width: 0;
  background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); overflow: hidden;
  box-shadow: 0 40px 80px -40px rgb(0 0 0 / .7), 0 0 0 1px rgb(233 237 243 / .04);
}
.pr-win__bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--u-line); color: var(--u-muted); white-space: nowrap; overflow: hidden; }
.pr-dots { display: flex; gap: 6px; flex: none; }
.pr-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--u-fill-3); }
.pr-win__crumb { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; }
.pr-win__crumb img { width: 15px; height: 14px; flex: none; }
.pr-win__crumb i { font-style: normal; opacity: .5; }
.pr-win__crumb b { font-weight: 500; color: var(--u-ink); overflow: hidden; text-overflow: ellipsis; }
/* the body runs past the frame's foot, so the frame cuts it at the bottom (and 28px past the right edge) */
.pr-win__body { display: grid; grid-template-columns: 148px minmax(0, 1fr); min-height: 760px; }
.pr-side { display: grid; align-content: start; gap: 2px; padding: 14px 10px; border-right: 1px solid var(--u-line); color: var(--u-muted); }
.pr-side > span { display: flex; align-items: center; min-height: 30px; padding: 0 8px; border-radius: 7px; }
.pr-side > span.is-on { background: var(--u-fill-3); color: var(--u-ink); font-weight: 500; }
.pr-side .pr-side__label { min-height: 26px; padding-inline: 8px; font-size: 12px; letter-spacing: .02em; color: var(--u-soft); }
/* the main column keeps --ly-cut-room clear at its right, so the frame's cut falls after the chips */
.pr-main { display: grid; align-content: start; gap: 12px; min-width: 0; padding: 16px var(--ly-cut-room, 48px) 16px 18px; }
.pr-main__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pr-main__title { font-size: 16px; line-height: 20px; font-weight: 500; letter-spacing: -0.01em; }
.pr-btn { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 7px; white-space: nowrap; color: var(--u-ink); box-shadow: inset 0 0 0 1px var(--u-line-2); }
.pr-tabs { display: flex; flex-wrap: wrap; gap: 2px; color: var(--u-muted); }
.pr-tabs > span { padding: 4px 10px; border-radius: 6px; white-space: nowrap; }
.pr-tabs > span.is-on { background: var(--u-fill-3); color: var(--u-ink); font-weight: 500; }
.pr-rows { display: grid; border-top: 1px solid var(--u-line); }
.pr-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 2px; border-bottom: 1px solid var(--u-line); }
.pr-row b { display: block; font-weight: 500; color: var(--u-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-row small { display: block; font-size: 12px; line-height: 18px; color: var(--u-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-chip { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 500; white-space: nowrap;
  color: var(--u-muted); box-shadow: inset 0 0 0 1px var(--u-line-2); }
.pr-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.pr-chip--done { color: var(--u-ink); background: var(--u-fill-2); box-shadow: none; }
.pr-chip--now { color: var(--u-accent-ink); background: var(--u-accent); box-shadow: none; }

/* the result card: one, opaque, 300 wide, 32 in from the frame's lower left, over the window */
.pr-card { --fx-bg: #1b2231; display: grid; gap: 2px; padding: 14px 16px; border-radius: 12px; background: var(--u-bg);
  box-shadow: inset 0 0 0 1px var(--u-line-2), 0 24px 48px -20px rgb(0 0 0 / .7); }
.pr-hero .hero__art > .ly-piece--note { left: var(--s-6); bottom: var(--s-6); width: 300px; z-index: 2; }
.pr-card__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 6px; }
.pr-card__title { font-size: 14px; font-weight: 500; color: var(--u-ink); }
.pr-card__line { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--u-line); color: var(--u-text-2); }
.pr-card__line i { display: grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--u-fill-3); color: var(--u-ink); font-style: normal; font-size: 12px; font-weight: 700; line-height: 1; }
.pr-card__line b { font-weight: 500; color: var(--u-ink); }

/* a small laptop (1024-1199): the frame is about 420 wide, so the side bar goes and the lesson keeps the room */
@media (min-width: 1024px) and (max-width: 1199px) {
  .pr-win__body { grid-template-columns: minmax(0, 1fr); }
  .pr-side { display: none; }
}
/* a tablet: the frame under the words takes what the screen leaves; the card a little smaller */
@media (min-width: 640px) and (max-width: 1023px) {
  .pr-hero .hero__art > .ly-piece--note { left: var(--s-4); bottom: var(--s-4); width: 270px; }
}
/* a phone: the window alone, 16 in, its side bar and head hidden, the chips whole; the card waits (layout.css) */
@media (max-width: 639px) {
  .pr-hero .hero__art { min-height: 272px; }
  .pr-win__body { grid-template-columns: minmax(0, 1fr); }
  .pr-side, .pr-main__head { display: none; }
  .pr-main { padding-top: 12px; }
  .pr-tabs > span { padding-inline: 8px; }
  .pr-row { padding-block: 7px; }
}

/* ================================================================ 1. in brief */
.pr-brief__text h2 { margin-bottom: var(--s-5); }
.pr-brief__text p { font-size: var(--t-lead); line-height: 1.5; max-width: 46ch; color: var(--ink); }
.pr-brief__pic { min-width: 0; }
.pr-chatframe .stage { --frag: var(--p-surface); }
.pr-chat__mark { width: 20px; height: 19px; flex: none; }
.pr-chatframe .ui-chat .ui-msg__av { width: 20px; height: 19px; flex: none; margin-top: 2px; }
.pr-chatframe .ui-chat .ui-msg__text, .pr-chatframe .ui-chat .ui-msg__col { overflow-wrap: anywhere; }

/* the tools row: without script (and still, under reduced motion) a wrapped row of words in the kit's look */
.pr-mq { margin-top: var(--s-7); }
.pr-mq > .mo-mq__track { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-7); margin: 0; padding: 0; list-style: none;
  font: 500 var(--t-lead)/1.2 var(--font-display); letter-spacing: -0.01em; color: var(--muted); }

/* from 640: the picture group gives its two parts to the section's grid (display: contents), so the chat
   stands beside the words and the row runs under both, across the wrap */
@media (min-width: 640px) {
  .pr-brief__pic { display: contents; }
  .pr-brief__grid > .pr-brief__text,
  .pr-brief__pic > .pr-chatframe,
  .pr-brief__pic > .pr-mq { grid-column: 1 / -1; min-width: 0; }
}
@media (min-width: 1024px) {
  .pr-brief__grid { align-items: start; }
  .pr-brief__grid > .pr-brief__text { grid-column: 1 / span 5; grid-row: 1; }
  .pr-brief__pic > .pr-chatframe { grid-column: 7 / span 6; grid-row: 1; }
  .pr-brief__pic > .pr-mq { grid-column: 1 / -1; grid-row: 2; margin-top: var(--s-7); }
}
/* a tablet: the chat frame flatter, so words, chat and row stay on one screen at 768 and 820 */
@media (min-width: 640px) and (max-width: 1023px) {
  .pr-brief .pr-chatframe { --ratio: 56%; }
  .pr-brief__pic > .pr-mq { margin-top: var(--s-6); }
}
/* a phone: two screens (.g2m): the words, then the chat and the row. The row stands still, wrapped */
@media (max-width: 639px) {
  .pr-chatframe .stage { --fade-h: 40px; }
  .pr-mq { margin-top: var(--s-6); }
  .pr-mq.is-live .mo-mq__rail { display: block; overflow: visible; padding-right: 0; -webkit-mask-image: none; mask-image: none; }
  .pr-mq.is-live .mo-mq__track { animation: none !important; flex-wrap: wrap; white-space: normal; row-gap: var(--s-3); column-gap: var(--s-6); }
  .pr-mq.is-live .mo-mq__clone, .pr-mq.is-live .mo-mq__pause { display: none; }
}

/* ================================================================ 2. team and key facts (the light sheet) */
.pr-team { align-items: stretch; }
.pr-tile { display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-6); padding: var(--s-5);
  border-radius: var(--r-lg); background: var(--surface); color: var(--ink); }
.pr-tile__ini { font: var(--display-weight) var(--t-h2)/1 var(--font-display); letter-spacing: var(--display-tracking); color: var(--ink); }
.pr-tile__who h3 { font: 500 var(--t-card)/1.3 var(--font-text); letter-spacing: -0.01em; }
.pr-tile__who p { margin-top: var(--s-1); font-size: var(--t-body); line-height: 1.45; color: var(--muted); }
.pr-spec { margin-top: var(--s-7); }
.pr-spec > li > p { font-size: var(--t-body); line-height: 26px; }
.pr-facts__more { align-self: flex-start; margin-top: var(--s-6); }
@media (min-width: 640px) {
  .pr-spec > li { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: baseline; }
  .pr-spec > li > .rows__name { grid-column: 1 / span 3; }
  .pr-spec > li > p { grid-column: 4 / -1; grid-row: 1; max-width: 72ch; }
}
/* a tablet: the three tiles stay in one row (the kit sets tiles two-up there) */
@media (min-width: 640px) and (max-width: 1023px) {
  .grid.pr-team > .tile.pr-tile { grid-column: auto / span 4; }
}
/* a phone: each tile one row, the initials in a 56px square at the left, the name and the role beside them */
@media (max-width: 639px) {
  .grid.pr-team { row-gap: var(--s-3); }
  .grid.pr-team > .tile.pr-tile { grid-column: 1 / -1; display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: var(--s-4); padding: var(--s-3); }
  .pr-tile__ini { display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--r-md); background: var(--bg); font-size: 22px; }
  .pr-tile__who h3 { font-size: var(--t-body); }
  .pr-tile__who p { margin-top: 0; font-size: var(--t-small); }
  .pr-spec { margin-top: var(--s-6); }
  .pr-facts__more { margin-top: var(--s-5); }
}

/* ================================================================ 3. press contact and logo files */
.pr-contact__text > * + * { margin-top: var(--s-5); }
.pr-contact__text > p { font-size: var(--t-lead); line-height: 1.5; max-width: 44ch; color: var(--ink); }
.pr-contact__text > .btn-row { margin-top: var(--s-6); }
/* the printed address inside the sentence: a plain underlined link in the action colour (the kit's .link adds an
   arrow, which would sit before the full stop) */
.pr-mail { color: var(--action); font-weight: 500; text-decoration: underline; text-underline-offset: 4px;
  text-decoration-color: color-mix(in oklab, var(--action) 50%, transparent); overflow-wrap: anywhere; }
.pr-mail:hover { text-decoration-color: currentColor; }
/* the mark as the header's lockup, set large; the file itself, never redrawn or tinted */
.pr-logo__lockup { display: flex; align-items: center; gap: clamp(16px, 1.6vw, 24px); }
.pr-logo__lockup img { width: clamp(56px, 6.2vw, 98px); height: auto; flex: none; }
.pr-logo__lockup span { font: var(--display-weight) clamp(28px, 2.6vw + 10px, 48px)/1 var(--font-display); letter-spacing: var(--display-tracking); color: var(--ink); white-space: nowrap; }
/* a phone: the panel after the words, flatter, so the section stays one screen */
@media (max-width: 639px) {
  .pr-contact .frame--split.pr-logo { --ratio: 56%; margin-top: var(--s-6); }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .pr-contact .frame--split.pr-logo { --ratio: 48%; margin-top: var(--s-6); }
}
