/* Download library and contact desk: Swiss editorial structure with Sahakari brand accents. */
.download-archive,
.download-single,
.contact-page {
  --desk-paper: #f7faf8;
  --desk-line: #dce5df;
  --desk-muted: #5e6d64;
  --desk-red: var(--jh-red);
  background: var(--desk-paper);
}

.download-hero,
.contact-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 6vw, 78px) 0 0;
  border-bottom: 1px solid var(--desk-line);
  color: var(--jh-ink);
  background: #ffffff;
}

.download-hero__grid,
.contact-hero__grid {
  position: absolute;
  inset: 0;
  opacity: 0.7;
  background-image: linear-gradient(var(--desk-line) 1px, transparent 1px), linear-gradient(90deg, var(--desk-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to right, #000000, transparent 82%);
  pointer-events: none;
}

.download-hero .breadcrumbs,
.contact-hero .breadcrumbs { margin-bottom: clamp(30px, 5vw, 62px); }
.download-hero__eyebrow,
.contact-hero__eyebrow { display: inline-flex; margin: 0 0 12px; gap: 9px; align-items: center; color: var(--jh-green); font-weight: 700; }
.download-hero__eyebrow .icon,
.contact-hero__eyebrow .icon { width: 21px; height: 21px; }
.download-hero h1,
.contact-hero h1 { max-width: 15ch; margin-bottom: 18px; font-size: clamp(2.5rem, 5.4vw, 5rem); line-height: 1.05; }
.download-hero__intro,
.contact-hero__intro { max-width: 63ch; margin: 0; color: var(--desk-muted); font-size: clamp(1.05rem, 1.7vw, 1.25rem); }

.download-hero__mark { display: grid; width: clamp(180px, 18vw, 246px); aspect-ratio: 1; padding: 30px; place-items: center; border: 1px solid var(--desk-line); color: #ffffff; background: var(--desk-red); }
.download-hero__mark .icon { width: 72px; height: 72px; }
.download-hero__mark span { align-self: end; letter-spacing: 0.08em; font: 600 1rem/1 Poppins, Mukta, sans-serif; }

.download-filters { display: flex; max-width: 100%; margin-top: clamp(32px, 5vw, 58px); gap: 0; overflow-x: auto; scrollbar-color: var(--jh-green) transparent; scrollbar-width: thin; }
.download-filters a { display: inline-flex; min-width: max-content; min-height: 58px; padding: 12px 22px; gap: 10px; align-items: center; border: 1px solid var(--desk-line); border-bottom: 0; color: var(--jh-ink); background: #ffffff; text-decoration: none; transition: color var(--jh-motion-fast), background-color var(--jh-motion-fast); }
.download-filters a + a { border-left: 0; }
.download-filters a .icon { width: 20px; height: 20px; color: var(--jh-green); }
.download-filters a:hover,
.download-filters a[aria-current='page'] { color: #ffffff; background: var(--jh-green); }
.download-filters a:hover .icon,
.download-filters a[aria-current='page'] .icon { color: var(--jh-gold); }

.download-library { background: var(--desk-paper); }
.download-library__heading,
.contact-location__heading { display: grid; margin-bottom: clamp(28px, 4vw, 44px); grid-template-columns: minmax(0, 1fr) minmax(280px, 0.6fr); gap: 32px; align-items: end; }
.download-library__heading h2,
.contact-location__heading h2 { max-width: 20ch; margin: 0; }
.download-library__heading > p,
.contact-location__heading > p { margin: 0; color: var(--desk-muted); }

.download-card { display: grid; min-width: 0; grid-template-columns: 126px minmax(0, 1fr); border: 1px solid var(--desk-line); background: #ffffff; transition: border-color var(--jh-motion-fast), transform var(--jh-motion-fast); }
.download-card:hover { border-color: rgba(8, 96, 44, 0.48); transform: translateY(-3px); }
.download-card__file { display: flex; min-height: 260px; padding: 20px 16px; align-items: center; justify-content: space-between; flex-direction: column; color: #ffffff; background: var(--desk-red); }
.download-card__file span { align-self: flex-start; font: 600 0.78rem/1 Poppins, Mukta, sans-serif; letter-spacing: 0.08em; }
.download-card__file .icon { width: 46px; height: 46px; }
.download-card__body { display: flex; min-width: 0; padding: clamp(22px, 3vw, 32px); flex-direction: column; }
.download-card__meta { display: flex; margin-bottom: 15px; gap: 8px 18px; flex-wrap: wrap; color: var(--desk-muted); font-size: 0.85rem; }
.download-card__meta a { color: var(--jh-green); font-weight: 700; text-decoration: none; }
.download-card__meta span { display: inline-flex; gap: 6px; align-items: center; }
.download-card__meta .icon { width: 16px; height: 16px; }
.download-card h3 { max-width: 26ch; margin-bottom: 10px; font-size: clamp(1.3rem, 2vw, 1.65rem); }
.download-card h3 a { color: var(--jh-ink); text-decoration: none; }
.download-card h3 a:hover { color: var(--jh-green); }
.download-card__body > p { margin-bottom: 18px; color: var(--desk-muted); }
.download-card__footer { display: flex; margin-top: auto; gap: 12px 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.download-card__details { display: inline-flex; min-height: 44px; gap: 8px; align-items: center; color: var(--jh-green); font-weight: 700; text-decoration: none; }
.download-card__details .icon { width: 18px; height: 18px; transition: transform var(--jh-motion-fast); }
.download-card__details:hover .icon { transform: translateX(4px); }
.download-card .btn { display: inline-grid; min-height: 52px; padding: 8px 14px; grid-template-columns: 19px minmax(0, 1fr); gap: 0 8px; align-items: center; text-align: left; }
.download-card .btn .icon { width: 19px; height: 19px; grid-row: span 2; }
.download-card .btn span,
.download-card .btn small { display: block; }
.download-card .btn small { font-size: 0.7rem; opacity: 0.82; }
.download-card__pending { display: inline-flex; min-height: 44px; padding: 8px 12px; gap: 7px; align-items: center; border: 1px dashed #9aaba0; color: var(--desk-muted); font-size: 0.86rem; }
.download-card__pending .icon { width: 17px; height: 17px; }
.download-library__empty > span { display: inline-grid; width: 72px; height: 72px; margin-bottom: 18px; place-items: center; color: #ffffff; background: var(--jh-green); }
.download-library__empty .icon { width: 34px; height: 34px; }

.download-single__hero { padding-bottom: clamp(38px, 6vw, 70px); }
.download-single__hero h1 { max-width: 20ch; font-size: clamp(2.25rem, 4.4vw, 4.4rem); }
.download-single__meta { display: flex; margin-top: 22px; gap: 10px 18px; flex-wrap: wrap; color: var(--desk-muted); }
.download-single__meta span { display: inline-flex; gap: 7px; align-items: center; }
.download-single__meta .icon { width: 17px; height: 17px; color: var(--desk-red); }
.download-single__action { display: inline-grid; min-height: 62px; padding: 10px 18px; grid-template-columns: 22px minmax(0, 1fr); gap: 0 9px; align-items: center; text-align: left; }
.download-single__action .icon { width: 22px; height: 22px; grid-row: span 2; }
.download-single__action span,
.download-single__action small { display: block; }
.download-single__action small { font-size: 0.72rem; opacity: 0.8; }
.download-single__document { display: grid; padding: clamp(24px, 4vw, 42px); grid-template-columns: 82px minmax(0, 1fr); gap: 24px; border: 1px solid var(--desk-line); background: #ffffff; }
.download-single__document-icon { display: grid; width: 82px; height: 104px; place-items: center; color: #ffffff; background: var(--desk-red); }
.download-single__document-icon .icon { width: 36px; height: 36px; }
.download-single__document h2 { margin-bottom: 15px; }
.download-single__panel { position: sticky; top: var(--jh-sticky-offset, 152px); padding: 28px; border-top: 6px solid var(--desk-red); background: var(--jh-green-dark); color: #ffffff; }
.download-single__panel h2 { color: #ffffff; }
.download-single__panel p { color: rgba(255, 255, 255, 0.8); }
.download-single__panel .btn { display: inline-flex; min-height: 50px; gap: 8px; align-items: center; justify-content: center; }
.download-single__panel .icon { width: 19px; height: 19px; }
.download-single__pending { display: flex; gap: 9px; align-items: flex-start; }
.download-single__navigation { margin-top: clamp(32px, 5vw, 56px); }

.contact-hero { padding-bottom: clamp(42px, 6vw, 78px); }
.contact-hero__direct { display: grid; border-top: 5px solid var(--desk-red); background: var(--jh-green-dark); }
.contact-hero__direct a { display: grid; min-width: 0; min-height: 92px; padding: 17px 20px; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; gap: 0 13px; align-items: center; color: #ffffff; border-bottom: 1px solid rgba(255, 255, 255, 0.16); text-decoration: none; }
.contact-hero__direct a:last-child { border-bottom: 0; }
.contact-hero__direct a > span { display: grid; width: 44px; height: 44px; grid-row: span 2; place-items: center; color: var(--jh-ink); background: var(--jh-gold); }
.contact-hero__direct .icon { width: 22px; height: 22px; }
.contact-hero__direct small { color: rgba(255, 255, 255, 0.72); }
.contact-hero__direct strong { min-width: 0; overflow-wrap: anywhere; }
.contact-hero__direct a:hover { background: var(--jh-green); }

.contact-workspace { background: var(--desk-paper); }
.contact-form-card { padding: clamp(24px, 4vw, 44px); border: 1px solid var(--desk-line); background: #ffffff; }
.contact-form-card > header { max-width: 62ch; margin-bottom: 28px; }
.contact-form-card > header h2 { margin-bottom: 10px; }
.contact-form-card > header > p:last-child { color: var(--desk-muted); }
.contact-form .form-label { margin-bottom: 7px; color: var(--jh-ink); font-weight: 700; }
.contact-form .form-label small { color: var(--desk-muted); font-weight: 400; }
.contact-form .form-control { min-height: 54px; border-color: #aebeb3; border-radius: 6px; }
.contact-form textarea.form-control { min-height: 164px; padding-top: 13px; resize: vertical; }
.contact-form__submit { display: inline-flex; min-width: 190px; min-height: 54px; gap: 10px; align-items: center; justify-content: center; }
.contact-form__submit .icon { width: 20px; height: 20px; }
.contact-form__submit:disabled { cursor: wait; opacity: 0.72; }
.contact-form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form__status { padding: 13px 16px; margin-bottom: 22px; border-left: 5px solid currentColor; background: #eef6f1; }
.contact-form__status.is-success { color: #07552a; }
.contact-form__status.is-error { color: #9b1118; background: #fff1f2; }
.contact-form__status:focus { outline: 3px solid var(--jh-gold); outline-offset: 2px; }

.contact-directory { position: sticky; top: var(--jh-sticky-offset, 152px); padding: clamp(24px, 4vw, 36px); border-top: 6px solid var(--desk-red); color: #ffffff; background: var(--jh-green-dark); }
.contact-directory h2 { color: #ffffff; }
.contact-directory ul { padding: 0; margin: 26px 0 0; list-style: none; }
.contact-directory li { display: grid; min-width: 0; padding: 18px 0; grid-template-columns: 46px minmax(0, 1fr); gap: 14px; border-top: 1px solid rgba(255, 255, 255, 0.17); }
.contact-directory li > span { display: grid; width: 46px; height: 46px; place-items: center; color: var(--jh-ink); background: var(--jh-gold); }
.contact-directory li .icon { width: 22px; height: 22px; }
.contact-directory li div { min-width: 0; }
.contact-directory li small { display: block; color: rgba(255, 255, 255, 0.68); }
.contact-directory li strong,
.contact-directory li a { display: block; color: #ffffff; overflow-wrap: anywhere; }
.contact-directory__social { display: flex; margin-top: 18px; gap: 10px; flex-wrap: wrap; }
.contact-directory__social .btn { display: inline-flex; gap: 8px; align-items: center; border-color: rgba(255, 255, 255, 0.55); color: #ffffff; }
.contact-directory__social .btn:hover { border-color: #ffffff; color: var(--jh-green-dark); background: #ffffff; }
.contact-directory__social .icon { width: 17px; height: 17px; }
.contact-page__editor { max-width: 72ch; padding-bottom: 0; margin-top: 40px; }

.contact-location { padding: var(--jh-section-space) 0; border-top: 1px solid var(--desk-line); background: #ffffff; }
.contact-location__map { min-height: 440px; overflow: hidden; border: 1px solid var(--desk-line); background: var(--jh-green-dark); }
.contact-location__map iframe { display: block; width: 100%; min-height: 440px; border: 0; }

@media (max-width: 991.98px) {
  .download-single__panel,
  .contact-directory { position: static; }
  .contact-hero__direct { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-hero__direct a { border-right: 1px solid rgba(255, 255, 255, 0.16); border-bottom: 0; }
  .contact-hero__direct a:last-child { border-right: 0; }
}

@media (max-width: 767.98px) {
  .download-hero,
  .contact-hero { padding-top: 28px; }
  .download-hero .breadcrumbs,
  .contact-hero .breadcrumbs { margin-bottom: 28px; }
  .download-hero__grid,
  .contact-hero__grid { background-size: 42px 42px; }
  .download-filters { margin-inline: -12px; padding-inline: 12px; }
  .download-library__heading,
  .contact-location__heading { grid-template-columns: 1fr; gap: 10px; align-items: start; }
  .download-card { grid-template-columns: 78px minmax(0, 1fr); }
  .download-card__file { min-height: 100%; padding: 16px 10px; }
  .download-card__file .icon { width: 34px; height: 34px; }
  .download-card__body { padding: 20px 16px; }
  .download-card__footer { align-items: stretch; flex-direction: column; }
  .download-card__details { justify-content: space-between; }
  .download-card .btn,
  .download-card__pending { width: 100%; justify-content: center; }
  .download-single__document { grid-template-columns: 1fr; }
  .download-single__document-icon { width: 68px; height: 82px; }
  .contact-hero__direct { grid-template-columns: 1fr; }
  .contact-hero__direct a { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
  .contact-hero__direct a:last-child { border-bottom: 0; }
  .contact-form__submit { width: 100%; }
  .contact-location__map,
  .contact-location__map iframe { min-height: 340px; }
}

@media (max-width: 374.98px) {
  .download-card { grid-template-columns: 62px minmax(0, 1fr); }
  .download-card__file { padding-inline: 7px; }
  .download-card__file .icon { width: 28px; height: 28px; }
  .download-card__body { padding-inline: 13px; }
  .contact-form-card,
  .contact-directory { padding-inline: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .download-card,
  .download-card__details .icon { transition: none; }
  .download-card:hover { transform: none; }
  .download-card__details:hover .icon { transform: none; }
}

@media print {
  .download-filters,
  .download-card__footer,
  .contact-form-card,
  .contact-location { display: none; }
}

