/* Native public portfolio; source-derived marks take their colour from the current theme. */
.hindle-portfolio { padding-block: 12px 96px; }
/* Keep one semantic page heading without reserving visual space above the browser. */
.portfolio-heading { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.portfolio-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; align-items: start; }
.portfolio-browser { min-width: 0; }
.portfolio-search { margin-bottom: 16px; }
.portfolio-search-field { display: flex; align-items: center; gap: 12px; border: 1px solid var(--hindle-rule); padding-inline: 16px 4px; min-height: 52px; }
.portfolio-search-field:focus-within { outline: 2px solid var(--hindle-focus); outline-offset: 3px; }
.portfolio-search-field svg, .portfolio-views svg { fill: none; stroke: currentColor; stroke-width: 1.2; flex-shrink: 0; }
.portfolio-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: inherit; font: 14px/1.6 var(--hindle-sans); outline: none; }
.portfolio-search input::placeholder { color: var(--hindle-muted); opacity: 1; }
.portfolio-search button, .portfolio-views button, .portfolio-empty button { border: 0; background: transparent; font-size: 13px; min-height: 44px; padding: 8px 12px; }
.portfolio-search-field > button { color: var(--hindle-muted); }
.portfolio-suggestions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; margin-top: 8px; font-size: 12px; color: var(--hindle-muted); }
.portfolio-suggestions button { padding: 6px 0; min-height: 36px; text-decoration: underline; text-underline-offset: 4px; font-size: 12px; }
.portfolio-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-block: 0 8px; min-height: 44px; }
.portfolio-toolbar > p { font-size: 12px; color: var(--hindle-muted); }
.portfolio-views { display: flex; gap: 4px; }
.portfolio-views button { display: flex; align-items: center; gap: 8px; color: var(--hindle-muted); }
.portfolio-views button[aria-pressed="true"] { color: var(--hindle-text); box-shadow: inset 0 -1px var(--hindle-text); }
.portfolio-companies { display: grid; grid-template-columns: minmax(0, 1fr); list-style: none; padding: 0; margin: 0; }
.portfolio-company { min-width: 0; border-bottom: 1px solid var(--hindle-rule); }
.portfolio-company:first-child { border-top: 1px solid var(--hindle-rule); }
.portfolio-company > button { display: grid; grid-template-columns: 48px minmax(0, 1fr) 20px; align-items: center; gap: 20px; width: 100%; min-height: 88px; padding: 16px 8px; background: transparent; border: 0; text-align: left; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) and (pointer: fine) {
  .portfolio-company > button:hover { background: color-mix(in srgb, var(--hindle-rule) 16%, transparent); }
}
.portfolio-company[data-selected="true"] > button { box-shadow: inset 2px 0 var(--hindle-text); }
.portfolio-logo { display: grid; place-items: center; }
.portfolio-mark { display: block; width: 42px; height: 42px; fill: var(--hindle-text); }
.portfolio-company-copy { display: grid; gap: 3px; min-width: 0; }
.portfolio-name { font-size: 14px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.portfolio-description { color: var(--hindle-muted); font-size: 12px; line-height: 1.5; }
.portfolio-arrow { color: var(--hindle-muted); }
.hindle-portfolio[data-view="grid"] { --portfolio-grid-logo-size: 64px; }
/* Share the full width between columns while keeping marks at their natural size. */
.hindle-portfolio[data-view="grid"] .portfolio-companies { grid-template-columns: repeat(auto-fill, minmax(calc(var(--portfolio-grid-logo-size) + 16px), 1fr)); gap: 16px; }
.hindle-portfolio[data-view="grid"] .portfolio-company { border: 0; }
.hindle-portfolio[data-view="grid"] .portfolio-company > button { position: relative; grid-template-columns: 1fr; justify-items: center; align-content: center; gap: 0; padding: 8px; min-height: 44px; aspect-ratio: 1; height: auto; text-align: center; }
.hindle-portfolio[data-view="grid"] .portfolio-mark { width: var(--portfolio-grid-logo-size); height: var(--portfolio-grid-logo-size); }
.hindle-portfolio[data-view="grid"] .portfolio-company[data-selected="true"] > button { box-shadow: none; }
.hindle-portfolio[data-view="grid"] .portfolio-company[data-selected="true"] .portfolio-logo { outline: 1px solid var(--hindle-text); outline-offset: 3px; }
/* Keep the company's name in the button's accessible text, without a visible caption. */
.hindle-portfolio[data-view="grid"] .portfolio-company-copy { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hindle-portfolio[data-view="grid"] :is(.portfolio-description, .portfolio-arrow) { display: none; }
.portfolio-feature { position: sticky; top: 32px; padding-left: 40px; border-left: 1px solid var(--hindle-rule); min-width: 0; }
@media (min-width: 768px) {
  .portfolio-feature { max-height: calc(100dvh - 64px); overflow-y: auto; padding-right: 8px; scrollbar-width: thin; }
}
.portfolio-feature-heading { padding-top: 8px; }
.portfolio-feature-art { position: relative; display: grid; place-items: center; width: 100%; height: 288px; margin-block: 24px; }
.portfolio-feature-poster { position: absolute; width: min(84.4%, 243px); aspect-ratio: 1; background: radial-gradient(circle, var(--hindle-text) .9px, transparent 1.15px) center / 3.4px 3.4px; mask: var(--portfolio-mark) center / contain no-repeat; -webkit-mask: var(--portfolio-mark) center / contain no-repeat; transition: opacity 140ms ease; }
.portfolio-feature-art canvas { display: block; width: min(100%, 288px); aspect-ratio: 1; height: auto; opacity: 0; transition: opacity 140ms ease; }
[data-portfolio-profile][data-logo-state="ready"] .portfolio-feature-poster { opacity: 0; }
[data-portfolio-profile][data-logo-state="ready"] canvas { opacity: 1; }
.portfolio-feature-description { margin-top: 8px !important; color: var(--hindle-muted); font-size: 14px; }
.portfolio-feature-summary { margin-top: 20px !important; font-size: 15px; line-height: 1.65; }
.portfolio-founders { margin-top: 24px !important; font-size: 13px; color: var(--hindle-muted); }
.portfolio-feature-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; }
.portfolio-feature-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; text-decoration: underline; }
.portfolio-news { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--hindle-rule); }
.portfolio-news h3 { font: 500 24px/1.25 var(--hindle-serif); }
.portfolio-news-checked, .portfolio-news-meta { color: var(--hindle-muted); font-size: 12px; line-height: 1.6; }
.portfolio-news-checked { margin-top: 8px !important; }
.portfolio-news ul { list-style: none; margin: 16px 0 0; padding: 0; }
.portfolio-news li { padding-block: 16px; border-top: 1px solid var(--hindle-rule); overflow-wrap: anywhere; }
.portfolio-news li > a { display: block; padding-block: 8px; min-height: 44px; font-size: 14px; line-height: 1.5; text-decoration: underline; text-underline-offset: 3px; }
.portfolio-news-description, .portfolio-news-empty { margin-top: 8px !important; color: var(--hindle-muted); font-size: 13px; line-height: 1.6; }
.portfolio-empty { padding: 48px 0; }
.portfolio-empty p { margin-top: 12px; color: var(--hindle-muted); font-size: 14px; }
.portfolio-empty button { margin-top: 16px; padding-inline: 0; text-decoration: underline; }
.portfolio-preview-empty { min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-block: 32px; }
.portfolio-preview-mark { display: block; width: 112px; height: 112px; margin-bottom: 32px; opacity: .45; background: radial-gradient(circle, var(--hindle-muted) .9px, transparent 1.15px) center / 3.4px 3.4px; mask: var(--portfolio-mark) center / contain no-repeat; -webkit-mask: var(--portfolio-mark) center / contain no-repeat; }
.portfolio-preview-empty h2 { font: 500 26px/1.2 var(--hindle-serif); }
.portfolio-preview-empty a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 16px; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.portfolio-preview-empty p { margin-top: 12px; max-width: 28ch; color: var(--hindle-muted); font-size: 14px; line-height: 1.6; }
/* A native modal keeps focus and pointer access inside the mobile profile. */
.portfolio-sheet { position: fixed; inset: auto 0 0; width: 100%; max-width: none; max-height: 88dvh; margin: 0; padding: 0; border: 1px solid var(--hindle-rule); border-bottom: 0; border-radius: 18px 18px 0 0; background: var(--hindle-bg); color: var(--hindle-text); overflow: hidden; box-shadow: 0 -16px 64px #0003; }
.portfolio-sheet[open] { animation: portfolio-sheet-enter 240ms cubic-bezier(.2,.8,.2,1); }
.portfolio-sheet::backdrop { background: rgb(3 14 24 / .55); }
.portfolio-sheet-handle { display: grid; place-items: center; height: 40px; cursor: grab; touch-action: none; }
.portfolio-sheet-handle span { width: 36px; height: 4px; border-radius: 4px; background: var(--hindle-muted); opacity: .45; }
.portfolio-sheet-close { position: absolute; top: 8px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; z-index: 1; }
.hindle-public .portfolio-sheet-close:focus-visible { outline-offset: -4px; }
.portfolio-sheet-close svg { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.portfolio-sheet-content { max-height: calc(88dvh - 40px); padding: 0 24px max(24px, env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; }
.portfolio-sheet-content .portfolio-feature-heading { padding-top: 0; }
/* The heading receives initial reading focus; interactive controls retain their keyboard rings. */
.portfolio-sheet-content .portfolio-feature-heading h2:focus { outline: none; }
.portfolio-sheet-content .portfolio-feature-art { height: 180px; margin-block: 16px; }
.portfolio-sheet-content .portfolio-feature-art canvas { width: 210px; max-width: 100%; }
.portfolio-sheet-content .portfolio-feature-poster { width: min(84.4%, 178px); background-size: 2.1px 2.1px; }
.portfolio-sheet-open { position: fixed; inset-inline: 0; top: var(--portfolio-scroll-top); width: 100%; }
/* Keep the inert chooser quiet behind the sheet, including sticky touch hover. */
.portfolio-sheet-open .portfolio-company > button { background: transparent; box-shadow: none; outline: none; }
.portfolio-sheet-open .hindle-portfolio[data-view="grid"] .portfolio-company[data-selected="true"] .portfolio-logo { outline: none; }
@keyframes portfolio-sheet-enter { from { transform: translateY(100%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .portfolio-sheet[open] { animation: none; } .portfolio-feature-poster, .portfolio-feature-art canvas { transition: none; } }
@media (min-width: 768px) and (max-width: 1023px) {
  .portfolio-layout { gap: 32px; grid-template-columns: minmax(0, 1fr) 280px; }
  .portfolio-feature { padding-left: 24px; }
  .hindle-portfolio[data-view="grid"] { --portfolio-grid-logo-size: 48px; }
  .portfolio-feature-art { height: 240px; }
}
@media (max-width: 767px) {
  .hindle-portfolio { padding-block: 4px 64px; }
  .portfolio-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .portfolio-browser { display: contents; }
  .portfolio-browser > * { grid-column: 1 / -1; min-width: 0; }
  .portfolio-empty { padding-block: 32px; }
  .hindle-portfolio[data-sheet-enabled][data-empty="true"] .portfolio-feature { display: block; grid-column: 1 / -1; grid-row: 4; padding: 0; border-top: 1px solid var(--hindle-rule); }
  .portfolio-preview-empty { min-height: 0; align-items: flex-start; text-align: left; padding-block: 32px 0; }
  .portfolio-preview-mark { display: none; }
  .portfolio-search { grid-row: 1; margin-bottom: 4px; }
  .portfolio-toolbar { grid-row: 2; margin-top: 0; }
  .portfolio-feature { grid-row: 3; position: static; padding: 16px 0 32px; border: 0; }
  .hindle-portfolio[data-sheet-enabled] .portfolio-feature { display: none; }
  .portfolio-feature-art { height: 200px; margin-bottom: 16px; }
  .portfolio-feature-art canvas { width: 220px; max-width: 100%; }
  .portfolio-founders { margin-top: 16px !important; }
  .portfolio-feature-summary { font-size: 14px; margin-top: 12px !important; }
  .portfolio-feature-links { margin-top: 16px; }
  .hindle-portfolio[data-sheet-enabled] :is(.portfolio-companies, .portfolio-empty) { grid-row: 3; }
  .portfolio-companies, .portfolio-empty { grid-row: 4; }
  .portfolio-company > button { gap: 16px; min-height: 80px; }
  .hindle-portfolio[data-view="grid"] { --portfolio-grid-logo-size: 40px; }
  .hindle-portfolio[data-view="grid"] .portfolio-companies { gap: 12px; }
}

/* Full public company profiles use normal page scrolling and a readable text measure. */
.company-page { max-width: 1040px; padding-block: 12px 96px; }
.company-page-back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 32px; font-size: 13px; }
.company-page-intro { display: grid; grid-template-columns: minmax(0, 1fr) 288px; align-items: start; gap: 64px; }
.company-page-overview { min-width: 0; }
.company-page-description { margin-top: 12px !important; color: var(--hindle-muted); }
.company-page-summary { margin-top: 24px !important; max-width: 65ch; }
.company-page-facts { display: flex; flex-wrap: wrap; gap: 24px 40px; margin: 32px 0 0; font-size: 14px; }
.company-page-facts dt { margin-bottom: 4px; font-size: 12px; color: var(--hindle-muted); }
.company-page-facts dd { margin: 0; }
.company-page-art { position: relative; display: grid; place-items: center; height: 288px; }
.company-page-posts { margin-top: 48px; padding-top: 32px; max-width: 760px; }
.company-page-posts li { padding-block: 24px; }
.company-page-posts li > a { font-size: 17px; }
.company-page-posts .portfolio-news-description { font-size: 15px; }
@media (max-width: 1023px) {
  .company-page-intro { grid-template-columns: minmax(0, 1fr) 200px; gap: 32px; }
  .company-page-art { height: 220px; }
}
@media (max-width: 767px) {
  .company-page { padding-block: 4px 64px; }
  .company-page-back { margin-bottom: 24px; }
  .company-page-intro { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .company-page-art { grid-row: 1; height: 144px; }
  .company-page-art .portfolio-feature-poster { width: 144px; background-size: 2.1px 2.1px; }
  .company-page-facts { gap: 20px 32px; }
  .company-page-posts { margin-top: 32px; padding-top: 24px; }
}

/* Approved founder feedback stays in normal reading flow on company pages. */
.company-testimonials { max-width: 760px; margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--hindle-rule); }
.company-testimonial-stories { display: grid; gap: 40px; margin-top: 32px; }
.company-testimonials .hindle-story { gap: 20px; }
.company-testimonials .hindle-story figcaption { color: var(--hindle-muted); }
@media (max-width: 767px) {
  .company-testimonials { margin-top: 40px; padding-top: 28px; }
  .company-testimonial-stories { gap: 32px; margin-top: 24px; }
  .company-testimonials .hindle-story blockquote { font-size: 24px; }
}
