/* APARAT V3 — component stylesheet. Loaded after tokens.css. */

/* base */
.a, .a * { box-sizing: border-box; }
.a { background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-size: 17px; line-height: 27px; -webkit-font-smoothing: antialiased; }
:where(.a) a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.a :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.a img { display: block; max-width: 100%; }
.a p { margin: 0; }
.h1, .h2, .h3 { margin: 0; }
.label { margin: 0; text-transform: uppercase; color: var(--ink-muted); }
.muted { color: var(--ink-muted); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--s4); }
.measure { max-width: var(--measure); }
.stack > * + * { margin-top: var(--s2); }

/* wordmark: the supplied SVG, inline, fill = currentColor */
.a-mark { display: inline-block; color: var(--ink); line-height: 0; }
.a-mark svg { display: block; height: 100%; width: auto; fill: currentColor; }

/* brand kit components (kit/aparat-logo.js, kit/aparat-flap.js) */
aparat-logo { color: var(--ink); }
aparat-flap { --aparat-flap-panel: var(--flap-panel); --aparat-flap-ink: var(--flap-ink); max-width: 100%; }
.a-flapbox { line-height: 0; }
@media (max-width: 760px) { .a-flapbox aparat-flap { zoom: 0.82; } }

/* buttons */
.a-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 20px; font-weight: 600; text-decoration: none; cursor: pointer; border-radius: 0; }
.a-btn:hover { background: var(--ink); color: var(--paper); }
.a-btn--primary { background: var(--action); border-color: var(--action); color: var(--on-action); }
.a-btn--primary:hover { background: var(--action-press); border-color: var(--action-press); color: var(--on-action); }
.a-btn--block { display: flex; width: 100%; }
.a-btn[disabled] { opacity: .5; cursor: not-allowed; }
.a-link { font-weight: 600; text-decoration: underline; }

/* status: plain text */
.a-status { font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }

/* rows and tables */
.a-rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.a-table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 24px; }
.a-table caption { caption-side: top; text-align: left; padding-bottom: 8px; font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }
.a-table th, .a-table td { text-align: left; vertical-align: top; padding: 12px 24px 12px 0; border-top: 1px solid var(--line); }
.a-table tr:last-child th, .a-table tr:last-child td { border-bottom: 1px solid var(--line); }
.a-table th { font-weight: 400; color: var(--ink-muted); width: 36%; }
.a-table thead th { font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: 0.14em; text-transform: uppercase; border-top: 0; width: auto; padding-top: 0; }
.a-table td.num { text-align: right; padding-right: 0; font-family: var(--font-mono); font-size: 15px; white-space: nowrap; }

/* grid */
.a-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s3); row-gap: var(--s4); }
.g4 { grid-column: span 4; } .g5 { grid-column: span 5; } .g6 { grid-column: span 6; } .g7 { grid-column: span 7; } .g8 { grid-column: span 8; } .g3 { grid-column: span 3; } .g12 { grid-column: 1 / -1; }

/* section */
.a-sec { margin-top: var(--s5); }
.a-sec__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: var(--s3); }

/* image */
.a-img { position: relative; aspect-ratio: 4 / 3; background: var(--paper-2); overflow: hidden; }
.a-img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.a-img > img.fit-contain { object-fit: contain; }
.a-img__none { position: absolute; left: 12px; bottom: 10px; font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }

/* case item */
.a-case { display: block; text-decoration: none; color: inherit; }
.a-case__meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; }
.a-case__title { margin-top: 4px; }
.a-case__sum { margin-top: 6px; font-size: 15px; line-height: 22px; }
a.a-case:hover .a-case__title { text-decoration: underline; }

/* filters: text buttons, current one underlined */
.a-filters { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.a-filter { background: none; border: 0; padding: 10px 0; min-height: 44px; font-family: var(--font-sans); font-size: 16px; line-height: 24px; color: var(--ink-muted); cursor: pointer; }
.a-filter:hover { color: var(--ink); }
.a-filter[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.a-filter i { font-style: normal; font-family: var(--font-mono); font-size: 12px; }

/* form */
.a-form { max-width: 760px; }
.a-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.a-fieldset + .a-fieldset { margin-top: var(--s4); }
.a-fieldset legend { padding: 0; margin-bottom: 16px; font-size: 19px; line-height: 26px; font-weight: 600; }
.a-fields { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.a-fld { grid-column: span 6; display: flex; flex-direction: column; gap: 6px; }
.a-fld--3 { grid-column: span 3; } .a-fld--2 { grid-column: span 2; }
.a-fld > label, .a-fld__label { font-size: 15px; line-height: 20px; font-weight: 500; }
.a-fld__hint { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.a-in, .a-sel, .a-ta { width: 100%; min-height: 48px; padding: 11px 12px; border: 1px solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-size: 17px; line-height: 24px; }
.a-ta { min-height: 120px; resize: vertical; }
.a-in::placeholder, .a-ta::placeholder { color: var(--ink-muted); }
.a-fld--err .a-in { border-width: 2px; }
.a-fld--err .a-fld__hint { color: var(--ink); font-weight: 600; }
.a-choice { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.a-opt { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 17px; cursor: pointer; }
.a-opt input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }

/* navigation */
.a-nav { border-bottom: 1px solid var(--ink); }
.a-nav__in { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.a-nav__mark { height: 22px; display: block; color: var(--ink); }
.a-nav__links { display: flex; gap: 24px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.a-nav__links a { font-size: 15px; line-height: 20px; text-decoration: none; padding: 6px 0; }
.a-nav__links a:hover, .a-nav__links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.a-nav__menu { display: none; margin-left: auto; min-height: 44px; padding: 0 14px; border: 1px solid var(--ink); background: none; color: var(--ink); font-family: var(--font-sans); font-size: 16px; cursor: pointer; }
.a-menu { list-style: none; margin: 0; padding: 0; }
.a-menu a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 24px; line-height: 30px; font-weight: 600; text-decoration: none; }
.a-menu a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

/* footer */
.a-foot { margin-top: var(--s5); border-top: 1px solid var(--ink); padding: 40px 0 32px; }
.a-foot__cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; }
.a-foot ul { list-style: none; margin: 0; padding: 0; font-size: 15px; line-height: 26px; }
.a-foot ul a { text-decoration: none; }
.a-foot ul a:hover { text-decoration: underline; }
.a-foot__line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; font-size: 14px; line-height: 20px; color: var(--ink-muted); }

@media (max-width: 760px) {
  .wrap { padding: 0 var(--s2); }
  .a-sec { margin-top: 64px; }
  .h1 { font-size: 34px; line-height: 38px; }
  .a-grid { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .a-grid > * { grid-column: 1 / -1; }
  .a-fields { grid-template-columns: minmax(0, 1fr); }
  .a-fld, .a-fld--3, .a-fld--2 { grid-column: 1 / -1; }
  .a-nav__links, .a-nav .a-btn { display: none; }
  .a-nav__menu { display: inline-flex; align-items: center; }
  .a-nav__in { min-height: 60px; }
  .a-foot__cols { grid-template-columns: minmax(0, 1fr); }
  .a-foot__cols > * { grid-column: 1 / -1 !important; }
  .a-table th { width: 42%; }
  .hide-m { display: none; }
}
