/*
 * Sly Man column header — the reusable nameplate intro pulse that
 * sits at the top of any Sly-Man-owned column (Horses to Watch,
 * Jockeys Taking Aim, and any future column we add).
 *
 * Self-contained palette so it works inside both the HTW page
 * (--htw-gold) and the JTA page (--jta-gold) without depending on
 * either. Falls back to gold defaults if the parent stylesheet
 * doesn't define --sly-* tokens.
 *
 * Layout:
 *   Desktop (>=720px): portrait left, intro pulse middle, nameplate
 *     emblem absolutely positioned in the top-right corner. Sly Man
 *     stands at the floor of the pulse (align-self: end).
 *   Mobile  (<720px):  portrait centred at the top, emblem above,
 *     intro pulse stacked below. order:-1 lifts the emblem so the
 *     column identifier reads first.
 */

:root {
  --sly-gold:     #c39e2a;
  --sly-text:     #1a1612;
  --sly-text-dim: rgba(26, 22, 18, 0.62);
  --sly-bg:       rgba(212, 175, 55, 0.06);
}

.sly-col {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 22px 14px;
  border-left: 4px solid var(--sly-gold);
  background: var(--sly-bg);
  border-radius: 4px;
}
.sly-col__portrait {
  flex: 0 0 auto;
  width: 150px;
  margin: 0;
  align-self: end;       /* Sly Man stands at the floor of the pulse */
}
.sly-col__portrait img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.22));
}
.sly-col__body {
  flex: 1;
  min-width: 0;
  padding-right: 160px;  /* reserve space for the absolute emblem */
}
.sly-col__text {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 19px;
  line-height: 1.55;
  color: var(--sly-text);
  margin: 0 0 8px;
}
.sly-col__author {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sly-gold);
}

/* Corner nameplate — vintage newspaper masthead. Gold rules
   above + below the stack stamp it as authoritative without
   competing with the body copy. */
.sly-col__emblem {
  position: absolute;
  top: 16px;
  right: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 8px 14px 9px;
  border-top:    2px solid var(--sly-gold);
  border-bottom: 2px solid var(--sly-gold);
  text-align: center;
  background: rgba(212, 175, 55, 0.04);
}
.sly-col__emblem-eyebrow {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sly-gold);
}
.sly-col__emblem-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 900;
  font-style: italic;
  color: var(--sly-text);
  line-height: 1;
}
.sly-col__emblem-sub {
  font-family: 'Iowan Old Style', Georgia, serif;
  font-size: 10.5px;
  font-style: italic;
  letter-spacing: 0.04em;
  color: var(--sly-text-dim);
}

@media (max-width: 720px) {
  .sly-col {
    flex-direction: column;
    text-align: center;
    gap: 14px;
    padding: 18px;
  }
  .sly-col__portrait {
    width: 110px;
    align-self: center;
  }
  .sly-col__body {
    padding-right: 0;
  }
  /* Emblem returns to normal flow on mobile and order:-1 lifts
     it above everything else so the column identifier reads
     first on small screens. */
  .sly-col__emblem {
    position: static;
    align-self: center;
    order: -1;
    margin-bottom: 4px;
  }
}
