/* MANU Attachment V10. Scoped visual polish; no theme-wide component selectors. */
.manu-attachment {
  --manu-att-peach: #ffa65a;
  --manu-att-peach-hover: #ff924a;
  --manu-att-peach-20: rgba(255,166,90,.2);
  --manu-att-peach-10: rgba(255,166,90,.1);
  --manu-att-paper: #fff9f3;
  --manu-att-ring: #ffb67a;
  --manu-att-link: #5b4aa5;
  --manu-att-link-hover: #3f2f86;
  --manu-att-tt-bg: rgba(18,18,18,.92);
  --manu-att-tt-shadow: 0 10px 24px rgba(0,0,0,.18);
  font-family: inherit;
}
.manu-attachment *, .manu-attachment *::before, .manu-attachment *::after { box-sizing: border-box; }
.manu-attachment button, .manu-attachment input, .manu-attachment select, .manu-attachment textarea,
.manu-attachment h1, .manu-attachment h2, .manu-attachment h3, .manu-attachment a { font-family: inherit; }
.manu-attachment [hidden] { display: none !important; }
.manu-attachment button, .manu-attachment a { touch-action: manipulation; }
.manu-attachment a:focus-visible, .manu-attachment button:focus-visible {
  outline: 3px solid var(--manu-att-ring); outline-offset: 3px;
}
.manu-attachment .sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0; white-space: nowrap;
}
/* Sole exception to component scoping: the exact PDF-only search wrapper in Ruki header.php. */
body.manu-pdf-attachment #manu-searchbar.manu-searchbar-wrap { display: none !important; }

.manu-attachment .attachment-breadcrumb {
  width: 100%; min-width: 0; margin: .4rem 0 1rem; padding: .68rem .9rem;
  border: 1px solid rgba(255,166,90,.16); border-radius: 14px;
  background: rgba(255,249,243,.72); box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
  color: #777; font-size: .88rem; line-height: 1.3; overflow: hidden;
}
.manu-attachment .attachment-breadcrumb ol {
  display: flex; align-items: center; gap: .48rem; list-style: none; margin: 0; padding: 0;
}
.manu-attachment .attachment-breadcrumb li { display: flex; align-items: center; gap: .48rem; min-width: 0; margin: 0; padding: 0; }
.manu-attachment .attachment-breadcrumb li + li::before { content: '›'; color: #c4b7ae; flex: 0 0 auto; }
.manu-attachment .attachment-breadcrumb a {
  display: block; color: #666; text-decoration: none; font-weight: 600;
  letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.manu-attachment .attachment-breadcrumb__home { flex: 0 0 auto; }
.manu-attachment .attachment-breadcrumb__home svg { display: block; width: 17px; height: 17px; }
.manu-attachment .attachment-breadcrumb .attachment-breadcrumb__set { flex: 1 1 auto; }
.manu-attachment .attachment-breadcrumb .attachment-breadcrumb__set a { font-weight: 700; color: #98603a; }
.manu-attachment .attachment-breadcrumb a:focus-visible { color: #9a623a; }

.manu-attachment .attachment-hero {
  --manu-att-image-width: 350px;
  position: relative; display: grid; grid-template-columns: var(--manu-att-image-width) minmax(0,1fr);
  column-gap: 2.15rem; align-items: start; min-height: calc(var(--manu-att-image-width) * 297 / 210);
  margin-bottom: 1.35rem;
}
.manu-attachment .attachment-hero.has-image-nav { min-height: calc(var(--manu-att-image-width) * 297 / 210 + .75rem + 1.1rem + 4px + 1.15rem); }
.manu-attachment .attachment-hero__content {
  grid-column: 2; display: flex; flex-direction: column; min-width: 0; padding: 1.7rem 1.85rem;
  border: 1px solid rgba(255,166,90,.08); border-radius: 20px;
  background: var(--manu-att-paper); box-shadow: 0 6px 22px rgba(0,0,0,.03);
}
.manu-attachment .attachment-hero__primary { display: contents; }
/* Match Ruki's .has-sidebar h1.entry-title specificity; keep sizing in CSS. */
.manu-attachment h1.entry-title {
  position: relative; display: block; width: 100%; margin: 0 0 25px; padding: 0; border-radius: 0;
  background: none; box-shadow: none; color: #303035;
  font-size: 24px; line-height: 1.18; font-weight: 700;
  letter-spacing: -.01em; overflow-wrap: anywhere; white-space: normal; text-wrap: balance;
}
.manu-attachment h1.entry-title::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -13px; height: 1px;
  background: linear-gradient(90deg,rgba(0,0,0,.035),rgba(0,0,0,.075),rgba(0,0,0,.035));
}
.manu-attachment .attachment-image {
  position: absolute; top: 0; left: 0; width: var(--manu-att-image-width);
}
.manu-attachment .attachment-image > a {
  display: block; width: 100%; aspect-ratio: 210 / 297;
  border-radius: 16px; overflow: hidden; background: #fff;
}
.manu-attachment .attachment-image img {
  display: block; width: 100%; height: 100%; max-width: none;
  aspect-ratio: 210 / 297; object-fit: contain; border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.manu-attachment .meta-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 .875rem; }
.manu-attachment .meta-chip {
  position: relative; padding: .28rem .58rem; border: 1px solid rgba(255,166,90,.26); border-radius: 999px;
  background: rgba(255,243,230,.62); color: #99623a; font-size: .8rem; font-weight: 600; line-height: 1;
  cursor: default; transition: box-shadow .15s, transform .15s;
}
.manu-attachment .meta-chip:focus-visible { outline: 3px solid var(--manu-att-ring); outline-offset: 2px; }

.manu-attachment .cta-bar { display: flex; align-items: center; gap: .6rem; flex-wrap: nowrap; margin-top: 0; overflow: visible; }
.manu-attachment .cta-primary { flex: 0 0 auto; }
.manu-attachment .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .75em 1.5em; border-radius: 14px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1; white-space: nowrap; cursor: pointer; text-decoration: none;
  transition: background .2s,color .2s,transform .2s,box-shadow .2s,border-color .2s;
}
.manu-attachment .btn svg { width: 22px; height: 22px; flex: 0 0 22px; transform: translateY(1px); }
.manu-attachment .download-button { background: var(--manu-att-peach); color: #fff; box-shadow: 0 4px 10px var(--manu-att-peach-20); }
.manu-attachment .icon-btn {
  position: relative; width: 44px; height: 44px; padding: 0; border-radius: 14px;
  border: 2px solid var(--manu-att-peach); background: transparent; color: var(--manu-att-peach);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .2s,color .2s,transform .15s,box-shadow .2s,border-color .2s;
  box-shadow: 0 0 0 rgba(0,0,0,0); text-decoration: none; flex: 0 0 auto; font-weight: 700;
}
.manu-attachment .icon-btn svg { width: 20px; height: 20px; }
.manu-attachment .fav-split { display: inline-flex; align-items: stretch; border-radius: 14px; overflow: visible; flex: 0 0 auto; }
.manu-attachment .fav-split > * { border-radius: 0; }
.manu-attachment .fav-split .fav-heart { width: 44px; border-top-left-radius: 14px; border-bottom-left-radius: 14px; border-right: 0; }
.manu-attachment .fav-split .fav-count-link {
  width: auto; padding: 0 .85rem; gap: .45rem; border-top-right-radius: 14px; border-bottom-right-radius: 14px;
  font-size: .95rem; line-height: 1;
}
.manu-attachment .fav-count { font-weight: 900; font-size: .95rem; line-height: 1; }
.manu-attachment .fav-split .fav-heart.btn-fav-active { background: var(--manu-att-peach); color: #fff; }
.manu-attachment .download-note { margin: .75rem 0 0; font-size: .95rem; color: #6b6b6b; }
.manu-attachment .image-nav {
  position: absolute; left: 0; top: calc(var(--manu-att-image-width) * 297 / 210);
  width: var(--manu-att-image-width); display: flex; justify-content: space-between; align-items: center;
  gap: .75rem; margin-top: .75rem;
}
.manu-attachment .image-nav a {
  display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .9rem;
  border-radius: 12px; border: 2px solid #eaded4; background: #fff; color: #444;
  font-weight: 700; font-size: 1rem; line-height: 1.15; text-decoration: none; transition: transform .15s,box-shadow .15s,border-color .15s;
}
.manu-attachment .image-nav svg { width: 18px; height: 18px; }
.manu-attachment .desc-wrap { margin: .875rem 0 0; }
.manu-attachment .desc-wrap, .manu-attachment .attachment-set-card__summary,
.manu-attachment .attachment-categories-panel__description { color: #686868; font-weight: 400; letter-spacing: 0; font-size: .95rem; line-height: 1.55; }
.manu-attachment.has-js .desc-clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.manu-attachment .desc-actions { margin-top: .28rem; }
.manu-attachment .desc-toggle {
  display: none; background: transparent; border: 0; padding: 0; color: var(--manu-att-link);
  font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.manu-attachment.has-js .desc-toggle { display: inline-block; }

.manu-attachment .similar-thumbs {
  padding: 1.2rem; margin: 0 0 1.35rem; border: 1px solid rgba(239,221,210,.72); border-radius: 20px;
  background: linear-gradient(180deg,#fffcf9 0%,#fff8f3 100%);
  box-shadow: 0 12px 32px rgba(59,43,34,.032),inset 0 1px 0 rgba(255,255,255,.8);
}
.manu-attachment .similar-header { margin: 0 0 1rem; padding: 0; text-align: left; }
.manu-attachment .similar-heading {
  display: block; margin: 0; font-size: 1.18rem; line-height: 1.28; text-wrap: balance;
}
.manu-attachment .similar-heading, .manu-attachment .attachment-set-card__title,
.manu-attachment .attachment-categories-panel__title { color: #303035; font-weight: 700; letter-spacing: -.012em; }
.manu-attachment .similar-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); align-items: stretch; gap: 1rem; }
.manu-attachment .similar-item {
  min-width: 0; height: auto; align-self: stretch; overflow: hidden; display: flex; flex-direction: column;
  border: 1px solid rgba(219,199,187,.8); border-radius: 16px; background: rgba(255,255,255,.98);
  box-shadow: 0 6px 18px rgba(59,43,34,.048),0 1px 2px rgba(59,43,34,.025); text-align: center;
}
.manu-attachment .similar-item__media { flex: 0 0 auto; min-width: 0; padding: 6px 6px 0; }
.manu-attachment .similar-item__image-link {
  position: relative; display: block; overflow: hidden; width: 100%; aspect-ratio: 210 / 297;
  border: 0; border-radius: 14px; background: transparent; box-shadow: none; line-height: 0;
  text-decoration: none; isolation: isolate; -webkit-tap-highlight-color: transparent;
}
.manu-attachment .similar-item img {
  display: block; position: absolute; inset: 0; width: 100%; max-width: 100%; height: 100%;
  aspect-ratio: 210 / 297; object-fit: contain; border: 0; border-radius: 13px; background: transparent; box-shadow: none;
}
.manu-attachment .similar-item__placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: #686868; line-height: 1.4; }
.manu-attachment .similar-item__image-link::after {
  content: ''; position: absolute; z-index: 1; inset: 0; border-radius: 13px;
  background: linear-gradient(180deg,rgba(157,78,52,.015) 0%,rgba(157,78,52,.14) 100%);
  opacity: 0; pointer-events: none; transition: opacity 180ms ease;
}
.manu-attachment .similar-item__overlay {
  position: absolute; z-index: 2; top: 50%; left: 50%; display: inline-flex; align-items: center; justify-content: center;
  gap: .38rem; width: max-content; max-width: calc(100% - 22px); min-height: 37px; padding: .55rem .76rem;
  border: 1px solid rgba(255,255,255,.44); border-radius: 999px;
  background: linear-gradient(180deg,rgba(234,126,93,.86) 0%,rgba(213,95,64,.84) 100%);
  color: #fff; box-shadow: 0 7px 17px rgba(112,52,35,.18),inset 0 1px 0 rgba(255,255,255,.18);
  font-size: clamp(.77rem,.82vw,.81rem); line-height: 1; font-weight: 700; letter-spacing: .005em;
  white-space: nowrap; opacity: 0; transform: translate(-50%,-42%); pointer-events: none;
  transition: opacity 180ms ease,transform 180ms ease;
}
.manu-attachment .similar-item__overlay::before {
  content: ''; display: block; width: 16px; height: 16px; flex: 0 0 16px; background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5C6.5 5 2.1 8.4 1 12c1.1 3.6 5.5 7 11 7s9.9-3.4 11-7C21.9 8.4 17.5 5 12 5Zm0 11a4 4 0 1 1 0-8 4 4 0 0 1 0 8Zm0-2a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5C6.5 5 2.1 8.4 1 12c1.1 3.6 5.5 7 11 7s9.9-3.4 11-7C21.9 8.4 17.5 5 12 5Zm0 11a4 4 0 1 1 0-8 4 4 0 0 1 0 8Zm0-2a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.manu-attachment .similar-item-title {
  flex: 0 0 auto; display: flex; align-items: flex-start; justify-content: center;
  width: 100%; margin: auto 0 0; padding: .65rem .75rem .8rem;
  font-size: .88rem; line-height: 1.38; font-weight: 500; letter-spacing: 0;
  color: #3f4044; overflow-wrap: anywhere; text-wrap: balance;
}
.manu-attachment .similar-item-title a, .manu-attachment .similar-item-title a:visited {
  color: inherit; font-weight: 500; text-decoration: none; text-underline-offset: 4px; transition: color 160ms ease;
}
.manu-attachment .similar-all-wrap { display: none; }
.manu-attachment .similar-all-link {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 40px; margin: 0; padding: .56rem .78rem; border: 1px solid rgba(220,109,77,.28); border-radius: 999px;
  background: linear-gradient(180deg,#f08a68 0%,#dc6d4d 100%); color: #fff;
  box-shadow: 0 7px 18px rgba(112,52,35,.14),inset 0 1px 0 rgba(255,255,255,.18);
  font-size: .85rem; line-height: 1.2; font-weight: 700; letter-spacing: normal; text-transform: none;
  text-align: center; text-decoration: none; cursor: pointer; appearance: none; -webkit-appearance: none;
  transition: transform 160ms ease,box-shadow 160ms ease,background 160ms ease;
}
.manu-attachment .similar-all-link svg { display: block; width: 20px; height: 20px; flex: 0 0 20px; }

.manu-attachment .attachment-set-card {
  display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 1rem 1.5rem; align-items: center;
  margin: 0 0 1.35rem; padding: 1.15rem 1.35rem; border: 1px solid rgba(255,166,90,.16); border-radius: 18px;
  background: linear-gradient(180deg,rgba(255,252,249,.96) 0%,rgba(255,247,239,.96) 100%);
  box-shadow: 0 8px 22px rgba(59,43,34,.025),inset 0 1px 0 rgba(255,255,255,.86);
}
.manu-attachment .attachment-set-card__eyebrow, .manu-attachment .attachment-categories-panel__eyebrow {
  margin: 0 0 .25rem; color: #9a623a; font-size: .78rem; line-height: 1.2; font-weight: 800;
  letter-spacing: .045em; text-transform: uppercase;
}
.manu-attachment .attachment-set-card__title, .manu-attachment .attachment-categories-panel__title { margin: 0; font-size: 1.12rem; line-height: 1.3; }
.manu-attachment .attachment-set-card__summary { margin: .4rem 0 0; max-width: 860px; }
.manu-attachment .attachment-set-card__link {
  grid-column: 2; grid-row: 1 / span 2; display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 44px; padding: .68rem 1rem; border: 1px solid #ffd6b3; border-radius: 999px;
  background: #fff; color: #5b4738; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease,border-color .15s ease,box-shadow .15s ease,background .15s ease;
}
.manu-attachment .attachment-set-card__link svg { width: 18px; height: 18px; flex: 0 0 18px; }
.manu-attachment .attachment-categories-panel {
  margin: 0 0 2rem; padding: 1.15rem 1.2rem 1.2rem; border: 1px solid rgba(255,166,90,.13); border-radius: 20px;
  background: linear-gradient(180deg,rgba(255,252,249,.92) 0%,rgba(255,248,242,.92) 100%);
  box-shadow: 0 8px 22px rgba(59,43,34,.02),inset 0 1px 0 rgba(255,255,255,.82);
}
.manu-attachment .attachment-categories-panel__header { display: block; margin: 0 0 1rem; padding: 0 .15rem; }
.manu-attachment .attachment-categories-panel__eyebrow { margin-bottom: .24rem; font-size: .76rem; }
.manu-attachment .attachment-categories-panel__description { margin: .28rem 0 0; }
.manu-attachment .manu-attach-tiles-block { margin: 0; }
.manu-attachment .manu-attach-tiles-block .manu-cat-belts { width: 100%; grid-template-columns: repeat(3,minmax(0,1fr)); }

.manu-attachment #pdf-print-iframe { position: fixed; right: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; border: 0; pointer-events: none; }
.manu-attachment .attachment-tooltip {
  position: fixed; left: 0; top: 0; z-index: 9999; width: max-content; max-width: min(280px,calc(100vw - 20px));
  padding: .375rem .56rem; border: 1px solid #eddacc; border-radius: 8px; background: #fffcf8; color: #59534f;
  font-size: .8rem; line-height: 1.3; text-align: left; box-shadow: 0 4px 12px rgba(59,43,34,.09);
}
.manu-attachment .attachment-tooltip::after {
  content: ""; position: absolute; left: var(--manu-att-arrow-x,50%); top: 100%;
  width: 7px; height: 7px; margin-top: -3px; transform: translateX(-50%) rotate(45deg);
  background: #fffcf8; border-right: 1px solid #eddacc; border-bottom: 1px solid #eddacc;
}
.manu-attachment .attachment-tooltip[data-below="true"]::after { top: 0; margin-top: -4px; transform: translateX(-50%) rotate(225deg); }
.manu-attachment .fav-toast {
  position: fixed; left: 0; top: 0; opacity: 0; visibility: hidden; pointer-events: none;
  background: var(--manu-att-tt-bg); color: #fff; font-size: .92rem; line-height: 1.35;
  padding: .52rem .72rem; border-radius: 14px; box-shadow: var(--manu-att-tt-shadow);
  max-width: min(92vw,420px); z-index: 9999; transition: opacity .12s ease;
}
.manu-attachment .fav-toast[data-show="1"] { opacity: 1; visibility: visible; pointer-events: auto; }
.manu-attachment .fav-toast a { color: #fff; font-weight: 900; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.manu-attachment .fav-toast::after {
  content: ''; position: absolute; left: var(--manu-att-arrow-x,24px); top: -6px;
  border: 6px solid transparent; border-bottom-color: var(--manu-att-tt-bg); transform: translateX(-50%);
}

@media (min-width: 768px) {
  .manu-attachment .desc-text > :first-child { margin-top: 0; }
  .manu-attachment .desc-text > :last-child { margin-bottom: 0; }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .manu-attachment .attachment-hero { --manu-att-image-width: 330px; }
  .manu-attachment .similar-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .manu-attachment .cta-bar { flex-wrap: wrap; }
}
@media (max-width: 767px) {
  .manu-attachment .attachment-breadcrumb {
    margin: .35rem 0 .75rem; padding: .58rem .68rem; border-color: rgba(255,166,90,.18);
    border-radius: 13px; background: rgba(255,249,243,.78); box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
    font-size: .82rem; line-height: 1.25;
  }
  .manu-attachment .attachment-breadcrumb ol, .manu-attachment .attachment-breadcrumb li { gap: .42rem; }
  .manu-attachment .attachment-breadcrumb .attachment-breadcrumb__ancestor { display: none; }
  .manu-attachment .attachment-breadcrumb__home svg { width: 16px; height: 16px; }
  .manu-attachment .attachment-breadcrumb__category { flex: 0 1 auto; max-width: 38%; }
  .manu-attachment .attachment-breadcrumb .attachment-breadcrumb__set a { color: #98603a; }
  .manu-attachment .attachment-hero, .manu-attachment .attachment-hero.has-image-nav { display: block; min-height: 0; margin-bottom: 1.05rem; }
  .manu-attachment .attachment-hero__content { display: contents; }
  .manu-attachment .attachment-hero__primary {
    display: flex; flex-direction: column; padding: .88rem; border: 1px solid rgba(255,166,90,.15);
    border-radius: 18px; background: linear-gradient(180deg,#fffdfa 0%,#fff8f2 100%);
    box-shadow: 0 8px 22px rgba(59,43,34,.03),inset 0 1px 0 rgba(255,255,255,.9);
  }
  .manu-attachment .meta-chips { display: none; }
  .manu-attachment h1.entry-title { margin: 0 0 .66rem; font-size: 19px; font-weight: 700; line-height: 1.18; letter-spacing: -.005em; text-wrap: balance; }
  .manu-attachment h1.entry-title::after { display: none; }
  .manu-attachment .attachment-image { position: static; width: 100%; margin: 0; }
  .manu-attachment .attachment-image > a { border: 1px solid rgba(185,174,166,.5); border-radius: 14px; box-shadow: 0 4px 12px rgba(0,0,0,.055); }
  .manu-attachment .attachment-image img { border-radius: 13px; box-shadow: none; }
  .manu-attachment .cta-bar { width: 100%; margin-top: .72rem; gap: .36rem; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .manu-attachment .cta-bar > :first-child { margin-left: auto; }
  .manu-attachment .cta-bar > :last-child { margin-right: auto; }
  .manu-attachment .cta-bar::-webkit-scrollbar { display: none; }
  .manu-attachment .btn.download-button { min-height: 44px; padding: .7rem .86rem; border-radius: 14px; font-size: .9rem; }
  .manu-attachment .btn.download-button svg { width: 20px; height: 20px; flex-basis: 20px; }
  .manu-attachment .icon-btn { width: 42px; height: 42px; border-radius: 13px; }
  .manu-attachment .fav-split .fav-heart { width: 42px; border-top-left-radius: 13px; border-bottom-left-radius: 13px; }
  .manu-attachment .fav-split .fav-count-link { min-width: 42px; padding: 0 .62rem; border-top-right-radius: 13px; border-bottom-right-radius: 13px; }
  .manu-attachment .download-note { margin: .42rem 0 0; color: #777; font-size: .8rem; line-height: 1.35; text-align: center; }
  .manu-attachment .image-nav {
    position: static; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem; width: 100%; margin: .62rem 0 0;
  }
  .manu-attachment .image-nav > div { min-width: 0; }
  .manu-attachment .image-nav a { width: 100%; min-height: 42px; justify-content: center; padding: .55rem .65rem; border: 1px solid #eaded4; color: #494949; font-size: .88rem; line-height: normal; box-shadow: 0 3px 10px rgba(0,0,0,.025); }
  .manu-attachment .desc-wrap { margin: .8rem .15rem 0; }
  .manu-attachment .desc-wrap, .manu-attachment .attachment-set-card__summary,
  .manu-attachment .attachment-categories-panel__description { font-size: .9rem; line-height: 1.52; }
  .manu-attachment.has-js .desc-clamp { -webkit-line-clamp: 3; }
  .manu-attachment .desc-toggle { font-size: .92rem; }
  .manu-attachment .similar-thumbs {
    padding: .72rem; margin-bottom: 1rem; border-radius: 18px;
    background: radial-gradient(circle at 96% 3%,rgba(255,160,127,.12),transparent 24%),linear-gradient(180deg,#fffcf9 0%,#fff8f3 100%);
  }
  .manu-attachment .similar-header { margin: 0 0 .72rem; padding: .08rem .1rem .05rem; }
  .manu-attachment .similar-heading { font-size: 1.04rem; line-height: 1.28; }
  .manu-attachment .similar-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .64rem; }
  .manu-attachment .similar-item { border-radius: 15px; }
  .manu-attachment .similar-item__media { padding: 4px 4px 0; }
  .manu-attachment .similar-item-title { padding: .48rem .38rem .6rem; font-size: .79rem; line-height: 1.36; }
  .manu-attachment.has-js .similar-grid:not(.is-expanded) > .similar-item:nth-child(n+13) { display: none; }
  .manu-attachment.has-js .similar-all-wrap { display: flex; justify-content: center; margin-top: .78rem; }
  .manu-attachment .similar-all-link { width: 100%; }
  .manu-attachment .attachment-set-card {
    display: block; margin: 0 0 1rem; padding: .95rem 1rem; border-color: rgba(255,166,90,.15); border-radius: 16px;
    background: linear-gradient(180deg,#fffdfa 0%,#fff8f2 100%); box-shadow: 0 7px 18px rgba(59,43,34,.022),inset 0 1px 0 rgba(255,255,255,.85);
  }
  .manu-attachment .attachment-set-card__eyebrow { margin-bottom: .22rem; font-size: .72rem; }
  .manu-attachment .attachment-set-card__title, .manu-attachment .attachment-categories-panel__title { font-size: 1.04rem; line-height: 1.3; }
  .manu-attachment .attachment-set-card__summary { margin: .42rem 0 0; }
  .manu-attachment .attachment-set-card__link { display: flex; gap: .38rem; width: 100%; min-height: 43px; margin-top: .72rem; padding: .62rem .82rem; font-size: .9rem; }
  .manu-attachment .attachment-set-card__link svg { width: 17px; height: 17px; flex-basis: 17px; }
  .manu-attachment .attachment-categories-panel {
    margin: 0 0 1.5rem; padding: .92rem; border-radius: 17px; background: linear-gradient(180deg,#fffdfa 0%,#fff8f2 100%);
    box-shadow: 0 7px 18px rgba(59,43,34,.018),inset 0 1px 0 rgba(255,255,255,.84);
  }
  .manu-attachment .attachment-categories-panel__header { margin: 0 0 .78rem; padding: 0 .05rem; }
  .manu-attachment .attachment-categories-panel__eyebrow { margin-bottom: .18rem; font-size: .7rem; }
  .manu-attachment .attachment-categories-panel__description { margin: .24rem 0 0; }
  .manu-attachment .manu-attach-tiles-block, .manu-attachment .manu-attach-tiles-block * { font-family: inherit; }
  .manu-attachment .manu-attach-tiles-block .manu-cat-belts { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 360px) {
  .manu-attachment h1.entry-title { font-size: 18px; }
  .manu-attachment .attachment-hero__primary { padding: .72rem; }
  .manu-attachment .btn.download-button { padding: .66rem .72rem; font-size: .86rem; }
  .manu-attachment .icon-btn, .manu-attachment .fav-split .fav-heart { width: 40px; height: 40px; }
  .manu-attachment .fav-split .fav-count-link { min-width: 40px; padding: 0 .52rem; }
}
/* Hover interactions are deliberately restricted to a fine pointer, so touch acts on the first tap. */
@media (hover: hover) and (pointer: fine) {
  .manu-attachment .download-button:hover { background: var(--manu-att-peach-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 14px rgba(255,146,74,.35); }
  .manu-attachment .icon-btn:hover { background: var(--manu-att-peach); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 14px var(--manu-att-peach-20); }
  .manu-attachment .image-nav a:hover { transform: translateY(-1px); border-color: #e2d6cc; box-shadow: 0 6px 14px rgba(0,0,0,.06); }
  .manu-attachment .attachment-breadcrumb a:hover { color: #9a623a; }
  .manu-attachment .desc-toggle:hover { color: var(--manu-att-link-hover); }
  .manu-attachment .meta-chip:hover { transform: translateY(-1px); }
  .manu-attachment .attachment-set-card__link:hover { transform: translateY(-1px); border-color: #ffc392; background: #fff7ef; box-shadow: 0 7px 16px rgba(0,0,0,.055); color: #49392d; }
  .manu-attachment .similar-all-link:hover { color: #fff; background: linear-gradient(180deg,#ed7d59 0%,#cf5f40 100%); box-shadow: 0 9px 22px rgba(112,52,35,.2),inset 0 1px 0 rgba(255,255,255,.18); transform: translateY(-1px); }
  .manu-attachment .similar-item__image-link:hover::after { opacity: 1; }
  .manu-attachment .similar-item__image-link:hover .similar-item__overlay { opacity: 1; transform: translate(-50%,-50%); }
  .manu-attachment .similar-item-title a:hover { color: #dc6d4d; text-decoration: underline; text-decoration-color: rgba(220,109,77,.56); text-decoration-thickness: 1px; }

}
.manu-attachment .similar-item__image-link:focus-visible::after { opacity: 1; }
.manu-attachment .similar-item__image-link:focus-visible .similar-item__overlay { opacity: 1; transform: translate(-50%,-50%); }
@media (hover: none), (pointer: coarse) { .manu-attachment .similar-item__overlay { display: none; } }
@media (prefers-reduced-motion: reduce) { .manu-attachment *, .manu-attachment *::before, .manu-attachment *::after { transition: none; } }
