/* Shared category entrance: the same component on home and both site sections. */
body:has(#category-dialog[open]) { overflow: hidden; }
#category-dialog {
  width: min(960px, calc(100% - 48px));
  max-width: 960px;
  max-height: calc(100svh - 48px);
  margin: auto;
  padding: 28px 34px 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  color: #151a1f;
  background: #fafbfc;
  border: 1px solid #fff;
  border-radius: 18px;
  box-shadow: 0 32px 100px #0005, 0 4px 16px #0002;
}
#category-dialog::backdrop { background: #101820a8; backdrop-filter: blur(12px); }
#category-dialog[open] { animation: category-arrive .22s ease-out both; }
#category-dialog .category-dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 36px; }
#category-dialog .category-brand { font-size: 27px; font-weight: 850; letter-spacing: -1.65px; line-height: 1; }
#category-dialog .category-brand > span { color: var(--red); }
#category-dialog .category-dialog-heading { margin: 25px 0 24px; }
#category-dialog .category-welcome { display: flex; align-items: center; gap: 9px; margin: 0 0 11px; color: #6a727b; font-size: 10px; font-weight: 650; line-height: 1.4; letter-spacing: 1.15px; }
#category-dialog .category-welcome::before { content: ''; width: 18px; height: 2px; background: var(--red); }
#category-dialog h2 { margin: 0 0 10px; color: #14191e; font-size: clamp(30px, 3.4vw, 45px); font-weight: 750; letter-spacing: -1.8px; line-height: 1.08; }
#category-dialog h2:focus { outline: none; }
#category-dialog #category-description { margin: 0; color: #737b84; font-size: 14px; line-height: 1.6; }
#category-dialog .category-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
#category-dialog .category-option { display: flex; flex-direction: column; min-width: 0; gap: 0; padding: 0; overflow: hidden; color: #151a1f; background: #fff; border: 1px solid #dfe3e8; border-radius: 11px; transition: border-color .2s, box-shadow .2s, transform .2s; }
#category-dialog .category-option:hover { border-color: #b7bfc8; box-shadow: 0 10px 24px #1118200d; transform: translateY(-3px); }
#category-dialog .category-option:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-color: transparent; }
#category-dialog .category-visual { display: block; position: relative; width: 100%; aspect-ratio: 1.95; flex: 0 0 auto; overflow: hidden; background: #e9ebed; }
#category-dialog .category-visual > img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
#category-dialog .category-option[data-category="print"] .category-visual > img { object-position: 75% 50%; }
#category-dialog .category-option[data-category="auto"] .category-visual > img { object-position: 54% 54%; }
#category-dialog .category-option:hover .category-visual > img { transform: scale(1.035); }
#category-dialog .category-number { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; color: #fff; background: #111920dd; border: 1px solid #ffffff26; border-radius: 4px; font-size: 10px; font-weight: 650; letter-spacing: .4px; line-height: 1; }
#category-dialog .category-number > span { padding-left: 8px; border-left: 1px solid #ffffff4d; font-size: 8px; letter-spacing: .7px; }
#category-dialog .category-copy { display: flex; flex: 1; flex-direction: column; min-width: 0; width: 100%; padding: 22px 23px 18px; }
#category-dialog .category-topics { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 11px; color: #8b9199; font-size: 8px; font-weight: 650; line-height: 1.4; letter-spacing: .8px; }
#category-dialog .category-topics i { width: 3px; height: 3px; background: #c6cbd1; border-radius: 50%; }
#category-dialog .category-option strong { display: block; font-size: 29px; font-weight: 750; letter-spacing: -1px; line-height: 1.12; }
#category-dialog .category-option small { display: block; margin-top: 10px; color: #727a83; font-size: 13px; line-height: 1.65; }
#category-dialog .category-enter { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 19px; padding-top: 15px; border-top: 1px solid #edf0f3; font-size: 12px; font-weight: 650; line-height: 1.3; }
#category-dialog .category-enter-arrow { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; color: #fff; background: #151d24; border-radius: 50%; transition: background .2s, transform .2s; }
#category-dialog .category-enter-arrow svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; }
#category-dialog .category-option:is(:hover, :focus-visible) .category-enter-arrow { background: var(--red); transform: rotate(-35deg); }
#category-dialog .category-dialog-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 23px; padding: 17px 0 20px; border-top: 1px solid #e4e8ed; }
#category-dialog .category-signature { color: #9ba1a9; font-size: 10px; letter-spacing: .2px; }
#category-dialog .category-selection-note { color: #737b84; font-size: 11px; line-height: 1.5; }
@keyframes category-arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 640px) {
  #category-dialog { width: calc(100% - 24px); max-height: calc(100svh - 24px); padding: 22px 20px 0; border-radius: 14px; }
  #category-dialog .category-brand { font-size: 24px; letter-spacing: -1.4px; }
  #category-dialog .category-dialog-heading { margin: 25px 0 20px; }
  #category-dialog .category-welcome { font-size: 8px; letter-spacing: .75px; gap: 7px; margin-bottom: 10px; }
  #category-dialog h2 { font-size: 31px; letter-spacing: -1.3px; }
  #category-dialog #category-description { font-size: 12px; line-height: 1.6; max-width: 270px; }
  #category-dialog .category-options { grid-template-columns: 1fr; gap: 12px; }
  #category-dialog .category-option { flex-direction: row; min-height: 157px; }
  #category-dialog .category-visual { width: 33%; height: auto; aspect-ratio: auto; align-self: stretch; }
  #category-dialog .category-option[data-category="print"] .category-visual > img { object-position: 78% center; }
  #category-dialog .category-option[data-category="auto"] .category-visual > img { object-position: 64% center; }
  #category-dialog .category-number { top: 9px; left: 9px; padding: 6px 7px; font-size: 9px; }
  #category-dialog .category-number > span { display: none; }
  #category-dialog .category-copy { width: 67%; padding: 18px 14px 13px; }
  #category-dialog .category-topics { display: none; }
  #category-dialog .category-option strong { font-size: 21px; letter-spacing: -.7px; }
  #category-dialog .category-option small { font-size: 11px; line-height: 1.55; margin-top: 7px; }
  #category-dialog .category-option small br { display: none; }
  #category-dialog .category-enter { margin-top: auto; padding-top: 10px; border: 0; font-size: 10px; gap: 5px; }
  #category-dialog .category-enter-arrow { width: 25px; height: 25px; flex-basis: 25px; }
  #category-dialog .category-enter-arrow svg { width: 14px; height: 14px; }
  #category-dialog .category-dialog-bottom { margin-top: 20px; padding: 15px 0 18px; }
  #category-dialog .category-signature { font-size: 9px; }
  #category-dialog .category-selection-note { font-size: 10px; }
}
@media (max-width: 360px) {
  #category-dialog { padding: 18px 15px 0; }
  #category-dialog h2 { font-size: 28px; }
  #category-dialog .category-option { min-height: 160px; }
  #category-dialog .category-option strong { font-size: 19px; }
  #category-dialog .category-copy { padding: 17px 11px 12px; }
  #category-dialog .category-signature { display: none; }
  #category-dialog .category-dialog-bottom { justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  #category-dialog[open] { animation: none; }
  #category-dialog .category-option, #category-dialog .category-visual > img, #category-dialog .category-enter-arrow { transition: none; }
  #category-dialog .category-option:hover, #category-dialog .category-option:hover .category-visual > img, #category-dialog .category-option:is(:hover, :focus-visible) .category-enter-arrow { transform: none; }
}
