/* Knowledge entry points only. Preserve all existing product content and media. */
.site-header .desktop-nav a { white-space: nowrap; }
.knowledge-nav-link { gap: 7px; }
.knowledge-external-arrow { flex: 0 0 auto; font-size: .9em; font-weight: 500; line-height: 1; }

.knowledge-footer-links { min-width: 0; max-width: 100%; display: grid; justify-items: end; gap: 10px; }
.knowledge-footer-resource { min-width: 0; max-width: 100%; }
.knowledge-footer-link { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; color: var(--lime, #b7ff2a); font-size: 12px; font-weight: 650; letter-spacing: .03em; white-space: nowrap; }
.knowledge-footer-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.ones-knowledge-strip { padding: 24px var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px 36px; color: #111; background: #f4f5f0; border-top: 1px solid #dfe2d9; border-bottom: 1px solid #dfe2d9; }
.ones-knowledge-strip .knowledge-copy { min-width: 0; }
.ones-knowledge-strip h2 { margin: 0 0 7px; font-size: 18px !important; line-height: 1.3 !important; letter-spacing: .025em !important; }
.ones-knowledge-strip p { margin: 0; max-width: 760px; color: #3e443b; font-size: 14px !important; line-height: 1.55 !important; }
.ones-knowledge-strip p.knowledge-interface { margin-top: 4px; color: #626a5e; font-size: 12px !important; line-height: 1.5 !important; }
.knowledge-actions { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.knowledge-action { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 16px; border: 1px solid #b8bfb0; border-radius: 999px; color: #111; background: transparent; font-size: 13px; font-weight: 650; line-height: 1.4; text-align: center; }
.knowledge-action--primary { border-color: #b7ff2a; background: #b7ff2a; }
.knowledge-action:hover { border-color: #111; }

@media (min-width: 1201px) {
  .site-header { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: clamp(20px, 2vw, 32px); }
  .site-header .desktop-nav { justify-self: center; gap: clamp(18px, 1.65vw, 28px); }
}

/* Seven items fit comfortably above this breakpoint, including Japanese. */
@media (max-width: 1200px) {
  .site-header { grid-template-columns: minmax(0, 1fr) auto; }
  .site-header .desktop-nav, .site-header .header-reserve { display: none; }
  .site-header .menu-button { display: block; width: 44px; height: 44px; }
  .site-header .header-language { height: 44px; }
  .mobile-menu {
    inset: calc(var(--announcement-h) + var(--header-h)) 0 0;
    min-height: 0;
    max-height: calc(100svh - var(--announcement-h) - var(--header-h));
    padding-bottom: max(38px, env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-menu a { min-height: 58px; align-items: center; }
  .mobile-menu .knowledge-nav-link { gap: 12px; font-size: clamp(20px, 4.5vw, 30px); letter-spacing: 0; }
  .mobile-menu .knowledge-external-arrow { color: inherit; font-size: .8em; }
}

@media (max-width: 900px) {
  .knowledge-footer-links { justify-items: start; }
}

@media (max-width: 720px) {
  .ones-knowledge-strip { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 22px; padding-bottom: 22px; }
  .knowledge-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .knowledge-action { min-width: 0; padding: 10px 11px; gap: 7px; }
}

/* Explicit account access, separate from the public ask/library actions. */
.knowledge-footer-resource { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; column-gap: 18px; }
.knowledge-login-link { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; color: inherit; font-size: 13px; font-weight: 650; line-height: 1.45; text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.knowledge-login-link:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.knowledge-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0 18px; }
.ones-knowledge-strip .knowledge-meta p.knowledge-interface { margin-top: 0; }
@media (max-width: 900px) { .knowledge-footer-resource { justify-content: flex-start; } }

/* Product choices remain directly available alongside the compact mobile header. */
.mobile-product-links { display:none; }
@media (max-width:1200px) {
  :root { --mobile-primary-header-h:72px; --header-h:116px; }
  body .site-header { height:var(--header-h); grid-template-rows:var(--mobile-primary-header-h) 44px; row-gap:0; }
  .site-header > .brand { grid-column:1; grid-row:1; }
  .site-header > .header-actions { grid-column:2; grid-row:1; }
  .site-header > .mobile-product-links { grid-column:1 / -1; grid-row:2; padding-inline:0; }
  .product-page .product-nav { height:var(--header-h); }
  .product-page .product-nav-inner { height:var(--mobile-primary-header-h); min-height:var(--mobile-primary-header-h); }
  .product-page .product-nav-mobile-panel { max-height:calc(100svh - var(--header-h)); }
  .product-page :is(#overview,#product-details,#features,#experience,#colours,#sensing,#design-classic,#styles,#materials,#specs) { scroll-margin-top:calc(var(--header-h) + 16px); }
  .mobile-product-links { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); width:100%; height:44px; padding:0 16px; gap:0; border-top:1px solid rgb(17 17 17 / 10%); }
  .mobile-product-links a { min-width:0; min-height:44px; padding:2px 4px; display:flex; align-items:center; justify-content:center; color:#111; font-size:12px; font-weight:650; line-height:1.2; text-align:center; white-space:normal; }
  .mobile-product-links a[aria-current="page"] { box-shadow:inset 0 -2px 0 #111; }
  .mobile-menu { top:var(--mobile-menu-top,calc(var(--announcement-h) + var(--header-h))); max-height:calc(100svh - var(--mobile-menu-top,calc(var(--announcement-h) + var(--header-h)))); }
}
@media (max-width:900px) {
  :root { --mobile-primary-header-h:64px; --header-h:108px; }
}
