/* ═══════════════════════════════════════════════════════════
   IJMD.ORG — Shared Stylesheet
   International Journals of Machines & Data
   Powered by VérgelAI
   ═══════════════════════════════════════════════════════════ */

/* ── THEME TOKENS ── */
:root,
[data-theme="dark"] {
  --bg:            #000;
  --bg-card:       #0f0f0f;
  --bg-hover:      #141414;
  --bg-input:      #1a1a1a;
  --bg-widget:     #111;
  --border:        #2a2a2a;
  --border-sub:    #1e1e1e;
  --text:          #e7e7e7;
  --text-dim:      #6e6e6e;
  --text-mid:      #a0a0a0;
  --text-strong:   #fff;
  --accent:        #e8c96b;
  --accent-dim:    rgba(232,201,107,.12);
  --crimson:       #c94060;
  --crimson-dim:   rgba(201,64,96,.12);
  --blue:          #4a9eff;
  --blue-dim:      rgba(74,158,255,.10);
  --green:         #3ecf8e;
  --green-dim:     rgba(62,207,142,.10);
  --shadow:        rgba(0,0,0,.55);
  --logo-bg:       #e8c96b;
  --logo-txt:      #000;
  --scrollbar:     #2a2a2a;
  --sidebar-w:     260px;
  --right-w:       300px;
}
[data-theme="light"] {
  --bg:            #faf8f3;
  --bg-card:       #fff;
  --bg-hover:      #f4f0e8;
  --bg-input:      #ede9df;
  --bg-widget:     #f2ede2;
  --border:        #ddd8cc;
  --border-sub:    #e8e2d6;
  --text:          #1c1a17;
  --text-dim:      #8a8278;
  --text-mid:      #5a5550;
  --text-strong:   #000;
  --accent:        #b5922a;
  --accent-dim:    rgba(181,146,42,.10);
  --crimson:       #a51c30;
  --crimson-dim:   rgba(165,28,48,.10);
  --blue:          #1d6cbe;
  --blue-dim:      rgba(29,108,190,.08);
  --green:         #1a8c5e;
  --green-dim:     rgba(26,140,94,.08);
  --shadow:        rgba(0,0,0,.10);
  --logo-bg:       #a51c30;
  --logo-txt:      #fff;
  --scrollbar:     #ccc6bb;
}

/* ── RESET ── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;font-size:16px}
body{
  background:var(--bg);color:var(--text);
  font-family:'DM Sans',system-ui,sans-serif;
  min-height:100vh;
  transition:background .25s,color .25s;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
button{font-family:'DM Sans',sans-serif}
img{max-width:100%;display:block}
::-webkit-scrollbar{width:5px;height:5px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:var(--scrollbar);border-radius:3px}

/* ── APP SHELL ── */
.app{
  display:grid;
  grid-template-columns:var(--sidebar-w) 1fr var(--right-w);
  max-width:1300px;margin:0 auto;min-height:100vh;
}
.app.no-right{grid-template-columns:var(--sidebar-w) 1fr}
.app.wide{grid-template-columns:var(--sidebar-w) 1fr}

/* ════════════════════════════════════════
   SIDEBAR
════════════════════════════════════════ */
.sidebar{
  position:sticky;top:0;height:100vh;
  display:flex;flex-direction:column;
  padding:14px 10px;
  border-right:1px solid var(--border);
  overflow-y:auto;overflow-x:hidden;
  transition:background .25s;
  flex-shrink:0;
}
.sidebar-logo{display:flex;align-items:center;gap:11px;padding:8px 12px 20px;text-decoration:none;flex-shrink:0}
.logo-icon{
  width:40px;height:40px;background:var(--logo-bg);border-radius:9px;
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
  transition:background .25s;
}
.logo-icon svg{width:22px;height:22px}
.logo-wordmark{display:flex;flex-direction:column;line-height:1}
.logo-wordmark strong{font-family:'DM Mono',monospace;font-weight:500;font-size:16px;color:var(--text-strong);letter-spacing:.04em;transition:color .25s}
.logo-wordmark span{font-size:10px;color:var(--text-dim);letter-spacing:.04em;margin-top:3px}
.nav-list{list-style:none;flex:1}
.nav-item a{
  display:flex;align-items:center;gap:14px;padding:11px 14px;
  border-radius:999px;color:var(--text);font-size:15px;font-weight:400;
  transition:background .15s,color .15s;margin-bottom:2px;
}
.nav-item a:hover{background:var(--bg-hover)}
.nav-item.active a{font-weight:700;color:var(--text-strong)}
.nav-icon{width:22px;height:22px;display:flex;align-items:center;justify-content:center;flex-shrink:0;opacity:.75}
.nav-item.active .nav-icon{opacity:1}
.nav-badge{
  margin-left:auto;background:var(--crimson);color:#fff;
  font-size:11px;font-weight:700;padding:2px 7px;border-radius:999px;min-width:20px;text-align:center;
}
/* Theme toggle */
.theme-toggle-wrap{padding:4px 4px 2px}
.theme-toggle{
  display:flex;align-items:center;gap:12px;padding:10px 14px;
  border-radius:999px;cursor:pointer;width:100%;
  background:transparent;border:none;color:var(--text);font-size:14px;font-weight:500;
  transition:background .15s;
}
.theme-toggle:hover{background:var(--bg-hover)}
.toggle-track{
  width:40px;height:22px;border-radius:999px;background:var(--border);
  position:relative;transition:background .25s;flex-shrink:0;margin-left:auto;
}
[data-theme="light"] .toggle-track{background:var(--accent)}
.toggle-thumb{
  position:absolute;top:3px;left:3px;width:16px;height:16px;
  border-radius:50%;background:#fff;transition:transform .25s;
  box-shadow:0 1px 4px rgba(0,0,0,.3);
}
[data-theme="light"] .toggle-thumb{transform:translateX(18px)}
.submit-btn{
  display:block;background:var(--accent);color:var(--logo-txt)!important;
  font-weight:700!important;font-size:15px;text-align:center;
  padding:13px 20px;border-radius:999px;text-decoration:none;
  margin:12px 4px 6px;transition:opacity .15s,transform .1s,background .25s;
}
.submit-btn:hover{opacity:.88;transform:scale(.99)}
.sidebar-profile{
  display:flex;align-items:center;gap:10px;padding:10px 12px;
  border-radius:999px;cursor:pointer;transition:background .15s;margin-top:6px;flex-shrink:0;
}
.sidebar-profile:hover{background:var(--bg-hover)}
.profile-avatar{
  width:36px;height:36px;border-radius:50%;
  background:linear-gradient(135deg,var(--crimson),var(--accent));
  display:flex;align-items:center;justify-content:center;
  font-weight:700;font-size:13px;color:#fff;flex-shrink:0;
}
.profile-info{flex:1;min-width:0}
.profile-name{font-size:14px;font-weight:600;color:var(--text-strong);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:color .25s}
.profile-handle{font-size:12px;color:var(--text-dim)}

/* ════════════════════════════════════════
   FEED / MAIN SHARED
════════════════════════════════════════ */
.main-feed,.main-content{border-right:1px solid var(--border);min-height:100vh}
.feed-header{
  position:sticky;top:0;
  background:color-mix(in srgb,var(--bg) 85%,transparent);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--border);z-index:50;
}
.feed-title-bar{
  padding:14px 18px 0;font-size:20px;font-weight:800;color:var(--text-strong);
  font-family:'Playfair Display',Georgia,serif;
  display:flex;align-items:center;justify-content:space-between;
}
.feed-title-bar span{font-family:'DM Mono',monospace;font-size:11px;font-weight:400;color:var(--text-dim);letter-spacing:.08em}
.feed-tabs{display:flex}
.feed-tab{
  flex:1;padding:14px 8px;text-align:center;font-size:14px;font-weight:500;
  color:var(--text-dim);cursor:pointer;border-bottom:3px solid transparent;
  transition:color .15s,border-color .15s,background .15s;user-select:none;
}
.feed-tab:hover{background:var(--bg-hover);color:var(--text)}
.feed-tab.active{color:var(--text-strong);font-weight:700;border-color:var(--accent)}

/* ════════════════════════════════════════
   PAPER CARD
════════════════════════════════════════ */
.paper-card{
  display:flex;gap:12px;padding:14px 16px;
  border-bottom:1px solid var(--border-sub);
  transition:background .12s;cursor:pointer;
  animation:fadeUp .35s ease both;
}
.paper-card:hover{background:var(--bg-hover)}
.paper-card.pinned{
  background:color-mix(in srgb,var(--accent) 4%,var(--bg));
  border-left:2px solid var(--accent);
}
@keyframes fadeUp{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.paper-card:nth-child(1){animation-delay:.05s}
.paper-card:nth-child(2){animation-delay:.10s}
.paper-card:nth-child(3){animation-delay:.15s}
.paper-card:nth-child(4){animation-delay:.20s}
.paper-card:nth-child(5){animation-delay:.25s}
.paper-card:nth-child(6){animation-delay:.30s}
.paper-card:nth-child(7){animation-delay:.35s}

.paper-avatar{
  width:40px;height:40px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-family:'DM Mono',monospace;font-size:11px;font-weight:500;
  color:#fff;flex-shrink:0;
}
.paper-body{flex:1;min-width:0}
.paper-meta{display:flex;align-items:baseline;gap:5px;flex-wrap:wrap;margin-bottom:3px}
.paper-journal{font-weight:700;font-size:14px;color:var(--text-strong)}
.paper-handle{font-size:13px;color:var(--text-dim)}
.paper-dot{color:var(--text-dim);font-size:12px}
.paper-time{font-size:13px;color:var(--text-dim)}
.paper-series{
  display:inline-flex;align-items:center;background:var(--accent-dim);color:var(--accent);
  font-size:10px;font-weight:600;font-family:'DM Mono',monospace;
  letter-spacing:.06em;padding:2px 8px;border-radius:4px;margin-left:auto;
  transition:background .25s,color .25s;
}
.verified{color:var(--blue);display:inline-flex;align-items:center;margin-left:2px;vertical-align:middle}
.paper-pin-label{font-size:11px;color:var(--accent);font-weight:600;letter-spacing:.06em;margin-bottom:5px;display:flex;align-items:center;gap:5px}
.paper-title{
  font-family:'Playfair Display',Georgia,serif;
  font-size:16px;font-weight:600;line-height:1.35;
  color:var(--text-strong);margin-bottom:7px;transition:color .25s;
}
.paper-title a{color:inherit}
.paper-title a:hover{color:var(--accent)}
.paper-abstract{font-size:13.5px;line-height:1.65;color:var(--text-mid);margin-bottom:10px;transition:color .25s}
.abstract-clamp{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.show-more{font-size:13px;color:var(--blue);cursor:pointer}
.show-more:hover{text-decoration:underline}

/* Inline chart */
.paper-chart-wrap{
  width:100%;border-radius:10px;border:1px solid var(--border);
  background:var(--bg-input);height:110px;display:flex;
  align-items:flex-end;overflow:hidden;position:relative;
  margin:8px 0 10px;transition:background .25s,border-color .25s;
}
.chart-label-inner{
  position:absolute;top:9px;left:14px;
  font-family:'DM Mono',monospace;font-size:9.5px;
  color:var(--text-dim);letter-spacing:.09em;
}
.chart-bars{display:flex;align-items:flex-end;gap:5px;padding:0 16px 14px;width:100%;height:100%}
.cbar{flex:1;border-radius:3px 3px 0 0;background:var(--accent);opacity:.28;transition:opacity .15s,background .25s}
.cbar:hover{opacity:.75}
.cbar.hi{opacity:.72}

/* Tags */
.paper-tags{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.ptag{font-size:12.5px;color:var(--blue);font-weight:500;cursor:pointer;transition:color .15s}
.ptag:hover{text-decoration:underline}
.oa-badge{
  background:var(--green-dim);color:var(--green);
  font-size:9.5px;font-weight:700;font-family:'DM Mono',monospace;
  padding:2px 7px;border-radius:4px;letter-spacing:.08em;
  transition:background .25s,color .25s;
}

/* Actions */
.paper-actions{display:flex;justify-content:space-between;max-width:340px}
.action-btn{
  display:flex;align-items:center;gap:5px;font-size:12.5px;color:var(--text-dim);
  cursor:pointer;padding:4px 8px;border-radius:999px;
  transition:color .15s,background .15s;user-select:none;border:none;background:transparent;
}
.action-btn svg{width:16px;height:16px}
.action-btn.cite:hover {color:var(--blue);   background:var(--blue-dim)}
.action-btn.like:hover {color:var(--crimson); background:var(--crimson-dim)}
.action-btn.save:hover {color:var(--accent);  background:var(--accent-dim)}
.action-btn.share:hover{color:var(--green);   background:var(--green-dim)}
.action-btn.liked{color:var(--crimson)!important}
.action-btn.saved{color:var(--accent)!important}
.load-more{
  padding:22px;text-align:center;color:var(--blue);
  font-size:14px;font-weight:600;cursor:pointer;transition:background .15s;
}
.load-more:hover{background:var(--bg-hover)}

/* Compose */
.compose-box{display:flex;gap:12px;padding:14px 16px;border-bottom:1px solid var(--border-sub)}
.compose-avatar{
  width:40px;height:40px;border-radius:50%;
  background:linear-gradient(135deg,var(--crimson),var(--accent));
  display:flex;align-items:center;justify-content:center;
  font-weight:700;font-size:13px;color:#fff;flex-shrink:0;
}
.compose-right{flex:1}
.compose-input{
  width:100%;background:transparent;border:none;outline:none;
  color:var(--text-dim);font-family:'DM Sans',sans-serif;
  font-size:16px;padding:8px 0;resize:none;cursor:text;transition:color .15s;
}
.compose-input:focus{color:var(--text)}
.compose-footer{
  display:flex;align-items:center;justify-content:space-between;
  padding-top:8px;border-top:1px solid var(--border-sub);margin-top:4px;
}
.compose-tags{display:flex;gap:8px;flex-wrap:wrap}
.compose-tag{font-size:12px;color:var(--blue);font-weight:500;cursor:pointer}
.compose-tag:hover{text-decoration:underline}
.compose-post-btn{
  background:var(--accent);color:var(--logo-txt);font-weight:700;
  font-size:13px;padding:7px 20px;border-radius:999px;border:none;cursor:pointer;
  transition:opacity .15s,background .25s;
}
.compose-post-btn:hover{opacity:.88}

/* ════════════════════════════════════════
   RIGHT PANEL
════════════════════════════════════════ */
.right-panel{padding:12px 14px;overflow-y:auto;height:100vh;position:sticky;top:0}
.search-box{
  background:var(--bg-input);border:1px solid transparent;
  border-radius:999px;display:flex;align-items:center;
  gap:10px;padding:9px 16px;margin-bottom:14px;
  transition:border-color .15s,background .25s;
}
.search-box:focus-within{background:var(--bg);border-color:var(--blue)}
.search-box input{
  background:transparent;border:none;outline:none;
  color:var(--text);font-size:14px;font-family:'DM Sans',sans-serif;width:100%;
}
.search-box input::placeholder{color:var(--text-dim)}
.search-icon{color:var(--text-dim);flex-shrink:0}
.right-widget{
  background:var(--bg-widget);border-radius:14px;overflow:hidden;
  margin-bottom:14px;border:1px solid var(--border-sub);
  transition:background .25s,border-color .25s;
}
.widget-title{
  padding:14px 16px 8px;font-size:18px;font-weight:700;
  color:var(--text-strong);font-family:'Playfair Display',serif;transition:color .25s;
}
.impact-row{display:flex;align-items:center;justify-content:space-between;padding:8px 16px}
.impact-label{font-size:13px;color:var(--text-mid)}
.impact-val{font-family:'DM Mono',monospace;font-size:14px;font-weight:500;color:var(--text-strong)}
.impact-val.gold{color:var(--accent)}
.impact-val.green{color:var(--green)}
.trend-item{padding:9px 16px;cursor:pointer;transition:background .12s}
.trend-item:hover{background:var(--bg-hover)}
.trend-meta{font-size:11px;color:var(--text-dim);margin-bottom:2px}
.trend-topic{font-size:14px;font-weight:700;color:var(--text-strong);margin-bottom:2px;transition:color .25s}
.trend-topic.accent{color:var(--accent)}
.trend-count{font-size:12px;color:var(--text-dim)}
.journal-follow{display:flex;align-items:center;gap:10px;padding:10px 16px;cursor:pointer;transition:background .12s}
.journal-follow:hover{background:var(--bg-hover)}
.jf-avatar{
  width:36px;height:36px;border-radius:8px;display:flex;align-items:center;
  justify-content:center;font-family:'DM Mono',monospace;font-size:10px;
  font-weight:500;color:#fff;flex-shrink:0;
}
.jf-info{flex:1;min-width:0}
.jf-name{font-size:13px;font-weight:700;color:var(--text-strong);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:color .25s}
.jf-handle{font-size:11.5px;color:var(--text-dim)}
.follow-btn{
  background:var(--text-strong);color:var(--bg);font-weight:700;font-size:12px;
  padding:5px 14px;border-radius:999px;border:none;cursor:pointer;
  font-family:'DM Sans',sans-serif;transition:opacity .15s,background .25s,color .25s;flex-shrink:0;
}
.follow-btn:hover{opacity:.82}
.follow-btn.following{background:transparent;border:1px solid var(--border);color:var(--text)}
.widget-show-more{padding:12px 16px;font-size:13.5px;color:var(--blue);cursor:pointer}
.widget-show-more:hover{background:var(--bg-hover)}

/* ════════════════════════════════════════
   VERGEL FOOTER
════════════════════════════════════════ */
.vergel-footer{padding:16px 0 12px;font-size:11px;color:var(--text-dim);line-height:1.75}
.vergel-footer a{color:var(--text-dim);text-decoration:none;transition:color .15s}
.vergel-footer a:hover{color:var(--text-mid);text-decoration:underline}
.vergel-powered{display:flex;align-items:center;gap:7px;margin-bottom:8px;font-size:12px;color:var(--text-mid);font-weight:500}
.vergel-logo-pill{
  background:linear-gradient(90deg,var(--crimson),var(--accent));
  border-radius:999px;padding:2px 10px;font-size:11px;font-weight:700;
  color:#000;font-family:'DM Mono',monospace;letter-spacing:.04em;
}
.index-chips{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}
.index-chip{
  background:var(--bg-input);border:1px solid var(--border);color:var(--text-dim);
  font-size:9.5px;font-weight:600;font-family:'DM Mono',monospace;
  letter-spacing:.06em;padding:2px 7px;border-radius:3px;
  transition:background .25s,border-color .25s;
}

/* ════════════════════════════════════════
   PAGE-SPECIFIC: JOURNALS PAGE
════════════════════════════════════════ */
.journals-grid{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--border)}
.journal-card{
  background:var(--bg-card);padding:28px 24px;
  transition:background .15s;cursor:pointer;
  border-bottom:none;
}
.journal-card:hover{background:var(--bg-hover)}
.jc-series{
  font-family:'DM Mono',monospace;font-size:10px;font-weight:600;
  letter-spacing:.18em;color:var(--accent);margin-bottom:10px;text-transform:uppercase;
}
.jc-name{
  font-family:'Playfair Display',serif;font-size:20px;font-weight:700;
  color:var(--text-strong);margin-bottom:8px;line-height:1.3;
}
.jc-desc{font-size:13.5px;line-height:1.65;color:var(--text-mid);margin-bottom:16px}
.jc-stats{display:flex;gap:20px}
.jc-stat{font-family:'DM Mono',monospace;font-size:12px;color:var(--text-dim)}
.jc-stat strong{color:var(--accent);display:block;font-size:18px;margin-bottom:2px}
.jc-follow{
  display:inline-flex;align-items:center;gap:6px;
  margin-top:16px;font-size:13px;font-weight:600;color:var(--blue);cursor:pointer;
}
.jc-follow:hover{text-decoration:underline}

/* ════════════════════════════════════════
   PAGE-SPECIFIC: ARTICLE DETAIL
════════════════════════════════════════ */
.article-detail{max-width:700px;padding:32px 24px}
.article-breadcrumb{font-size:12px;color:var(--text-dim);margin-bottom:20px;display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.article-breadcrumb a{color:var(--blue)}
.article-breadcrumb a:hover{text-decoration:underline}
.article-h1{
  font-family:'Playfair Display',serif;font-size:clamp(22px,3.5vw,32px);
  font-weight:700;line-height:1.25;color:var(--text-strong);margin-bottom:14px;
}
.article-byline{font-size:13px;color:var(--text-dim);margin-bottom:6px}
.article-byline strong{color:var(--text-mid)}
.article-meta-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:24px;align-items:center}
.meta-chip{
  font-family:'DM Mono',monospace;font-size:10.5px;font-weight:600;
  padding:4px 10px;border-radius:4px;letter-spacing:.06em;
}
.meta-chip.series{background:var(--accent-dim);color:var(--accent)}
.meta-chip.oa{background:var(--green-dim);color:var(--green)}
.meta-chip.doi{background:var(--blue-dim);color:var(--blue)}
.article-abstract-block{
  border-left:3px solid var(--accent);padding:16px 20px;
  background:var(--bg-widget);border-radius:0 8px 8px 0;margin-bottom:24px;
}
.abstract-label{font-size:11px;font-weight:700;letter-spacing:.1em;color:var(--accent);text-transform:uppercase;margin-bottom:8px}
.abstract-text{font-size:14px;line-height:1.75;color:var(--text-mid)}
.article-section-title{
  font-family:'Playfair Display',serif;font-size:20px;font-weight:700;
  color:var(--text-strong);margin:28px 0 12px;border-bottom:1px solid var(--border-sub);padding-bottom:8px;
}
.article-body p{font-size:14.5px;line-height:1.8;color:var(--text-mid);margin-bottom:16px}
.article-body strong{color:var(--text)}
.cite-box{
  background:var(--bg-widget);border:1px solid var(--border);
  border-radius:8px;padding:16px 20px;margin-top:24px;
}
.cite-box-title{font-size:12px;font-weight:700;letter-spacing:.08em;color:var(--text-mid);text-transform:uppercase;margin-bottom:10px}
.cite-code{
  font-family:'DM Mono',monospace;font-size:11.5px;color:var(--text-mid);
  line-height:1.6;white-space:pre-wrap;word-break:break-all;
}
.copy-btn{
  margin-top:10px;background:var(--accent-dim);color:var(--accent);border:none;
  font-size:12px;font-weight:600;padding:6px 14px;border-radius:6px;cursor:pointer;
  font-family:'DM Sans',sans-serif;transition:background .15s;
}
.copy-btn:hover{background:var(--accent);color:var(--logo-txt)}

/* ════════════════════════════════════════
   PAGE-SPECIFIC: SUBMIT / FORM
════════════════════════════════════════ */
.submit-page{max-width:680px;padding:32px 24px}
.page-title{
  font-family:'Playfair Display',serif;font-size:28px;font-weight:700;
  color:var(--text-strong);margin-bottom:6px;
}
.page-subtitle{font-size:14px;color:var(--text-dim);margin-bottom:28px;line-height:1.6}
.form-section{margin-bottom:28px}
.form-section-title{
  font-size:12px;font-weight:700;letter-spacing:.12em;color:var(--text-dim);
  text-transform:uppercase;margin-bottom:14px;padding-bottom:8px;
  border-bottom:1px solid var(--border-sub);
}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px}
.form-row.single{grid-template-columns:1fr}
.form-group{display:flex;flex-direction:column;gap:5px}
.form-label{font-size:12.5px;font-weight:600;color:var(--text-mid)}
.form-input,.form-select,.form-textarea{
  background:var(--bg-input);border:1px solid var(--border);
  border-radius:8px;padding:11px 14px;color:var(--text);
  font-family:'DM Sans',sans-serif;font-size:14px;outline:none;
  transition:border-color .15s,background .25s;width:100%;
}
.form-textarea{resize:vertical;min-height:120px;line-height:1.6}
.form-input:focus,.form-select:focus,.form-textarea:focus{border-color:var(--blue);background:var(--bg)}
.form-input::placeholder,.form-textarea::placeholder{color:var(--text-dim)}
.form-select option{background:var(--bg-card)}
.form-hint{font-size:11.5px;color:var(--text-dim);margin-top:4px}
.upload-area{
  border:2px dashed var(--border);border-radius:10px;
  padding:32px;text-align:center;cursor:pointer;transition:border-color .15s,background .15s;
}
.upload-area:hover{border-color:var(--accent);background:var(--accent-dim)}
.upload-icon{font-size:32px;margin-bottom:8px}
.upload-label{font-size:14px;color:var(--text-mid);font-weight:500}
.upload-hint{font-size:12px;color:var(--text-dim);margin-top:4px}
.submit-form-btn{
  background:var(--accent);color:var(--logo-txt);font-weight:700;font-size:15px;
  padding:14px 32px;border-radius:999px;border:none;cursor:pointer;
  font-family:'DM Sans',sans-serif;transition:opacity .15s;margin-top:8px;width:100%;
}
.submit-form-btn:hover{opacity:.88}
.checklist{list-style:none;display:flex;flex-direction:column;gap:10px}
.checklist li{
  display:flex;align-items:flex-start;gap:10px;font-size:13.5px;color:var(--text-mid);
}
.checklist li::before{content:'✓';color:var(--green);font-weight:700;flex-shrink:0;margin-top:1px}

/* ════════════════════════════════════════
   PAGE-SPECIFIC: ABOUT
════════════════════════════════════════ */
.about-hero{
  background:linear-gradient(135deg,var(--bg-widget),var(--bg-card));
  border-bottom:1px solid var(--border);
  padding:48px 24px 36px;
}
.about-hero-title{
  font-family:'Playfair Display',serif;font-size:clamp(28px,4vw,44px);
  font-weight:700;color:var(--text-strong);line-height:1.2;margin-bottom:12px;
}
.about-hero-title em{font-style:italic;color:var(--accent)}
.about-hero-desc{font-size:15px;line-height:1.75;color:var(--text-mid);max-width:560px}
.stat-strip{
  display:grid;grid-template-columns:repeat(4,1fr);gap:1px;
  background:var(--border);border-top:1px solid var(--border);
}
.stat-box{background:var(--bg-card);padding:20px 18px;transition:background .25s}
.stat-box:hover{background:var(--bg-hover)}
.stat-num{font-family:'DM Mono',monospace;font-size:28px;font-weight:500;color:var(--accent);margin-bottom:3px}
.stat-lbl{font-size:11.5px;color:var(--text-dim);font-weight:500;letter-spacing:.04em}
.board-grid{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--border)}
.board-card{background:var(--bg-card);padding:20px;transition:background .15s}
.board-card:hover{background:var(--bg-hover)}
.board-role{font-size:10.5px;font-weight:700;letter-spacing:.1em;color:var(--accent);text-transform:uppercase;margin-bottom:5px}
.board-name{font-family:'Playfair Display',serif;font-size:17px;font-weight:600;color:var(--text-strong);margin-bottom:4px}
.board-affil{font-size:12.5px;color:var(--text-dim);font-style:italic}
.section-block{padding:28px 24px;border-bottom:1px solid var(--border-sub)}
.section-block-title{
  font-family:'Playfair Display',serif;font-size:22px;font-weight:700;
  color:var(--text-strong);margin-bottom:14px;
}
.section-block p{font-size:14px;line-height:1.75;color:var(--text-mid);margin-bottom:12px}
.timeline{display:flex;flex-direction:column;gap:0}
.timeline-item{display:flex;gap:16px;padding:14px 0;border-bottom:1px solid var(--border-sub)}
.timeline-item:last-child{border-bottom:none}
.timeline-year{font-family:'DM Mono',monospace;font-size:13px;font-weight:500;color:var(--accent);flex-shrink:0;width:46px}
.timeline-content{font-size:13.5px;color:var(--text-mid);line-height:1.6}
.timeline-content strong{color:var(--text)}

/* ════════════════════════════════════════
   PAGE-SPECIFIC: SEARCH / EXPLORE
════════════════════════════════════════ */
.explore-search-bar{
  display:flex;align-items:center;gap:12px;padding:16px 18px;
  border-bottom:1px solid var(--border);
  background:color-mix(in srgb,var(--bg) 90%,transparent);
  position:sticky;top:0;z-index:40;backdrop-filter:blur(12px);
}
.explore-input{
  flex:1;background:var(--bg-input);border:1px solid var(--border);
  border-radius:999px;padding:10px 18px;color:var(--text);
  font-size:15px;font-family:'DM Sans',sans-serif;outline:none;
  transition:border-color .15s;
}
.explore-input:focus{border-color:var(--blue)}
.explore-input::placeholder{color:var(--text-dim)}
.filter-chip{
  background:var(--bg-input);border:1px solid var(--border);
  color:var(--text-mid);font-size:12px;font-weight:600;padding:7px 14px;
  border-radius:999px;cursor:pointer;white-space:nowrap;transition:all .15s;
}
.filter-chip:hover,.filter-chip.active{background:var(--accent);color:var(--logo-txt);border-color:var(--accent)}
.filter-bar{
  display:flex;gap:8px;overflow-x:auto;padding:12px 18px;
  border-bottom:1px solid var(--border-sub);scrollbar-width:none;
}
.filter-bar::-webkit-scrollbar{display:none}
.results-label{font-size:12px;color:var(--text-dim);padding:10px 18px;font-family:'DM Mono',monospace;letter-spacing:.06em}

/* ════════════════════════════════════════
   PAGE-SPECIFIC: PROFILE
════════════════════════════════════════ */
.profile-header{
  border-bottom:1px solid var(--border);
  background:linear-gradient(180deg,color-mix(in srgb,var(--crimson) 15%,var(--bg)) 0,var(--bg-card) 100%);
}
.profile-banner{height:120px;background:linear-gradient(135deg,var(--crimson),#7c3aed,var(--accent));position:relative}
.profile-avatar-lg{
  width:72px;height:72px;border-radius:50%;
  background:linear-gradient(135deg,var(--crimson),var(--accent));
  display:flex;align-items:center;justify-content:center;
  font-weight:800;font-size:24px;color:#fff;
  border:3px solid var(--bg-card);
  position:absolute;bottom:-36px;left:20px;
  transition:border-color .25s;
}
.profile-info-bar{padding:48px 20px 20px;display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:12px}
.profile-display-name{font-family:'Playfair Display',serif;font-size:22px;font-weight:700;color:var(--text-strong)}
.profile-handle-lg{font-size:13px;color:var(--text-dim);margin-top:2px}
.profile-bio{font-size:13.5px;color:var(--text-mid);margin-top:10px;line-height:1.6;max-width:420px}
.profile-stats-row{display:flex;gap:20px;margin-top:12px;flex-wrap:wrap}
.pstat{font-size:13.5px;color:var(--text-dim)}
.pstat strong{color:var(--text-strong);font-weight:700}
.edit-profile-btn{
  background:transparent;border:1px solid var(--border);color:var(--text);
  font-weight:700;font-size:13px;padding:8px 18px;border-radius:999px;cursor:pointer;
  font-family:'DM Sans',sans-serif;transition:background .15s;flex-shrink:0;
}
.edit-profile-btn:hover{background:var(--bg-hover)}

/* ════════════════════════════════════════
   PAGE-SPECIFIC: ALERTS
════════════════════════════════════════ */
.alert-item{
  display:flex;align-items:flex-start;gap:12px;padding:14px 18px;
  border-bottom:1px solid var(--border-sub);transition:background .12s;cursor:pointer;
}
.alert-item:hover{background:var(--bg-hover)}
.alert-item.unread{background:color-mix(in srgb,var(--blue) 5%,var(--bg))}
.alert-icon{
  width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.alert-text{flex:1;font-size:13.5px;line-height:1.55;color:var(--text-mid)}
.alert-text strong{color:var(--text)}
.alert-time{font-size:11.5px;color:var(--text-dim);margin-top:3px}
.unread-dot{width:8px;height:8px;border-radius:50%;background:var(--blue);flex-shrink:0;margin-top:5px}

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media(max-width:1100px){
  :root{--right-w:0}
  .right-panel{display:none}
  .app{grid-template-columns:var(--sidebar-w) 1fr}
}
@media(max-width:680px){
  :root{--sidebar-w:68px}
  .logo-wordmark,.nav-item a span:not(.nav-icon),.profile-info,.theme-toggle>span{display:none}
  .sidebar-logo{padding:8px 8px 14px;justify-content:center}
  .nav-item a{justify-content:center;padding:12px}
  .submit-btn{
    padding:12px;border-radius:50%;margin:8px auto;
    width:44px;height:44px;display:flex;align-items:center;justify-content:center;font-size:0;
  }
  .submit-btn::after{content:'+';font-size:22px;font-weight:700}
  .sidebar-profile{justify-content:center}
  .theme-toggle{justify-content:center}
  .toggle-track{margin:0}
  .journals-grid{grid-template-columns:1fr}
  .stat-strip{grid-template-columns:1fr 1fr}
  .board-grid{grid-template-columns:1fr}
  .form-row{grid-template-columns:1fr}
  .stat-strip{grid-template-columns:1fr 1fr}
}
