/*
 * Hove & Quill house layout for articles and people pages (16 November 2026).
 * The firm's publications follow King & Wood Mallesons' "It's Public" design
 * language in the firm's own brand: Trajan capitals with wide tracking for
 * titles and names, Helvetica Neue for everything else, a thin band of the
 * firm's gold marble, numbered contents on stone panels, and contact cards
 * with a ruled foot. Injected into the imported pages by
 * scripts/apply-house-layout.mjs, so it survives every re-import.
 */
:root {
  --hq-charcoal: #1F1D1A;
  --hq-stone: #E7E3D8;
  --hq-ivory: #F6F3EC;
  --hq-gold-deep: #8A6B22;
  --hq-logo-gold: #CBA511;
  --hq-ink: #0A0A0A;
  --hq-band: url("/brand/gold-marble.jpg");
}

/* The gold marble band under every masthead */
.art-mast, .bio-mast { position: relative; }
.hq-band { display: block; height: 7px; background: var(--hq-band) center / cover; }

/* ---------- Articles ---------- */
.art-mast { background: var(--hq-charcoal); }
.art-mast > img { display: none; }
.art-mast::after { display: none; }
.art-mast .container { max-width: 60rem; }
.art-mast h1 {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  letter-spacing: 0.06em; line-height: 1.22; color: var(--hq-logo-gold);
  font-size: clamp(1.45rem, 2.6vw, 2.3rem);
  padding-bottom: 1.6rem; margin-bottom: 1.6rem; border-bottom: 1px solid rgba(231, 227, 216, 0.45);
}
.art-mast .lead { font-weight: 700; color: #fff; }
.art-mast .art-by b a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.art-body h2 {
  font-family: var(--font-body); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; font-size: 0.98rem; line-height: 1.45; color: var(--hq-gold-deep);
  scroll-margin-top: calc(var(--header-h, 80px) + 1.5rem);
}

/* "In this note": numbered contents on stone panels */
.hq-toc { margin: 0 0 2.6rem; }
.hq-toc-h {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 1.15rem; color: var(--hq-gold-deep); padding-bottom: 1rem; margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--hq-ink);
}
.hq-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hq-toc a {
  display: flex; align-items: center; gap: 1.3rem; background: var(--hq-stone); color: var(--hq-ink);
  padding: 0.85rem 1.2rem; text-decoration: none; transition: background 0.25s ease;
}
.hq-toc a:hover, .hq-toc a:focus-visible { background: #DDD7C8; }
.hq-toc .n { font-family: var(--font-display); font-size: 1.9rem; line-height: 1; color: var(--hq-gold-deep); min-width: 1.6rem; text-align: center; }
.hq-toc .t { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.74rem; line-height: 1.7; }

/* The author card at the end of a note */
.hq-authors { max-width: 46rem; margin: 3rem auto 2.5rem; padding: 0 var(--gutter, 1.5rem); }
.hq-authors-h, .hq-sec-h {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.3em;
  font-size: 1.05rem; color: var(--hq-gold-deep); margin: 0 0 1.4rem;
}
.hq-card {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 1.2rem;
  border-bottom: 1px solid var(--hq-ink); min-height: 150px; color: var(--hq-ink);
}
.hq-card img { width: 112px; height: 150px; object-fit: cover; object-position: top; filter: grayscale(1); display: block; }
.hq-card .nm { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.26em; font-size: 0.92rem; line-height: 1.5; margin: 0.9rem 0 0.6rem; }
.hq-card .nm a { color: inherit; text-decoration: none; }
.hq-card .rl { font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.6; margin-bottom: 0.9rem; }
.hq-row { font-size: 0.82rem; line-height: 1.9; }
.hq-row .k { display: inline-block; width: 3.6rem; font-size: 0.62rem; letter-spacing: 0.08em; color: var(--hq-gold-deep); }
.hq-row a { color: var(--hq-ink); }

/* ---------- People ---------- */
.bio-main h2, .bio-sec h2 {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.3em;
  font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--hq-gold-deep);
  padding-bottom: 0.9rem; border-bottom: 1px solid var(--hq-ink);
}
.bio-aside h3 {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.24em;
  font-size: 0.8rem; color: var(--hq-gold-deep); border-bottom-color: var(--hq-ink);
}
.hq-by { margin-top: 3rem; }
.hq-by a.hq-art { display: block; padding: 1rem 0; border-bottom: 1px solid var(--hq-stone); color: var(--hq-ink); text-decoration: none; }
.hq-by .ey { display: block; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hq-gold-deep); margin-bottom: 0.35rem; }
.hq-by .tt { font-size: 0.98rem; line-height: 1.5; }
.hq-by a.hq-art:hover .tt { text-decoration: underline; text-underline-offset: 3px; }

/* People index (Paul, 24 November 2026, after the KWM people page): three grey
   cards to a row, the photograph as tall as the text and standing on a black
   rule that runs under photo and text alike */
.pp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 2.6vw, 2.25rem); }
.pp-card {
  border-bottom: 0; min-height: 0; column-gap: 1.25rem;
  grid-template-columns: 37% minmax(0, 1fr);
  padding: 2.1rem 1.25rem calc(1.35rem + 1px);
  background-color: var(--hq-card, #E4E3E0);
  background-image: linear-gradient(var(--hq-ink), var(--hq-ink));
  background-repeat: no-repeat;
  background-size: calc(100% - 2.5rem) 1px;
  background-position: 1.25rem calc(100% - 1.35rem);
}
.pp-card:hover { box-shadow: none; transform: none; background-color: #DCDAD6; }
.pp-photo { background: transparent; min-height: 150px; }
/* the photograph fills the height of the text beside it, head level with the name */
.pp-photo img { object-fit: cover; object-position: top center; }
.pp-info { padding: 0 0 0.8rem; }
.pp-info h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.05rem; letter-spacing: 0.05em; line-height: 1.3; margin-bottom: 0.65rem; }
.pp-info .pp-role, .pp-info .pp-city { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.1em; line-height: 1.75; color: var(--hq-gold-deep); }
.pp-info .pp-meet { margin-top: auto; padding-top: 0.8rem; color: var(--hq-ink); letter-spacing: 0.1em; font-weight: 500; font-size: 0.7rem; }
@media (max-width: 1100px) { .pp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .pp-grid { grid-template-columns: 1fr; } .pp-card { grid-template-columns: 40% minmax(0, 1fr); } }

@media (max-width: 640px) {
  .hq-toc a { gap: 0.9rem; padding: 0.75rem 0.9rem; }
  .hq-toc .t { letter-spacing: 0.14em; }
  .hq-card { grid-template-columns: 88px minmax(0, 1fr); }
  .hq-card img { width: 88px; height: 118px; }
}
@media print {
  .hq-toc a { background: none; border-bottom: 1px solid var(--hq-stone); }
}
