/* =========================================================
   Brand resources (/brand-resources) — page-scoped styles, all prefixed mk_
   A light grey hero carries the live preview and the six products; below it,
   a documentation layout after atlassian.design: a sticky sidebar with the
   selected product's sections, content in the main column.
   Palette from the brand guidelines: black, white, Petpooja red (site CTA
   #C52031, hover #A51B29), light grey #E5E5E5.
   ========================================================= */

.mk {
  --mk-red: #C52031; --mk-red-dark: #A51B29;
  --mk-ink: #000; --mk-body: #3F3F46; --mk-muted: #6B6B74;
  --mk-line: #E5E5E5; --mk-soft: #F6F6F8; /* = the guideline panels' own background */
  --mk-top: 75px; /* site header height; JS measures the real value */
  color: var(--mk-body); background: #fff;
}
/* Same container as the site header and footer (.my-main-container):
   up to 1920px, gutters 20 / 40 (768+) / 80 (1280+) / 112 (1536+). */
.mk_wrap { --mk-gutter: 20px; width: 100%; max-width: 1920px; margin: 0 auto; padding: 0 var(--mk-gutter); }
@media (min-width: 768px) { .mk_wrap { --mk-gutter: 40px; } }
@media (min-width: 1280px) { .mk_wrap { --mk-gutter: 80px; } }
@media (min-width: 1536px) { .mk_wrap { --mk-gutter: 112px; } }
.mk_title, .mk_h2, .mk_h3, .mk_h4, .mk_pick_title, .mk_side_title, .mk_side_brand, .mk_rule_title, .mk_card_title,
.mk_btn, .mk_tab_name, .mk_fonts strong {
  font-family: "Poppins", sans-serif;
}
.mk p { margin: 0; }
.mk ul { margin: 0; padding: 0; list-style: none; }
.mk_sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* Inside a product (panel, preview, sidebar group) "red" means that product's
   own brand colour, so its buttons, links and focus rings follow the brand. */
.mk_panel, .mk_show_item, .mk_side_group {
  --mk-red: var(--mk-accent); --mk-red-dark: color-mix(in srgb, var(--mk-accent) 82%, #000);
}
/* One visible focus ring for every control on the page (WCAG 2.4.7 / 2.4.11). */
.mk a:focus-visible, .mk button:focus-visible { outline: 2px solid var(--mk-red); outline-offset: 2px; }

/* ---------- Hero (light band, the panels' own grey) ----------
   Title and one line on the left; on the right a live preview of the selected
   product's logo on light and on dark; the six products in one bar below. */
.mk_hero {
  position: relative; overflow: hidden; padding: 40px 0 40px;
  background: var(--mk-soft); color: var(--mk-body); border-bottom: 1px solid var(--mk-line);
}
/* Construction grid, like the clear-space drawings in the guidelines; fades out
   towards the product row so the tiles sit on a calm field. */
.mk_hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(0,0,0,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.05) 1px, transparent 1px);
  background-size: 32px 32px; background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.6) 45%, transparent 80%);
          mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.6) 45%, transparent 80%);
}
.mk_hero > .mk_wrap { position: relative; }
.mk_hero_grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; }
.mk_hero_head { max-width: 560px; }

/* Live preview, presented like a guideline sheet: print crop marks at the four
   corners (drawn as eight 1px gradients), the logo on light and on dark, then
   its colours and a one-click download of the primary logo. */
.mk_show {
  --mk-mark: #A1A1AA;
  padding: 18px;
  background:
    linear-gradient(var(--mk-mark), var(--mk-mark)) left top / 14px 1px,
    linear-gradient(var(--mk-mark), var(--mk-mark)) left top / 1px 14px,
    linear-gradient(var(--mk-mark), var(--mk-mark)) right top / 14px 1px,
    linear-gradient(var(--mk-mark), var(--mk-mark)) right top / 1px 14px,
    linear-gradient(var(--mk-mark), var(--mk-mark)) left bottom / 14px 1px,
    linear-gradient(var(--mk-mark), var(--mk-mark)) left bottom / 1px 14px,
    linear-gradient(var(--mk-mark), var(--mk-mark)) right bottom / 14px 1px,
    linear-gradient(var(--mk-mark), var(--mk-mark)) right bottom / 1px 14px;
  background-repeat: no-repeat;
}
.mk_show_item { margin: 0; animation: mk-in .28s ease-out; }
.mk_show_item[hidden] { display: none; }
@keyframes mk-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* Every grid on this page uses minmax(0, 1fr), never bare 1fr: Safari counts a
   percentage-sized image's intrinsic width (the SVGs declare width="1600") as
   the column's minimum, so 1fr columns grew unevenly and clipped the dark logo
   on iPhone. */
.mk_show_board {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden;
  border-radius: 16px; box-shadow: 0 0 0 1px var(--mk-line), 0 16px 40px -20px rgba(0,0,0,.25);
}
.mk_show_half { display: flex; align-items: center; justify-content: center; min-width: 0; aspect-ratio: 4 / 3; padding: 12%; }
.mk_show_light { background: #fff; }
.mk_show_dark { background: #000; }
.mk_show_half img { display: block; width: 100%; height: 100%; min-width: 0; object-fit: contain; }
.mk_show_meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 14px; }
.mk_show_chips { display: inline-flex; }
.mk_show_chips span {
  width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 0 2px var(--mk-soft), inset 0 0 0 1px rgba(0,0,0,.12);
}
.mk_show_chips span + span { margin-left: -6px; }
.mk_show_name { flex: 1 1 auto; color: var(--mk-ink); font-family: "Poppins", sans-serif; font-size: 14px; font-weight: 500; }
.mk_show_dl { display: inline-flex; gap: 8px; }
.mk_show_dl a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px;
  border-radius: 8px; background: var(--mk-red); color: #fff; font-size: 13px; font-weight: 600; text-decoration: none;
  transition: background-color .15s;
}
.mk_show_dl a + a { background: #fff; color: var(--mk-ink); box-shadow: inset 0 0 0 1px #D4D4D4; }
.mk_show_dl a:hover { background: var(--mk-red-dark); color: #fff; }
.mk_show_dl a + a:hover { background: #fff; color: var(--mk-red); box-shadow: inset 0 0 0 1px var(--mk-red); }
.mk_show_dl svg { width: 14px; height: 14px; }
.mk_title {
  margin: 0; color: var(--mk-ink); font-weight: 600; font-size: 40px;
  line-height: 1.04; letter-spacing: -0.03em; text-wrap: balance;
}
.mk .mk_lead { max-width: 36em; margin-top: 16px; font-size: 16px; line-height: 1.6; color: var(--mk-body); }

/* ---------- Buttons (for the per-product PDF / zip downloads) ---------- */
.mk_btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 12px 20px; border-radius: 10px; font-size: 15px; font-weight: 500; line-height: 1.2;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
/* File format, set apart from the label: "Brand guidelines  PDF". */
.mk_btn_meta {
  padding: 2px 6px; border-radius: 4px; font-size: 12px; font-weight: 600; letter-spacing: .02em;
  background: rgba(255,255,255,.2);
}
.mk_btn_primary { background: var(--mk-red); color: #fff; }
.mk_btn_primary:hover { background: var(--mk-red-dark); color: #fff; }

/* ---------- Product picker (inside the hero) ----------
   One white bar holding all six products, like a segmented control: no box per
   product, no underline. The selected one takes a soft tint of its own accent
   (--mk-accent) and a bold name; the others stay plain until hovered. */
.mk_pick { margin-top: 40px; scroll-margin-top: calc(var(--mk-top) + 16px); }
.mk_pick_title { margin: 0 0 12px; color: var(--mk-ink); font-size: 15px; font-weight: 500; }
.mk_tabs {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 6px;
  background: #fff; border-radius: 18px; box-shadow: 0 0 0 1px var(--mk-line), 0 8px 24px -16px rgba(0,0,0,.2);
}
.mk_tab {
  display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 12px;
  border: 0; border-radius: 13px; background: transparent; color: var(--mk-body);
  text-align: left; cursor: pointer; transition: background-color .15s, color .15s;
}
.mk_tab img { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 0 1px var(--mk-line); }
.mk_tab_name { font-size: 15px; font-weight: 500; line-height: 1.2; }
.mk_tab:hover { background: var(--mk-soft); color: var(--mk-ink); }
.mk_tab.is-active {
  color: var(--mk-ink);
  background: var(--mk-soft); background: color-mix(in srgb, var(--mk-accent) 10%, #fff);
}
.mk_tab.is-active .mk_tab_name { font-weight: 600; }

/* ---------- Below the hero: sidebar + content (after atlassian.design) ----------
   The sidebar shows the selected product (a link back to the picker) and its
   sections, the one in view marked in the product's accent. Hidden below 1024px. */
.mk_layout { display: grid; grid-template-columns: minmax(0, 1fr); padding-top: 32px; padding-bottom: 96px; }
.mk_main { min-width: 0; }
/* Phones and tablets: the sidebar is a bar of product chips fixed under the site
   header. It takes no space in the page and stays hidden (.is-off, set by the
   script) while the hero's own product picker is on screen; once that scrolls
   away the bar slides down from under the header. The section list is
   desktop-only. */
.mk_layout { padding-top: 24px; }
.mk_side {
  position: fixed; top: var(--mk-top); left: 0; right: 0; z-index: 30;
  padding: 10px var(--mk-gutter); background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--mk-line); box-shadow: 0 8px 16px -12px rgba(0,0,0,.18);
  transition: transform .22s ease, opacity .22s ease, visibility .22s;
}
.mk_side.is-off { transform: translateY(-100%); opacity: 0; visibility: hidden; }
@supports (backdrop-filter: blur(8px)) { .mk_side { background: rgba(255,255,255,.85); backdrop-filter: blur(8px); } }
.mk_side_in { display: none; }
.mk_switch {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.mk_switch::-webkit-scrollbar { display: none; }
.mk_sw {
  display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 8px;
  border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--mk-line);
  color: var(--mk-body); font-family: "Poppins", sans-serif; font-size: 14px; font-weight: 500; white-space: nowrap;
  scroll-snap-align: start; cursor: pointer; transition: background-color .15s, box-shadow .15s;
}
.mk_sw img { width: 28px; height: 28px; border-radius: 7px; }
.mk_sw:hover { box-shadow: inset 0 0 0 1px #D4D4D8; }
.mk_sw.is-active {
  color: var(--mk-ink); font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--mk-accent);
  background: var(--mk-soft); background: color-mix(in srgb, var(--mk-accent) 10%, #fff);
}
.mk_sw:focus-visible { outline: 2px solid var(--mk-accent); outline-offset: 2px; }
/* Tablets: all six chips fit, so share the width evenly. */
@media (min-width: 768px) { .mk_switch { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); } .mk_sw { justify-content: center; } }
.mk_side_group[hidden] { display: none; }
.mk_side_brand {
  display: flex; align-items: center; gap: 12px; margin-bottom: 28px; padding: 12px 14px;
  border-radius: 12px; color: var(--mk-ink); font-size: 16px; font-weight: 600; line-height: 1.25; text-decoration: none;
  background: var(--mk-soft); background: color-mix(in srgb, var(--mk-accent) 10%, #fff);
}
.mk_side_brand img { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 0 0 1px var(--mk-line); }
.mk_side_switch { display: block; margin-top: 2px; color: var(--mk-muted); font-size: 13px; font-weight: 500; }
.mk_side_brand:hover .mk_side_switch { color: var(--mk-ink); }
.mk_side_title { margin: 0 0 10px; padding: 0 14px; color: var(--mk-muted); font-size: 14px; font-weight: 500; letter-spacing: .01em; }
.mk_side_toc a {
  display: block; padding: 10px 14px; border-radius: 0 8px 8px 0; font-size: 16px; line-height: 1.3;
  color: var(--mk-muted); text-decoration: none; transition: background-color .15s, color .15s;
}
.mk_side_toc a:hover { color: var(--mk-ink); background: var(--mk-soft); }
.mk_side_toc a[aria-current] { color: var(--mk-ink); font-weight: 600; box-shadow: inset 2px 0 0 var(--mk-accent); }

@media (min-width: 1024px) {
  .mk_layout { grid-template-columns: 248px minmax(0, 1fr); column-gap: 48px; padding-top: 48px; }
  .mk_layout { padding-top: 40px; }
  .mk_side, .mk_side.is-off {
    position: static; z-index: auto; align-self: stretch; margin: 0 0 0 -14px; padding: 0; background: none; backdrop-filter: none;
    border-bottom: 0; border-right: 1px solid var(--mk-line); box-shadow: none;
    transform: none; opacity: 1; visibility: visible; transition: none;
  }
  .mk_switch { display: none; }
  .mk_side_in { display: block; }
  .mk_side_in { position: sticky; top: calc(var(--mk-top) + 24px); padding: 16px 16px 0 0; }
}

/* ---------- Product panel ---------- */
.mk_panel { padding-top: 16px; }
.mk_panel[hidden] { display: none; }
.mk_panel_head { display: flex; align-items: center; gap: 16px; padding-bottom: 8px; }
.mk_panel_icon { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 0 0 1px var(--mk-line); }
.mk_h2 { margin: 0; color: var(--mk-ink); font-size: 28px; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.mk .mk_sub { margin-top: 4px; font-size: 15px; color: var(--mk-muted); }

/* Sections are separated by space and a hairline, not by boxes. */
.mk_block { padding-top: 56px; scroll-margin-top: calc(var(--mk-top) + 64px); }
.mk_block + .mk_block { margin-top: 56px; border-top: 1px solid var(--mk-line); }
.mk_h3 { margin: 0 0 8px; color: var(--mk-ink); font-size: 24px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.mk .mk_text { max-width: 760px; margin-bottom: 28px; font-size: 15px; line-height: 1.7; }


/* ---------- Asset cards ---------- */
.mk_grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mk_card { display: flex; flex-direction: column; border: 1px solid var(--mk-line); border-radius: 12px; overflow: hidden; background: #fff; transition: border-color .15s; }
.mk_card:hover { border-color: #BDBDBD; }
.mk_preview { aspect-ratio: 4 / 3; min-height: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 20px; }
.mk_preview img { min-width: 0; max-width: 100%; max-height: 100%; object-fit: contain; }
.mk_preview_logo.mk_preview_transparent img { max-width: 80%; }
.mk_preview_icon.mk_preview_transparent img { max-width: 42%; max-height: 60%; }
/* Transparent artwork sits on a faint checkerboard so its transparency is visible. */
.mk_preview_light.mk_preview_transparent {
  background-color: #fff;
  background-image:
    linear-gradient(45deg, #F2F2F3 25%, transparent 25%, transparent 75%, #F2F2F3 75%),
    linear-gradient(45deg, #F2F2F3 25%, transparent 25%, transparent 75%, #F2F2F3 75%);
  background-size: 16px 16px; background-position: 0 0, 8px 8px;
}
.mk_preview_dark.mk_preview_transparent {
  background-color: #000;
  background-image:
    linear-gradient(45deg, #121214 25%, transparent 25%, transparent 75%, #121214 75%),
    linear-gradient(45deg, #121214 25%, transparent 25%, transparent 75%, #121214 75%);
  background-size: 16px 16px; background-position: 0 0, 8px 8px;
}
/* Square tiles already carry their own background - show them as a tile. */
.mk_preview_square { background: var(--mk-soft); }
.mk_preview_square img { height: 100%; width: auto; border-radius: 12px; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.mk_card_body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 12px 14px 14px; border-top: 1px solid var(--mk-line); }
.mk .mk_card_title { color: var(--mk-ink); font-size: 14px; font-weight: 500; line-height: 1.35; }
.mk .mk_card_note { margin: 2px 0 12px; font-size: 12.5px; line-height: 1.4; color: var(--mk-muted); overflow-wrap: anywhere; }
.mk_dl { display: flex; gap: 8px; margin-top: auto; }
.mk_dl a {
  flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px;
  border: 1px solid #D4D4D4; border-radius: 8px; font-size: 13px; font-weight: 600;
  color: var(--mk-ink); text-decoration: none; transition: border-color .15s, color .15s, background-color .15s;
}
.mk_dl a svg { width: 14px; height: 14px; }
.mk_dl a:hover { border-color: var(--mk-red); color: var(--mk-red); background: #fff; background: color-mix(in srgb, var(--mk-red) 6%, #fff); }

/* ---------- Usage rules (official panels from the brand guidelines) ----------
   No box around each rule: the panel's own grey field is the frame and the
   caption sits under it as plain text. */
.mk_h4 { margin: 48px 0 20px; color: var(--mk-ink); font-size: 18px; font-weight: 600; }
.mk_rules { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px 24px; }
.mk_rules_after { margin-top: 40px; }
.mk_rule { display: flex; flex-direction: column; gap: 14px; margin: 0; }
/* Crop the panel's own title band (top 132 of 880 px); see mkPanel() in the view.
   Margin % is relative to width: 132 / 1638 = 8.06%. */
.mk_shot { overflow: hidden; border-radius: 16px; background: var(--mk-soft); aspect-ratio: 1638 / 748; }
.mk_panel_img { display: block; width: 100%; height: auto; margin-top: -8.06%; }
.mk_rule_wide { max-width: 1200px; }
.mk_rule figcaption { max-width: 640px; }
.mk .mk_rule_title { margin-bottom: 4px; color: var(--mk-ink); font-size: 16px; font-weight: 600; }
.mk .mk_rule figcaption p:not([class]) { font-size: 14px; line-height: 1.65; }
.mk_full { display: inline-block; margin-top: 8px; padding: 4px 0; font-size: 14px; font-weight: 500; color: var(--mk-red); text-decoration: underline; text-underline-offset: 3px; }
.mk_full:hover { color: var(--mk-red-dark); }

/* ---------- Typography ---------- */
.mk .mk_fonts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 8px 0 32px; }
.mk_fonts li { padding: 18px 20px; border: 1px solid var(--mk-line); border-radius: 12px; line-height: 1.4; }
.mk_font_role { display: block; margin-bottom: 4px; font-size: 13px; color: var(--mk-muted); }
.mk_fonts strong { display: block; color: var(--mk-ink); font-size: 22px; font-weight: 600; }
.mk_font_detail { display: block; margin-top: 4px; font-size: 13px; color: var(--mk-body); }

/* ---------- Colours ---------- */
.mk_colors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
.mk_swatch {
  position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0;
  border: 0; background: none; cursor: pointer; text-align: left;
}
.mk_chip {
  display: block; height: 120px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
  transition: transform .15s;
}
.mk_swatch:hover .mk_chip { transform: scale(1.02); }
.mk_swatch_text { display: flex; flex-direction: column; padding: 10px 2px 0; line-height: 1.45; }
.mk_swatch_name { color: var(--mk-ink); font-size: 14px; font-weight: 500; }
.mk_swatch_hex { margin-top: 2px; color: var(--mk-ink); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.mk_swatch_rgb { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; color: var(--mk-muted); }
/* Always visible (touch has no hover): the copy affordance sits on the chip. */
.mk_copy {
  position: absolute; top: 8px; right: 8px; display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px; background: rgba(255,255,255,.92); color: var(--mk-ink);
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}
.mk_swatch:hover .mk_copy { color: var(--mk-red); }

/* ---------- Closing: usage terms (the licence the schema links to) ---------- */
.mk_terms {
  margin-top: 80px; padding: 28px 32px; border-radius: 16px; background: var(--mk-soft);
  scroll-margin-top: calc(var(--mk-top) + 16px);
}
.mk_terms_title { margin: 0 0 8px; color: var(--mk-ink); font-family: "Poppins", sans-serif; font-size: 18px; font-weight: 600; }
.mk .mk_terms p { max-width: 60em; font-size: 15px; line-height: 1.7; }

/* ---------- Toast ---------- */
.mk_toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  padding: 10px 16px; border-radius: 10px; background: #000; color: #fff;
  font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 1000;
}
.mk_toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Breakpoints (site: sm 768, md 1024, lg 1280) ---------- */
@media (max-width: 639px) {
  .mk_panel_icon { width: 48px; height: 48px; border-radius: 12px; }
  .mk_h2 { font-size: 24px; }
  .mk_preview { padding: 14px; }
  .mk_card_body { padding: 10px 12px 12px; }
  .mk .mk_card_title { font-size: 13px; }
  .mk_dl { gap: 6px; }
  .mk_dl a svg { display: none; }
  .mk_block { padding-top: 40px; }
  .mk_block + .mk_block { margin-top: 40px; }
  .mk_chip { height: 96px; }
  .mk_terms { margin-top: 56px; padding: 22px 20px; }
}
@media (max-width: 639px) {
  .mk_tab { min-height: 56px; padding: 8px 10px; gap: 10px; }
  .mk_tab img { width: 36px; height: 36px; }
  .mk_tab_name { font-size: 14px; }
}
@media (min-width: 640px) { .mk_tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 640px) {
  .mk_grid { gap: 16px; }
  .mk_colors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mk .mk_fonts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .mk_hero { padding: 56px 0 48px; }
  .mk_title { font-size: 56px; }
  .mk .mk_lead { font-size: 17px; }
  .mk_h2 { font-size: 32px; }
  .mk_h3 { font-size: 28px; }
  .mk_rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk_rule_wide { grid-column: 1 / -1; }
  .mk_colors { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .mk_hero { padding: 64px 0 56px; }
  .mk_title { font-size: 64px; }
  .mk .mk_lead { margin-top: 20px; font-size: 18px; }
  .mk_pick { margin-top: 56px; }
  .mk_hero_grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; }
  .mk_tabs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .mk_tab { min-height: 64px; }
  .mk_grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mk_colors { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .mk_card, .mk_toast, .mk_btn, .mk_tab, .mk_dl a, .mk_chip { transition: none; }
  .mk_swatch:hover .mk_chip { transform: none; }
  .mk_show_item { animation: none; }
  .mk_show_dl a { transition: none; }
  .mk_side { transition: none; }
}

/* Per-product guidelines PDF, at the right of the product heading. */
.mk_panel_head { flex-wrap: wrap; }
.mk_panel_pdf { margin-left: auto; min-height: 44px; padding: 10px 16px; font-size: 14px; }
.mk_panel_pdf svg { width: 16px; height: 16px; }
@media (max-width: 639px) { .mk_panel_pdf { margin-left: 0; width: 100%; } }
@media (min-width: 1280px) { .mk_layout { grid-template-columns: 272px minmax(0, 1fr); column-gap: 64px; } }
