/* Header */
.helloch-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--helloch-color-border);
  transition: box-shadow 0.2s;
}

.helloch-header--scrolled {
  box-shadow: var(--helloch-shadow);
}

.helloch-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--helloch-header-height);
  gap: var(--helloch-space-md);
}

.helloch-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.helloch-logo__image {
  display: block;
  width: auto;
  height: 2.75rem;
  max-width: min(300px, 68vw);
}

@media (min-width: 960px) {
  .helloch-logo__image {
    height: 3.25rem;
    max-width: 340px;
  }
}

.helloch-nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.helloch-nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--helloch-color-text);
}

.helloch-nav__list {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem 1.25rem;
}

.helloch-nav.is-open .helloch-nav__list {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--helloch-header-height);
  left: 0;
  right: 0;
  background: var(--helloch-color-surface);
  padding: var(--helloch-space-md);
  border-bottom: 1px solid var(--helloch-color-border);
  box-shadow: var(--helloch-shadow-md);
}

.helloch-nav__list a {
  text-decoration: none;
  font-weight: 500;
  color: var(--helloch-color-text);
}

.helloch-nav__list a:hover {
  color: var(--helloch-color-accent);
}

@media (min-width: 960px) {
  .helloch-nav-toggle {
    display: none;
  }

  .helloch-nav__list {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
  }

  .helloch-nav.is-open .helloch-nav__list {
    position: static;
    flex-direction: row;
    padding: 0;
    border: 0;
    box-shadow: none;
  }
}

/* Track tabs */
.helloch-track-tabs {
  background: var(--helloch-color-surface);
  border-bottom: 1px solid var(--helloch-color-border);
  box-shadow: var(--helloch-shadow);
}

.helloch-track-tabs__inner {
  display: flex;
  gap: 0.75rem;
  padding-block: var(--helloch-space-md);
  overflow-x: auto;
}

.helloch-track-tabs__btn {
  flex: 1;
  min-width: 12rem;
  padding: 0.875rem 1.125rem;
  border: 2px solid transparent;
  border-radius: var(--helloch-radius);
  background: var(--helloch-color-bg);
  font-family: var(--helloch-font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--helloch-color-muted);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.helloch-track-tabs__btn:hover {
  color: var(--helloch-color-text);
  background: #eef2f7;
}

.helloch-track-tabs__btn.is-active {
  border-color: var(--helloch-color-accent);
  background: var(--helloch-color-accent);
  color: #fff;
}

/* Cards */
.helloch-card {
  background: var(--helloch-color-surface);
  border: 1px solid var(--helloch-color-border);
  border-radius: var(--helloch-radius-lg);
  overflow: hidden;
  box-shadow: var(--helloch-shadow);
  transition: box-shadow 0.15s, transform 0.15s;
}

.helloch-card:hover {
  box-shadow: var(--helloch-shadow-md);
  transform: translateY(-2px);
}

.helloch-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.helloch-card__media img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.helloch-card__body {
  padding: var(--helloch-space-md);
}

.helloch-card__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--helloch-color-accent);
  margin-bottom: 0.5rem;
}

.helloch-card__title {
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
}

.helloch-card__excerpt {
  font-size: 0.9375rem;
  color: var(--helloch-color-muted);
  margin: 0 0 0.5rem;
}

.helloch-card__date {
  font-size: 0.8125rem;
  color: var(--helloch-color-muted);
}

/* Key facts */
.helloch-key-facts {
  background: #f0f4f8;
  border-left: 4px solid var(--helloch-color-accent);
  border-radius: var(--helloch-radius);
  padding: var(--helloch-space-lg);
  margin-bottom: var(--helloch-space-xl);
  max-width: 100%;
  overflow-wrap: break-word;
}

.helloch-key-facts__title {
  font-size: 1.25rem;
  margin-bottom: var(--helloch-space-md);
}

.helloch-key-facts__list {
  margin: 0;
  padding-left: 1.25rem;
}

.helloch-key-facts__list li {
  margin-bottom: 0.5rem;
}

/* Expert */
.helloch-expert {
  background: var(--helloch-color-surface);
  border: 1px solid var(--helloch-color-border);
  border-radius: var(--helloch-radius-lg);
  padding: var(--helloch-space-lg);
  margin-top: var(--helloch-space-xl);
}

.helloch-expert__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--helloch-color-muted);
  margin: 0 0 var(--helloch-space-sm);
}

.helloch-expert__quote {
  margin: 0 0 var(--helloch-space-md);
  font-family: var(--helloch-font-serif);
  font-size: 1.125rem;
}

.helloch-expert__name {
  font-style: normal;
  font-weight: 700;
}

.helloch-expert__role {
  display: block;
  color: var(--helloch-color-muted);
  font-size: 0.9375rem;
}

/* Official links */
.helloch-official-resources {
  margin-top: var(--helloch-space-xl);
  padding-top: var(--helloch-space-lg);
  border-top: 1px solid var(--helloch-color-border);
}

.helloch-official-resources__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.helloch-official-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--helloch-color-border);
}

.helloch-official-link__badge {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  background: #e8f4ec;
  color: var(--helloch-color-success);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
}

.helloch-official-link__icon {
  margin-left: auto;
  opacity: 0.5;
}

/* Breadcrumbs */
.helloch-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  list-style: none;
  margin: 0 0 var(--helloch-space-lg);
  padding: 0;
  font-size: 0.875rem;
}

.helloch-breadcrumbs__item:not(:last-child)::after {
  content: "›";
  margin-left: 0.5rem;
  color: var(--helloch-color-muted);
}

/* Newsletter */
.helloch-newsletter {
  background: var(--helloch-color-text);
  color: #fff;
  border-radius: var(--helloch-radius-lg);
  padding: var(--helloch-space-lg);
}

.helloch-newsletter__title {
  font-size: 1.125rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.helloch-newsletter__text {
  font-size: 0.9375rem;
  opacity: 0.9;
  margin-bottom: var(--helloch-space-md);
}

.helloch-newsletter__form {
  display: grid;
  gap: var(--helloch-space-sm);
}

.helloch-newsletter__field {
  display: grid;
  gap: 0.35rem;
}

.helloch-newsletter__label {
  font-size: 0.8125rem;
  font-weight: 600;
}

.helloch-newsletter__input {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--helloch-radius);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
}

.helloch-newsletter__input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.helloch-newsletter__input:focus {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 1px;
  border-color: transparent;
}

.helloch-newsletter__hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.helloch-newsletter__submit {
  width: 100%;
  margin-top: 0.25rem;
}

.helloch-newsletter__message {
  margin: 0;
  font-size: 0.875rem;
}

.helloch-newsletter__message--success {
  color: #b8f0d8;
}

.helloch-newsletter__message--error {
  color: #ffc9c9;
}

.helloch-newsletter__fineprint {
  margin: 0;
  font-size: 0.75rem;
  opacity: 0.75;
}

.helloch-newsletter--sidebar .helloch-newsletter__title {
  font-size: 1rem;
}

.helloch-newsletter a {
  color: #fff;
}

.helloch-footer .helloch-newsletter {
  background: rgba(255, 255, 255, 0.08);
  margin-top: var(--helloch-space-md);
}

.helloch-notice {
  padding: var(--helloch-space-md) 0;
  font-weight: 600;
}

.helloch-notice--success {
  background: #e8f7ef;
  color: var(--helloch-color-success);
}

.helloch-notice--error {
  background: #fdecec;
  color: #b42318;
}

.helloch-notice p {
  margin: 0;
}

/* Footer */
.helloch-footer {
  background: var(--helloch-color-text);
  color: rgba(255, 255, 255, 0.85);
  padding: var(--helloch-space-2xl) 0 var(--helloch-space-lg);
  margin-top: var(--helloch-space-2xl);
}

.helloch-footer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.helloch-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.helloch-footer__grid {
  display: grid;
  gap: var(--helloch-space-xl);
  margin-bottom: var(--helloch-space-xl);
}

@media (min-width: 768px) {
  .helloch-footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.helloch-footer__name {
  font-family: var(--helloch-font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
}

.helloch-footer__heading {
  font-weight: 700;
  color: #fff;
  margin: 0 0 var(--helloch-space-sm);
}

.helloch-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.helloch-footer li {
  margin-bottom: 0.5rem;
}

.helloch-footer__disclaimer {
  font-size: 0.8125rem;
  opacity: 0.7;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: var(--helloch-space-md);
  margin-bottom: var(--helloch-space-sm);
}

.helloch-footer__copy {
  font-size: 0.8125rem;
  opacity: 0.6;
  margin: 0;
}

/* TOC */
.helloch-toc {
  background: var(--helloch-color-surface);
  border: 1px solid var(--helloch-color-border);
  border-radius: var(--helloch-radius);
  padding: var(--helloch-space-md);
  margin-bottom: var(--helloch-space-lg);
}

.helloch-toc__title {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 var(--helloch-space-sm);
}

.helloch-toc__list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
}

.helloch-toc__list a {
  text-decoration: none;
}

/* Live data */
.helloch-live-data__grid {
  display: grid;
  gap: var(--helloch-space-md);
}

@media (min-width: 768px) {
  .helloch-live-data__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.helloch-live-data__widget {
  background: var(--helloch-color-surface);
  border: 1px solid var(--helloch-color-border);
  border-radius: var(--helloch-radius-lg);
  padding: var(--helloch-space-md);
}

.helloch-live-data__title {
  font-size: 1rem;
  margin: 0 0 var(--helloch-space-sm);
}

.helloch-live-data__rates {
  list-style: none;
  margin: 0 0 var(--helloch-space-sm);
  padding: 0;
}

.helloch-live-data__rates li {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--helloch-color-border);
  font-size: 0.9375rem;
}

.helloch-live-data__source {
  font-size: 0.8125rem;
}

.helloch-live-data__placeholder-text {
  font-size: 0.9375rem;
  color: var(--helloch-color-muted);
  margin-bottom: var(--helloch-space-md);
}

/* Article reviewed line */
.helloch-reviewed {
  font-size: 0.875rem;
  color: var(--helloch-color-muted);
  margin-top: var(--helloch-space-xl);
  padding-top: var(--helloch-space-md);
  border-top: 1px solid var(--helloch-color-border);
}

.helloch-swiss-law {
  background: #f5f0e8;
  border-radius: var(--helloch-radius);
  padding: var(--helloch-space-md);
  margin: var(--helloch-space-lg) 0;
  font-size: 0.9375rem;
}

.helloch-related {
  margin-top: var(--helloch-space-2xl);
  padding-top: var(--helloch-space-xl);
  border-top: 2px solid var(--helloch-color-border);
}

.helloch-related__title {
  margin-bottom: var(--helloch-space-lg);
}
