/* Loaded only by /{locale}/resources/. Other routes retain their existing styles. */
/* Help-page-only contrast correction; shared footer markup stays unchanged. */
main.hc ~ .portal-footer .brand-wordmark { color: #f4f7fb; }
.hc { --hc-blue: var(--z-blue, #176fd6); --hc-line: var(--z-line, #dce5ef); --hc-muted: var(--z-muted, #607087); color: var(--z-ink, #101b2d); }
.hc *, .hc *::before, .hc *::after { box-sizing: border-box; }
.hc [hidden] { display: none !important; }
.hc-index { width: min(1120px, calc(100% - 48px)); min-inline-size: 0; margin: 0 auto; padding: 48px 0 64px; min-height: 65vh; }
.hc-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.hc-heading h1 { font-size: clamp(30px, 3vw, 44px); line-height: 1.2; margin: 0; }
.hc-search { display: grid; gap: 6px; width: min(460px, 100%); font-size: 13px; color: var(--hc-muted); }
.hc input, .hc select { font: inherit; background: white; border: 1px solid var(--hc-line); border-radius: 8px; padding: 11px 12px; min-height: 44px; color: inherit; max-width: 100%; }
.hc button { font: inherit; cursor: pointer; min-height: 44px; border: 1px solid var(--hc-line); background: white; color: inherit; border-radius: 8px; padding: 8px 14px; }
.hc :focus-visible { outline: 3px solid var(--hc-blue); outline-offset: 3px; }
.hc button:disabled { opacity: .4; cursor: default; }
.hc-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 20px 0; border-block: 1px solid var(--hc-line); }
.hc-filters label { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.hc-types { display: flex; gap: 6px; overflow-x: auto; max-width: 100%; }
.hc-types button { white-space: nowrap; border-color: transparent; }
.hc button[aria-pressed="true"] { background: #edf5ff; color: var(--hc-blue); border-color: #bdd9fa; }
.hc-results { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; padding: 20px 0; font-size: 14px; color: var(--hc-muted); }
.hc-results p { margin: 0; }
.hc-results [data-conditions] { flex: 1; overflow-wrap: anywhere; }
.hc-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.hc-card { display: block; min-width: 0; text-decoration: none; color: inherit; border: 1px solid var(--hc-line); border-radius: 12px; overflow: hidden; background: white; }
.hc-card:hover { border-color: var(--hc-blue); }
.hc-cover { aspect-ratio: 8 / 5; background: #f0f4f8; display: grid; place-items: center; overflow: hidden; }
.hc-cover img { width: 100%; height: 100%; object-fit: contain; }
.hc-neutral { font-size: 44px; color: #9baabd; }
.hc-card-copy { padding: 16px; }
.hc-card h3 { font-size: 18px; line-height: 1.5; margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3em; overflow-wrap: anywhere; }
.hc-tags { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--hc-muted); }
.hc-empty { text-align: center; padding: 70px 12px; border-block: 1px solid var(--hc-line); color: var(--hc-muted); }
.hc-empty h2 { font-size: 22px; color: var(--z-ink, #101b2d); }
.hc-pagination { display: flex; justify-content: center; align-items: center; gap: 20px; padding: 30px 0; }
.hc-support, .hc-feedback { margin: 30px auto; text-align: center; }
.hc-article .resource-article-hero { padding: 36px 0 24px; }
.hc-article .resource-article-hero .wrap { max-width: 1000px; }
.hc.hc-article[data-help-template] .resource-article-hero .page-title { max-width: none; font-size: clamp(28px, 3.1vw, 42px); line-height: 1.3; white-space: normal; letter-spacing: -.025em; overflow-wrap: anywhere; }
.hc-article .resource-article-meta { flex-wrap: wrap; }
.hc-gallery { width: min(1000px, calc(100% - 48px)); margin: 0 auto 36px; }
.hc-gallery-stage { position: relative; }
.hc-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; border-radius: 12px; background: #f0f4f8; }
.hc-slides { scrollbar-width: none; }
.hc-slides::-webkit-scrollbar { display: none; width: 0; height: 0; }
.hc-slides figure { flex: 0 0 100%; min-width: 0; margin: 0; scroll-snap-align: start; }
.hc-slides [data-enlarge] { display: block; position: relative; width: 100%; padding: 16px; border: 0; border-radius: 0; background: transparent; }
.hc-slides picture { display: block; width: 100%; aspect-ratio: 16 / 9; }
.hc-slides img { display: block; width: 100%; height: 100%; object-fit: contain; }
.hc-enlarge { position: absolute; right: 24px; bottom: 24px; background: #fff; padding: 6px 10px; border-radius: 6px; font-size: 12px; border: 1px solid var(--hc-line); }
.hc-slides figcaption { padding: 4px 16px 14px; font-size: 13px; text-align: center; color: var(--hc-muted); }
.hc .hc-gallery-arrow { position: absolute; top: 45%; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; background: rgb(255 255 255 / 94%); border: 1px solid #dce5ef; color: #17324d; font-size: 30px; line-height: 1; box-shadow: 0 2px 8px #10203012; }
.hc .hc-gallery-arrow:disabled { opacity: .45; }
.hc-gallery-prev { left: 24px; }
.hc-gallery-next { right: 24px; }
.hc-gallery-dots { position: absolute; z-index: 1; left: 50%; top: var(--hc-dots-top, calc(100% - 60px)); transform: translate(-50%, -100%); display: flex; justify-content: center; gap: 0; margin: 0; padding: 0 4px; border-radius: 24px; background: rgb(255 255 255 / 88%); }
.hc .hc-gallery-dots button { display: grid; place-items: center; min-width: 32px; width: 32px; min-height: 44px; padding: 0; border: 0; background: transparent; }
.hc-gallery-dots span { display: block; width: 7px; height: 7px; border-radius: 50%; background: #b7c3d0; }
.hc-gallery-dots [aria-pressed="true"] span { background: var(--hc-blue); }
.hc-body { max-width: 1000px; margin: auto; }
.hc-body .section { padding-block: 30px; background: transparent; }
.hc-body .wrap { width: min(760px, calc(100% - 48px)); }
.hc-body .resource-article-reading { max-width: 760px; }
.hc-body .resource-article-mode-grid, .hc-body .resource-article-preparation-grid, .hc-body .resource-article-help-grid, .hc-body .resource-article-success-grid, .hc-body .resource-article-story { display: block; }
.hc-body .resource-article-mode, .hc-body .resource-article-preparation-grid article { padding: 18px 0; border: 0; background: none; box-shadow: none; }
.hc-body .resource-article-mode-copy { padding: 0; }
.hc-body p, .hc-prose li { line-height: 1.85; overflow-wrap: anywhere; }
.hc-body .section-title { font-size: clamp(23px, 2.5vw, 30px); }
.hc-prose { width: min(760px, calc(100% - 48px)); margin: 0 auto; line-height: 1.85; }
.hc-prose h2, .hc-prose h3 { margin: 1.5em 0 .7em; line-height: 1.4; }
.hc-prose h2 { font-size: clamp(23px, 2.5vw, 30px); }
.hc-prose h3 { font-size: 20px; }
.hc-prose p, .hc-prose ul, .hc-prose ol { margin: 0 0 1.1em; }
.hc-prose ul, .hc-prose ol { padding-left: 1.5em; }
.hc-body img { max-width: 100%; height: auto; }
.hc-prose blockquote, .hc-prose aside { padding: 16px 20px; margin: 20px 0; background: #f0f6fe; border-left: 3px solid var(--hc-blue); }
.hc-prose a { color: var(--hc-blue); text-decoration: underline; }
.hc-prose pre { overflow-x: auto; }
.hc-actions { width: min(760px, calc(100% - 48px)); margin: 32px auto; display: flex; flex-wrap: wrap; gap: 12px; }
.hc-related { width: min(1000px, calc(100% - 48px)); margin: 48px auto; }
.hc-related h2 { margin-bottom: 20px; }
.hc-dialog { color: var(--z-ink, #101b2d); border: 1px solid var(--hc-line); border-radius: 12px; padding: 20px; max-width: calc(100vw - 24px); max-height: 92dvh; }
.hc-dialog::backdrop { background: #0d1726c9; }
.hc-support-dialog { width: 460px; text-align: left; }
.hc-support-dialog img { display: block; width: min(320px,100%); height: auto; margin: 20px auto; }
.hc-support-dialog [data-close] { display: block; margin-left: auto; }
.hc-viewer { width: min(1200px, calc(100vw - 24px)); }
.hc-viewer-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.hc-viewer-tools button { min-width: 44px; }
.hc-image-viewport { height: 65dvh; overflow: auto; background: #eef2f7; }
.hc-image-viewport img { display: block; max-width: none; object-fit: contain; margin: auto; }
.hc-viewer [data-view-caption] { margin: 10px 0 0; font-size: 13px; }
@media (max-width: 900px) { .hc-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .hc-heading { align-items: start; flex-direction: column; } }
@media (max-width: 767px) {
  .hc-index { width: calc(100% - 32px); padding-top: 30px; }
  .hc-grid { gap: 12px; }
  .hc-card-copy { padding: 12px; }
  .hc-card h3 { font-size: 15px; margin-bottom: 8px; }
  .hc-tags { font-size: 11px; }
  .hc-filters { gap: 10px; }
  .hc-filters label { flex: 1 1 140px; }
  .hc-filters select { min-width: 0; flex: 1; }
  .hc-types { flex-basis: 100%; }
  .hc-gallery { width: calc(100% - 32px); }
  .hc-slides picture { aspect-ratio: 3 / 4; }
  .hc-slides picture[data-single-source] { aspect-ratio: var(--hc-single-ratio); }
  .hc-slides [data-enlarge] { padding: 10px; }
  .hc .hc-gallery-arrow, .hc-enlarge { display: none; }
  .hc-gallery-dots { padding: 0; background: transparent; }
  .hc .hc-gallery-dots button { min-width: 18px; width: 18px; min-height: 24px; }
  .hc-gallery-dots span { width: 5px; height: 5px; background: rgb(255 255 255 / 80%); box-shadow: 0 0 2px #17324d80; }
  .hc-body .wrap, .hc-prose, .hc-actions, .hc-related { width: calc(100% - 32px); }
  .hc-body .section { padding-block: 22px; }
  .hc-article .resource-article-head { width: calc(100% - 32px); }
}
@media (max-width: 340px) { .hc-grid { grid-template-columns: minmax(0,1fr); } }
@media (prefers-reduced-motion: reduce) { .hc * { scroll-behavior: auto !important; } }
