/* 02 НАБОР — Russo sets the action; a rule gives it direction; the arrow completes it. Size, weight and rule length carry hierarchy without filled buttons. */
body[data-controls="type"] {
  --type-ink: #111115;
  --type-paper: #f4f1e8;
  --type-olive: #3d4927;
}

body[data-controls="type"] :is(.header-pill,.header-link,.rail-item,.action-button,.card-link,.hero-direction,.variant-choice,.catalog-line>a,.field-panel>a,.footer-choices button,.footer-bottom>a):focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}
body[data-controls="type"] :is(.header-pill,.header-link,.rail-item,.action-button,.hero-direction,.variant-choice,.catalog-line>a,.field-panel>a,.footer-choices button,.footer-bottom>a):disabled,
body[data-controls="type"] :is(.header-pill,.header-link,.rail-item,.action-button,.hero-direction,.variant-choice,.catalog-line>a,.field-panel>a,.footer-choices button,.footer-bottom>a)[aria-disabled="true"] {
  opacity: .42;
  cursor: not-allowed;
  pointer-events: none;
}
body[data-controls="type"] .control-arrow {
  width: 31px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: square;
  stroke-linejoin: miter;
  transition: transform .28s var(--ease);
}

/* Masthead: a typographic index with a single directional rule. */
body[data-controls="type"] .header-nav { gap: 25px; }
body[data-controls="type"] :is(.header-pill,.header-link) {
  min-width: 0;
  height: 50px;
  padding: 0;
  gap: 13px;
  border: 0;
  border-bottom: 3px solid var(--type-olive);
  border-radius: 0;
  background: transparent;
  color: var(--type-olive);
  font: 16px/1 Russo,sans-serif;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: visible;
  transform: none;
  transition: color .2s,border-color .2s;
}
body[data-controls="type"] :is(.header-pill,.header-link)>span { padding: 0; }
body[data-controls="type"] :is(.header-pill,.header-link)>svg {
  width: 25px;
  height: 25px;
  padding: 0;
  background: none;
  color: currentColor;
}
body[data-controls="type"] :is(.header-pill,.header-link):hover {
  background: transparent;
  color: var(--type-ink);
  border-color: var(--type-ink);
  text-decoration: none;
  transform: none;
}
body[data-controls="type"] :is(.header-pill,.header-link):hover>svg {
  background: none;
  transform: translateX(4px);
}

/* Rail: current position is marked by an open edge, not a tile. */
body[data-controls="type"] .rail-item {
  position: relative;
  border-radius: 0;
  background: transparent;
  color: var(--type-paper);
  border-left: 3px solid transparent;
  transition: border-color .2s,color .2s;
}
body[data-controls="type"] .rail-item:hover,
body[data-controls="type"] .rail-item.is-current {
  background: transparent;
  color: var(--type-paper);
  border-left-color: var(--type-paper);
  transform: none;
}
body[data-controls="type"] .rail-item>span:nth-child(2) {
  font: 12px/1.15 Russo,sans-serif;
  letter-spacing: -.02em;
}
body[data-controls="type"] .rail-item .rail-bears .bear-dark { display: none; }
body[data-controls="type"] .rail-item .rail-bears .bear-light { display: block; }
body[data-controls="type"] .rail-item:hover .rail-arrow { transform: translateX(5px); }

/* Main calls: type bears the weight; the long baseline points to the arrow. */
body[data-controls="type"] .action-button {
  padding: 0 0 5px;
  border: 0;
  border-bottom: 3px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: var(--type-olive);
  overflow: visible;
  font: clamp(19px,1.65vw,26px)/1 Russo,sans-serif;
  text-transform: uppercase;
  letter-spacing: -.025em;
  transform: none;
  transition: color .22s,border-color .22s;
}
body[data-controls="type"] .action-button::before { display: none; }
body[data-controls="type"] .action-button:hover {
  background: transparent;
  color: var(--type-ink);
  transform: none;
}
body[data-controls="type"] .action-button:hover .control-arrow { transform: translateX(8px); }
body[data-controls="type"] .material-statement .action-button {
  color: var(--type-paper);
  font-size: clamp(16px,1.35vw,22px);
}
body[data-controls="type"] .material-statement .action-button:hover { color: #d3ddb5; }

/* Product cards: a readable editorial caption on the existing image stage. */
body[data-controls="type"] .card-link {
  background: transparent;
  color: var(--type-ink);
  border: 0;
  border-top: 2px solid currentColor;
  border-radius: 0;
  padding: 3px 0 0;
  font: 17px/1 Russo,sans-serif;
  text-transform: uppercase;
  overflow: visible;
}
body[data-controls="type"] .card-link::before { display: none; }
body[data-controls="type"] .mini-card .card-link { font-size: 13px; }
body[data-controls="type"] .fastener-card .card-link {
  color: var(--type-paper);
  text-shadow: 0 1px 5px #111115;
}
body[data-controls="type"] .card-link .control-arrow { width: 26px; height: 20px; }
body[data-controls="type"] :is(.feature-card,.mini-card):hover .card-link .control-arrow { transform: translateX(6px); }
body[data-controls="type"] :is(.feature-card,.mini-card):focus-visible {
  outline: 3px solid var(--type-olive);
  outline-offset: 3px;
}

/* Variant strip: thumbnails are open specimens; a heavy underline marks selection. */
body[data-controls="type"] .hero-direction {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--type-ink);
  background: transparent;
  transform: none;
  transition: border-color .2s,color .2s;
}
body[data-controls="type"] .hero-direction:hover {
  border-bottom-color: var(--type-olive);
  color: var(--type-olive);
  transform: none;
}
body[data-controls="type"] .hero-direction:hover svg { transform: translateX(3px); }
body[data-controls="type"] .hero-direction svg { transition: transform .25s; }
body[data-controls="type"] .variant-choice {
  background: transparent;
  border: 0;
  border-bottom: 3px solid #a7a899;
  border-radius: 0;
  box-shadow: none;
  color: var(--type-ink);
  transform: none;
  transition: border-color .2s,color .2s;
}
body[data-controls="type"] .variant-choice:hover,
body[data-controls="type"] .variant-choice.is-active {
  background: transparent;
  border-color: var(--type-olive);
  box-shadow: none;
  transform: none;
}
body[data-controls="type"] .variant-choice.is-active span { font-weight: 800; }

/* Catalog continuation and the field call use different rule lengths at their own scale. */
body[data-controls="type"] .catalog-line>a {
  background: transparent;
  color: var(--type-olive);
  border: 0;
  border-bottom: 3px solid currentColor;
  border-radius: 0;
  transform: none;
  transition: color .2s;
}
body[data-controls="type"] .catalog-line>a:hover {
  background: transparent;
  color: var(--type-ink);
  transform: none;
}
body[data-controls="type"] .catalog-line>a:hover .control-arrow { transform: translateX(5px); }
body[data-controls="type"] .field-panel>a {
  border-top: 2px solid var(--type-olive);
  color: var(--type-olive);
  font: clamp(16px,1.35vw,21px)/1.1 Russo,sans-serif;
  text-transform: uppercase;
  letter-spacing: -.02em;
}
body[data-controls="type"] .field-panel>a:hover { color: var(--type-ink); }
body[data-controls="type"] .field-panel>a:hover .control-arrow { transform: translateX(6px); }

/* Finale: three open selections with an index-like rule. */
body[data-controls="type"] .footer-choices button {
  background: transparent;
  border: 0;
  border-top: 3px solid #aab494;
  border-radius: 0;
  color: var(--type-paper);
  transform: none;
  transition: border-color .22s,color .22s;
}
body[data-controls="type"] .footer-choices button:hover {
  background: transparent;
  border-top-color: var(--type-paper);
  color: #fff;
  transform: none;
}
body[data-controls="type"] .footer-choices strong { letter-spacing: -.035em; }
body[data-controls="type"] .footer-bottom>a {
  border-bottom: 2px solid currentColor;
  padding-bottom: 5px;
  color: var(--type-paper);
  font: 15px/1 Russo,sans-serif;
  text-transform: uppercase;
  text-decoration: none;
}
body[data-controls="type"] .footer-bottom>a:hover {
  color: #d3ddb5;
  text-decoration: none;
}

@media (max-width: 1250px) {
  body[data-controls="type"] .header-nav { gap: 17px; }
  body[data-controls="type"] :is(.header-pill,.header-link) { font-size: 13px; gap: 8px; }
  body[data-controls="type"] .action-button { font-size: 20px; }
}
@media (max-width: 900px) {
  body[data-controls="type"] .rail-item {
    min-height: 39px;
    border-left: 0;
    border-bottom: 3px solid transparent;
  }
  body[data-controls="type"] .rail-item:hover,
  body[data-controls="type"] .rail-item.is-current { border-bottom-color: var(--type-paper); }
  body[data-controls="type"] .rail-item>span:nth-child(2) { font-size: 12px; }
}
@media (max-width: 620px) {
  body[data-controls="type"] .header-pill {
    height: 39px;
    font-size: 11px;
    border-bottom-width: 2px;
  }
  body[data-controls="type"] .header-pill>svg { display: none; }
  body[data-controls="type"] .hero-action {
    height: 48px;
    min-width: 145px;
    font-size: 17px;
  }
  body[data-controls="type"] .material-statement .action-button { font-size: 14px; }
  body[data-controls="type"] .card-link { font-size: 15px; }
  body[data-controls="type"] .mini-card .card-link { font-size: 11px; }
  body[data-controls="type"] .card-link .control-arrow { width: 20px; }
  body[data-controls="type"] .variant-choice span { font-weight: 650; }
  body[data-controls="type"] .field-panel>a { font-size: 15px; }
  body[data-controls="type"] .footer-choices button { border-top-width: 2px; }
  body[data-controls="type"] .footer-bottom>a { font-size: 12px; }
}
@media (max-width: 390px) {
  body[data-controls="type"] .hero-action { font-size: 16px; }
  body[data-controls="type"] .mini-card .card-link { font-size: 11px; }
  body[data-controls="type"] .footer-choices strong { font-size: 12px; }
}

/* Refined 02: the open guide has a stroke, a deliberate pause, and a separate sharp head. */
body[data-controls="type"] .control-arrow {
  width: 32px;
  height: 24px;
  stroke-width: 2;
  transform-origin: center;
}
body[data-controls="type"] .control-arrow--up { transform: rotate(-90deg); }
body[data-controls="type"] .control-arrow--diagonal { transform: rotate(-45deg); }
body[data-controls="type"] :is(.header-pill,.header-link):hover .control-arrow--diagonal,
body[data-controls="type"] .field-panel>a:hover .control-arrow--diagonal { transform: rotate(-45deg) translateX(5px); }

/* Primary: long dual rail, deep pause at the arrow and a large Russo verb. */
body[data-controls="type"] .action-button {
  height: 64px;
  min-width: 218px;
  padding: 0 0 10px;
  border: 0;
  isolation: isolate;
  font-size: clamp(21px,1.8vw,28px);
}
body[data-controls="type"] .action-button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(to right,currentColor 0 calc(100% - 52px),transparent calc(100% - 52px) calc(100% - 42px),currentColor calc(100% - 42px));
  transform-origin: left;
  transition: transform .28s var(--ease);
}
body[data-controls="type"] .action-button:hover::after { transform: scaleX(1.025); }
body[data-controls="type"] .action-button:hover .button-arrow { transform: none; }
body[data-controls="type"] .action-button:active .control-arrow { transform: translateX(2px); }
body[data-controls="type"] .material-statement .action-button { height: 58px; }

/* Secondary: a lighter line leads from the caption and stops before its head. */
body[data-controls="type"] .card-link {
  border: 0;
  border-top: 1.5px solid currentColor;
  letter-spacing: -.025em;
}
body[data-controls="type"] .card-link::after {
  content: "";
  position: absolute;
  top: -1.5px;
  right: 33px;
  width: 9px;
  height: 2px;
  background: #e9e8e1;
}
body[data-controls="type"] .fastener-card .card-link::after { background: #33392d; }
body[data-controls="type"] :is(.feature-card,.mini-card):hover .card-link>span:last-child { transform: none; }
body[data-controls="type"] :is(.feature-card,.mini-card):active .card-link .control-arrow { transform: translateX(2px); }

/* Header and rail are indexes: compact guides, not repeated primary buttons. */
body[data-controls="type"] :is(.header-pill,.header-link) {
  border: 0;
  position: relative;
  font-size: 15px;
  font-weight: 400;
}
body[data-controls="type"] :is(.header-pill,.header-link)::after {
  content: "";
  position: absolute;
  height: 2px;
  left: 0;
  width: calc(100% - 25px);
  bottom: 1px;
  background: currentColor;
  transform: scaleX(.78);
  transform-origin: left;
  transition: transform .24s var(--ease);
}
body[data-controls="type"] :is(.header-pill,.header-link):hover::after { transform: scaleX(1); }
body[data-controls="type"] .rail-item,
body[data-controls="type"] .rail-item:hover,
body[data-controls="type"] .rail-item.is-current { border: 0; }
body[data-controls="type"] .rail-item::after {
  content: "";
  position: absolute;
  left: 15px;
  bottom: 5px;
  width: 39px;
  height: 2px;
  background: var(--type-paper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .24s var(--ease);
}
body[data-controls="type"] .rail-item:hover::after { transform: scaleX(.67); }
body[data-controls="type"] .rail-item.is-current::after { transform: scaleX(1); }
body[data-controls="type"] .rail-item.is-current>span:nth-child(2) { color: #fff; }
body[data-controls="type"] .rail-item:active .rail-arrow { transform: translateX(2px); }
body[data-controls="type"] .rail-bottom-link .control-arrow { width: 22px; }
body[data-controls="type"] .rail-bottom-link:hover .control-arrow { transform: translateX(5px); }

/* Selection: open photo samples and a bounded rule that follows the live color. */
body[data-controls="type"] .variant-choice {
  border: 0;
  position: relative;
  padding-bottom: 6px;
}
body[data-controls="type"] .variant-choice::after {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 0;
  height: 3px;
  background: #a7a899;
  transform: scale(.78,.67);
  transition: transform .22s var(--ease),background .22s;
}
body[data-controls="type"] .variant-choice:is(:hover,.is-active)::after {
  transform: scale(1);
  background: var(--type-olive);
}
body[data-controls="type"] .variant-choice:active { filter: brightness(.86); }
body[data-controls="type"] .hero-direction { min-width: 44px; min-height: 44px; }
body[data-controls="type"] .hero-direction[data-direction="-1"]:hover svg { transform: translateX(-4px); }
body[data-controls="type"] .hero-direction[data-direction="1"]:hover svg { transform: translateX(4px); }
body[data-controls="type"] .hero-direction:active svg { transform: translateX(0); }

/* Tertiary continuations retain a physical target without a filled badge. */
body[data-controls="type"] .catalog-line>a { min-width: 58px; min-height: 58px; border: 0; position: relative; }
body[data-controls="type"] .catalog-line>a::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 5px;
  height: 2px;
  background: currentColor;
}
body[data-controls="type"] .catalog-line>a:active .control-arrow { transform: translateX(2px); }
body[data-controls="type"] .field-panel>a { border-top-width: 2px; min-height: 54px; }
body[data-controls="type"] .field-panel>a:active .control-arrow--diagonal { transform: rotate(-45deg) translateX(2px); }

/* Finale choices carry the same live selection line as the hero specimens. */
body[data-controls="type"] .footer-choices button { border-top-width: 1px; }
body[data-controls="type"] .footer-choices button::after {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  width: 64px;
  height: 2px;
  background: #aab494;
  transform: scaleX(.344);
  transform-origin: left;
  transition: transform .25s var(--ease),background .25s;
}
body[data-controls="type"] .footer-choices button:is(:hover,[aria-pressed="true"])::after {
  transform: scaleX(1);
  background: var(--type-paper);
}
body[data-controls="type"] .footer-choices button[aria-pressed="true"] strong { color: #f4f1e8; }
body[data-controls="type"] .footer-choices button:active { filter: brightness(1.25); }
body[data-controls="type"] .footer-bottom>a { min-height: 44px; }
body[data-controls="type"] .footer-bottom>a:hover .control-arrow--up { transform: rotate(-90deg) translateX(5px); }
body[data-controls="type"] .footer-bottom>a:active .control-arrow--up { transform: rotate(-90deg) translateX(2px); }

@media (max-width: 900px) {
  body[data-controls="type"] .rail-item::after { left: 10px; bottom: 1px; }
}
@media (max-width: 620px) {
  body[data-controls="type"] .header-pill { font-size: 11px; }
  body[data-controls="type"] .header-pill::after { width: 100%; }
  body[data-controls="type"] .hero-copy p { margin-bottom: 3px; }
  body[data-controls="type"] .hero-action {
    position: absolute;
    left: clamp(147px, 46vw, 180px);
    bottom: 3px;
    width: clamp(138px, 42vw, 164px);
    min-width: 0;
    height: 44px;
    padding-bottom: 7px;
    font-size: 16px;
  }
  body[data-controls="type"] .hero-action .button-arrow { background: transparent; padding: 0; }
  body[data-controls="type"] .hero-action .control-arrow { width: 26px; }
  body[data-controls="type"] .hero-direction { width: 44px; }
  body[data-controls="type"] .footer-choices button::after { left: 9px; }
}
@media (max-width: 390px) {
  body[data-controls="type"] .hero-action { font-size: 15px; }
}
