*{box-sizing:border-box}body{margin:0;font-family:Arial,Helvetica,sans-serif;color:#e8f3fb;background:radial-gradient(circle at 12% 0,#0b3553,transparent 32%),linear-gradient(150deg,#03080d,#061522 60%,#08243a);min-height:100vh}.hidden{display:none!important}.login{min-height:100vh;display:grid;place-items:center;padding:24px}.login form{width:min(430px,100%);border:1px solid #2779af;background:#06131e;padding:38px}.logo{width:56px;height:56px;border:1px solid #4da9e8;display:grid;place-items:center;font-size:31px;font-weight:700;background:#0a263a}.login h1{font-size:30px}.login p,.muted,.preview{color:#a6bdcc}.login input{width:100%;font:20px Arial;padding:13px;background:#030b12;border:1px solid #28698f;color:white;margin:16px 0}.login button{width:100%;font-size:17px}#loginError{color:#ffb0b0;margin-top:12px}header{position:sticky;top:0;z-index:5;background:#030a11f2;border-bottom:1px solid #1d5d87;padding:14px 4vw;display:flex;align-items:center;gap:25px}.brand{display:flex;align-items:center;gap:10px;margin-right:auto;cursor:pointer}.brand i{width:42px;height:42px;display:grid;place-items:center;border:1px solid #4da9e8;font-style:normal;font-size:27px;font-weight:700;background:#0a263a}.brand b{display:block;font-size:19px}.brand small{display:block;color:#78add0;text-transform:uppercase;letter-spacing:2px;font-size:10px;margin-top:3px}nav{display:flex;gap:7px}button,.action{font-family:Arial,Helvetica,sans-serif;border:1px solid #287db2;background:#071725;color:#a9d9f7;padding:9px 13px;border-radius:1px;cursor:pointer;text-decoration:none}main{width:min(1180px,92vw);margin:36px auto 80px}.eyebrow{color:#6fb7e5;text-transform:uppercase;letter-spacing:3px;font-size:12px;font-weight:700}.hero{padding:24px 0 34px;border-bottom:1px solid #16435f}.hero h1,h1,h2{font-family:Arial,Helvetica,sans-serif;font-weight:700}.hero h1{font-size:clamp(40px,6vw,67px);line-height:1;margin:8px 0}.hero p{font-size:19px;line-height:1.6;color:#a6bdcc}.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:24px}.tile{min-height:155px;border:1px solid #1b5c86;background:linear-gradient(145deg,#071521,#0a263b);padding:18px;cursor:pointer}.tile .num{font-size:38px;color:#dff2ff}.tile strong{display:block;font-size:21px;margin-top:28px}.tile span{color:#8fb8d1;font-size:15px}.profiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:18px}.profile{border:1px solid #1b5277;background:#07131e;cursor:pointer}.photo{width:100%;display:grid;place-items:center;background:linear-gradient(145deg,#0b2940,#0c3a5b);overflow:hidden;color:#78b5db}.person .photo{aspect-ratio:3/4}.place .photo{aspect-ratio:3/2}.photo img,.detail-photo img{width:100%;height:100%;object-fit:cover}.initial{font-size:58px}.name{padding:13px;font-size:19px;font-weight:700}.detail{display:grid;grid-template-columns:minmax(230px,330px) 1fr;gap:34px;align-items:start}.detail.place-detail{grid-template-columns:minmax(360px,520px) 1fr}.detail-photo{border:1px solid #27678f;padding:8px;background:#071521}.person-photo{aspect-ratio:3/4}.place-photo{aspect-ratio:3/2}.placeholder{height:100%;display:grid;place-items:center;background:linear-gradient(145deg,#0a263b,#0b4167);font-size:70px}.note{font-size:19px;line-height:1.8}.note a{color:#64bdf3}.section{display:flex;justify-content:space-between;align-items:end;border-bottom:1px solid #16435f;margin:36px 0 15px}.section h2{margin:0 0 7px}.section span{color:#a6bdcc;font-size:14px}.card{font-size:18px;line-height:1.6;border:1px solid #153e59;border-left:3px solid #2c8ac3;background:#06131e;padding:15px;margin:9px 0;cursor:pointer}.card strong{font-size:20px}.preview,.muted{font-size:17px;line-height:1.6}.badge{border:1px solid #2c759f;padding:2px 7px;font-size:12px;margin-left:7px}.actions{display:flex;gap:8px;margin-top:10px}.comments{margin-top:42px}.commentbox{border:1px solid #1b5277;background:#07131e;padding:18px}.commentbox input,.commentbox textarea{width:100%;background:#030b12;border:1px solid #255f85;color:white;padding:12px;font:18px Arial;margin-bottom:10px}.commentbox textarea{min-height:100px}.comment{border-top:1px solid #153e59;padding:13px 0;font-size:18px;line-height:1.55}.comment-meta{color:#78add0;font-size:14px;margin-bottom:5px}footer{border-top:1px solid #123e5b;color:#66879d;padding:25px;text-align:center;font-size:11px;letter-spacing:2px}@media(max-width:900px){.grid{grid-template-columns:repeat(2,1fr)}.detail,.detail.place-detail{grid-template-columns:1fr}.detail-photo{max-width:450px}}@media(max-width:680px){header{flex-direction:column;align-items:flex-start}.brand{margin:0}nav{width:100%}nav button{flex:1}.profiles{grid-template-columns:repeat(2,1fr);gap:9px}.note{font-size:20px;line-height:1.75}.card{font-size:19px}.card strong{font-size:21px}.preview,.muted{font-size:18px}.name{font-size:18px}.comment{font-size:19px}}
/* v6 readability: high-contrast reading surfaces */
.note,.card,.commentbox{background:#07131e;color:#e8f3fb;border-color:#1b5277}
.note{padding:22px 24px;max-width:78ch}
.note p{margin-top:0;margin-bottom:1em}
.note a{color:#075b91;text-decoration:underline;text-underline-offset:2px}
.card{border-left-color:#1475ad}
.card .preview,.card .muted{color:#435565}
.card strong{color:#101820}
.badge{color:#164b6c;border-color:#7ba8c4;background:#eef7fc}
.commentbox .muted{color:#435565}
.commentbox textarea{background:#020b12;color:#f2f8fc;border:1px solid #397ca6;line-height:1.6}
.comment{color:#17212b;border-top-color:#cbd6de}
.comment-meta{color:#315f7d;font-weight:700}
.profile{background:#07131e;border-color:#1b5277}
.profile .name{color:#101820}
.section h2{font-size:28px}
button,.action{font-size:17px}
@media(max-width:680px){
  main{width:min(94vw,1180px);margin-top:24px}
  .note{font-size:21px;line-height:1.72;padding:18px 17px;max-width:none}
  .card{font-size:20px;line-height:1.65;padding:17px}
  .card strong{font-size:22px}
  .preview,.muted{font-size:19px;line-height:1.65}
  .commentbox{padding:16px}
  .commentbox textarea{font-size:20px;min-height:150px}
  .comment{font-size:20px;line-height:1.65}
  .comment-meta{font-size:16px}
  .section h2{font-size:27px}
  button,.action{font-size:18px;min-height:44px}
}

.logout-button{margin-left:8px;border-color:#496a7e;color:#d7e9f3;background:#0b1822}
@media(max-width:680px){nav{flex-wrap:wrap}.logout-button{margin-left:0}}

/* v11 personalized welcome */
.welcome-splash{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 50% 35%,#0d3b5c,transparent 38%),linear-gradient(150deg,#03080d,#061522 60%,#08243a);opacity:1;transition:opacity .35s ease}
.welcome-splash.fade-out{opacity:0}
.welcome-panel{text-align:center;max-width:720px}
.welcome-panel .logo{margin:0 auto 28px}
.welcome-panel h1{font-size:clamp(34px,6vw,64px);line-height:1.15;margin:10px 0;color:#f3f9fd}

/* v13 balanced readability: comfortable without oversized mobile text */
.note{font-size:18px;line-height:1.68}
.card{font-size:17px;line-height:1.55}
.card strong{font-size:19px}
.preview,.muted{font-size:16px;line-height:1.55}
.comment{font-size:17px;line-height:1.55}
.commentbox textarea{font-size:18px;line-height:1.55}
@media(max-width:680px){
  .note{font-size:18px;line-height:1.65;padding:17px 16px}
  .card{font-size:17px;line-height:1.55;padding:15px}
  .card strong{font-size:19px}
  .preview,.muted{font-size:16px;line-height:1.55}
  .commentbox textarea{font-size:18px;min-height:125px}
  .comment{font-size:17px;line-height:1.58}
  .comment-meta{font-size:14px}
  .section h2{font-size:24px}
  button,.action{font-size:16px;min-height:42px}
}

/* v15 mobile refinement: deliberate spacing and touch-friendly controls */
.actions{flex-wrap:wrap;align-items:center;row-gap:10px}
@media(max-width:680px){
  header{padding:14px 16px;gap:14px}
  .brand{width:100%}
  nav{gap:8px;row-gap:8px}
  nav button{flex:1 1 calc(50% - 8px);padding:10px 9px}
  main{width:calc(100% - 28px);margin:24px auto 64px}
  main>button{margin:0 0 20px}
  h1{font-size:clamp(30px,9vw,42px);line-height:1.08;margin:10px 0 22px}
  .hero{padding:16px 0 28px}.hero h1{font-size:clamp(38px,12vw,52px)}.hero p{font-size:17px;line-height:1.55;margin-bottom:0}
  .grid{gap:12px}.tile{padding:16px;min-height:145px}.tile strong{margin-top:22px}
  .profiles{gap:12px}.name{padding:12px 11px}
  .detail,.detail.place-detail{gap:22px}.detail-photo{width:100%;max-width:none;padding:6px}
  .note{margin-top:14px;padding:17px 16px}
  .note p:last-child{margin-bottom:0}
  .section{align-items:flex-end;gap:12px;margin:34px 0 14px;padding-bottom:4px}
  .section h2{margin-bottom:4px}.section span{padding-bottom:5px;white-space:nowrap}
  .card{margin:12px 0;padding:16px}.card .preview{margin-top:7px}
  .actions{gap:10px;margin-top:14px}.action{display:inline-flex;align-items:center;justify-content:center;padding:11px 13px;min-height:44px}
  .comments{margin-top:40px}.commentbox{padding:16px}.comment{padding:16px 0}
  #commentForm{margin-top:14px}.commentbox textarea{margin:10px 0 12px;padding:13px}
  #commentForm button{padding:11px 16px}
}
@media(max-width:390px){
  main{width:calc(100% - 22px)}
  .profiles{grid-template-columns:1fr 1fr;gap:9px}
  nav button{font-size:15px}
  .section{display:block}.section span{display:block;padding:0 0 5px}
  .actions .action{width:100%}
}

/* v17 resource/task discussion, Other hub, comment journal, Obsidian journal */
.resource-actions{margin:0 0 22px}
.other-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:24px}
.other-card{border:1px solid #1b5c86;background:linear-gradient(145deg,#071521,#0a263b);padding:24px;min-height:150px;cursor:pointer;display:flex;flex-direction:column;justify-content:flex-end;gap:10px}
.other-card strong{font-size:24px;color:#e8f3fb}.other-card span{color:#9fc1d6;line-height:1.55}
.comment-journal,.journal-list{display:grid;gap:14px;margin-top:22px}
.journal-entry{background:#07131e;color:#e8f3fb;border:1px solid #1b5277;border-left:3px solid #2c8ac3;padding:18px 20px}
.journal-entry h2{font-size:21px;margin:5px 0 8px}.journal-entry h2 a{color:#075b91}.journal-entry p{font-size:17px;line-height:1.6;margin:8px 0 0}.journal-kind{text-transform:capitalize;color:#4a6373;font-size:13px;letter-spacing:1px}.journal-body{font-size:17px;line-height:1.65}.journal-body p:last-child{margin-bottom:0}
@media(max-width:680px){
  .other-grid{grid-template-columns:1fr;gap:13px}.other-card{min-height:125px;padding:19px}.other-card strong{font-size:22px}
  .resource-actions{margin:4px 0 20px}.resource-actions .action{width:100%}
  .journal-entry{padding:16px}.journal-entry h2{font-size:20px}.journal-entry p,.journal-body{font-size:17px}
}

/* v19 dark discussion surfaces and comment management */
.note,.card,.commentbox{background:#07131e;color:#e8f3fb;border-color:#1b5277}
.note a{color:#73c7fa}
.commentbox .muted{color:#a6bdcc}
.commentbox textarea,.commentbox input{background:#020b12;color:#f2f8fc;border:1px solid #397ca6;caret-color:#fff;box-shadow:none}
.commentbox textarea::placeholder,.commentbox input::placeholder{color:#8eabba;opacity:1}
.commentbox textarea:focus,.commentbox input:focus{outline:2px solid #63b8ea;outline-offset:1px;border-color:#63b8ea}
.comment{color:#e8f3fb;border-top-color:#194864}
.comment-meta{color:#7fc3ea}
.comment-actions{display:flex;gap:8px;margin-top:10px}
.comment-action{padding:6px 10px;font-size:14px}
.comment-action.danger{border-color:#8e5260;color:#ffc2ca}
.comment-edit-text{width:100%;min-height:110px;margin:8px 0;background:#020b12;color:#f2f8fc;border:1px solid #397ca6;padding:12px;font:17px Arial,Helvetica,sans-serif;line-height:1.55;resize:vertical}
.comment-edit-text:focus{outline:2px solid #63b8ea;outline-offset:1px;border-color:#63b8ea}

/* v20 spacing audit: controls and labels must never visually collide */
main>.page-back{display:inline-flex;align-items:center;justify-content:center;margin:0 0 30px;min-height:42px}
main>.page-back+.detail-title{margin-top:0}
.detail-title{margin-bottom:22px}
.eyebrow{display:block;margin:0 0 10px;line-height:1.35}
.eyebrow+h1{margin-top:0}
h1{line-height:1.12}
.actions{margin-top:16px}
.actions+.note,.resource-actions+.note{margin-top:22px}
.section{padding-top:4px}
.commentbox>p,.commentbox>.muted{margin-top:0}
#commentForm{margin-top:18px}
#commentForm textarea{display:block;margin:10px 0 14px}
.comment-actions{margin-top:12px}
.other-grid,.profiles,.grid,.comment-journal,.journal-list{scroll-margin-top:20px}
@media(max-width:680px){
  main>.page-back{margin-bottom:26px;min-height:44px}
  .detail-title{margin-bottom:24px}
  .eyebrow{margin-bottom:9px}
  .actions{margin-top:16px;gap:10px}
  .comments{margin-top:44px}
  .commentbox{padding:17px}
  #commentForm{margin-top:18px}
}

/* v21 contrast audit: every dark reading surface uses an explicit light foreground */
.card,
.note,
.commentbox,
.journal-entry{
  background:#07131e;
  color:#e8f3fb;
  border-color:#1b5277;
}
.card{border-left-color:#2c8ac3}
.card strong,
.note strong,
.commentbox strong,
.journal-entry h2{
  color:#f4f9fc;
}
.card .preview,
.card .muted,
.note .muted,
.commentbox .muted,
.journal-entry .muted{
  color:#b6cbd8;
}
.badge{
  color:#cbeaff;
  border-color:#397ca6;
  background:#0a263a;
}
.note a,
.journal-entry a,
.journal-entry h2 a{
  color:#79cdfc;
  text-decoration-color:#4fa8da;
}
.note a:visited,
.journal-entry a:visited,
.journal-entry h2 a:visited{color:#b6d9f0}
.journal-kind{color:#9eb8c8}
.journal-body{color:#e8f3fb}
.comment-text{color:#edf7fc}
.comment-meta{color:#8bcdf1}
.comment-action{color:#bfe7ff}
.comment-action.danger{color:#ffc8cf}
.other-card span{color:#b6cbd8}
.tile span{color:#a9c8da}
button:hover,.action:hover,.card:hover,.other-card:hover{border-color:#55aee2}
button:focus-visible,.action:focus-visible,.card:focus-visible,.other-card:focus-visible,a:focus-visible{outline:2px solid #79cdfc;outline-offset:2px}
@media(max-width:680px){
  .card .preview,.card .muted,.journal-kind{color:#bed2de}
}


/* v25: structured census resource summary */
.census-block{background:#07131e;border:1px solid #1b5277;border-left:3px solid #2c8ac3;padding:17px 19px;margin:0 0 22px;max-width:78ch}
.census-heading{font-size:16px;font-weight:700;letter-spacing:.03em;color:#9fc9e2;margin-bottom:10px}
.census-person{display:flex;flex-wrap:wrap;align-items:baseline;gap:0;font-size:16px;line-height:1.55;color:#d9e8f1;padding:3px 0}
.census-person strong{font-size:17px;color:#f2f7fa;margin-right:8px}
.census-person span:not(:last-child)::after{content:" · ";color:#668fa9;margin:0 6px}
.census-empty{font-size:15px;color:#a6bdcc}
@media(max-width:680px){.census-block{padding:15px 16px;margin-bottom:20px}.census-heading{font-size:15px}.census-person{font-size:15px}.census-person strong{font-size:16px}}


/* v26: compact structured census household previews on Resource cards */
.census-card-preview{margin-top:5px;font-size:14px;line-height:1.45;color:#9fc3d9;font-weight:400;letter-spacing:.005em;max-width:100%;overflow-wrap:anywhere}
.resource-card .census-card-preview+.preview{margin-top:7px}
@media(max-width:680px){.census-card-preview{font-size:13px;line-height:1.5;margin-top:5px}}

/* v27: universal Obsidian Preview field */
.profile>.preview{padding:0 13px 14px;color:#bed2de;font-size:16px;line-height:1.5;font-weight:400}
.detail-preview{margin:0 0 22px;color:#bed2de;font-size:17px;line-height:1.65;font-weight:400;white-space:normal}
.detail-title+.detail-preview{margin-top:-6px}
@media(max-width:680px){.profile>.preview{font-size:15px}.detail-preview{font-size:16px}}


/* v28: dark Place previews; Preview is secondary to full note text */
.profile.place{background:#07131e;border-color:#1b5277;color:#e8f3fb}
.profile.place .name{color:#f4f9fc}
.profile.place>.preview{background:#07131e;color:#b6cbd8}
.profile>.preview{font-size:14px;line-height:1.5}
.card .preview{font-size:14px;line-height:1.5;color:#b6cbd8}
.detail-preview{font-size:15px;line-height:1.6;color:#b6cbd8}
@media(max-width:680px){
  .profile>.preview{font-size:14px}
  .card .preview{font-size:14px}
  .detail-preview{font-size:15px}
}


/* v29: site-wide dark content surfaces and formatted Preview text */
.profile,
.profile.person,
.profile.place,
.card,
.note,
.commentbox,
.journal-entry {
  background:#07131e;
  color:#e8f3fb;
  border-color:#1b5277;
}
.profile .name,
.profile.person .name,
.profile.place .name,
.card strong,
.journal-entry h2 { color:#f4f9fc; }
.profile>.preview,
.card .preview,
.detail-preview { color:#b6cbd8; }
.preview strong { color:#eef7fc; font-weight:700; }
.preview em { color:inherit; }
.preview a { color:#79cdfc; text-decoration:underline; text-underline-offset:2px; }
.preview a:visited { color:#b6d9f0; }

/* v30: menu/list cards render only explicit YAML Preview; note-body fallback removed in app.js. */

/* v31: inline Preview formatting must preserve the Preview's typography.
   Emphasis changes weight/style/color only — never size, line-height, spacing, or layout. */
.preview strong,
.card .preview strong,
.profile .preview strong,
.detail-preview strong {
  display:inline;
  margin:0;
  padding:0;
  font-size:inherit;
  line-height:inherit;
  font-family:inherit;
  font-weight:600;
  letter-spacing:inherit;
  color:#e4f0f7;
}
.preview em,
.card .preview em,
.profile .preview em,
.detail-preview em {
  display:inline;
  margin:0;
  padding:0;
  font-size:inherit;
  line-height:inherit;
  font-family:inherit;
  font-style:italic;
  font-weight:inherit;
  letter-spacing:inherit;
  color:inherit;
}
.preview a,
.card .preview a,
.profile .preview a,
.detail-preview a {
  display:inline;
  margin:0;
  padding:0;
  font-size:inherit;
  line-height:inherit;
  font-family:inherit;
  font-weight:inherit;
  letter-spacing:inherit;
  color:#79cdfc;
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:2px;
}
.preview a:visited,
.card .preview a:visited,
.profile .preview a:visited,
.detail-preview a:visited { color:#b6d9f0; }

/* v32: site-wide title/heading hierarchy.
   Titles and headings use a restrained light blue; body and Preview text retain
   their existing neutral light tones. Links remain a brighter blue. */
:root { --heading-blue:#8fc9ed; --link-blue:#79cdfc; }

h1,
h2,
h3,
.hero h1,
.detail-title,
.section h2,
.journal-entry h2,
.census-heading,
.profile .name,
.profile.person .name,
.profile.place .name,
.card > strong,
.tile strong,
.other-card strong {
  color:var(--heading-blue);
}

/* Preserve the subtle inline emphasis treatment inside Preview text. */
.preview strong,
.card .preview strong,
.profile .preview strong,
.detail-preview strong {
  color:#e4f0f7;
}

/* Links are intentionally brighter than headings. */
a,
.note a,
.preview a,
.card .preview a,
.profile .preview a,
.detail-preview a,
.journal-entry h2 a {
  color:var(--link-blue);
}


/* v35: refined structural typography + one global search available on every page. */
h1,h2,h3,.hero h1,.detail-title,.section h2,.journal-entry h2,.census-heading,
.profile .name,.card > strong,.tile strong,.other-card strong {
  font-weight:400;
}
/* Intentional Markdown emphasis remains emphasis, without changing type size/line height. */
.note strong,.preview strong,.card .preview strong,.profile .preview strong,.detail-preview strong,
.journal-body strong,.commentbox strong {
  font-size:inherit;
  line-height:inherit;
  font-weight:600;
}
.search-toggle{font-size:25px;line-height:1;padding:7px 12px;min-width:44px}
.global-search{position:sticky;top:71px;z-index:4;background:#030a11f7;border-bottom:1px solid #1d5d87;padding:12px 4vw 16px}
.global-search-inner{width:min(1180px,92vw);margin:0 auto;position:relative}
.global-search input{width:100%;height:46px;background:#06131e;border:1px solid #287db2;color:#eef7fc;padding:10px 48px 10px 14px;font:17px Arial,Helvetica,sans-serif;border-radius:1px;outline:none}
.global-search input:focus{border-color:#79cdfc;box-shadow:0 0 0 1px #79cdfc}
.search-close{position:absolute;right:4px;top:4px;width:38px;height:38px;padding:0;border:0;background:transparent;font-size:27px;color:#a9d9f7}
.global-search-results{max-height:min(62vh,560px);overflow:auto;margin-top:9px;background:#050f18;border:1px solid #153e59}
.search-hint{padding:15px;color:#a6bdcc;font-size:15px}
.search-group{padding:9px 10px 4px;border-bottom:1px solid #153e59}
.search-group:last-child{border-bottom:0}.search-group h2{font-size:14px;text-transform:uppercase;letter-spacing:1.5px;color:#8fc9ed;margin:3px 4px 7px;font-weight:400}
.search-result{display:grid;grid-template-columns:88px 1fr;width:100%;text-align:left;border:0;border-top:1px solid #102e42;background:#07131e;padding:10px 8px;color:#e8f3fb;border-radius:0}
.search-result:first-of-type{border-top:0}.search-result:hover{background:#0a2030}.search-result-kind{font-size:12px;color:#78add0;text-transform:uppercase;letter-spacing:.7px;padding-top:3px}.search-result-title{font-size:17px;color:#8fc9ed;font-weight:400}.search-result-preview{grid-column:2;font-size:14px;line-height:1.45;color:#b6cbd8;margin-top:3px}.search-result-preview strong{font-size:inherit;line-height:inherit;font-weight:600}.search-result-preview em{font-size:inherit;line-height:inherit}.search-result-preview a{font-size:inherit;line-height:inherit;color:#79cdfc}
@media(max-width:680px){.global-search{top:0;padding:10px 16px 13px}.global-search-inner{width:100%}.global-search-results{max-height:55vh}.search-result{grid-template-columns:72px 1fr;padding:10px 6px}.search-result-title{font-size:16px}.search-result-preview{font-size:13px}.search-toggle{flex:0 0 48px}}


/* v36: global-search refinement. Search sits beside the F brand mark; result groups carry
   the category once, while matching note/title text is highlighted without changing type size. */
.brand-cluster{display:flex;align-items:center;gap:8px;margin-right:auto;min-width:0}
.brand-cluster .brand{margin-right:0}
.brand-cluster .search-toggle{flex:0 0 auto;margin:0}
.search-result{display:block;width:100%;text-align:left;border:0;border-top:1px solid #102e42;background:#07131e;padding:10px 8px;color:#e8f3fb;border-radius:0}
.search-result-kind{display:none}
.search-result-title{display:block;font-size:17px;color:#8fc9ed;font-weight:400}
.search-result-preview{display:block;font-size:14px;line-height:1.45;color:#b6cbd8;margin-top:4px}
.search-match{background:#174d70;color:#f2f9fd;padding:0 .08em;border-radius:1px;font:inherit;line-height:inherit}
@media(max-width:680px){
  .brand-cluster{width:100%;gap:8px}
  .brand-cluster .brand{width:auto;flex:1 1 auto;min-width:0}
  .brand-cluster .search-toggle{flex:0 0 44px;min-width:44px;padding:7px 10px}
  .search-result{padding:10px 6px}
  .search-result-title{font-size:16px}
  .search-result-preview{font-size:13px}
}


/* v37: unboxed global-search icon, AND multi-term search, compact mobile navigation. */
.search-toggle{border:0!important;background:transparent!important;box-shadow:none!important;padding:6px!important;min-width:0!important;width:34px;height:34px;color:#8fc9ed;display:grid;place-items:center}
.search-toggle:hover,.search-toggle:focus-visible{background:transparent!important;color:#c7e9fb;outline:1px solid #287db2;outline-offset:2px}
.search-toggle svg{width:22px;height:22px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.menu-toggle{display:none;border:0;background:transparent;color:#8fc9ed;font-size:28px;line-height:1;padding:5px 7px;min-width:36px}
@media(max-width:680px){
  header{flex-direction:row;align-items:center;padding:10px 16px;gap:8px}
  .brand-cluster{width:auto;flex:1 1 auto;gap:5px;min-width:0}
  .brand-cluster .brand{width:auto;flex:0 1 auto;min-width:0}
  .brand-cluster .search-toggle{flex:0 0 34px!important;min-width:0!important;padding:6px!important}
  .menu-toggle{display:block;flex:0 0 auto}
  #siteNav{display:none;position:absolute;left:0;right:0;top:100%;width:100%;padding:8px 16px 14px;background:#030a11f7;border-bottom:1px solid #1d5d87;gap:7px;z-index:7}
  #siteNav.mobile-open{display:grid;grid-template-columns:1fr 1fr}
  #siteNav button{width:100%;font-size:15px;padding:10px 9px}
  #siteNav .logout-button{margin-left:0}
  .global-search{top:63px}
}

/* v38: Obsidian Resources folder hierarchy */
.resource-folder > h2,
.resource-folder > h3,
.resource-folder > h4,
.resource-folder > h5,
.resource-folder > h6 { margin-top: 1.65rem; margin-bottom: .7rem; }
.resource-folder > h3 { font-size: 1.2rem; }
.resource-folder > h4 { font-size: 1.08rem; }

/* v39: clearer Resources folder hierarchy, especially on mobile. */
.resource-folder > h2 { font-size:26px; line-height:1.25; margin-top:34px; margin-bottom:14px; }
.resource-folder > h3 { font-size:20px; line-height:1.3; margin-top:28px; margin-bottom:11px; }
.resource-folder > h4 { font-size:18px; line-height:1.35; margin-top:24px; margin-bottom:10px; }
.resource-folder > h5 { font-size:17px; line-height:1.4; margin-top:22px; margin-bottom:9px; }
.resource-folder > h6 { font-size:16px; line-height:1.4; margin-top:20px; margin-bottom:8px; }
.resource-folder > h2,
.resource-folder > h3,
.resource-folder > h4,
.resource-folder > h5,
.resource-folder > h6 { font-weight:400; color:var(--heading-blue); }
.resource-folder .resource-card { margin:7px 0; }
.resource-folder .resource-card > strong { font-size:18px; line-height:1.45; font-weight:400; }
@media(max-width:680px){
  .resource-folder > h2 { font-size:26px; margin-top:32px; margin-bottom:13px; }
  .resource-folder > h3 { font-size:20px; margin-top:27px; margin-bottom:10px; }
  .resource-folder > h4 { font-size:18px; margin-top:23px; margin-bottom:9px; }
  .resource-folder > h5 { font-size:17px; margin-top:21px; margin-bottom:8px; }
  .resource-folder > h6 { font-size:16px; margin-top:19px; margin-bottom:8px; }
  .resource-folder .resource-card { margin:7px 0; padding:14px 15px; }
  .resource-folder .resource-card > strong { font-size:18px; line-height:1.45; }
  .resource-folder .resource-card .preview { font-size:15px; line-height:1.5; }
}


/* v42: Resources navigation mirrors Obsidian folder hierarchy. */
.nav-resource-wrap{position:relative}
.resources-menu-toggle{white-space:nowrap}
.nav-chevron{font-size:.78em;margin-left:4px}
.resources-menu{position:absolute;top:calc(100% + 6px);left:0;min-width:230px;max-height:min(70vh,620px);overflow:auto;background:#04111b;border:1px solid #1d5d87;padding:7px;z-index:20;box-shadow:0 10px 28px #0008}
.resources-menu button{display:block;width:100%;text-align:left;border:0;background:transparent;padding:8px 10px;color:#a9d9f7;font-size:14px}
.resources-menu button:hover,.resources-menu button:focus-visible{background:#0a263a;color:#e8f3fb}
.resource-menu-all{border-bottom:1px solid #16435f!important;margin-bottom:4px}
.resource-menu-children{padding-left:14px;border-left:1px solid #16435f;margin-left:8px}
.resource-menu-node.depth-1>button{font-size:13px;color:#91c7e8}
.resource-menu-node.depth-2>button,.resource-menu-node.depth-3>button{font-size:12px;color:#83b6d6}
.resource-folder{scroll-margin-top:90px}
@media(max-width:680px){
  #siteNav.mobile-open{display:flex;flex-direction:column;align-items:stretch}
  #siteNav>.nav-resource-wrap{width:100%}
  #siteNav>.nav-resource-wrap>.resources-menu-toggle{width:100%;text-align:left}
  .resources-menu{position:static;min-width:0;max-height:52vh;width:100%;box-shadow:none;border:1px solid #16435f;border-top:0;padding:5px 8px;background:#05131e}
  .resources-menu button{padding:9px 10px}
  .resource-menu-children{padding-left:12px}
  .resource-folder{scroll-margin-top:74px}
}

/* v44: compact View / Download control on every asset-backed Resource preview.
   It uses the same archive target and browser behavior as the full Resource-page action. */
.preview-view-download{display:inline-flex;width:max-content;margin-top:9px;padding:5px 9px!important;min-height:0!important;color:#79cdfc!important;font-size:12px!important;line-height:1.25!important;font-weight:400;text-decoration:none;border:1px solid #2778a9!important;background:transparent;align-items:center;justify-content:center;cursor:pointer}
.preview-view-download:hover,.preview-view-download:focus-visible{color:#c9ecff!important;background:#0a263a;text-decoration:none}
.search-result-wrap{border-top:1px solid #102e42;background:#07131e;padding-bottom:9px}
.search-result-wrap .search-result{border-top:0}
.search-result-wrap .search-download{margin:0 12px 0 12px}
@media(max-width:680px){.preview-view-download{font-size:12px!important;padding:5px 8px!important}.search-result-wrap .search-download{margin-left:10px}}

/* v44 final: center the Resources control in the mobile navigation. */
@media(max-width:680px){
  #siteNav>.nav-resource-wrap>.resources-menu-toggle{
    text-align:center;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:4px;
  }
  #siteNav>.nav-resource-wrap>.resources-menu-toggle .nav-chevron{margin-left:0}
}


/* v45: keep miniature View / Download inline, with guaranteed separation. */
.resource-card .preview-view-download{display:inline-flex!important;margin:0 0 0 12px!important;vertical-align:baseline;white-space:nowrap;position:relative;top:-1px}
.resource-card>strong .preview-view-download{font-weight:400}
.resource-card .preview{display:block}
@media(max-width:680px){.resource-card .preview-view-download{margin-left:10px!important}}

/* v46: preview asset actions are simple inline text links */
.resource-download-link,
.mini-download,
.resource-mini-action,
.preview-download,
.resource-preview-download {
  display: inline !important;
  margin-left: 0.65rem !important;
  margin-top: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  color: #8fc9ed !important;
  font: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  text-decoration: none !important;
  white-space: nowrap;
}
.resource-download-link:hover,
.mini-download:hover,
.resource-mini-action:hover,
.preview-download:hover,
.resource-preview-download:hover {
  text-decoration: underline !important;
}

/* v47: exact generated preview action selector — plain blue text only. */
a.action.preview-view-download,
.resource-card a.action.preview-view-download,
.search-result-wrap a.action.preview-view-download {
  display: inline !important;
  width: auto !important;
  min-height: 0 !important;
  margin: 0 0 0 12px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #8fc9ed !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: inherit !important;
  font-weight: 400 !important;
  line-height: inherit !important;
  text-decoration: none !important;
  vertical-align: baseline !important;
  position: static !important;
  white-space: nowrap !important;
}
a.action.preview-view-download:hover,
a.action.preview-view-download:focus-visible {
  color: #8fc9ed !important;
  background: transparent !important;
  text-decoration: underline !important;
  outline: none;
}
@media(max-width:680px){
  a.action.preview-view-download,
  .resource-card a.action.preview-view-download,
  .search-result-wrap a.action.preview-view-download {
    margin-left: 10px !important;
    padding: 0 !important;
    border: 0 !important;
    min-height: 0 !important;
  }
}

/* v48: consistent preview action typography */
a.action.preview-view-download {
  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.65 !important;
  letter-spacing: normal !important;
}

/* v49: force identical preview action typography even beside card titles */
.card-title a.action.preview-view-download,
.resource-card-title a.action.preview-view-download,
a.action.preview-view-download {
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

/* v50: View / Download always matches Preview typography */
.preview-view-download,
a.preview-view-download,
.card-title .preview-view-download,
.resource-card .preview-view-download,
.related-card .preview-view-download,
.search-result .preview-view-download {
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  color: #8fc9ed !important;
  text-decoration: none !important;
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  margin-left: 0.65rem !important;
  box-shadow: none !important;
  white-space: nowrap !important;
}
.preview-view-download:hover,
a.preview-view-download:hover {
  text-decoration: underline !important;
}

/* v51: preview View / Download is always Preview-sized, including no-Preview cards */
a.action.preview-view-download { font-size: 15px !important; font-weight: 400 !important; line-height: 1.45 !important; border: 0 !important; background: none !important; padding: 0 !important; text-decoration: none !important; }
a.action.preview-view-download:hover { text-decoration: underline !important; }

/* v52: one consistent action-link treatment */
a.preview-view-download,
a.preview-read-more {
  font-family: inherit !important;
  font-size: 17px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  color: #f3f7fa !important;
  text-decoration: none !important;
  border: 0 !important;
  background: none !important;
  padding: 0 !important;
  margin-left: .7rem !important;
  box-shadow: none !important;
  white-space: nowrap !important;
}
a.preview-view-download:hover,
a.preview-read-more:hover { text-decoration: underline !important; }

/* FROESE_BUILD_v62 */

/* v54: unified resource preview actions */
a.action.preview-view-download,
a.action.preview-read-more {
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  letter-spacing: normal !important;
  color: #f3f7fa !important;
  text-decoration: none !important;
  border: 0 !important;
  background: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  white-space: nowrap !important;
  vertical-align: baseline !important;
}
a.action.preview-view-download { margin-left: .7rem !important; }
a.action.preview-read-more { margin-left: .7rem !important; }
a.action.preview-view-download:hover,
a.action.preview-read-more:hover { text-decoration: underline !important; }

/* v55: direct-rendered, consistent resource actions */
.resource-card a.preview-view-download,
.resource-card a.preview-read-more,
.search-result-wrap a.preview-view-download,
.search-result-wrap a.preview-read-more {
  font-family: inherit !important;
  font-size: 17px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  color: #f3f7fa !important;
  text-decoration: none !important;
  border: 0 !important;
  background: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  white-space: nowrap !important;
  vertical-align: baseline !important;
  margin-left: .7rem !important;
}
.resource-card a.preview-view-download:hover,
.resource-card a.preview-read-more:hover,
.search-result-wrap a.preview-view-download:hover,
.search-result-wrap a.preview-read-more:hover { text-decoration: underline !important; }

/* v56: action typography must exactly match Preview typography */
.resource-card .preview,
.resource-card a.preview-view-download,
.resource-card a.preview-read-more {
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  letter-spacing: normal !important;
}
.resource-card a.preview-view-download,
.resource-card a.preview-read-more {
  color: #f3f7fa !important;
  text-decoration: none !important;
  border: 0 !important;
  background: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  white-space: nowrap !important;
  vertical-align: baseline !important;
  margin-left: .7rem !important;
}
.resource-card a.preview-view-download:hover,
.resource-card a.preview-read-more:hover { text-decoration: underline !important; }

/* v57 FINAL: View / Download and Read More MUST be identical size everywhere */
a.preview-view-download,
a.preview-read-more,
.resource-card a.preview-view-download,
.resource-card a.preview-read-more,
.preview a.preview-view-download,
.preview a.preview-read-more,
strong + a.preview-view-download,
strong + a.preview-read-more {
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 21.75px !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

/* v58: one typography declaration for BOTH resource actions */
.resource-card a.preview-view-download,
.resource-card a.preview-read-more {
  font: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  font-weight: inherit !important;
  letter-spacing: inherit !important;
  color: #8fc9ed !important;
}
.resource-card .preview a.preview-view-download,
.resource-card .preview a.preview-read-more {
  font: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  font-weight: inherit !important;
}

/* v59: ONE action wrapper, ONE formatting rule, regardless of Preview */
.resource-card .resource-actions {
  display: inline !important;
  margin-left: .7rem !important;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 21.75px !important;
  letter-spacing: normal !important;
  color: #8fc9ed !important;
}
.resource-card .resource-actions > a.preview-view-download,
.resource-card .resource-actions > a.preview-read-more {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
  color: inherit !important;
  text-decoration: none !important;
  vertical-align: baseline !important;
}
.resource-card .resource-actions > a.preview-read-more { margin-left: .7rem !important; }
.resource-card .resource-actions > a:hover { text-decoration: underline !important; }

/* Profile menus use the Resources desktop/mobile styles. */
.resources-menu{max-width:min(360px,90vw)}
