/* Readable navigation and instructions for the existing how-to page. */
html body .wc-howto-v4 { overflow: visible !important; color: #182e49; }
html body .wc-howto-v4 .wc4-hero { background: #f2f7fb !important; border-bottom: 1px solid #e1eaf2 !important; }
html body .wc-howto-v4 .wc4-hero-inner {
  max-width: 1100px !important; padding: 55px 24px 52px !important;
  display: grid !important; grid-template-columns: minmax(0, 1fr) 235px !important;
  align-items: center !important; gap: clamp(36px, 6vw, 82px) !important;
}
html body .wc-howto-v4 .wc4-kicker { display: none !important; }
html body .wc-howto-v4 .wc4-title { font-size: clamp(34px, 4.3vw, 52px) !important; line-height: 1.25 !important; letter-spacing: -.025em !important; }
html body .wc-howto-v4 .wc4-lead { max-width: 35em !important; margin: 20px 0 0 !important; font-size: 16px !important; line-height: 1.9 !important; color: #425b76 !important; }
html body .wc-howto-v4 .wc4-tags { margin-top: 22px !important; gap: 8px !important; }
html body .wc-howto-v4 .wc4-tag { background: transparent !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; font-size: 13px !important; color: #426688 !important; font-weight: 700 !important; }
html body .wc-howto-v4 .wc4-tag + .wc4-tag::before { content: '・'; margin-right: 8px; color: #9bb3c8; }
html body .wc-howto-v4 .wc4-hero-image { display: block !important; width: min(100%, 200px) !important; height: auto !important; border-radius: 20px !important; box-shadow: 0 14px 35px rgba(20,53,85,.12) !important; }

/* Search sits above the jump links so the sticky navigation remains compact. */
.wc152-finder { max-width: 1100px; margin: 0 auto; padding: 38px 24px 22px; }
.wc152-finder form { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.wc152-search-field { flex: 1 1 340px; max-width: 510px; }
.wc152-search-field label { display: block; margin-bottom: 9px; color: #1b3553; font-size: 16px; font-weight: 750; }
.wc152-search-input { display: flex; align-items: center; min-height: 48px; border: 1px solid #aebfd2; border-radius: 9px; background: #fff; overflow: hidden; }
.wc152-search-input:focus-within { border-color: #2868d5; outline: 2px solid #b7d1ff; outline-offset: 2px; }
.wc152-search-input input { flex: 1; min-width: 0; width: 100%; border: 0; outline: 0; padding: 12px 14px; background: transparent; color: #1b3553; font: inherit; font-size: 15px; }
.wc152-search-input input::placeholder { color: #6d7f91; opacity: 1; }
.wc152-search-input button { flex: none; border: 0; background: transparent; color: #215fba; padding: 12px 14px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.wc152-search-input button:disabled { color: #8999a8; cursor: default; }
.wc152-search-status { margin: 10px 0 0; color: #425b76; font-size: 14px; line-height: 1.6; }
.wc152-search-status:empty { display: none; }
html body .wc-howto-v4 .wc4-jump {
  position: sticky !important; top: var(--wc152-header-height, 76px) !important; z-index: 35 !important;
  max-width: none !important; width: 100% !important; margin: 0 !important;
  padding: 0 24px !important; background: #fff !important; border-top: 1px solid #e5edf3 !important; border-bottom: 1px solid #e5edf3 !important;
}
html body .wc-howto-v4 .wc4-jump-row {
  display: flex !important; flex-wrap: nowrap !important; align-items: center !important;
  max-width: 1052px !important; margin: 0 auto !important; padding: 5px 0 !important;
  gap: 4px !important; overflow-x: auto !important; overscroll-behavior-x: contain;
  scrollbar-width: thin !important;
}
html body .wc-howto-v4 .wc4-jump-row a {
  flex: none !important; min-height: 40px !important; display: inline-flex !important; align-items: center !important;
  padding: 8px 12px !important; color: #435a72 !important; background: transparent !important;
  border: 0 !important; border-bottom: 2px solid transparent !important; border-radius: 0 !important;
  box-shadow: none !important; text-decoration: none !important; font-size: 14px !important; line-height: 1.4 !important; font-weight: 700 !important;
}
html body .wc-howto-v4 .wc4-jump-row a::before { content: none !important; display: none !important; }
html body .wc-howto-v4 .wc4-jump-row a:hover { color: #1e5fbf !important; background: #f3f7fc !important; transform: none !important; }
html body .wc-howto-v4 .wc4-jump-row a[aria-current="location"] { color: #185bc0 !important; border-bottom-color: #286be1 !important; }
html body .wc-howto-v4 :is(.wc4-jump-row a, .wc152-screen-button, .wc152-search-input button):focus-visible { outline: 3px solid #78a9f1 !important; outline-offset: 2px; }

/* Each explanation stays with its own full, uncropped screenshot. */
html body .wc-howto-v4 .wc4-main { max-width: 1100px !important; margin: 0 auto !important; padding: 4px 24px 90px !important; }
html body .wc-howto-v4 .wc4-section { padding: 68px 0 !important; border-bottom: 1px solid #dce7ef !important; scroll-margin-top: calc(var(--wc152-header-height, 76px) + 66px); }
html body .wc-howto-v4 .wc4-head { max-width: none !important; margin: 0 0 34px !important; }
html body .wc-howto-v4 .wc4-no, html body .wc-howto-v4 .wc4-mini { display: none !important; }
html body .wc-howto-v4 .wc4-h2 { margin: 0 !important; color: #172f4c !important; font-size: clamp(25px, 2.8vw, 34px) !important; line-height: 1.45 !important; letter-spacing: 0 !important; }
html body .wc-howto-v4 .wc4-head p { max-width: 43em !important; margin: 11px 0 0 !important; color: #435d77 !important; font-size: 16px !important; line-height: 1.9 !important; }
html body .wc-howto-v4 .wc4-section .wc4-grid,
html body .wc-howto-v4 #start .wc4-grid {
  display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 42px 48px !important; max-width: none !important; width: 100% !important; margin: 0 !important; align-items: start !important;
}
html body .wc-howto-v4 .wc4-section .wc4-item,
html body .wc-howto-v4 #start .wc4-item {
  display: grid !important; grid-template-columns: minmax(100px, 148px) minmax(0, 1fr) !important;
  align-items: center !important; gap: 22px !important; min-width: 0 !important; width: 100% !important;
  padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important;
}
html body .wc-howto-v4 .wc4-section .wc4-item--image-only { display: none !important; }
html body .wc-howto-v4 .wc4-section .wc4-screen,
html body .wc-howto-v4 #start .wc4-screen {
  display: block !important; width: 100% !important; height: auto !important; min-height: 0 !important; max-height: none !important;
  margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; overflow: visible !important; background: transparent !important; box-shadow: none !important;
}
html body .wc-howto-v4 .wc4-section .wc4-screen img,
html body .wc-howto-v4 #start .wc4-screen img {
  display: block !important; width: 100% !important; min-width: 0 !important; max-width: 100% !important;
  height: auto !important; min-height: 0 !important; max-height: none !important; aspect-ratio: auto !important;
  object-fit: contain !important; object-position: center !important; margin: 0 !important; padding: 0 !important;
  border: 1px solid #d9e4ee !important; border-radius: 12px !important; background: #fff !important; box-shadow: 0 8px 22px rgba(25,50,80,.08) !important;
}
html body .wc-howto-v4 .wc4-section .wc4-copy,
html body .wc-howto-v4 #start .wc4-copy { align-self: center !important; width: auto !important; min-width: 0 !important; max-width: 100% !important; margin: 0 !important; padding: 0 !important; text-align: left !important; }
html body .wc-howto-v4 .wc4-copy h3 { margin: 0 !important; color: #183351 !important; font-size: 19px !important; line-height: 1.55 !important; font-weight: 750 !important; word-break: normal; }
html body .wc-howto-v4 .wc4-copy p { margin: 10px 0 0 !important; color: #435d77 !important; font-size: 15px !important; line-height: 1.85 !important; }
html body .wc-howto-v4 .wc4-section[hidden], html body .wc-howto-v4 .wc4-item[hidden] { display: none !important; }
html body .wc-howto-v4 .wc4-band { margin-top: 46px !important; box-shadow: none !important; }

/* Add image enlargement only when JavaScript enables the control. */
.wc152-screen-button { display: block; width: 100%; padding: 0; border: 0; background: transparent; color: #245fae; cursor: pointer; text-align: center; font: inherit; }
.wc152-screen-button span { display: block; padding-top: 9px; font-size: 13px; line-height: 1.5; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.wc152-dialog { position: fixed; inset: 0; width: min(92vw, 680px); max-width: 680px; max-height: 92vh; margin: auto; padding: 0; overflow: auto; border: 0; border-radius: 16px; background: #fff; color: #183351; box-shadow: 0 18px 60px rgba(14,32,52,.3); z-index: 1000; }
.wc152-dialog::backdrop { background: rgba(14,30,49,.72); }
.wc152-dialog-header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 20px; background: #fff; border-bottom: 1px solid #e4ebf1; }
.wc152-dialog-title { margin: 0; font-size: 16px; line-height: 1.5; font-weight: 700; }
.wc152-dialog-close { border: 1px solid #bfcbd7; border-radius: 8px; padding: 8px 13px; background: #fff; color: #25445f; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.wc152-dialog-close:focus-visible { outline: 3px solid #78a9f1; outline-offset: 2px; }
.wc152-dialog-image { display: block; width: auto; height: auto; max-width: min(100%, 480px); max-height: 76vh; margin: 18px auto; object-fit: contain; }

@media (max-width: 760px) {
  html body .wc-howto-v4 .wc4-hero { padding-top: max(0px, calc(var(--wc152-header-height, 76px) - 24px)) !important; }
  html body .wc-howto-v4 .wc4-hero-inner { grid-template-columns: minmax(0,1fr) 150px !important; gap: 22px !important; padding: 42px 20px !important; }
  html body .wc-howto-v4 .wc4-title { font-size: clamp(30px, 5vw, 38px) !important; }
  html body .wc-howto-v4 .wc4-section .wc4-grid, html body .wc-howto-v4 #start .wc4-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  html body .wc-howto-v4 .wc4-section .wc4-item, html body .wc-howto-v4 #start .wc4-item { grid-template-columns: minmax(96px, 135px) minmax(0,1fr) !important; gap: 20px !important; }
  html body .wc-howto-v4 .wc4-section { padding: 48px 0 !important; }
  html body .wc-howto-v4 .wc4-main { padding: 2px 20px 65px !important; }
  .wc152-finder { padding: 30px 20px 20px; }
  html body .wc-howto-v4 .wc4-jump { padding: 0 20px !important; }
}
@media (max-width: 480px) {
  html body .wc-howto-v4 .wc4-hero-inner { grid-template-columns: 1fr !important; padding: 37px 20px 35px !important; }
  html body .wc-howto-v4 .wc4-hero-image-wrap { display: none !important; }
  html body .wc-howto-v4 .wc4-title { font-size: 32px !important; }
  html body .wc-howto-v4 .wc4-lead { font-size: 15px !important; line-height: 1.85 !important; }
  html body .wc-howto-v4 .wc4-tag { font-size: 12px !important; }
  html body .wc-howto-v4 .wc4-section .wc4-item, html body .wc-howto-v4 #start .wc4-item { grid-template-columns: minmax(88px, 112px) minmax(0,1fr) !important; gap: 16px !important; }
  html body .wc-howto-v4 .wc4-copy h3 { font-size: 17px !important; }
  html body .wc-howto-v4 .wc4-copy p, html body .wc-howto-v4 .wc4-head p { font-size: 15px !important; line-height: 1.8 !important; }
  html body .wc-howto-v4 .wc4-h2 { font-size: 25px !important; }
  .wc152-screen-button span { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto !important; } }
