/* Portfolio (src/views/Portfolio.astro) and each company's page (src/views/Company.astro). Square, flat colour; the serif
   speaks in the headline only; labels condensed and spaced; status squares as on the EIS page (filled current, outlined
   exited, half for a partial exit). */
.pf .eye { color: var(--brick-word); }

/* the header band: navy, the whole width */
.pf-hero { background: var(--navy); color: var(--chalk); padding-block: clamp(2.5rem, 5vw, 3.75rem) clamp(3rem, 6vw, 4.5rem); }
.pf-hero .eye { color: var(--brick-accent); }
.pf-hero h1 { margin-top: 1.125rem; font-family: var(--serif); --serif-size: clamp(2.75rem, calc(5.6vw * var(--ts)), 5.25rem); --serif-ls: -.025em; --serif-ws: -.05em; font-size: var(--serif-fit); line-height: .96; color: var(--chalk); max-width: 18ch; letter-spacing: var(--serif-ls); word-spacing: var(--serif-ws); }
.pf-lede { margin: 1.25rem 0 0; max-width: 52ch; font-size: var(--t-body); line-height: 1.55; color: var(--sand); }
.pf-sub { margin: .625rem 0 0; max-width: 60ch; font-size: .875rem; line-height: 1.55; color: var(--chalk); }
.pf-back { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; margin-bottom: 1rem; font: 600 .75rem var(--sans); letter-spacing: .12em; text-transform: uppercase; font-stretch: 80%; color: var(--chalk); text-decoration: none; }
.pf-back svg { width: 15px; height: 15px; stroke: var(--brick-accent); transform: rotate(180deg); transition: transform .3s var(--ease); }
.pf-back:hover svg { transform: rotate(180deg) translateX(3px); }

.pf-body { background: var(--chalk); padding-block: clamp(3rem, 6vw, 4.5rem) clamp(4rem, 8vw, 6rem); }

/* the filters */
.pf-bar[hidden] { display: none; }
.pf-bar { display: grid; gap: .25rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--navy); }
.pf-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.75rem; }
.pf-l { min-width: 4.5rem; font: 600 .75rem var(--sans); letter-spacing: .12em; text-transform: uppercase; font-stretch: 80%; color: var(--taupe); }
.pf-row button { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; gap: .5rem; min-height: 44px; padding: 0; border: 0; border-bottom: 2px solid transparent; background: none; cursor: pointer; font: 600 1rem var(--sans); color: var(--ink-soft); white-space: nowrap; transition: color .3s, border-color .3s; }
.pf-row button .c { font-size: .75rem; letter-spacing: .08em; color: var(--taupe); }
.pf-row button:hover, .pf-row button[aria-pressed="true"] { color: var(--navy); }
.pf-row button[aria-pressed="true"] { border-bottom-color: var(--brick); }
.pf-row button[aria-pressed="true"] .c { color: var(--brick-word); }
.pf-sel select { min-height: 44px; padding: 0 2.25rem 0 .875rem; border: 1px solid var(--rule); border-radius: 0; background: #fff; font: 600 var(--t-body) var(--sans); color: var(--navy); cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23C0674A' stroke-width='1.8'/%3E%3C/svg%3E"); background-position: right .875rem center; background-size: 11px 8px; background-repeat: no-repeat; }
.pf-count { margin: .75rem 0 0; font-size: .875rem; color: var(--ink-soft); }

/* the companies (src/components/CoCard.astro, Kyle's option C2): a card in the site's card manner (white, a rule round it,
   square, the rule turning navy under the pointer), the logo on a panel of its own over the words. The logo spells out the
   name, so the name is for screen readers only. */
.pf-grid { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.pf-grid li { min-width: 0; }
.pf-grid li[hidden] { display: none; }
.pf-grid a { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--rule); color: inherit; text-decoration: none; transition: border-color .25s; }
.pf-grid a:hover { border-color: var(--navy); }
.pf-grid .pf-lg { display: flex; align-items: center; justify-content: center; height: 112px; margin: 0; padding-inline: 1.5rem; border-bottom: 1px solid var(--rule); }
.pf-grid b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pf-grid .w { padding: 1.125rem 1.5rem 0; font-size: .875rem; line-height: 1.5; color: var(--ink-soft); }
/* every card's line is written to sit on two lines at a four-across card's measure (210 to 245px); wider cards (three
   across, two across, one on a phone) keep that measure, so the line breaks alike everywhere */
.pf-grid .w { box-sizing: content-box; max-width: 15.3125rem; }
.pf-grid .m { margin-top: auto; padding: 1rem 1.5rem 0; display: flex; flex-wrap: wrap; gap: .25rem 1rem; font: 600 .75rem/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; font-stretch: 80%; color: var(--ink-soft); }
.pf-grid .st { display: inline-flex; align-items: center; gap: .5rem; color: var(--navy); }
.pf-grid .go { display: inline-flex; align-items: center; gap: .375rem; margin-top: auto; padding: .875rem 1.5rem 1.375rem; font: 600 .875rem var(--sans); color: var(--brick-word); }
.pf-grid .m + .go { margin-top: 0; }
.pf-grid .go svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.pf-grid a:hover .go svg { transform: translateX(4px); }
.pf-sq { flex: none; display: inline-block; width: 9px; height: 9px; box-sizing: border-box; border: 1.5px solid var(--brick); }
.pf-sq.current { background: var(--brick); }
.pf-sq { position: relative; }
.pf-sq.partial::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 50%; background: var(--brick); }
.pf-none { margin: 2rem 0 0; color: var(--ink-soft); }
.pf-none button { min-height: 44px; border: 0; background: none; padding: 0; font: 600 1rem var(--sans); color: var(--navy); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pf-pp { margin: 2.25rem 0 0; font-size: .875rem; color: var(--navy); }

/* a company's page: the overview, and the information beside it */
.pf-cogrid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 2.5rem clamp(2.5rem, 6vw, 6rem); align-items: start; }
.pf-prose { margin-top: 1.25rem; max-width: 66ch; }
.pf-prose p { margin: 0 0 1.125rem; font-size: var(--t-body); line-height: 1.65; color: var(--ink); }
.pf-prose blockquote { margin: 1.75rem 0; padding-left: 1.25rem; border-left: 2px solid var(--brick); }
.pf-prose blockquote p { color: var(--ink-soft); margin: 0; }
.pf-prose cite { display: block; margin-top: .625rem; font: 600 .75rem var(--sans); font-style: normal; letter-spacing: .12em; text-transform: uppercase; font-stretch: 80%; color: var(--navy); }
.pf-info { background: #fff; border-top: 2px solid var(--navy); padding: 1.5rem 1.5rem 1.25rem; }
.pf-info dl { margin: 1rem 0 0; }
.pf-info dl > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1rem; padding-block: .75rem; border-top: 1px solid var(--rule); }
.pf-info dt { font-size: .875rem; color: var(--ink-soft); }
.pf-info dd { margin: 0; display: flex; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 600; color: var(--navy); }
/* a company whose funds differ: one line per fund, each with its own status mark */
.pf-info dd:has(.pf-fsl) { flex-direction: column; align-items: flex-start; gap: .375rem; }
.pf-fsl { display: flex; align-items: flex-start; gap: .5rem; }
.pf-fsl .pf-sq { margin-top: .4em; }
.pf-web { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; margin-top: .5rem; font: 600 .875rem var(--sans); color: var(--brick-word); text-decoration: none; overflow-wrap: anywhere; }
.pf-web svg { width: 15px; height: 15px; flex: none; }
.pf-web:hover { text-decoration: underline; text-underline-offset: 3px; }

.pf-more { background: #fff; padding-block: clamp(3rem, 6vw, 4.5rem); }
.pf-mhead { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-bottom: 1rem; border-bottom: 1px solid var(--navy); }
.pf-all { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font: 600 .875rem var(--sans); color: var(--navy); text-decoration: none; }
.pf-all svg { width: 15px; height: 15px; stroke: var(--brick-word); }
.pf-all:hover { color: var(--brick-word); }
.pf-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pf-more .pf-grid a { background: var(--chalk); }

/* the logos (src/components/CoLogo.astro): on the page's own ground, left aligned in a band of one height, so the names
   below line up across a row */
.co-logo { display: block; max-width: 100%; height: auto; }
.pf-colg { margin-bottom: 2rem; padding-bottom: 1.75rem; border-bottom: 1px solid var(--rule); }

@media (max-width: 1279px) { .pf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .pf-grid, .pf-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-cogrid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .pf-grid, .pf-three { grid-template-columns: minmax(0, 1fr); }
  .pf-row { gap: 0 1.25rem; }
  .pf-l { width: 100%; padding-top: .75rem; }
  .pf-info dl > div { grid-template-columns: 7rem minmax(0, 1fr); }
}

/* the company card's hover (Kyle, 30 October 2026): the card fills navy, as every card that fills does (brand rules
   section 7), its words turn chalk and its logo turns to its white version, solid throughout, fading in over the logo
   (public/img/portfolio/white/; a boxed logo becomes a white box with its lettering cut out). */
.pf-grid a { transition: background-color .5s ease, border-color .5s ease; }
.pf-grid .pf-lg { transition: border-color .5s ease, color .5s ease; }
.pf-grid :is(.w, .m, .st, .go) { transition: color .5s ease; }
.pf-lgi { position: relative; display: inline-flex; }
.pf-lgi::after { content: ""; position: absolute; inset: 0; background: var(--lgw) center / 100% 100% no-repeat; opacity: 0; transition: opacity .5s ease, color .5s ease, border-color .5s ease; pointer-events: none; }
.pf-lgi, .pf-lgi .co-logo { transition: opacity .5s ease, color .5s ease, border-color .5s ease; }
.pf-grid a:is(:hover, :focus-visible) { background: var(--navy); border-color: var(--navy); }
.pf-grid a:is(:hover, :focus-visible) .pf-lg { border-bottom-color: #3A5583; }
.pf-grid a:is(:hover, :focus-visible) :is(.w, .m, .st) { color: var(--chalk); }
.pf-grid a:is(:hover, :focus-visible) .go { color: var(--brick-accent); }
.pf-grid a:is(:hover, :focus-visible) .pf-lgi::after { opacity: 1; }
.pf-grid a:is(:hover, :focus-visible) .pf-lgi .co-logo { opacity: 0; }
@media (hover: none) { .pf-grid a:hover { background: #fff; border-color: var(--rule); } .pf-grid a:hover :is(.w, .m, .st) { color: var(--ink-soft); } .pf-grid a:hover .pf-lgi::after { opacity: 0; } .pf-grid a:hover .pf-lgi .co-logo { opacity: 1; } }

/* "You might also be interested in", once an eyebrow, now a heading in Archivo SemiBold (Kyle, 2 November 2026) */
.pf-mh { margin: 0; font: 600 1.25rem/1.25 var(--sans); color: var(--navy); }

/* Portfolio cards on a phone (phone sweep, 11 November 2026): one card a screen-width row, the logo in its own column on the
   left and the words beside it, so the 76 companies take about half the scrolling they did stacked logo over words. The
   whole card stays the link. */
@media (max-width: 600px) {
  .pf-grid { gap: .75rem; }
  .pf-grid a { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); grid-template-rows: auto auto 1fr; }
  .pf-grid .pf-lg { grid-row: 1 / span 3; height: auto; padding-inline: .75rem; border-bottom: 0; border-right: 1px solid var(--rule); }
  .pf-grid a:is(:hover, :focus-visible) .pf-lg { border-right-color: #3A5583; }
  .pf-grid .w { padding: .875rem 1rem 0; max-width: none; }
  .pf-grid .m { margin-top: 0; padding: .625rem 1rem 0; }
  .pf-grid .go { margin-top: 0; padding: .625rem 1rem .875rem; }
}
.pf-pp { font-size: var(--t-body); }   /* risk wording at body size (1 December 2026) */
