/* Shared styles for the profile catalogue and profile workspace cards.
   Kept outside business-profiles/ so all 51 profiles use one consistent design system. */
.profile-catalog-grid,.industry-feature-grid,.profile-shortcut-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr));gap:16px}
.profile-catalog-card,.industry-feature-card,.profile-shortcut-card{position:relative;display:flex;flex-direction:column;gap:12px;min-width:0;padding:20px;border:1px solid var(--border-color,rgba(148,163,184,.24));border-radius:20px;background:var(--panel-bg,rgba(255,255,255,.72));box-shadow:0 10px 30px rgba(15,23,42,.045);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.profile-catalog-card:hover,.industry-feature-card:hover,.profile-shortcut-card:hover{transform:translateY(-3px);border-color:var(--accent,#3985ff);box-shadow:0 16px 34px rgba(15,23,42,.09)}
.profile-catalog-card .profile-icon,.industry-feature-card .profile-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:rgba(59,130,246,.11);font-size:22px}
.profile-catalog-card h3,.industry-feature-card h3,.profile-shortcut-card h3{margin:0;font-size:1rem;line-height:1.35}
.profile-catalog-card p,.industry-feature-card p,.profile-shortcut-card p{margin:0;color:var(--muted,#64748b);font-size:.9rem;line-height:1.55}
.profile-catalog-card .profile-card-actions,.industry-feature-card .profile-card-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto;padding-top:4px}
.profile-catalog-card [data-page],.industry-feature-card [data-page],.profile-shortcut-card [data-page]{cursor:pointer}
.profile-route-badge{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;padding:5px 9px;border-radius:999px;background:rgba(100,116,139,.1);font-size:.72rem;font-weight:700;letter-spacing:.02em}
.profile-admin-actions{display:flex;flex-wrap:wrap;gap:10px}
.profile-admin-actions .button:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:640px){.profile-catalog-card,.industry-feature-card,.profile-shortcut-card{padding:16px;border-radius:16px}.profile-catalog-grid,.industry-feature-grid,.profile-shortcut-grid{gap:12px}}
@media(prefers-reduced-motion:reduce){.profile-catalog-card,.industry-feature-card,.profile-shortcut-card{transition:none}.profile-catalog-card:hover,.industry-feature-card:hover,.profile-shortcut-card:hover{transform:none}}


/* Shared profile-card readability and accessible contrast. */
.profile-catalog-card h2,.profile-catalog-card h3,.industry-feature-card h2,.industry-feature-card h3,.profile-shortcut-card h2,.profile-shortcut-card h3{color:#142c49;font-weight:800;line-height:1.3}
.profile-catalog-card p,.industry-feature-card p,.profile-shortcut-card p{color:#435873;font-size:.95rem;line-height:1.65}
.profile-route-badge{color:#23415f;background:#e8f1fa;font-weight:800}
.profile-catalog-card,.industry-feature-card,.profile-shortcut-card{border-color:#d5e0ed}
html[data-theme="dark"] .profile-catalog-card h2,html[data-theme="dark"] .profile-catalog-card h3,html[data-theme="dark"] .industry-feature-card h2,html[data-theme="dark"] .industry-feature-card h3,html[data-theme="dark"] .profile-shortcut-card h2,html[data-theme="dark"] .profile-shortcut-card h3{color:#eff6ff}
html[data-theme="dark"] .profile-catalog-card p,html[data-theme="dark"] .industry-feature-card p,html[data-theme="dark"] .profile-shortcut-card p{color:#c1d0e4}


/* Keep business-profile catalogues and feature cards legible in every profile. */
.profile-catalog-card h1,.profile-catalog-card h2,.profile-catalog-card h3,.industry-feature-card h1,.industry-feature-card h2,.industry-feature-card h3,.profile-shortcut-card h1,.profile-shortcut-card h2,.profile-shortcut-card h3{color:#102947!important;font-weight:850!important;line-height:1.35}
.profile-catalog-card p,.industry-feature-card p,.profile-shortcut-card p{color:#3d536e!important;font-weight:500;line-height:1.65}
.profile-route-badge{color:#173d61!important;background:#e5f2fc!important;font-weight:850!important;border:1px solid #c2dff2}
.profile-catalog-card,.industry-feature-card,.profile-shortcut-card{border-color:#cbd9e8}
html[data-theme="dark"] .profile-catalog-card h1,html[data-theme="dark"] .profile-catalog-card h2,html[data-theme="dark"] .profile-catalog-card h3,html[data-theme="dark"] .industry-feature-card h1,html[data-theme="dark"] .industry-feature-card h2,html[data-theme="dark"] .industry-feature-card h3,html[data-theme="dark"] .profile-shortcut-card h1,html[data-theme="dark"] .profile-shortcut-card h2,html[data-theme="dark"] .profile-shortcut-card h3{color:#f0f6ff!important}
html[data-theme="dark"] .profile-catalog-card p,html[data-theme="dark"] .industry-feature-card p,html[data-theme="dark"] .profile-shortcut-card p{color:#cbd8e9!important}
html[data-theme="dark"] .profile-route-badge{color:#e5f3ff!important;background:#1b3652!important;border-color:#355a7a}


/* Collapsible secondary settings keep profile pages focused without removing workflows. */
.profile-secondary-settings{padding:0;overflow:hidden}
.profile-secondary-settings>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;list-style:none;cursor:pointer;padding:18px 20px}
.profile-secondary-settings>summary::-webkit-details-marker{display:none}
.profile-secondary-settings>summary:after{content:"";width:8px;height:8px;flex:0 0 8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);transition:transform .16s ease}
.profile-secondary-settings[open]>summary:after{transform:rotate(225deg)}
.profile-secondary-settings>summary>span:first-child{display:grid;gap:4px}
.profile-secondary-settings>summary strong{color:#173451;font-size:.98rem;font-weight:850}
.profile-secondary-settings>summary small{color:#526984;font-size:.82rem;font-weight:500}
.profile-secondary-settings .profile-settings-toggle{color:#176ab5;font-size:.78rem;font-weight:800;white-space:nowrap}
.profile-secondary-settings>p{padding:0 20px;margin:0 0 12px}
.profile-secondary-settings>.profile-detail-grid{padding:0 20px 20px}
.sacco-load-error{border:1px solid #efc6a8;background:#fffaf5}
.sacco-load-error h3{color:#853c16}
.sacco-load-error ul{margin:0;padding:0 20px 18px 42px;color:#713b20;overflow-wrap:anywhere}
.sacco-load-error li+li{margin-top:6px}
.sacco-load-error .panel-head{align-items:flex-start}
@media(max-width:640px){.profile-secondary-settings>summary{padding:15px;gap:10px}.profile-secondary-settings>.profile-detail-grid{padding:0 15px 15px}.sacco-load-error .panel-head{flex-direction:column}}
html[data-theme="dark"] .profile-secondary-settings>summary strong{color:#f0f6ff}
html[data-theme="dark"] .profile-secondary-settings>summary small{color:#c1d0e4}
html[data-theme="dark"] .sacco-load-error{background:#30231d;border-color:#85543a}
html[data-theme="dark"] .sacco-load-error h3,html[data-theme="dark"] .sacco-load-error ul{color:#ffd9c2}

.profile-module-details{display:block;border:1px solid #d5e0ed;border-radius:18px;background:var(--panel-bg,#fff)}
.profile-module-details>section.panel{margin:0;border:0;border-radius:0;box-shadow:none}
.profile-module-details>section.panel+section.panel{border-top:1px solid #e2eaf3}
.profile-module-details>section.panel .panel-head{padding-top:4px}
html[data-theme="dark"] .profile-module-details{border-color:#355a7a;background:#10243b}
html[data-theme="dark"] .profile-module-details>section.panel+section.panel{border-top-color:#294560}
