/*
 * Harmonises existing page content with the AMEDDIAS design, without editing
 * the pages. Loaded on the "AMEDDIAS — Page" template, after page.css.
 * (Hand-written — not generated from the theme.)
 */

/* ----- Author profiles (.sk-profile, built as Custom HTML blocks) ----- */

/* The profile has its own full-width layout and hides the page title itself. */
body.ameddias-page .entry:has(.sk-profile) {
  max-width: none;
  padding: 0;
}

body.ameddias-page .entry:has(.sk-profile) .entry-header {
  display: none;
}

/*
 * Colours: the profile's own flat paper background becomes transparent so the
 * AMEDDIAS paper texture shows through; its palette follows the site palette.
 * These selectors are more specific than the profile's inline <style>, which
 * is printed later in the page.
 */
body.ameddias-page .sk-profile {
  --ink: #2b2620;
  --muted: #6f6455;
  --line: #e8e1d1;
  --highlight: rgba(255, 249, 226, 0.55);
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
}

/* Fonts: Courier Prime for text, Special Elite for titles (single weight). */
body.ameddias-page .sk-profile :is(p, li, a, strong, .sk-button) {
  font-family: var(--font-body);
}

body.ameddias-page .sk-profile :is(h1, h3, .sk-subheading) {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 0;
}

body.ameddias-page .sk-profile h1 {
  text-transform: none;
  line-height: 1.15;
}

/* Section labels in the style of the AMEDDIAS pillar labels. */
body.ameddias-page .sk-profile h2 {
  font-family: var(--font-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--red);
}

body.ameddias-page .sk-profile .sk-sidebar h2 {
  letter-spacing: 0.02em;
}

body.ameddias-page .sk-profile .sk-highlight h2 {
  color: var(--red);
}

body.ameddias-page .sk-profile .sk-highlight p {
  font-weight: 700;
  letter-spacing: 0;
}

body.ameddias-page .sk-profile a:not(.sk-button):hover {
  color: var(--red);
}

body.ameddias-page .sk-profile .sk-button:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
