/* Dark versions of the older home sections: news, events, Instagram, the enquiry form, the footer, the
   news article and the language notice. Loaded after brand.css, which had the last word on these parts,
   and before home.css. Tokens come from brand.css and home.css. */

/* Every part of this page is dark, so the link and muted colours the old sheets ask for take their dark values. */
html body { --link: var(--signal); --blue-dark: var(--signal); --muted: var(--quiet); }

/* Section headings match the ones in home.css. The small labels above them are gone. */
html body :is(.news, .calendar, .instagram-section, .contact-section) .micro-copy { display: none; }
html body :is(.news-heading, .calendar-heading, .instagram-copy, .contact-section) h2 { color: var(--off); font-size: clamp(34px, 4.2vw, 64px); font-weight: 500; line-height: 1.05; letter-spacing: -.03em; }

/* Quiet outlined controls: the carousel arrows, the calendar buttons and the Instagram profile button. */
html body :is(.carousel-button, .calendar-controls button, .calendar-export-tools button, .calendar-retry, .instagram-actions .action) { border: 1px solid rgb(237 237 237 / .4); background: transparent; color: var(--off); }
html body :is(.carousel-button, .calendar-controls button, .calendar-export-tools button, .calendar-retry, .instagram-actions .action):hover:not(:disabled) { border-color: var(--off); background: #1f1f1f; color: var(--off); }

/* ---------------------------------------------------------------------------------------- news */
html body .news { background: var(--ink); color: var(--off); }
/* With the label gone, the heading and the arrows share one row. */
html body .news-heading h2 { grid-row: 1; }
html body .news-heading .carousel-controls { grid-row: 1; align-self: end; }
/* A card: the photo over a surface panel with the date, the label and the title. */
html body .news-item { overflow: hidden; border-radius: 4px; background: var(--surface); }
html .dtc-industrial .news-text { border-color: var(--line-dark); background: var(--surface); }
html .dtc-industrial .news-item.is-current .news-text { border-top-color: var(--line-dark); }
/* The date row is free of the old 32-character cap, which broke the Kazakh date and its label onto two lines. */
html body .news-date { max-width: none; color: var(--quiet); }
html body .news-date .news-label { color: #8a8a8a; }
html body .news-item h3 { color: var(--off); }
/* Pointing at a card underlines its title in signal green; the title itself stays off-white. */
html body .news-item:hover .news-open { color: var(--off); text-decoration-line: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: .16em; }
html body .news-item p:not(.news-date) { color: var(--quiet); }
html body .news-empty { border-top-color: var(--line-dark); color: var(--quiet); }
/* Pagination reads like the index rail: small numbers on a tick, the current one marked in signal green. */
html body .news-pagination button { color: #8a8a8a; font: 400 11px/1 var(--mono); letter-spacing: .04em; }
html body .news-pagination button::before { background: rgb(237 237 237 / .28); }
html body .news-pagination button:hover, html body .news-pagination button[aria-pressed="true"] { color: var(--off); }
html body .news-pagination button[aria-pressed="true"]::before { background: var(--signal); }

/* ---------------------------------------------------------------------------------------- events */
html body .calendar { border-bottom: 0; background: var(--ink); color: var(--off); }
/* The light cell grid behind the heading is left out on the dark page. */
html body .calendar > .brand-cell-field { display: none; }
html body .calendar-heading p { color: var(--quiet); }
html body .calendar-export-tools button:disabled { border-color: var(--line-dark); color: #8a8a8a; }
html body .calendar-export-tools a { color: var(--signal); }
html body .calendar-export-tools p { color: var(--quiet); }
/* The month: a surface panel with hairlines between the weeks. */
html .dtc-industrial .calendar-month { border-color: var(--line-dark); background: var(--surface); }
html .dtc-industrial .calendar-toolbar { border-bottom-color: var(--line-dark); }
html body .calendar-toolbar h3 { color: var(--off); }
html body .calendar-table th { border-bottom-color: var(--line-dark); color: var(--quiet); }
html body .calendar-table td { border-bottom-color: var(--line-dark); }
html body .calendar-table button { color: var(--off); }
html body .calendar-table button:hover { background: rgb(237 237 237 / .08); }
/* Today wears a signal ring; the chosen day is filled, and its event mark turns dark to stay visible. */
html body .calendar-table button[aria-current="date"] { box-shadow: inset 0 0 0 1px var(--signal); }
html body .calendar-table button[aria-pressed="true"] { background: var(--signal); color: var(--ink); }
html body .calendar-table button[aria-pressed="true"]:hover { background: #6de1ab; }
html body .calendar-day-events { background: var(--signal); }
html body .calendar-table button[aria-pressed="true"] .calendar-day-events { background: var(--ink); }
html body .calendar button:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
html body .calendar-timezone { color: var(--quiet); }
/* The agenda beside the month. */
html body .calendar-show-all { color: var(--signal); }
html body .calendar-show-all:hover { color: var(--off); }
html body .calendar-empty { border-top-color: var(--line-dark); color: var(--quiet); }
html body .calendar-event { border-top-color: var(--line-dark); }
html body .calendar-event time { border-color: var(--line-dark); background: var(--surface); color: var(--off); }
html body .calendar-event h3, html body .calendar-event p { color: var(--off); }
html body .calendar-event .calendar-location { color: var(--quiet); }
html body .calendar-event a { color: var(--signal); }

/* ---------------------------------------------------------------------------------------- Instagram */
html body .instagram-section { border-top: 0; background: var(--ink); color: var(--off); }
html body .instagram-intro { color: var(--quiet); }
html body .instagram-profile { color: var(--signal); }
/* Instagram's own page stays light, so it sits in a dark frame like an inset screen. */
html .dtc-industrial .instagram-preview { border-color: var(--line-dark); background: var(--footage); }
html body .instagram-preview iframe { border-radius: 2px; background: #fff; }

/* ---------------------------------------------------------------------------------------- the enquiry form */
/* Native parts of the fields (the checkbox, the list of the select, autofill) follow the dark page. */
html body .contact-form { color-scheme: dark; }
/* The fill of a field is close to the page, so its border has to carry the edge. */
html .dtc-industrial .contact-field :is(input, textarea, select) { border-color: #6b6b6b; }
html .dtc-industrial .contact-field [aria-invalid="true"] { border-color: #ff7878; }
/* The select gets a drawn arrow in the text colour in place of the system one. */
html .dtc-industrial .contact-field select { padding-right: 44px; -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ededed' stroke-width='1.5'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-position: right 15px center; background-size: 16px 16px; background-repeat: no-repeat; }
html body .contact-field select option { background: var(--surface); color: var(--off); }
html body .contact-message { border-color: var(--line-dark); background: var(--surface); }
html body .contact-section .contact-details-link:hover { color: var(--signal); }

/* ---------------------------------------------------------------------------------------- footer */
html .dtc-industrial .site-footer { border-top-color: var(--line-dark); }
html body .site-footer :is(a, button):hover { color: var(--off); }

/* ---------------------------------------------------------------------------------------- the news article */
/* The full text of a news item, opened from its card: a dark reading surface. */
html body .news-article { border-color: var(--line-dark); background: var(--surface); color: var(--off); color-scheme: dark; scrollbar-color: #3e3e3e transparent; }
html body .news-article::backdrop { background: rgb(12 12 12 / .82); }
html body .news-article-close { border-color: rgb(237 237 237 / .4); background: rgb(12 12 12 / .6); color: var(--off); }
html body .news-article-close:hover { border-color: var(--off); background: rgb(12 12 12 / .8); color: var(--off); }
html body .news-article-meta { color: var(--quiet); }
html body .news-article-meta span { color: #8a8a8a; }
html body .news-article h2 { color: var(--off); }
/* The lead and the text share one measure, about 65 to 75 characters to a line. */
html body .news-article-lead { max-width: 620px; color: var(--off); }
html body .news-article-body:not(:empty) { max-width: 620px; border-top-color: var(--line-dark); }
html body .news-article-body p { color: rgb(237 237 237 / .86); font-size: 17px; line-height: 1.65; }

/* ---------------------------------------------------------------------------------------- the language notice */
html body .consent-banner { background: var(--surface); }

/* ---------------------------------------------------------------------------------------- narrower screens */
@media (max-width: 800px) {
  /* Phones: the news heading takes the full width and the arrows sit under it. */
  html body .news-heading h2 { display: block; grid-column: 1 / -1; }
  html body .news-heading .carousel-controls { grid-row: 2; grid-column: 1; justify-self: start; }
  html body .news-track { scrollbar-color: #3e3e3e transparent; }
}
