/* Shared reading system. Scoped to MIVO documents; existing page content is retained. */
body[data-mivo-kind] {
  --mivo-ink: #17344d;
  --mivo-copy: #33485b;
  --mivo-rule: #dce5ec;
  --mivo-soft: #f3f7fa;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--mivo-copy);
  background: #fff;
  margin: 0;
  -webkit-text-size-adjust: 100%;
}
body[data-mivo-kind] *,body[data-mivo-kind] *::before,body[data-mivo-kind] *::after { box-sizing: border-box; }
body[data-mivo-kind] :where(a,button,input,select,textarea,[tabindex]):focus-visible { outline: 3px solid #cb8427; outline-offset: 4px; }
body[data-mivo-kind] main :where(p,li) { font-size: 16px !important; line-height: 1.75 !important; text-indent: 0; }
body[data-mivo-kind] main :where(input,textarea,select) { font-size: 16px; }
body[data-mivo-kind] main :where(h1,h2,h3,h4) { overflow-wrap: anywhere; text-wrap: pretty; text-shadow: none !important; }
body[data-mivo-kind] main :where(img,video,iframe) { max-width: 100%; }
body[data-mivo-kind] main :where(.hy-1180,.hy-1120,.main-content,.article,.text-container) { min-width: 0; }
body[data-mivo-kind] main a { text-underline-offset: 3px; }
body[data-mivo-kind] .breadcrumb { max-width: 1240px; margin: 0 auto; padding: 14px 24px; background: #f6f8fa; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
body[data-mivo-kind] > header { background: #fff; border-bottom: 1px solid var(--mivo-rule); box-shadow: 0 2px 12px #17344d08; }
body[data-mivo-kind] .nav-container { max-width: 1280px; margin-inline: auto; padding-inline: 24px; min-height: 80px; }
body[data-mivo-kind] .nav-container .logo img { height: 48px; width: auto; object-fit: contain; }
body[data-mivo-kind] .nav-container .logo strong { font-size: 22px; letter-spacing: .02em; }
body[data-mivo-kind] :where(#hamburger,#closeMenuBtn) { min-width: 44px; min-height: 44px; }
body[data-mivo-kind] .mivo-discovery-footer { padding: 20px; font-size: 16px; }
body[data-mivo-kind] .hy-db { border-top: 1px solid var(--mivo-rule); }
body[data-mivo-kind] .hy-db-container { gap: 32px; padding: 36px 24px; }
body[data-mivo-kind] footer p { font-size: 15px; line-height: 1.7; text-indent: 0; }

/* Product specifications: compact two-column introduction and full-width data. */
body[data-mivo-kind="product"] main { display: block; width: 100%; max-width: 1240px; margin: 0 auto; padding: 32px 24px 56px; }
body[data-mivo-kind="product"] main :where(#ad-container,.hy-1180) { width: 100%; max-width: 100%; min-width: 0; margin-inline: auto; }
body[data-mivo-kind="product"] main h1 { font-size: clamp(28px,3.4vw,42px) !important; line-height: 1.2 !important; letter-spacing: -.02em; color: var(--mivo-ink); margin: 0 0 20px; text-align: left; }
body[data-mivo-kind="product"] main h2,body[data-mivo-kind="product"] main h3 { font-size: clamp(22px,2.3vw,28px) !important; line-height: 1.35 !important; color: var(--mivo-ink); text-align: left; margin: 24px 0 16px; }
body[data-mivo-kind="product"] .mivo-catalog-heading { padding: 0 0 16px; }
body[data-mivo-kind="product"] main > p,body[data-mivo-kind="product"] .mivo-catalog-heading p { max-width: 85ch; }
body[data-mivo-kind="product"] .hy-l-r { display: grid !important; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; gap: 40px; width: 100%; padding: 0; margin: 32px 0; }
body[data-mivo-kind="product"] .hy-l,body[data-mivo-kind="product"] .hy-r { width: 100%; height: auto; min-width: 0; padding: 0; margin: 0; }
body[data-mivo-kind="product"] .hy-l img { display: block; width: 100%; height: 340px; max-height: 40vh; object-fit: contain; border: 1px solid var(--mivo-rule); border-radius: 12px; box-shadow: none; background: #fff; }
body[data-mivo-kind="product"] .hy-r { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 16px; }
body[data-mivo-kind="product"] .hy-r :where(.nrm,.hy-prt) { height: auto; width: 100%; margin: 0; padding: 0; }
body[data-mivo-kind="product"] .hy-r h2 { margin-top: 0; }
body[data-mivo-kind="product"] .hy-r .openModalBtn2 { align-self: flex-start; margin: 8px 0 0; padding: 12px 24px; min-height: 46px; border: 0; border-radius: 6px; background: #173e5c; color: white; font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1.4; box-shadow: none; }
body[data-mivo-kind="product"] .hy-h3,body[data-mivo-kind="product"] .hy-make { width: 100%; margin: 24px 0; padding: 0; }
body[data-mivo-kind="product"] .mivo-part-enquiry { max-width: none; margin: 32px 0; padding: 28px; background: #eef5f9; border: 1px solid #d7e5ee; border-left: 4px solid #245678; border-radius: 10px; }
body[data-mivo-kind="product"] .mivo-part-enquiry h2 { margin-top: 0; }
body[data-mivo-kind="product"] .mivo-part-enquiry p { max-width: 78ch; }
body[data-mivo-kind] .mivo-discovery { padding: 28px; margin: 32px auto; border: 1px solid var(--mivo-rule); border-radius: 10px; background: #f7f9fb; }
body[data-mivo-kind] .mivo-discovery-list { gap: 14px !important; }
body[data-mivo-kind] .mivo-discovery-list a { color: #175881; }

/* Editorial rhythm: a comfortable line length with clearly separated sections. */
body[data-mivo-kind="editorial"] .mivo-review { width: 100%; max-width: 1040px; padding: 48px 28px; }
body[data-mivo-kind="editorial"] .mivo-review h1 { max-width: 26ch; font-size: clamp(30px,3.6vw,46px); line-height: 1.18; letter-spacing: -.025em; margin-bottom: 24px; }
body[data-mivo-kind="editorial"] :where(.mivo-review,.article) p { max-width: 76ch; margin: 0 0 20px; }
body[data-mivo-kind="editorial"] .mivo-review section { margin-top: 44px; }
body[data-mivo-kind="editorial"] .mivo-review h2 { font-size: clamp(24px,2.7vw,31px); line-height: 1.3; }
body[data-mivo-kind="editorial"] .mivo-review-illustration { max-height: 280px; margin: 32px auto; }
body[data-mivo-kind="editorial"] .mivo-review-record { border: 1px solid var(--mivo-rule); border-radius: 10px; padding: 24px; }
body[data-mivo-kind="catalog"] .mivo-catalog { max-width: 1240px; padding: 32px 24px 56px; }
body[data-mivo-kind="catalog"] .mivo-catalog h1 { color: var(--mivo-ink); letter-spacing: -.02em; margin: 20px 0; }
body[data-mivo-kind="catalog"] .mivo-catalog > p { max-width: 80ch; margin-inline: auto; }
body[data-mivo-kind="catalog"] .mivo-catalog-grid > li { border-color: var(--mivo-rule); border-radius: 10px; padding: 22px; background: #fff; }
body[data-mivo-kind="catalog"] .mivo-catalog-grid > li:hover { border-color: #9bb6c9; box-shadow: 0 5px 20px #17344d0a; }
body[data-mivo-kind="catalog"] .mivo-catalog-filters > li > a { border-radius: 7px; background: #f8fafc; }
body[data-mivo-kind="home"] .mivo-home-section { padding-top: 64px; padding-bottom: 64px; }
body[data-mivo-kind="home"] .mivo-home-hero { background: #0055aa; }
body[data-mivo-kind="home"] .mivo-home-hero h1 { font-size: clamp(28px,3vw,40px) !important; line-height: 1.3; }
body[data-mivo-kind="home"] .mivo-home-hero .openModalBtn2 { min-height: 46px; padding: 12px 20px; font-size: 16px !important; background: #fff !important; color: #173e5c; border-radius: 5px; box-shadow: none; }
body[data-mivo-kind="home"] .mivo-home-hero .openModalBtn2:hover { background: #e4eef5 !important; }
body[data-mivo-kind="home"] .mivo-home-card { border-radius: 12px; padding: 28px; }
body[data-mivo-kind="home"] .mivo-home-content p { max-width: 76ch; }

/* Keep the real table layout readable, scroll the container rather than the page. */
body[data-mivo-kind] .mivo-table-scroll { display: block; width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-inline: contain; border: 1px solid var(--mivo-rule); border-radius: 8px; margin: 16px 0; background: #fff; -webkit-overflow-scrolling: touch; }
body[data-mivo-kind] .mivo-table-scroll table { display: table !important; border-collapse: collapse; width: 100%; max-width: none !important; margin: 0 !important; table-layout: auto; overflow: visible !important; }
body[data-mivo-kind] .mivo-table-scroll :where(th,td) { font-size: 15px !important; line-height: 1.55 !important; padding: 12px 16px !important; border: 0; border-bottom: 1px solid #e4ebf1; text-align: left; vertical-align: top; color: #263e52; }
body[data-mivo-kind] .mivo-table-scroll th { font-weight: 650; background: #173e5c !important; color: #fff; }
body[data-mivo-kind] .mivo-table-scroll tr:nth-child(even) td { background: #f5f8fa; }
body[data-mivo-kind] .mivo-table-scroll tr:last-child td { border-bottom: 0; }
body[data-mivo-kind] .mivo-table-hint { font-size: 14px !important; line-height: 1.5 !important; color: #516c80; margin: 6px 0 12px; }
body[data-mivo-kind] img[data-mivo-unavailable] { object-fit: contain; background: #f4f7fa; }
body[data-mivo-kind] .myModal2 .modal-content { border-radius: 12px; box-shadow: 0 18px 70px #102b4b40; padding: 28px; }
body[data-mivo-kind] .myModal2 :where(input,textarea) { font-size: 16px; line-height: 1.5; border-radius: 6px; }
body[data-mivo-kind] #cookie-consent-banner { padding: 14px 24px; font-size: 14px; line-height: 1.5; }
body[data-mivo-kind] #cookie-consent-banner p { padding: 0; margin: 0 0 8px; font-size: 14px; }
body[data-mivo-kind] #cookie-consent-banner button { min-height: 40px; border-radius: 5px; }
body[data-mivo-kind] #backToTopBtn { width: 44px; height: 44px; padding: 0; font-size: 0; border-radius: 8px; bottom: 24px; right: 20px; background: #173e5c; }
body[data-mivo-kind] #backToTopBtn::before { content: ''; display: block; width: 12px; height: 12px; margin: 6px auto 0; border-top: 2px solid #fff; border-left: 2px solid #fff; transform: rotate(45deg); }
@media(max-width:900px) {
  body[data-mivo-kind] .nav-container { padding-inline: 20px; }
  body[data-mivo-kind="product"] .hy-l-r { gap: 24px; }
  body[data-mivo-kind] .mivo-discovery .mivo-discovery-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:700px) {
  body[data-mivo-kind] .nav-container { min-height: 72px; padding-inline: 16px; gap: 12px; }
  body[data-mivo-kind] .nav-container .logo img { height: 42px; }
  body[data-mivo-kind] .nav-container .logo strong { display: none; }
  body[data-mivo-kind] .nav-container .openModalBtn { min-height: 44px; font-size: 15px; padding: 10px 16px; }
  body[data-mivo-kind] .breadcrumb { padding: 12px 20px; font-size: 13px; }
  body[data-mivo-kind="product"] main,body[data-mivo-kind="catalog"] .mivo-catalog { padding: 28px 20px 40px; }
  body[data-mivo-kind="product"] .hy-l-r { grid-template-columns: 1fr; gap: 24px; margin: 24px 0; }
  body[data-mivo-kind="product"] .hy-l img { height: 280px; max-height: none; }
  body[data-mivo-kind="product"] :where(.mivo-part-enquiry,.mivo-discovery) { padding: 20px; margin: 24px 0; }
  body[data-mivo-kind] .mivo-discovery .mivo-discovery-list { grid-template-columns: 1fr; }
  body[data-mivo-kind="editorial"] .mivo-review { padding: 32px 20px; }
  body[data-mivo-kind="editorial"] .mivo-review-record { padding: 16px; }
  body[data-mivo-kind] .mivo-table-scroll :where(th,td) { font-size: 14px !important; padding: 10px 12px !important; }
  body[data-mivo-kind] .mivo-table-scroll table { min-width: 480px; }
  body[data-mivo-kind="home"] .mivo-home-section { padding: 40px 20px; }
  body[data-mivo-kind] .hy-db-container { display: grid; grid-template-columns: 1fr; padding: 28px 20px; gap: 24px; }
  body[data-mivo-kind] .myModal2 .modal-content { padding: 22px; width: calc(100vw - 32px); }
}
@media(prefers-reduced-motion:reduce) { body[data-mivo-kind] * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

body[data-mivo-kind] .mivo-table-hint[hidden] { display: none !important; }
