/* GritsConference
   1. variables + reset
   2. type
   3. frame (mast, footer, modal)
   4. tiles + magazine blocks
   5. program, comments, forms
   6. pages
   7. breakpoints
   8. late fixes
*/

:root {
  --ink: #1c2c4a;
  --muted: #5c6578;
  --mustard: #c4891a;
  --mustard-deep: #8a5d0c;
  --peach: #f4d4c0;
  --peach-deep: #efc2a4;
  --paper: #fbf6f0;
  --line: #e4d0c0;
  --bad: #8c3428;
  --ok: #2c6844;
  --wrap: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { font-size: 17px; color-scheme: light; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Candara, "Avenir Next", "Trebuchet MS", sans-serif;
  line-height: 1.55;
}

h1, h2, h3, h4,
.brand__name,
.hot__n {
  font-family: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.012em;
}

a { color: var(--ink); }

h1 { font-size: 2rem; margin: 0 0 10px; }
h2 { font-size: 1.55rem; margin: 0 0 10px; }
h3 { font-size: 1.15rem; margin: 0 0 6px; }

p, ul, ol, figure, dl, blockquote { margin: 0; }
ul, ol { padding: 0; }
img { border: 0; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus {
  outline: 2px solid var(--mustard-deep);
  outline-offset: 2px;
}

::selection { background: #efc2a4; color: var(--ink); }

.skip {
  position: absolute;
  left: 8px;
  top: -48px;
  background: var(--ink);
  color: #fff8f2;
  padding: 8px 12px;
  z-index: 40;
}

.skip:focus { top: 8px; }

.vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.wrap {
  width: min(var(--wrap), calc(100% - 28px));
  margin-left: auto;
  margin-right: auto;
}

/* type inside articles */

.copy {
  font-size: 1.02rem;
  line-height: 1.68;
  max-width: 68ch;
}

.copy h2 { font-size: 1.5rem; margin: 1.45em 0 0.4em; }
.copy h3 { font-size: 1.18rem; margin: 1.25em 0 0.3em; }
.copy p { margin: 0 0 0.9em; }
.copy ul, .copy ol { margin: 0 0 1em; padding-left: 1.2em; }
.copy ul { list-style: disc; }
.copy ol { list-style: decimal; }
.copy li { margin: 0 0 0.35em; }
.copy li li { margin: 0; }

.copy a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-decoration-color: var(--mustard);
  text-underline-offset: 3px;
}

.copy code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92em;
  background: #f6e4d6;
  padding: 0 4px;
}

.copy blockquote {
  margin: 0 0 1em;
  padding: 2px 0 2px 14px;
  border-left: 3px solid var(--mustard);
  color: #3d4a66;
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.12rem;
  line-height: 1.45;
}

.table-wrap { overflow-x: auto; max-width: 100%; margin: 0 0 1em; }

.copy table { width: 100%; border-collapse: collapse; min-width: 520px; font-size: 0.95rem; }
.copy th, .copy td { text-align: left; vertical-align: top; padding: 7px 8px; border-bottom: 1px solid var(--line); }
.copy th { font-family: "Segoe UI", Candara, sans-serif; font-weight: 650; font-size: 13px; letter-spacing: 0.02em; }
.copy tr:nth-child(even) td { background: #fff8f3; }

.kicker {
  font-family: "Segoe UI", Candara, sans-serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mustard-deep);
  margin: 0 0 8px;
}

/* frame */

.mast {
  background: #fffdfb;
  border-top: 7px solid var(--mustard);
  border-bottom: 1px solid var(--line);
}

.mast__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "brand session"
    "mid mid";
  gap: 4px 12px;
  align-items: center;
  padding-top: 14px;
  padding-bottom: 8px;
}

.brand { grid-area: brand; display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: var(--ink); }
.brand__mark {
  flex: none;
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
  /* soft seat so the cut-out window doesn't float off the paper */
  filter: drop-shadow(0 1px 1px rgba(28, 44, 74, 0.22));
}
.ico { display: inline-block; vertical-align: -0.2em; flex: none; }
[data-mn-fav] .ico { margin-right: 4px; }
[data-mn-fav][aria-pressed="true"] .ico { fill: var(--mustard); stroke: var(--mustard-deep); }
.brand__name { font-size: 1.35rem; overflow-wrap: anywhere; }
.brand__name em { font-style: italic; color: var(--mustard-deep); }

.mast__mid { grid-area: mid; min-width: 0; }
.tagline { margin: 0; color: var(--muted); font-size: 14px; }
.edition { margin: 2px 0 0; font-size: 12px; letter-spacing: 0.04em; color: var(--mustard-deep); }

.session {
  grid-area: session;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.session__in { color: var(--ink); font-weight: 650; }

.drawer { margin: 0 0 8px; }
.drawer__btn {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--ink);
  background: transparent;
  padding: 6px 10px;
  font: inherit;
  color: var(--ink);
}
.drawer__btn::-webkit-details-marker { display: none; }

.nav, .nav--desk { display: flex; flex-direction: column; padding: 8px 0 4px; }
.nav--desk { display: none; }
.nav a, .nav--desk a {
  text-decoration: none;
  color: var(--ink);
  padding: 8px 2px;
}
.nav a[aria-current="page"],
.nav--desk a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--mustard); font-weight: 650; }

.colophon {
  margin-top: 28px;
  background: #17243d;
  color: #f6e6d6;
  border-top: 4px solid var(--mustard);
  padding: 22px 0 28px;
}
.colophon a { color: #f6e6d6; text-decoration-color: var(--mustard); }
.colophon button {
  background: none;
  border: 0;
  padding: 0;
  color: #f6e6d6;
  font: inherit;
  text-decoration: underline;
  text-decoration-color: var(--mustard);
  text-underline-offset: 3px;
}
.colophon__row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.colophon nav { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.colophon p { margin: 8px 0 0; font-size: 14px; color: #ead8c8; }
.colophon .totop { color: #f6e6d6; }

.floattop {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--ink);
  color: #fff8f2;
  text-decoration: none;
  padding: 7px 10px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
}
.floattop.is-on { opacity: 1; pointer-events: auto; }

/* modal — catalog script toggles [hidden] */

.modal[hidden] { display: none; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal__back {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(23, 36, 61, 0.48);
  cursor: pointer;
}

.modal__panel {
  position: relative;
  width: min(560px, 100%);
  max-height: min(86vh, 740px);
  overflow: auto;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 16px 16px 18px;
}

.modal__x {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--ink);
  background: transparent;
  padding: 0;
  color: var(--ink);
  font: inherit;
}

.modal__panel h2 { padding-right: 72px; }
.modal__panel ol, .modal__panel ul { padding-left: 1.2em; margin: 0 0 12px; }
.modal__panel li { margin: 0 0 6px; }
.modal__panel p { margin: 0 0 10px; }

.builds { display: grid; gap: 12px; }
.builds section { border-top: 1px solid var(--line); padding-top: 10px; }
.builds .btn { margin: 0 8px 8px 0; }

body.modal-open { overflow: hidden; }

/* buttons */

.btn {
  display: inline-block;
  background: var(--mustard);
  color: var(--ink);
  border: 1px solid var(--mustard-deep);
  text-decoration: none;
  padding: 9px 12px;
  font: inherit;
  line-height: 1.3;
  text-align: center;
}

.btn--quiet { background: transparent; }
.btn--ink { background: var(--ink); color: #fff8f2; border-color: var(--ink); }

.btn[aria-pressed="true"],
[data-mn-fav][aria-pressed="true"] {
  background: var(--ink);
  color: var(--peach);
  border-color: var(--ink);
}

/* magazine home */

.opener { padding: 22px 0 8px; }

.feature h1 { max-width: 18em; }
.feature h1::after {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  background: var(--mustard);
  margin-top: 12px;
}

.feature .copy { margin-top: 12px; }
.byline { margin-top: 14px; color: var(--muted); font-size: 14px; }
.byline strong { color: var(--ink); font-weight: 650; }

.plate { margin: 14px 0 0; }
.plate img { width: 100%; height: 190px; object-fit: cover; display: block; background: var(--peach); }
.plate figcaption {
  width: min(var(--wrap), calc(100% - 28px));
  margin: 6px auto 0;
  color: var(--muted);
  font-size: 14px;
}

.hotbox {
  background: #f3d3bd;
  border-top: 4px solid var(--ink);
  padding: 12px 12px 6px;
}

.hot { list-style: none; }
.hot li { border-top: 1px solid rgba(28, 44, 74, 0.12); }
.hot a {
  display: grid;
  grid-template-columns: auto 40px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  text-decoration: none;
  padding: 8px 0;
  min-width: 0;
}
.hot__n { font-size: 1.25rem; color: var(--mustard-deep); font-style: italic; }
.hot__icon { width: 40px; height: 40px; display: block; }
.hot__name { display: block; overflow-wrap: anywhere; }
.hot__meta { display: block; color: var(--muted); font-size: 13px; }

.job { background: var(--peach); padding: 28px 0 30px; margin-top: 22px; }
.job__lead p { margin: 0 0 8px; max-width: 36ch; }
.job__list { display: flex; flex-direction: column; gap: 12px; }

.band { padding: 26px 0 8px; }
.band--peach { background: var(--peach); padding: 30px 0 16px; margin-top: 8px; }

.rubric { padding: 26px 0 20px; }
.rubric--peach { background: #f6ddcc; }
.rubric__head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
.rubric__head a { color: var(--ink); font-weight: 650; text-decoration-color: var(--mustard); }

/* program cards */

.tiles { display: grid; gap: 12px; }

.tile {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  min-width: 0;
  background: #fffdfb;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}

.tile:hover { background: #fffaf4; border-color: #d7b48a; }
.tile:hover .tile__name { text-decoration: underline; text-decoration-color: var(--mustard); text-underline-offset: 3px; }

.tile__shot {
  width: 100%;
  height: 100%;
  max-width: none;
  min-height: 108px;
  object-fit: cover;
  background: var(--peach);
}

.tile__main {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  grid-template-areas:
    "icon text"
    "icon side";
  gap: 4px 10px;
  padding: 10px 10px 11px;
  min-width: 0;
  align-content: center;
}

.tile__icon { grid-area: icon; width: 56px; height: 56px; align-self: start; }
.tile__text { grid-area: text; min-width: 0; }
.tile__name { display: block; font-weight: 650; overflow-wrap: anywhere; }
.tile__line { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; overflow-wrap: anywhere; }
.tile__ver { margin-right: 6px; }
.tile__side { grid-area: side; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }

.tile__size,
.tile__upd {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 1px 5px;
}
.tile__size { background: var(--peach); color: var(--ink); }
.tile__upd { border: 1px solid var(--mustard-deep); color: var(--mustard-deep); }

/* program page */

.crumbs { font-size: 14px; margin: 0 0 12px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0; list-style: none; }
.crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.crumbs li:not(:last-child)::after { content: "›"; margin: 0 6px; color: var(--mustard-deep); }
.crumbs a { color: var(--ink); }
.crumbs [aria-current="page"] { overflow-wrap: anywhere; }

.page { padding-top: 18px; }

.sheet { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 14px; }
.sheet__icon { width: 64px; height: 64px; flex: none; }
.sheet h1 { font-size: 1.8rem; overflow-wrap: anywhere; }
.chip {
  display: inline-block;
  text-decoration: none;
  border-bottom: 2px solid var(--mustard);
  font-size: 14px;
}

.film { margin: 0 0 16px; }
.film__bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.film__bar p { margin: 0; font-size: 14px; color: var(--muted); }
.film__nav { display: flex; gap: 6px; }
.film__nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 32px;
  border: 1px solid var(--ink);
  background: #fffdfb;
  color: var(--ink);
  font: inherit;
}
.film__row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; /* safari: иначе прыгает */
  padding-bottom: 6px;
}
.film__row a { flex: none; scroll-snap-align: start; }
.film__row img {
  width: min(520px, 78vw);
  max-width: none;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  background: #fff;
}

.layout { display: flex; flex-direction: column; gap: 18px; }
.specs { order: 1; }
.layout__main { order: 2; min-width: 0; }

.specs {
  background: #fffdfb;
  border: 1px solid var(--line);
  border-top: 4px solid var(--ink);
  padding: 12px 12px 14px;
}
.specs .btn, .specs .btn--quiet { display: block; width: 100%; margin: 0 0 8px; }
.specs .updated { margin: 8px 0 0; font-size: 14px; color: var(--muted); }

.facts { margin: 4px 0 12px; }
.facts div {
  display: grid;
  grid-template-columns: 7.2rem minmax(0, 1fr);
  gap: 6px;
  padding: 6px 0;
  border-top: 1px solid var(--line);
}
.facts dt { color: var(--muted); font-size: 13px; }
.facts dd { margin: 0; overflow-wrap: anywhere; }

.tabs__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--line);
  margin: 0 0 14px;
}
.tabs__bar button,
.tabs__bar a {
  font: inherit;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  margin: 0 0 -1px;
}
.tabs__bar [aria-selected="true"],
.tabs__bar [aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--mustard);
  font-weight: 650;
}

.toc {
  background: #f6e4d6;
  border-left: 4px solid var(--mustard);
  padding: 10px 12px 8px;
  margin: 0 0 16px;
  max-width: 68ch;
}
.toc p { margin: 0; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mustard-deep); }
.toc ol { margin: 6px 0 0; padding-left: 1.15em; }
.toc li { margin: 0 0 4px; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { text-decoration: underline; text-decoration-color: var(--mustard); }

.faq { border-top: 1px solid var(--line); padding: 0; }
.faq summary {
  cursor: pointer;
  padding: 10px 0;
  font-weight: 650;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+ "; color: var(--mustard-deep); }
.faq[open] summary::before { content: "– "; }
.faq__body { padding: 0 0 12px; max-width: 68ch; }
.faq__body p { margin: 0 0 8px; }

.faqs { margin: 22px 0; }
.faqs h2 { margin-bottom: 4px; }

.author {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  background: var(--peach);
  padding: 14px;
  margin: 20px 0;
  max-width: 68ch;
}
.author p { margin: 0 0 6px; }
.author a { color: var(--ink); }

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--peach);
  display: inline-grid;
  place-items: center;
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 13px;
  flex: none;
}
.avatar--lg { width: 64px; height: 64px; font-size: 22px; }

.empty {
  border: 1px dashed var(--mustard-deep);
  padding: 14px;
  background: #fffdfb;
  max-width: 68ch;
}

/* comments */

.talk { margin-top: 26px; max-width: 68ch; }
.talk__head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}
.talk__sort button {
  background: none;
  border: 0;
  font: inherit;
  padding: 4px 8px 4px 0;
  color: var(--muted);
}
.talk__sort button[aria-pressed="true"] {
  color: var(--ink);
  font-weight: 650;
  box-shadow: inset 0 -2px 0 var(--mustard);
}

.composer { margin: 8px 0 14px; }
.composer textarea, .reply textarea { min-height: 110px; }
.hint { color: var(--muted); font-size: 14px; margin: 6px 0; }
.composer .btn { margin-top: 6px; }

.note {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 8px 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.note.is-held { opacity: 0.55; }
.note header { font-size: 14px; }
.note header strong { margin-right: 6px; }
.note time { color: var(--muted); }
.note p { margin: 4px 0; overflow-wrap: anywhere; }
.note__tools button {
  background: none;
  border: 0;
  font: inherit;
  padding: 0 12px 0 0;
  color: var(--muted);
}
.note__tools button[aria-pressed="true"] { color: var(--bad); font-weight: 650; }

[data-mn-replies] {
  margin-top: 4px;
  border-left: 2px solid var(--peach-deep);
  padding-left: 10px;
}
.note--reply { border-top: 0; padding: 8px 0; }

.reply { margin-top: 8px; }
.badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--mustard-deep);
  color: var(--mustard-deep);
  padding: 1px 6px;
}
.badge--no { border-color: var(--bad); color: var(--bad); }

.more { padding: 26px 0 10px; }

/* forms + account + errors */

.gate { padding-top: 8px; }
.sheet-form, .panel {
  background: #fffdfb;
  border: 1px solid var(--line);
  border-top: 4px solid var(--mustard);
  padding: 14px 14px 16px;
}
.form__row { margin: 0 0 12px; }
.form__row label { display: block; margin-bottom: 4px; }
.form__row input, .composer textarea, .reply textarea, .form__row textarea, .find input {
  width: 100%;
  background: #fff;
  border: 1px solid #d9c3b0;
  border-radius: 2px;
  padding: 8px 10px;
}
.field-err { color: var(--bad); font-size: 14px; margin: 4px 0 0; }
.check { display: flex; gap: 8px; align-items: flex-start; }
.check input { width: auto; margin-top: 3px; flex: none; }
.check label { margin-bottom: 0; white-space: nowrap; }
.form__links { margin-top: 12px; font-size: 15px; }
.form__links a { color: var(--ink); }

.alert { border-left: 4px solid var(--mustard-deep); background: #fff; padding: 8px 12px; margin: 0 0 12px; }
.alert--bad { border-left-color: var(--bad); background: #fbf1ec; }
.alert--ok { border-left-color: var(--ok); background: #f3f7f2; }

.me { display: flex; gap: 12px; align-items: center; margin: 0 0 16px; }
.me p { margin: 2px 0 0; color: var(--muted); }

.mine { border-top: 1px solid var(--line); padding: 12px 0; }
.mine p { margin: 4px 0; }
.mine a { color: var(--ink); font-weight: 650; }

.notes { list-style: none; }
.notes li { border-top: 1px solid var(--line); padding: 10px 0; }
.notes a { color: var(--ink); }
.notes time { display: block; color: var(--muted); font-size: 13px; }
.notes .is-new { background: #f8e6d6; margin: 0 -8px; padding-left: 8px; padding-right: 8px; }

.saved { margin: 0 0 12px; }

.miss h1 { max-width: 16em; }
.miss p { max-width: 46ch; margin: 0 0 10px; }
.find { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; max-width: 32rem; }
.find input { flex: 1 1 180px; }
.find .btn { display: inline-flex; align-items: center; gap: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 8px; }
.chips a {
  display: inline-block;
  text-decoration: none;
  border: 1px solid var(--ink);
  padding: 4px 8px;
  background: #fffdfb;
}

.pager { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 16px; }
.pager a, .pager span {
  min-width: 2.2rem;
  text-align: center;
  padding: 6px 8px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  background: #fffdfb;
}
.pager [aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pager .is-off { color: var(--muted); }

.legal-nav { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 0 0 14px; font-size: 14px; }
.legal-nav a { color: var(--ink); }

.bell {
  position: relative;
  width: 38px;
  height: 36px;
  border: 1px solid var(--ink);
  background: #fffdfb;
  padding: 0;
}
.bell svg { display: block; margin: 0 auto; }
.bell__count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--mustard);
  color: var(--ink);
  font-size: 11px;
  line-height: 16px;
  text-align: center;
}

.drop {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  width: min(340px, calc(100vw - 28px));
  background: #fffdfb;
  border: 1px solid var(--ink);
  z-index: 15;
  padding: 4px 0 0;
}
.drop[hidden] { display: none; }
.drop ul { list-style: none; margin: 0; }
.drop li a { display: block; padding: 8px 12px; text-decoration: none; overflow-wrap: anywhere; }
.drop li.is-new { background: #f8e6d6; }
.drop time { display: block; color: var(--muted); font-size: 12px; }
.drop__all { display: block; padding: 8px 12px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 650; }

.who { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; max-width: 12rem; }
.who__name { overflow-wrap: anywhere; }

.signout {
  background: none;
  border: 0;
  font: inherit;
  padding: 0;
  text-decoration: underline;
  text-decoration-color: var(--mustard);
  color: var(--ink);
}

/* breakpoints */

@media (min-width: 720px) {
  h1 { font-size: 2.35rem; }
  .tile { grid-template-columns: 148px minmax(0, 1fr); }
  .sheet h1 { font-size: 2.15rem; }
  .gate__grid, .split {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 28px;
    align-items: start;
  }
  .plate img { height: 240px; }
}

@media (min-width: 980px) {
  .mast__row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "brand mid session";
    align-items: end;
    padding-top: 18px;
    padding-bottom: 10px;
  }
  .tagline { font-size: 15px; }

  .drawer { display: none; }
  .nav--desk {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2px 16px;
    align-items: center;
    padding: 0 0 10px;
  }

  .home .opener__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.75fr);
    gap: 26px;
    align-items: start;
  }
  .feature h1 { font-size: 2.65rem; }
  .job__grid {
    display: grid;
    grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
    gap: 22px;
    align-items: start;
  }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile { grid-template-columns: 168px minmax(0, 1fr); }
  .plate img { height: 300px; }

  .layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 292px;
    gap: 26px;
    align-items: start;
  }
  .layout__main { order: 1; grid-column: 1; grid-row: 1; }
  .specs { order: 2; grid-column: 2; grid-row: 1; position: sticky; top: 12px; }
  .sheet h1 { font-size: 2.35rem; }
}

/* late fixes */

/* узкий телефон: шапка в столбик, обложка тоньше */
@media (max-width: 420px) {
  .brand__name { font-size: 1.12rem; }
  .brand__mark { width: 40px; height: 40px; }
  .mast__row {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "session"
      "mid";
  }
  .session { justify-content: flex-start; }
  .tile { grid-template-columns: 92px minmax(0, 1fr); }
  .wrap { width: min(var(--wrap), calc(100% - 20px)); }
}

.page-cat .tiles { margin-top: 16px; }
.page-cat .pager { margin: 18px 0 8px; }

.help .toc { margin-top: 8px; }

/* audit fixes: шапка телефона в одну строку, меню справа */
@media (max-width: 979px) {
  .mast { position: relative; }
  .mast__row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand session";
    align-items: center;
    padding-right: 52px;
    min-height: 64px;
  }
  .mast__mid { display: none; }
  .session { justify-content: flex-end; }
  .drawer { margin: 0; }
  .drawer__btn { position: absolute; top: 18px; right: max(10px, calc((100% - var(--wrap)) / 2)); font-size: 0; gap: 0; padding: 8px 9px; }
  .drawer[open] .nav { padding-top: 0; }
}
@media (max-width: 420px) {
  .session__in { white-space: nowrap; }
}
@media (max-width: 979px) {
  .who__name { display: none; }
  .brand { min-width: 0; }
  .brand__name { overflow-wrap: normal; white-space: nowrap; }
  .session { gap: 8px; flex-wrap: nowrap; }
  .signout { white-space: nowrap; }
}
@media (max-width: 420px) {
  .mast__row:has([data-mn-logout]) .brand__name { display: none; }
}
.sheet__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sheet__acts .btn { width: auto; margin: 0; }
@media (max-width: 559px) { .sheet__acts .btn:first-child { flex: 1 0 100%; text-align: center; } }

/* seo: текст вступления после первого блока программ */
.home-about { margin-top: 32px; margin-bottom: 32px; }
.home-about__body { margin-top: 10px; }


/* ---- натяжка на сайт ---- */
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mast { position: sticky; top: 0; z-index: 25; }
.mastfind { grid-area: find; display: none; gap: 6px; min-width: 0; }
.mastfind.is-open { display: flex; }
.mastfind input {
  flex: 1 1 auto; min-width: 0; height: 40px; box-sizing: border-box; padding: 0 12px;
  font: inherit; font-size: 15px; border: 1px solid var(--line); background: #fffdfb; color: var(--ink);
}
.mastfind input:focus { outline: 2px solid var(--mustard); outline-offset: 0; }
.mastfind button, .findtog {
  width: 40px; height: 40px; box-sizing: border-box; padding: 0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.mastfind button { background: var(--ink); color: #fff8f2; border: 1px solid var(--ink); }
.mastfind button:hover { background: var(--mustard-deep); border-color: var(--mustard-deep); }
.findtog { background: transparent; border: 1px solid var(--ink); color: var(--ink); }
.session { gap: 10px; }
.session__in {
  display: inline-flex; align-items: center; height: 40px; box-sizing: border-box; padding: 0 16px;
  background: var(--mustard); color: var(--ink); text-decoration: none; border: 1px solid var(--mustard-deep);
}
.session__in:hover { background: #d99a26; text-decoration: none; }
@media (min-width: 980px) {
  .findtog { display: none; }
  .mast__row { grid-template-columns: auto minmax(0, 1fr) minmax(220px, 320px) auto; grid-template-areas: "brand mid find session"; align-items: center; }
  .mastfind { display: flex; }
}
@media (max-width: 979px) {
  .mast__row { grid-template-areas: "brand session" "find find"; }
  .mastfind { padding-bottom: 8px; }
}
.home-about__body, .home-about__body p { max-width: none; }
.sheet__acts .btn { height: 44px; display: inline-flex; align-items: center; padding: 0 18px; box-sizing: border-box; }
.sheet__acts .btn:first-child { font-weight: 700; padding: 0 22px; }
.plate { margin-top: 24px; margin-bottom: 24px; }
.plate img { width: 100%; height: auto; max-height: 300px; object-fit: cover; }
#notice { margin-top: 28px; }
#notice textarea, .composer textarea { width: 100%; box-sizing: border-box; }
.builds section + section { margin-top: 12px; }

/* ---- скриншоты: «полароиды» ---- */
.film.is-pola .film__row, .film.is-pola .film__nav { display: none; }
.pola {
  display: block; background: #fff; padding: 12px 12px 14px; border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(28, 44, 74, 0.14); transform: rotate(-0.6deg); text-decoration: none; color: var(--ink);
  max-width: 860px;
}
.pola img { display: block; width: 100%; height: auto; max-height: 470px; object-fit: contain; background: var(--paper); }
.pola__cap {
  display: block; margin-top: 10px; font-family: "Palatino Linotype", Palatino, Georgia, serif; font-style: italic; font-size: 15px; color: var(--muted);
}
.pola-deck { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; padding-left: 4px; }
.pola-mini {
  width: 96px; padding: 5px 5px 14px; background: #fff; border: 1px solid var(--line); cursor: pointer;
  box-shadow: 0 3px 8px rgba(28, 44, 74, 0.12); transition: transform .15s ease;
}
.pola-mini:nth-child(odd) { transform: rotate(-3deg); }
.pola-mini:nth-child(even) { transform: rotate(2.5deg); }
.pola-mini:hover { transform: rotate(0) translateY(-2px); }
.pola-mini img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.pola-mini[aria-pressed="true"] { border-color: var(--mustard); box-shadow: 0 0 0 2px var(--mustard); transform: rotate(0); }
@media (max-width: 559px) { .pola { transform: none; padding: 8px 8px 10px; } .pola-mini { width: 72px; } }
.hot__icon--none { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--ink); color: #fff8f2; font-weight: 700; }
@media (max-width: 979px) {
  .mast__row { grid-template-columns: minmax(0, 1fr) auto; }
  .brand { min-width: 0; overflow: hidden; }
  .brand__name { overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 420px) { .brand__name { display: none; } }
