/* Brand resources inherit the active shared palette; the light preview uses its text surface. */
.brand-page main.brand-resources { max-width: 1120px; }
.brand-resources { font-size: 1rem; line-height: 1.65; }
.brand-resources p { max-width: 72ch; color: var(--silex-text-soft); }
.brand-resources h2 { font-size: clamp(1.45rem, 2.5vw, 1.8rem); line-height: 1.25; }
.brand-resources h3 { font-size: 1rem; line-height: 1.4; }
.brand-resources a { text-underline-offset: .25em; }
.brand-resources :focus-visible { outline: 2px solid var(--silex-accent); outline-offset: 4px; }
.brand-section-nav { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: 24px; padding-block: 8px; border-bottom: var(--silex-rule); }
.brand-section-nav a, .brand-links a { display: inline-flex; align-items: center; min-height: 44px; }
.brand-section { padding-top: 40px; margin-top: 40px; border-top: var(--silex-rule); }
.brand-section:first-of-type { margin-top: 0; border-top: 0; }
.brand-section-heading { margin-bottom: 24px; }
.brand-section-heading p { margin-top: 10px; }
.brand-previews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.brand-preview { min-width: 0; min-height: 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 28px; border: var(--silex-rule); border-radius: var(--silex-radius); }
.brand-preview img { display: block; width: 200px; height: auto; aspect-ratio: 1; object-fit: contain; }
.brand-preview figcaption { font-size: .82rem; }
.brand-preview-dark { background: var(--silex-surface); color: var(--silex-text-soft); }
.brand-preview-light { background: var(--silex-text); color: var(--silex-bg); }
.brand-downloads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.brand-asset { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.brand-asset p { color: var(--silex-muted); font-size: .86rem; margin-block: 6px 16px; }
.brand-action, .brand-copy { display: inline-flex; min-height: 44px; min-width: 44px; align-items: center; justify-content: center; border: 1px solid var(--silex-border-strong); border-radius: var(--silex-radius-sm); background: transparent; color: var(--silex-text); font: inherit; font-size: .86rem; padding: 8px 14px; cursor: pointer; }
.brand-resources .brand-action { color: var(--silex-text); text-decoration: none; margin-top: auto; }
.brand-action:hover, .brand-copy:hover { color: var(--silex-accent); background: var(--silex-soft); border-color: var(--silex-accent); }
.brand-copy:disabled { cursor: wait; opacity: .7; }
.brand-resources .brand-copy-feedback { grid-column: 1 / -1; width: 100%; margin-top: 8px; font-size: .85rem; }
.brand-note { font-size: .86rem; margin-top: 20px; }
.brand-palette { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.brand-color { min-width: 0; }
.brand-swatch { height: 96px; border: var(--silex-rule); border-radius: var(--silex-radius); margin-bottom: 14px; }
.brand-swatch-bg { background: var(--silex-bg); }
.brand-swatch-surface { background: var(--silex-surface); }
.brand-swatch-text { background: var(--silex-text); }
.brand-swatch-text-soft { background: var(--silex-text-soft); }
.brand-swatch-muted { background: var(--silex-muted); }
.brand-swatch-accent { background: var(--silex-accent); }
.brand-color-value { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 6px; font-variant-numeric: tabular-nums; color: var(--silex-text-soft); }
.brand-copy { min-width: 72px; }
.brand-type { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; }
.brand-type .brand-type-sample { color: var(--silex-text); font-size: clamp(2.5rem, 5vw, 3.8rem); font-weight: 500; line-height: 1.1; margin-bottom: 14px; letter-spacing: -.03em; }
.brand-wording > div { display: grid; grid-template-columns: 1fr 2fr auto; align-items: start; gap: 24px; padding-block: 20px; border-top: var(--silex-rule); }
.brand-wording dt { font-weight: 500; }
.brand-wording dd { min-width: 0; }
.brand-wording strong { font-weight: 500; }
.brand-wording p { font-size: .9rem; margin-top: 6px; }
.brand-verification-limit { padding-top: 24px; margin-bottom: 12px; border-top: var(--silex-rule); }
.brand-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 14px; }
.brand-guidelines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.brand-guidelines ul { list-style: disc; margin-top: 12px; padding-left: 20px; color: var(--silex-text-soft); }
.brand-guidelines li + li { margin-top: 8px; }
.brand-naming { margin-top: 28px; }
.brand-naming p, .brand-contact p { margin-top: 10px; }
.brand-contact a { overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .brand-previews, .brand-downloads, .brand-type, .brand-guidelines { grid-template-columns: 1fr; }
  .brand-palette { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .brand-section { padding-top: 28px; margin-top: 28px; }
  .brand-section-nav { gap: 4px 20px; }
  .brand-preview { min-height: 244px; padding: 24px; }
  .brand-preview img { width: 168px; }
  .brand-downloads { gap: 0; }
  .brand-asset { display: grid; grid-template-columns: 1fr; gap: 4px; padding-block: 20px; border-bottom: var(--silex-rule); }
  .brand-asset p { margin-block: 0 8px; }
  .brand-asset .brand-action { justify-self: start; }
  .brand-type { gap: 0; }
  .brand-wording > div { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; }
  .brand-wording dt { grid-column: 1 / -1; }
  .brand-wording > div > dd:first-of-type { grid-column: 1; }
  .brand-guidelines { gap: 24px; }
}
