/* Inmanage web reference: workspace-type.css, verified against the live web UI.
   15 title / 13 section / 12 copy / 11 controls / 10 metadata.
   Identity cards have a separate compact scale below. */
:root {
  --atlas-title: .9375rem;
  --atlas-section: .8125rem;
  --atlas-copy: .75rem;
  --atlas-control: .6875rem;
  --atlas-meta: .625rem;
}
#main > :not(.personal-home), dialog {font-size:var(--atlas-copy);line-height:1.6}
body #main h1, body dialog h2 {font-size:var(--atlas-title)!important;line-height:1.5;letter-spacing:-.2px}
body #main h2:not(.personal-identity-grid *) {font-size:var(--atlas-section)!important;line-height:1.5;letter-spacing:0}
body #main h3:not(.personal-identity-grid *) {font-size:var(--atlas-copy)!important;line-height:1.5;letter-spacing:0}
body #main :is(p,li,dd):not(.personal-identity-grid *), body dialog p {font-size:var(--atlas-copy);line-height:1.7}
body #main :is(button,input,select,textarea,label,legend,.text-link,.card-cta,.back-step,.muted-link):not(.personal-identity-grid *),
body dialog :is(button,input,select,textarea,label,legend) {font-size:var(--atlas-control);line-height:1.5}
body #main :is(input,textarea):not(.personal-identity-grid *)::placeholder, body dialog :is(input,textarea)::placeholder {font-size:inherit}
body #main :is(.eyebrow,.section-kicker,.tag,.hub-tags span,.small-note,.breadcrumb,.visibility-pill,.fact-label,.event-meta,.event-kind,.event-time,.event-place,.reply-badge,.agenda-label,.card-location,.role-label,.card-identity .company,.hub-card-category,.hub-company-link small,.match-reasons,.event-your-reply small,.company-sources,.person-status-line span,.person-preview-statuses span,.person-preview-topics span,dt,small):not(.personal-identity-grid *) {font-size:var(--atlas-meta);line-height:1.6;letter-spacing:0}
body #main .small-note {font-size:var(--atlas-meta)!important}
body #main :is(.fact-value,.capability-grid strong,.service-rows strong,.contact-person strong,.linked-account strong,.profile-title,.profile-location,.company-location,.own-person-company,.person-preview-title,.person-preview-company,.person-preview-location,.person-preview-visibility,.product-limit) {font-size:var(--atlas-copy);line-height:1.6}
body #main :is(.primary,.secondary):not(.personal-identity-grid *), body dialog :is(.primary,.secondary) {min-height:32px;padding:7px 11px;gap:7px;border-radius:7px}
body #main .text-link:not(.personal-identity-grid *) {min-height:28px;gap:6px}
body #main :is(.primary,.secondary,.text-link):not(.personal-identity-grid *) svg {width:14px;height:14px}
body #main :is(.eyebrow,.section-kicker):not(.personal-identity-grid *) {letter-spacing:.06em}

/* Preserve the approved header structure; match the reference control size. */
body .site-header nav a {font-size:var(--atlas-control)}
body .account-trigger strong, body .account-menu-panel a, body .account-menu-panel button {font-size:var(--atlas-control)}

/* Home: surrounding controls use the workspace type scale. */
body #main .personal-welcome h1 {margin:4px 0;font-size:var(--atlas-title)}
body #main .personal-welcome {margin-bottom:18px}
body #main .my-calendar {padding:7px 10px;font-size:var(--atlas-meta);gap:10px}
body #main .my-calendar strong {font-size:var(--atlas-control)}
body #main .my-calendar svg {width:15px;height:15px}
body #main .personal-lower {margin-top:20px;gap:16px;grid-template-columns:minmax(0,2fr) minmax(340px,1fr)}
body #main .personal-section-title {margin-bottom:12px;gap:10px}
body #main .personal-section-title h2 {margin:0}
body #main .event-preview-grid {gap:14px}
body #main .agenda-panel {padding:20px;border-radius:10px}
body #main .agenda-meeting {gap:14px;padding:18px 0 20px}
body #main .agenda-meeting>div {min-width:0}
body #main .agenda-meeting strong {font-size:var(--atlas-copy);line-height:1.6}
body #main .agenda-meeting>div>small {font-size:var(--atlas-meta);margin:4px 0 7px}
body #main .agenda-date {min-width:48px;flex-shrink:0;padding:10px 8px;font-size:var(--atlas-title)}
body #main .agenda-row {font-size:var(--atlas-control);padding:11px 0;gap:8px}
body #main .agenda-row strong {font-size:var(--atlas-control)}
body #main .personal-map-links {gap:8px;margin-top:12px}
body #main .personal-map-links a {padding:11px 13px;gap:9px;border-radius:8px}
body #main .personal-map-links strong {font-size:var(--atlas-control)}
body #main .personal-map-links a>svg {width:16px;height:16px}

/* Events use the same card rhythm and control sizing as Inmanage's agenda. */
body #main .events-shell {padding-top:20px}
body #main .events-heading {margin-bottom:16px}
body #main .events-grid {gap:16px}
body #main .event-tabs {gap:20px;margin-bottom:18px}
body #main .event-tabs a {font-size:var(--atlas-control);padding:0 0 10px}
body #main .event-visual {height:120px;min-height:120px;padding:16px;gap:8px}
body #main .compact-event .event-visual {height:106px;min-height:106px;padding:14px 16px}
body #main .event-visual-title {font-size:var(--atlas-title);line-height:1.5;letter-spacing:0}
body #main .event-visual-art {top:30px;right:16px}
body #main .event-visual-art svg {width:64px;height:64px}
body #main .event-card {border-radius:10px}
body #main .event-card-copy {padding:16px}
body #main .event-meta {margin-bottom:8px;gap:6px}
body #main .event-card h3 {margin-bottom:7px}
body #main .event-card-copy>p {margin-bottom:12px}
body #main .event-card-bottom {padding-top:10px;margin-top:12px;gap:8px}
body #main .event-detail-grid {grid-template-columns:minmax(0,1fr) 280px;gap:18px}
body #main .event-detail-cover {height:170px;min-height:170px;padding:20px;border-radius:10px;gap:10px}
body #main .event-detail-cover>span:nth-child(2) {font-size:var(--atlas-title);line-height:1.5;letter-spacing:0}
body #main .event-detail-cover i {right:30px;top:30px}
body #main .event-detail-cover i svg {width:100px;height:100px}
body #main .event-detail h1 {margin:20px 0 8px}
body #main .event-section {margin-top:18px;padding-top:18px}
body #main .event-section h3 {margin-top:18px}
body #main .event-section li {padding:10px 0}
body #main .event-registration {padding:18px;border-radius:10px}
body #main .event-registration dl {margin:0 0 16px}
body #main .event-registration dt {margin:14px 0 5px}
body #main .event-registration dd {font-size:var(--atlas-copy)}
body #main .event-your-reply {padding:10px}
body #main .event-your-reply strong {font-size:var(--atlas-copy)}
body .rsvp-dialog {padding:24px;width:min(440px,calc(100vw - 32px))}
body .rsvp-dialog .rsvp-option {padding:10px 12px;min-height:36px}
body .rsvp-dialog select {min-height:34px;padding:8px 10px}

/* Discovery stays map-first; surrounding controls and result cards are compact. */
body #main .hub-shell {padding-top:20px}
body #main .people-explore .hero {padding:16px 0 14px;gap:18px}
body #main .hero-statistics {gap:22px}
body #main .stat strong {font-size:var(--atlas-title);line-height:1.5}
body #main .stat span {font-size:var(--atlas-meta)}
body #main .hub-heading {margin-bottom:14px}
body #main .hub-intent-bar {margin-bottom:10px;gap:6px}
body #main .hub-intent-bar button {min-height:28px;padding:5px 10px}
body #main .filter-panel {padding:8px 10px}
body #main .search-filter-row {gap:8px}
body #main .search-box {min-height:32px;padding-inline:10px;gap:7px}
body #main .filter-select {min-height:32px}
body #main .filter-select svg, body #main .search-box>svg {width:14px;height:14px}
body #main :is(.filter-select select,.search-box input,.startup-filter-row select,.startup-filter-row input[type=search]) {height:32px;min-height:32px;padding-block:5px}
body #main .startup-filter-row {min-height:38px;padding:4px 8px}
body #main .hub-search {min-height:30px}
body #main .hub-more-filters>summary {min-height:30px;padding:6px 10px;font-size:var(--atlas-control)}
body #main .hub-more-panel {padding:16px;gap:12px}
body #main .hub-more-panel .hub-filter>span {font-size:var(--atlas-control);margin-bottom:6px}
body #main .hub-more-panel select {padding:7px 8px}
body #main .explore-toolbar {margin:12px 0 10px;gap:10px}
body #main .startup-results-toolbar {margin:10px 0 12px;gap:10px}
body #main :is(.result-summary,.result-summary span,.startup-results-toolbar,.people-extra summary,.sort-select,.map-heading strong,.map-heading>span,.startup-map-heading strong,.startup-map-heading>span,.map-bottom,.startup-map-footer,.hub-count) {font-size:var(--atlas-control)}
body #main .segmented {padding:3px}
body #main .segmented button {min-height:28px;padding:5px 9px;gap:6px}
body #main .segmented svg {width:13px;height:13px}
body #main :is(.map-heading,.startup-map-heading) {padding:14px 16px 0;gap:8px}
body #main :is(.map-bottom,.startup-map-footer) {padding:10px 16px}
body #main :is(.map-bottom button,.startup-map-footer button,.startup-map-footer span) {font-size:var(--atlas-control)}
body #main :is(.map-buttons button,.startup-map-controls button) {min-width:32px;min-height:32px;width:32px;height:32px;font-size:18px}
body #main .results-list .person-card,body #main .startup-results .hub-company-card {padding:12px;border-radius:10px}
body #main .results-list .card-identity h3,body #main .startup-results .hub-company-link h2 {font-size:var(--atlas-copy);line-height:1.5}
body #main .results-list .card-identity p {font-size:var(--atlas-control);line-height:1.6}
body #main .results-list .card-location {margin:7px 0}
body #main :is(.card-tags,.hub-tags) {gap:5px}
body #main :is(.tag,.hub-tags span) {padding:3px 6px}
body #main :is(.results-list,.startup-results) {gap:8px}
body #main .results-list .card-bottom,body #main .startup-results .hub-card-bottom {padding-top:8px;gap:8px}
body #main .startup-results .hub-card-tagline {margin-bottom:8px;font-size:var(--atlas-copy)}
body #main .startup-results .hub-card-category {margin:8px 0 6px}
body #main :is(.results-list,.startup-results) .avatar {width:30px;height:30px;font-size:var(--atlas-control)}

/* Profiles, products, saved items and forms share the reference spacing scale. */
body #main :is(.profile-section,.company-shell .profile-section,.company-side .profile-section,.request-row,.saved-search-card,.person-preview-card) {padding:16px;border-radius:10px}
body #main .profile-section h2 {margin-bottom:10px}
body #main .profile-section p {margin-bottom:12px}
body #main .profile-section p:last-child {margin-bottom:0}
body #main .profile-columns,body #main .company-layout {margin-top:16px;gap:16px}
body #main .company-layout {grid-template-columns:minmax(0,1fr) 270px}
body #main .breadcrumb {margin:16px 0 14px}
body #main .company-banner {padding:18px 20px;gap:18px}
body #main .company-banner-main {gap:14px}
body #main .company-banner h1 {margin:3px 0 6px}
body #main .company-logo {width:48px;height:48px;font-size:18px;border-radius:10px}
body #main .company-fact-row {padding:12px 20px}
body #main .company-fact-row .fact-value {font-size:var(--atlas-copy)}
body #main .company-tabs {gap:18px;margin-bottom:14px}
body #main .company-tabs button {padding-bottom:10px}
body #main .capability-grid {gap:8px}
body #main .capability-grid>div {padding:10px}
body #main .product-copy {padding:18px}
body #main .product-cover {min-height:220px;padding:18px}
body #main .product-cover>strong {font-size:var(--atlas-section);line-height:1.5;letter-spacing:0}
body #main .product-cover-art {height:100px}
body #main .product-facts {margin:14px 0;gap:16px}
body #main .product-copy h3 {margin:16px 0 8px}
body #main .profile-identity {padding:20px 22px 0;border-radius:10px}
body #main .profile-top {gap:16px;padding-bottom:18px}
body #main .profile-avatar {width:56px;height:56px;font-size:18px}
body #main .person-status-line {padding-bottom:16px;gap:6px}
body #main .profile-main {gap:16px}
body #main .person-flow {max-width:1000px;padding-top:20px}
body #main .person-flow-heading {margin-bottom:18px}
body #main .person-flow-layout {grid-template-columns:minmax(0,1fr) 280px;gap:20px}
body #main .person-form-card {padding:20px 24px;border-radius:10px}
body #main .person-step-nav {gap:20px;padding-bottom:16px;margin-bottom:18px}
body #main .person-step-nav i {width:22px;height:22px;font-size:var(--atlas-meta)}
body #main .form-field {margin-bottom:16px;gap:6px}
body #main .form-field label {margin-bottom:4px}
body #main :is(.form-field input:not([type=hidden]),.form-field select,.form-field textarea) {min-height:34px;padding:8px 10px;border-radius:6px}
body #main .form-field textarea {min-height:72px}
body #main .form-field :is(label>span,small) {font-size:var(--atlas-meta)}
body #main .person-statuses label {padding:10px;gap:8px}
body #main :is(.person-topic-list button,.topic-suggestions button) {padding:5px 7px}
body #main .person-form-card .flow-actions {padding-top:16px;margin-top:18px}
body #main .person-preview-card>.avatar {width:52px;height:52px}
body #main .person-preview-topics {margin-top:16px;padding-top:12px}
body #main .person-preview-visibility {margin-top:16px;padding-top:14px}
body #main .profile-more>summary {padding:12px 0;font-size:var(--atlas-control)}
body #main .profile-more>summary>span {font-size:var(--atlas-meta);font-weight:400;line-height:1.5}
body #main .check-line {padding:12px;gap:8px}
body #main .check-line strong {font-size:var(--atlas-control)}
body #main .flow-description {margin-bottom:18px}
body #main .participation-option {padding:16px;gap:12px}
body #main .option-content strong {font-size:var(--atlas-section)}
body #main .option-content>span {font-size:var(--atlas-copy)}
body #main .flow-progress {margin-bottom:24px}
body #main .flow-step {font-size:var(--atlas-control)}
body .combobox-options [role=option] {font-size:var(--atlas-control);min-height:32px;padding:7px 10px}
body .site-footer {font-size:var(--atlas-meta);padding-block:18px;margin-top:24px;gap:16px}
body .site-footer .brand {font-size:16px}
body .site-footer button {font-size:var(--atlas-control)}

@media(min-width:821px) {
  body #main .people-explore .map-card,body #main .people-explore .results-list,
  body #main .startup-map-card,body #main .startup-results {
    height:calc(100dvh - 228px);min-height:460px;max-height:760px;
  }
}
@media(max-width:1100px) {
  body #main .personal-lower {grid-template-columns:1fr}
  body #main .personal-agenda {gap:16px}
  body #main .personal-map-links {margin-top:0}
}
@media(max-width:820px) {
  body #main :is(.company-layout,.event-detail-grid,.person-flow-layout) {grid-template-columns:1fr}
  body #main .event-registration dl {grid-template-columns:110px 1fr;gap:12px}
  body #main .event-registration dt {margin:0}
  body #main .person-flow {max-width:650px}
  body #main .startup-results {height:auto;max-height:none;min-height:0}
}
@media(max-width:600px) {
  body #main .personal-lower {gap:18px}
  body #main .personal-agenda {grid-template-columns:1fr}
  body #main .event-preview-grid, body #main .events-grid {gap:14px}
  body #main .event-detail-cover {height:150px;min-height:150px;padding:18px}
  body #main .person-form-card {padding:18px 16px}
  body #main .company-banner,body #main .profile-identity {padding:18px 16px}
  body #main .company-fact-row {padding:12px 16px}
  body #main :is(.form-field input:not([type=hidden]),.form-field select,.form-field textarea,.search-box input,.filter-select select,.startup-filter-row input[type=search],.startup-filter-row select),
  body dialog :is(input:not([type=radio]):not([type=checkbox]),select,textarea) {font-size:16px;min-height:40px;height:auto}
  body #main :is(.primary,.secondary):not(.personal-identity-grid *),body dialog :is(.primary,.secondary) {min-height:40px}
  body #main .event-registration {padding:16px}
  body #main .event-registration dl {grid-template-columns:90px 1fr}
  body #main .product-cover {min-height:155px}
}
@media(pointer:coarse) {
  body #main :is(.hub-intent-bar button,.segmented button,.company-tabs button,.event-tabs a,.person-step-nav button,.hub-more-filters>summary),body .combobox-options [role=option] {min-height:40px}
}
/* Fixed-height result panes scroll by whole cards rather than shrinking grid tracks. */
body #main :is(.results-list,.startup-results) {grid-auto-rows:max-content;align-content:start}
@media(min-width:821px) {
  body #main .startup-map-card,body #main .startup-results {height:calc(100dvh - 282px)}
  body #main .list-only .results-list,body #main .startup-list-only .startup-results {height:auto;min-height:0;max-height:none}
}
body #main :is(.primary,.secondary):not(.personal-identity-grid *),body dialog :is(.primary,.secondary) {font-size:var(--atlas-control)}
body #main :is(.rsvp-note,.offer-columns p,.fit-item,.evidence-card p),body dialog .rsvp-note {font-size:var(--atlas-copy)!important;line-height:1.7!important}
body #main :is(.hub-card-category span,.hub-card-detail>span,.match-reasons span,.event-zone-note) {font-size:var(--atlas-meta)!important}
body #main :is(.hub-card-detail strong,.startup-results-toolbar strong,.availability-badge,.work-link,.profile-link) {font-size:var(--atlas-control);line-height:1.6}

/* Complete the shared scale for details left at the legacy 14px size. */
body #main :is(.evidence-card>span,.result-tail,.preview-type,.preview-location,.saved-row>div>span) {font-size:var(--atlas-meta);line-height:1.6;letter-spacing:0}
body #main :is(.market-columns strong,.missing-evidence,.source-evidence,.request-info) {font-size:var(--atlas-copy);line-height:1.7}
body #main .market-columns strong {font-weight:400}
body #main :is(.breadcrumb a,.saved-tabs a,.hub-card-bottom a) {font-size:var(--atlas-control);line-height:1.5}
