:root {
    --navy: #16335a;
    --blue: #1f6fd6;
    --sky: #29a3dc;
    --teal: #15b8a6;
    --orange: #f5821f;
    --ink: #15233b;
    --body: #42506a;
    --muted: #7c8aa3;
    --bg: #eef2f8;
    --surface: #ffffff;
    --border: #e6ebf3;
    --brand-grad: linear-gradient(135deg, #1f6fd6 0%, #15b8a6 100%);
    --radius: 16px;
    --shadow: 0 10px 30px rgba(22, 51, 90, 0.08);
    --shadow-hover: 0 16px 40px rgba(22, 51, 90, 0.14);
    --a0: linear-gradient(135deg, #1f6fd6, #15b8a6);
    --a1: linear-gradient(135deg, #16335a, #1f6fd6);
    --a2: linear-gradient(135deg, #15b8a6, #29a3dc);
    --a3: linear-gradient(135deg, #f5821f, #e0457b);
    --a4: linear-gradient(135deg, #6a5cd6, #1f6fd6);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--body);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 20px; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); }
.muted { color: var(--muted); }

/* ---------- Header ---------- */
.site-header { background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: flex-start; gap: 20px; height: 70px; }
.brand { display: inline-flex; align-items: center; font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; }
.brand-logo { height: 44px; width: auto; display: block; }
.brand .b-geeks { color: var(--navy); }
.brand .b-array { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand .for-emp { font-size: .9rem; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.brand:hover { color: inherit; }
.nav-links { display: flex; gap: 22px; margin-left: 26px; }
.nav-links a { color: var(--body); font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--blue); }
.search { display: flex; position: relative; gap: 8px; flex: 1 1 380px; max-width: 680px; margin-left: 24px; }
.search input { flex: 1; min-width: 0; padding: 12px 20px; border: 1px solid var(--border); border-radius: 999px; font-size: .98rem; outline: none; background: #f4f7fb; transition: .15s; }
.search input:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(31,111,214,.1); }
.search button { padding: 10px 20px; border: 0; border-radius: 999px; background: var(--brand-grad); color: #fff; font-weight: 700; cursor: pointer; font-size: .9rem; }
.search button:hover { filter: brightness(1.05); }
.login-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .92rem; color: var(--navy); white-space: nowrap; padding: 8px 4px; }
.login-link:hover { color: var(--blue); }
.login-link i { font-size: 1.05rem; }
.signup-link { display: inline-flex; align-items: center; background: var(--brand-grad); color: #fff; font-weight: 700; font-size: .9rem; padding: 9px 18px; border-radius: 999px; white-space: nowrap; }
.signup-link:hover { filter: brightness(1.05); color: #fff; }

/* Segmented toggle (email / mobile) */
.seg { display: flex; gap: 6px; background: #f1f5fa; border-radius: 12px; padding: 4px; margin-bottom: 18px; }
.seg-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: transparent; padding: 9px; border-radius: 9px; font-weight: 700; font-size: .92rem; color: var(--muted); cursor: pointer; font-family: inherit; }
.seg-btn.active { background: #fff; color: var(--navy); box-shadow: var(--shadow); }
.phone-row { display: flex; gap: 8px; }
.phone-row select { width: 120px; flex: none; padding: 12px 10px; border: 1px solid var(--border); border-radius: 10px; background: #f7f9fc; font-size: 1rem; }
.phone-row input { flex: 1; margin-bottom: 0 !important; }
.field-mobile { margin-bottom: 18px; }

/* Org purpose chooser — full-width rows, checkbox inline with its label */
.auth-card.auth-card-wide { max-width: 560px; }
.auth-card.auth-card-editor { max-width: 1100px; width: 100%; }   /* writing needs room */
.auth-card.auth-card-editor .EasyMDEContainer .CodeMirror { min-height: 480px; }
/* Cover image uploader */
.cover-drop { border: 2px dashed var(--border); border-radius: 12px; overflow: hidden; cursor: pointer;
    min-height: 120px; display: flex; align-items: center; justify-content: center; background: var(--surface-2, #f7f8fa); transition: border-color .15s; }
.cover-drop:hover { border-color: var(--brand, #2f7cf6); }
.cover-drop img { display: block; width: 100%; max-height: 320px; object-fit: cover; }
.cover-empty { text-align: center; color: var(--muted, #6b7280); padding: 28px 12px; }
.cover-empty i { font-size: 30px; display: block; margin-bottom: 6px; }
.cover-empty p { margin: 0; }
.cover-actions { display: flex; align-items: center; gap: 12px; margin: 8px 0 4px; }
.purpose-grid { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.purpose { display: flex; flex-direction: row; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; cursor: pointer; font-weight: 600; color: var(--ink); }
.purpose:hover { border-color: var(--blue); }
.purpose input[type="checkbox"] { width: 18px !important; height: 18px; flex: 0 0 auto; margin: 0 !important; accent-color: var(--blue); }
.purpose span { display: inline-flex; align-items: center; gap: 8px; }
.purpose i { color: var(--teal); font-size: 1.2rem; }

/* User avatar menu */
.user-menu { position: relative; }
.user-menu summary { list-style: none; cursor: pointer; }
.user-menu summary::-webkit-details-marker { display: none; }
.avatar-btn { width: 38px; height: 38px; border-radius: 50%; background: var(--brand-grad); color: #fff; font-size: .82rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; user-select: none; overflow: hidden; }
.avatar-btn:hover { filter: brightness(1.05); }
.avatar-btn img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.menu-link { display: flex; align-items: center; gap: 7px; padding: 8px; border-radius: 8px; color: var(--body); font-weight: 600; font-size: .92rem; }
.menu-link:hover { background: #f4f7fb; color: var(--blue); }
.user-pop { position: absolute; right: 0; top: 48px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); padding: 12px; min-width: 200px; z-index: 30; }
.user-pop .user-name { font-weight: 700; color: var(--ink); font-size: .92rem; padding: 4px 8px 10px; border-bottom: 1px solid var(--border); margin-bottom: 8px; word-break: break-all; }
.logout-btn { display: inline-flex; align-items: center; gap: 7px; width: 100%; background: transparent; border: 0; color: var(--body); font-weight: 600; font-size: .92rem; padding: 8px; border-radius: 8px; cursor: pointer; font-family: inherit; }
.logout-btn:hover { background: #f4f7fb; color: var(--blue); }

/* Auth pages */
.auth-wrap { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 30px 0 60px; }
.auth-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 38px 36px; width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 1.7rem; color: var(--ink); margin: 0 0 8px; letter-spacing: -.02em; }
.auth-card > p { margin: 0 0 22px; }
.auth-card label { display: block; font-weight: 600; color: var(--ink); font-size: .9rem; margin: 0 0 7px; }
.auth-card input:not([type="checkbox"]):not([type="radio"]), .auth-card textarea { width: 100%; padding: 12px 15px; border: 1px solid var(--border); border-radius: 10px; font-size: 1rem; outline: none; background: #f7f9fc; margin-bottom: 18px; font-family: inherit; }
.auth-card textarea { resize: vertical; }
.auth-card input:not([type="checkbox"]):not([type="radio"]):focus, .auth-card textarea:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(31,111,214,.1); }
.auth-submit { width: 100%; justify-content: center; }
.auth-error { background: #fdeced; color: #a32d2d; border-radius: 10px; padding: 11px 14px; font-size: .9rem; margin-bottom: 18px; }
.auth-hint { background: #fff7e6; color: #854f0b; border-radius: 10px; padding: 11px 14px; font-size: .9rem; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.auth-back { display: inline-block; margin-top: 16px; font-size: .9rem; font-weight: 600; }

/* Profile */
.profile-avatar { display: flex; align-items: center; gap: 16px; margin: 4px 0 24px; }
.profile-avatar img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; }
.profile-avatar .avatar-lg { width: 76px; height: 76px; border-radius: 50%; background: var(--brand-grad); color: #fff; font-size: 1.5rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.profile-name { font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.file-hint { font-size: .82rem; margin: 6px 0 16px; }
/* The -10px tuck only makes sense when the hint sits directly under a field, closing the
   gap left by that field's 18px bottom margin. After a wrapper (a .phone-row, a relative
   div for an autocomplete box) there is no margin to absorb it and the hint lands on top
   of the input — so scope the pull to the adjacent-sibling case only. */
input + .file-hint, textarea + .file-hint, select + .file-hint { margin-top: -10px; }
#tag-count { margin: 6px 0 16px; }   /* the generic .file-hint negative margin tucked it under the chip box */

/* My blogs filter pills */
.filter-block { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 18px; margin-bottom: 18px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-row + .filter-row { margin-top: 10px; }
.filter-label { font-weight: 650; font-size: .85rem; color: var(--muted, #6b7280); min-width: 52px; }
.filter-row .tag { cursor: pointer; }
.filter-row .tag.tag-on { background: var(--brand, #2f7cf6); color: #fff; }
.filter-row .tag.tag-clear { background: transparent; border: 1px solid var(--border); color: var(--muted, #6b7280); }
.filter-input { flex: 0 1 280px; padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px;
    background: #f4f7fb; font-size: .92rem; outline: none; margin: 0 !important; transition: .15s; }
.filter-input:focus { border-color: var(--brand, #2f7cf6); background: #fff; }
.filter-title { margin: 0 0 12px; font-size: 1.02rem; display: flex; align-items: center; gap: 8px; }
/* My blogs table: keep each post to a single line (title may still wrap if very long) */
.posts-table td { white-space: nowrap; vertical-align: middle; }
.posts-table td:first-child { white-space: normal; }
.posts-table .row-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; flex-wrap: nowrap; }
.posts-table .row-actions a, .posts-table .row-actions .inline-form { margin-left: 0; }
.resume-current { display: flex; align-items: center; gap: 8px; background: #eafaf6; color: #0f6e56; border-radius: 10px; padding: 11px 14px; font-size: .92rem; margin-bottom: 16px; }

/* Profile area: left section nav + content with side-by-side cards */
.profile-shell { display: grid; grid-template-columns: 230px 1fr; gap: 28px; align-items: start; padding: 30px 0 60px; }
.profile-nav { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; position: sticky; top: 92px; display: flex; flex-direction: column; gap: 4px; }
.profile-nav .nav-group-label, .user-pop .nav-group-label { margin: 12px 14px 2px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.profile-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 10px; color: var(--body); font-weight: 600; font-size: .95rem; }
.profile-nav a:hover { background: #f4f7fb; color: var(--blue); }
.profile-nav a.active { background: #eef2fc; color: var(--blue); }
.profile-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; align-items: start; }
.profile-content .auth-card { max-width: none; width: auto; margin: 0; }
.org-content { min-width: 0; }
.org-content .auth-card { max-width: none; width: auto; margin: 0; }
/* auth-wrap's standalone-page padding would push the card below the sidebar's top edge. */
.org-content .auth-wrap { padding: 0; }

.company-list { display: flex; flex-direction: column; gap: 12px; }
.company { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; }
.company-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--a1); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.company-name { font-weight: 700; color: var(--ink); }

@media (max-width: 760px) {
    .profile-shell { grid-template-columns: 1fr; }
    .profile-nav { position: static; flex-direction: row; overflow-x: auto; }
}

main.container { padding-top: 36px; padding-bottom: 64px; }
.section-head { display: flex; align-items: baseline; gap: 12px; margin: 8px 0 22px; }
.section-head h2 { font-size: 1.35rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; margin: 0; }
.section-head .rule { flex: 1; height: 1px; background: var(--border); }

/* ---------- Avatar + tags ---------- */
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-grad); color: #fff; font-size: .78rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.byline { display: flex; align-items: center; gap: 10px; }
.byline .who { font-weight: 600; color: var(--ink); font-size: .9rem; }
.byline .when { color: var(--muted); font-size: .82rem; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { font-size: .74rem; font-weight: 700; letter-spacing: .02em; padding: 4px 11px; border-radius: 999px; background: #eaf1fc; color: var(--blue); }
.tag::before { content: "#"; opacity: .5; }

/* ---------- Featured ---------- */
.featured { display: grid; grid-template-columns: 1.05fr .95fr; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 40px; }
.featured .art { background: var(--a0); min-height: 220px; position: relative; display: flex; align-items: flex-end; padding: 22px; }
.featured .art .badge { background: rgba(255,255,255,.22); color: #fff; font-weight: 700; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.featured .art .glyph { position: absolute; top: 18px; right: 22px; font-size: 3.4rem; color: rgba(255,255,255,.35); }
.featured .body { padding: 30px 32px; display: flex; flex-direction: column; }
.featured h3 { font-size: 1.7rem; line-height: 1.22; letter-spacing: -.02em; margin: 10px 0 12px; }
.featured h3 a { color: var(--ink); }
.featured h3 a:hover { color: var(--blue); }
.featured p { color: var(--body); margin: 0 0 18px; }
.featured .byline { margin-top: auto; }

/* ---------- Card grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card .band { height: 150px; display: flex; align-items: center; justify-content: center; }   /* same height with or without a cover image */
.card .band .glyph { font-size: 2rem; color: rgba(255,255,255,.85); }
/* Real cover thumbnails replace the decorative gradient band when the post has one */
.featured .art.has-img { overflow: hidden; }
.featured .art.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured .art.has-img .badge { position: relative; z-index: 1; }
.card .band.has-img { height: 150px; padding: 0; overflow: hidden; }
.card .band.has-img img { width: 100%; height: 100%; object-fit: cover; }
.accent-0 { background: var(--a0); } .accent-1 { background: var(--a1); } .accent-2 { background: var(--a2); } .accent-3 { background: var(--a3); } .accent-4 { background: var(--a4); }
.card .pad { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { font-size: 1.18rem; line-height: 1.3; letter-spacing: -.01em; margin: 0; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--blue); }
.card .excerpt { color: var(--body); font-size: .94rem; margin: 0; flex: 1; }
.card .byline { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--border); }
.card .avatar { width: 28px; height: 28px; font-size: .68rem; }

.empty { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 48px; text-align: center; color: var(--muted); }

/* ---------- Article detail ---------- */
.article-hero { background: var(--a0); color: #fff; border-radius: var(--radius); padding: 40px 44px; margin-bottom: 30px; box-shadow: var(--shadow); }
/* When a post has a cover image, it fills the hero; a dark scrim keeps the white text readable. */
.article-hero.has-cover { position: relative; background-size: cover; background-position: center; overflow: hidden; padding-top: 120px; }
.article-hero.has-cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,23,42,.30) 0%, rgba(15,23,42,.78) 100%); }
.article-hero.has-cover > * { position: relative; z-index: 1; }
/* The engagement bar sits on top of the image — outline buttons vanish there, so give every
   button/link in the hero bar a solid dark pill with white text. */
.article-hero .engage-bar .btn-outline,
.article-hero .engage-bar button,
.article-hero .engage-bar a.btn-outline {
    background: rgba(15, 23, 42, .55); color: #fff; border: 1px solid rgba(255, 255, 255, .65);
}
.article-hero .engage-bar .btn-outline:hover,
.article-hero .engage-bar button:hover,
.article-hero .engage-bar a.btn-outline:hover { background: rgba(15, 23, 42, .8); color: #fff; }
.article-hero .engage-bar .muted { color: rgba(255, 255, 255, .9); }
/* Author byline links: keep the byline look, underline on hover; white inside the hero. */
a.who { color: inherit; }
a.who:hover { text-decoration: underline; }
.article-hero .byline a.who { color: #fff; }
.article-hero .engage-bar .muted a, .article-hero .engage-bar a:not(.btn-outline) { color: #fff; text-decoration: underline; }
.article-hero .back { color: rgba(255,255,255,.9); font-weight: 600; font-size: .9rem; }
.article-hero .back:hover { color: #fff; }
.article-hero h1 { font-size: 2.4rem; line-height: 1.18; letter-spacing: -.025em; margin: 16px 0 16px; color: #fff; }
.article-hero .tags .tag { background: rgba(255,255,255,.2); color: #fff; }
.article-hero .byline { margin-top: 18px; }
.article-hero .byline .who { color: #fff; }
.article-hero .byline .when { color: rgba(255,255,255,.8); }
.article-hero .avatar { background: rgba(255,255,255,.25); }

.post-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 36px; align-items: start; }
.post-layout.no-aside { grid-template-columns: minmax(0,1fr); max-width: 820px; margin: 0 auto; }   /* no sidebar → centered single column */
.post-main { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px 44px; }
.post-body { font-size: 1.08rem; color: #2b3a55; }
.post-body h2, .post-body h3 { color: var(--ink); margin-top: 1.15em; margin-bottom: .5em; letter-spacing: -.01em; }
.post-body p { margin: .9em 0; }
.post-body img.post-cover { margin: 4px 0 10px; }
.post-body a { color: var(--blue); text-decoration: underline; }
.post-body pre { background: #0f1b30; color: #e3ecf7; padding: 18px; border-radius: 12px; overflow-x: auto; font-size: .92rem; }
.post-body code { background: #eef2f8; color: var(--navy); padding: 2px 7px; border-radius: 5px; font-size: .9em; }
.post-body pre code { background: none; color: inherit; padding: 0; }
.post-body img { max-width: 100%; border-radius: 12px; }
.post-body blockquote { border-left: 4px solid var(--teal); margin: 1.4em 0; padding: 4px 18px; color: var(--body); background: #f3f9f8; border-radius: 0 8px 8px 0; }

/* Comments */
.comments { margin-top: 38px; border-top: 1px solid var(--border); padding-top: 26px; }
.comments h2 { font-size: 1.3rem; color: var(--ink); margin: 0 0 6px; }
.comment-cta { display: flex; align-items: center; gap: 10px; background: #f4f7fb; border: 1px dashed var(--border); border-radius: 12px; padding: 14px 18px; color: var(--muted); margin: 12px 0 22px; font-size: .92rem; }
.comment-cta i { color: var(--blue); }
.comment { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.comment:last-child { border-bottom: 0; }
.comment .body .head { font-size: .9rem; margin-bottom: 3px; }
.comment .body .head strong { color: var(--ink); }
.comment .body p { margin: 0; color: #2b3a55; }

/* Sidebar */
.sidebar { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 20px; }
/* Related-articles list in the post sidebar */
.related-post { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--border); }
.related-post:first-of-type { border-top: 0; }
.related-post img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; }
.related-post .rp-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.related-post .t { font-weight: 650; color: var(--text); line-height: 1.3; }
.related-post .l { font-size: .8rem; color: var(--muted, #6b7280); }
.related-post:hover .t { color: var(--brand, #2f7cf6); }
.panel { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 22px; }
.panel h3 { font-size: 1.05rem; color: var(--ink); margin: 0 0 16px; display: flex; align-items: center; gap: 8px; }
.panel h3 i { color: var(--teal); }
.job { display: block; padding: 13px 0; border-bottom: 1px solid var(--border); }
.job:last-child { border-bottom: 0; }
.job .t { font-weight: 700; color: var(--ink); font-size: .96rem; }
.job .l { color: var(--muted); font-size: .84rem; display: flex; align-items: center; gap: 5px; }
.panel.cta { background: var(--a1); color: #fff; }
.panel.cta h3 { color: #fff; }
.panel.cta p { margin: 0 0 14px; color: rgba(255,255,255,.88); font-size: .92rem; }
.btn-light { display: inline-block; background: #fff; color: var(--navy); font-weight: 700; padding: 9px 18px; border-radius: 999px; font-size: .9rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b7c4d8; padding: 40px 0; margin-top: 40px; }
.site-footer .brand .b-geeks { color: #fff; }
.site-footer .foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer .tagline { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: #6f88ad; }

/* ---------- Buttons ---------- */
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--brand-grad); color: #fff; font-weight: 700; padding: 13px 24px; border-radius: 999px; font-size: 1rem; }
.btn-primary:hover { filter: brightness(1.06); color: #fff; }
.btn-outline { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--navy); font-weight: 700; padding: 13px 24px; border-radius: 999px; font-size: 1rem; border: 2px solid var(--border); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-outline.light { color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline.light:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 44px; align-items: center; padding: 30px 0 50px; }
.eyebrow { display: inline-block; font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin-bottom: 16px; }
.hero h1 { font-size: 3rem; line-height: 1.1; letter-spacing: -.03em; color: var(--ink); margin: 0 0 18px; }
.hero h1 .grad { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy > p { font-size: 1.15rem; color: var(--body); max-width: 560px; margin: 0 0 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 38px; }
.hero-stats strong { display: block; font-size: 1.6rem; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.hero-stats span { font-size: .88rem; color: var(--muted); }
.hero-art { position: relative; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.hero-dots .dot { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; transition: .2s; }
.hero-dots .dot.active { background: #fff; width: 24px; border-radius: 999px; }

/* ---------- Features ---------- */
.features, .steps, .cta-band { margin-top: 30px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 22px; }
.feature { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 24px; }
.feature .fi { width: 50px; height: 50px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 1.5rem; margin-bottom: 8px; }
.feature h3 { font-size: 1.18rem; color: var(--ink); margin: 0 0 8px; letter-spacing: -.01em; }
.feature p { margin: 0; color: var(--body); font-size: .96rem; }

/* ---------- Steps ---------- */
.step-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.step { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 24px; position: relative; }
.step .num { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--brand-grad); color: #fff; font-weight: 800; margin-bottom: 14px; }
.step h3 { font-size: 1.1rem; color: var(--ink); margin: 0 0 6px; }
.step p { margin: 0; color: var(--body); font-size: .92rem; }

/* ---------- Open roles ---------- */
.job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.jobc { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; border-left: 4px solid var(--teal); transition: transform .15s, box-shadow .15s; }
.jobc:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.jobc h3 { font-size: 1.2rem; color: var(--ink); margin: 0 0 10px; letter-spacing: -.01em; }
.jobc-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: .86rem; margin-bottom: 12px; }
.jobc-meta span { display: inline-flex; align-items: center; gap: 5px; }

.see-all { margin-left: auto; font-weight: 700; font-size: .92rem; }

.section-head .head-i { color: var(--teal); margin-right: 4px; }

/* ---------- Pillars (the three aspects) ---------- */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; }
.pillar { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 26px; display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; }
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.pillar .p-band { width: 56px; height: 56px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 1.7rem; margin-bottom: 18px; }
.pillar h3 { font-size: 1.35rem; color: var(--ink); margin: 0 0 10px; letter-spacing: -.01em; }
.pillar p { margin: 0 0 18px; color: var(--body); flex: 1; }
.p-link { font-weight: 700; color: var(--blue); display: inline-flex; align-items: center; gap: 6px; }
.p-link:hover { gap: 10px; }

/* ---------- Topic cloud ---------- */
.topic-cloud { display: flex; flex-wrap: wrap; gap: 12px; }
.topic { background: var(--surface); border: 1px solid var(--border); color: var(--navy); font-weight: 700; font-size: .95rem; padding: 10px 18px; border-radius: 999px; box-shadow: var(--shadow); transition: .15s; }
.topic:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.topic::before { content: "#"; color: var(--teal); margin-right: 2px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--a1); border-radius: 24px; padding: 50px; text-align: center; color: #fff; box-shadow: var(--shadow); }
.cta-band h2 { font-size: 2rem; color: #fff; margin: 0 0 10px; letter-spacing: -.02em; }
.cta-band p { color: rgba(255,255,255,.9); margin: 0 0 24px; font-size: 1.1rem; }
.cta-band .hero-cta { justify-content: center; }

@media (max-width: 820px) {
    .featured { grid-template-columns: 1fr; }
    .post-layout { grid-template-columns: minmax(0,1fr); }
    .sidebar { position: static; }
    .nav-links { display: none; }
    .article-hero h1 { font-size: 1.9rem; }
    .hero { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.2rem; }
    .hero-art { display: none; }
    .hero-stats { gap: 24px; }
    .cta-band { padding: 36px 24px; }
}

/* Org settings: section divider + coming-soon placeholders */
.sep { border: 0; border-top: 1px solid var(--border); margin: 22px 0; }
.coming-soon { text-align: center; padding: 32px 20px; color: var(--muted);
  background: var(--surface-2, #f8fafc); border: 1px dashed var(--border); border-radius: 12px; }
.coming-soon i { font-size: 34px; color: var(--brand, #6366f1); display: block; margin-bottom: 10px; }
.coming-soon p { margin: 0; max-width: 420px; margin-inline: auto; }

/* Org team */
.invite-form { margin-top: 8px; }
.team-table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.team-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--border); }
.team-table td { padding: 12px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.team-table select { padding: 6px 8px; }
.inline-form { display: inline; margin: 0; }
.row-actions { text-align: right; }
.row-actions a, .row-actions .inline-form { margin-left: 10px; }   /* "Edit" / "View" / buttons were touching */
.btn-link-danger { background: none; border: 0; color: #dc2626; cursor: pointer; font-size: 16px; padding: 4px 8px; }
.btn-link-danger:hover { color: #b91c1c; }
.badge-you { font-size: 11px; background: var(--brand, #6366f1); color: #fff; border-radius: 6px; padding: 1px 6px; margin-left: 6px; vertical-align: middle; }
.status-active { color: #16a34a; font-weight: 600; }
.status-pending { color: #d97706; font-weight: 600; }

/* Org billing */
.plan-banner { display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px; border-radius: 12px; border: 1px solid var(--border); margin-top: 8px; }
.plan-active { background: linear-gradient(135deg, rgba(99,102,241,.08), rgba(16,185,129,.08)); }
.plan-expired { background: #fef2f2; border-color: #fecaca; }
.plan-name { font-size: 18px; font-weight: 700; }
.plan-price { font-size: 20px; font-weight: 800; color: var(--brand, #6366f1); }
.badge-trial { font-size: 11px; background: #16a34a; color: #fff; border-radius: 6px; padding: 1px 7px; margin-left: 6px; vertical-align: middle; }
.section-h { font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 22px 0 8px; }
.entitlements { list-style: none; padding: 0; margin: 0; }
.entitlements li { display: flex; align-items: center; gap: 10px; padding: 12px 4px; border-bottom: 1px solid var(--border); }
.entitlements li i { font-size: 20px; color: var(--brand, #6366f1); }
.entitlements li span { flex: 1; }
.entitlements li strong { font-variant-numeric: tabular-nums; }

/* Recruiter jobs */
.jobs-shell { max-width: 1120px; margin: 0 auto; }
.jobs-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 12px; }
.jobs-head h1 { margin: 0; }
.jobs-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.jobs-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--border); }
.jobs-table td { padding: 12px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.job-title-link { font-weight: 600; }
.tag-cell { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-chip { font-size: 12px; background: var(--surface-2, #f1f5f9); border: 1px solid var(--border); border-radius: 999px; padding: 2px 9px; }
.status-draft { color: #64748b; font-weight: 600; }
.form-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); margin-bottom: 8px; }
.job-detail-head { display: flex; align-items: center; gap: 12px; }
.job-detail-head h1 { margin: 0; }
.job-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); margin: 8px 0 12px; font-size: 14px; }
.job-meta i { margin-right: 4px; }
.job-tags { margin-bottom: 8px; }
.public-link { background: var(--surface-2, #f8fafc); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; font-size: 14px; word-break: break-all; }
.job-description { white-space: pre-wrap; line-height: 1.6; }
.field-err { color: #dc2626; font-size: 13px; display: block; margin: -4px 0 6px; }

/* Public job detail */
.job-public { max-width: 760px; margin: 0 auto; padding: 8px 0 40px; }
.job-public h1 { margin: 4px 0 0; }
a.jobc { display: block; text-decoration: none; color: inherit; }
a.jobc:hover { border-color: var(--brand, #6366f1); }

/* Candidate apply */
.apply-box { margin-top: 28px; padding-top: 8px; border-top: 1px solid var(--border); }
.apply-box textarea { width: 100%; }
.apply-done { display: flex; align-items: center; gap: 8px; background: #f0fdf4; border: 1px solid #bbf7d0;
  color: #166534; border-radius: 10px; padding: 12px 14px; font-weight: 500; }
.apply-done i { font-size: 20px; }
.apps-shell { max-width: 1040px; margin: 0 auto; padding-bottom: 40px; }
.btn-link-danger { background: none; border: 0; color: #dc2626; cursor: pointer; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px; }

/* Recruiter applicants */
.cover-letter { margin-top: 6px; }
.cover-letter summary { cursor: pointer; color: var(--brand, #6366f1); font-size: 13px; }
.cover-letter p { white-space: pre-wrap; margin: 6px 0 0; font-size: 14px; color: var(--text, #334155); }
.move-form { margin: 0; }
.move-form select { padding: 6px 8px; }
.withdrawn-list { list-style: none; padding: 0; color: var(--muted); }
.withdrawn-list li { padding: 6px 0; border-bottom: 1px solid var(--border); }

/* Notification bell */
.notif-menu { position: relative; }
.notif-menu summary { list-style: none; cursor: pointer; }
.notif-menu summary::-webkit-details-marker { display: none; }
.notif-btn { position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; color: var(--text, #334155); }
.notif-btn:hover { background: var(--surface-2, #f1f5f9); }
.notif-btn i { font-size: 20px; }
.notif-badge { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px;
  background: #dc2626; color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; border-radius: 8px; }
.notif-pop { position: absolute; right: 0; top: 46px; width: 320px; background: var(--surface, #fff);
  border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.12); z-index: 60; overflow: hidden; }
.notif-head { padding: 12px 14px; font-weight: 700; border-bottom: 1px solid var(--border); }
.notif-empty { padding: 20px 14px; color: var(--muted); text-align: center; }
.notif-list { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow-y: auto; }
.notif-list li a { display: block; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.notif-list li.unread { background: #eef2ff; }
.notif-list li a:hover { background: var(--surface-2, #f8fafc); }
.notif-title { display: block; font-weight: 600; font-size: 14px; }
.notif-body { display: block; font-size: 13px; color: var(--text, #475569); }
.notif-time { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.notif-all { display: block; text-align: center; padding: 10px; font-weight: 600; color: var(--brand, #6366f1); }
.notif-feed { list-style: none; padding: 0; }
.notif-feed li { padding: 12px 14px; border-bottom: 1px solid var(--border); border-left: 3px solid transparent; }
.notif-feed li.unread { border-left-color: var(--brand, #6366f1); background: #fafaff; }

/* Scorecards / reviews */
.review-list { list-style: none; padding: 0; margin: 0 0 18px; }
.review-list li { padding: 12px 0; border-bottom: 1px solid var(--border); }
.review-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.review-stars { color: #f59e0b; font-size: 16px; letter-spacing: 1px; }
.review-comments { margin: 6px 0 0; white-space: pre-wrap; font-size: 14px; }
.rec-chip { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 10px; }
.rec-StrongYes { background: #dcfce7; color: #166534; }
.rec-Yes { background: #ecfccb; color: #3f6212; }
.rec-No { background: #fee2e2; color: #991b1b; }
.rec-StrongNo { background: #fecaca; color: #7f1d1d; }
.review-form-card { margin-top: 8px; }
.review-form-card h3 { margin-top: 0; }

/* Pipeline board (kanban) */
.board-shell { max-width: 1100px; margin: 0 auto; }
.board { display: flex; gap: 14px; overflow-x: auto; padding: 6px 0 16px; align-items: flex-start; }
.board-col { flex: 0 0 230px; background: var(--surface-2, #f1f5f9); border: 1px solid var(--border); border-radius: 12px; }
.board-col.drop-over { outline: 2px dashed var(--brand, #6366f1); outline-offset: -2px; }
.board-col.col-won { background: #f0fdf4; }
.board-col.col-lost { background: #fef2f2; }
.board-col-head { padding: 10px 12px; font-weight: 700; font-size: 13px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); }
.board-count { background: var(--surface, #fff); border: 1px solid var(--border); border-radius: 999px; min-width: 22px; text-align: center; font-size: 12px; padding: 0 6px; }
.board-drop { padding: 8px; min-height: 60px; display: flex; flex-direction: column; gap: 8px; }
.board-card { background: var(--surface, #fff); border: 1px solid var(--border); border-radius: 9px; padding: 10px 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: grab; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.board-card:hover { border-color: var(--brand, #6366f1); }
.board-card.dragging { opacity: .5; }
.board-card a { font-weight: 600; font-size: 14px; }
.drag-handle { color: var(--muted); font-size: 16px; }

/* Profile tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.tabs .tab { background: none; border: 0; padding: 10px 16px; font-size: 15px; font-weight: 600; color: var(--muted);
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; gap: 6px; }
.tabs .tab:hover { color: var(--text, #334155); }
.tabs .tab.active { color: var(--brand, #6366f1); border-bottom-color: var(--brand, #6366f1); }
.tab-count { background: var(--surface-2, #f1f5f9); border-radius: 999px; font-size: 12px; padding: 0 7px; color: var(--muted); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Training */
.lead-summary { font-size: 17px; color: var(--text, #334155); font-weight: 500; margin: 4px 0 14px; }

/* Global search (scoped) */
.search-scope { border: 0; background: transparent; font-size: 14px; color: var(--text, #334155);
  padding: 0 8px; border-right: 1px solid var(--border); cursor: pointer; max-width: 110px; }
.search-results { list-style: none; padding: 0; margin: 0; }
.search-result { padding: 14px 0; border-bottom: 1px solid var(--border); }
.sr-kind { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; border-radius: 999px; padding: 2px 9px; margin-bottom: 6px; }
.sr-blog { background: #eef2ff; color: #4338ca; }
.sr-job { background: #ecfeff; color: #0e7490; }
.sr-training { background: #f0fdf4; color: #166534; }
.sr-title { display: block; font-size: 17px; font-weight: 700; }
.sr-snippet { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

/* Blog comment form */
.comment-form { margin: 14px 0 22px; }
.comment-form textarea { width: 100%; }
.comment-form button { margin-top: 8px; }
.comment .head { display: flex; align-items: center; gap: 8px; }
.comment-del { display: inline; margin: 0 0 0 auto; }
.comment-del button { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 2px 6px; font-size: 14px; }
.comment-del button:hover { color: #dc2626; }

/* Comment editor: emoji + mentions */
.comment-editor { position: relative; }
.comment-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.emoji-bar { display: flex; gap: 2px; flex-wrap: wrap; }
.emoji-btn { background: none; border: 1px solid transparent; border-radius: 8px; font-size: 18px; line-height: 1; padding: 4px 6px; cursor: pointer; }
.emoji-btn:hover { background: var(--surface-2, #f1f5f9); border-color: var(--border); }
.mention-list { position: absolute; left: 8px; bottom: 8px; z-index: 40; background: var(--surface, #fff);
  border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); min-width: 200px; max-height: 220px; overflow-y: auto; }
.mention-opt { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 8px 12px; cursor: pointer; font-size: 14px; }
.mention-opt:hover { background: #eef2ff; color: #4338ca; }
.comment-text { line-height: 1.6; }
.comment-text p { margin: 0 0 8px; }
.comment-text .mention { background: #eef2ff; color: #4338ca; border-radius: 5px; padding: 0 4px; font-weight: 600; }

/* Account page rhythm: breathing room between sections and controls */
.profile-content .auth-card hr.sep { margin: 26px 0 18px; }
.profile-content .auth-card h2.section-h { margin: 0 0 6px; }
.profile-content .auth-card h2.section-h + .muted { margin: 0 0 14px; }
.profile-content .auth-card label { display: block; margin: 12px 0 6px; font-weight: 600; }
.profile-content .auth-card .phone-row { gap: 14px; }

.editor-toast { position: fixed; top: 84px; left: 50%; transform: translateX(-50%); z-index: 200;
  display: flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 12px;
  font-weight: 600; box-shadow: 0 8px 30px rgba(15,23,42,.18); animation: toast-in .25s ease-out;
  transition: opacity .5s, transform .5s; }
.editor-toast.toast-ok { background: #0d9488; color: #fff; }
.editor-toast.toast-err { background: #b91c1c; color: #fff; }
.editor-toast.toast-hide { opacity: 0; transform: translateX(-50%) translateY(-8px); }
@keyframes toast-in { from { opacity: 0; transform: translateX(-50%) translateY(-8px); } to { opacity: 1; transform: translateX(-50%); } }

.editor-action:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.4); }

/* Follow-topics chip box */
.chip-box { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 10px;
  border: 1px solid var(--border); border-radius: 10px; background: #f7f9fc; cursor: text; }
.chip-box input { flex: 1; min-width: 140px; border: 0 !important; background: transparent !important;
  outline: none; padding: 6px 4px !important; margin: 0 !important; box-shadow: none !important; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  background: var(--blue, #1f6fd6); color: #fff; font-size: .88rem; font-weight: 600; }
.chip .chip-x { border: 0; background: none; color: #fff; cursor: pointer; font-size: .8rem; padding: 0; }

/* Follow-topic suggestions dropdown */
.topic-suggest { position: absolute; top: 100%; left: 0; right: 0; z-index: 30; background: #fff;
  border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
.topic-suggest .ts-item { display: block; width: 100%; text-align: left; padding: 10px 14px; border: 0;
  background: none; cursor: pointer; font-size: .95rem; }
.topic-suggest .ts-item:hover { background: var(--surface-2, #f1f5f9); }

/* Avatar edit: the picture itself is the button; camera hint on hover */
.avatar-edit { position: relative; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 50%; }
.avatar-edit img { display: block; }
.avatar-edit .avatar-edit-hint { position: absolute; inset: auto 0 0 0; height: 34%; display: flex; align-items: center;
  justify-content: center; background: rgba(15,23,42,.55); color: #fff; font-size: 15px;
  border-radius: 0 0 999px 999px; opacity: 0; transition: opacity .15s; }
.avatar-edit:hover .avatar-edit-hint, .avatar-edit:focus-visible .avatar-edit-hint { opacity: 1; }
.avatar-dialog { border: 0; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; width: min(420px, 90vw); }
.avatar-dialog::backdrop { background: rgba(15,23,42,.45); }

/* Username claim */
.username-row { display: flex; align-items: stretch; gap: 0; margin-bottom: 18px; }
.username-row .at { display: flex; align-items: center; font-size: 18px; font-weight: 700; color: var(--muted);
  padding: 0 6px 0 12px; background: var(--surface-2, #f1f5f9);
  border: 1px solid var(--border); border-right: 0; border-radius: 10px 0 0 10px; }
.username-row input { border-radius: 0 10px 10px 0 !important; margin-bottom: 0 !important; }

/* Jobs search/filter */
.job-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 22px; }
.job-filters input, .job-filters select { padding: 9px 11px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; background: var(--surface, #fff); }
.job-filters .jf-q { flex: 2 1 240px; }
.job-filters .jf-loc { flex: 1 1 140px; }
.job-filters .jf-tags { flex: 1 1 180px; }
.job-filters .jf-sel { flex: 0 0 auto; }
.job-filters .btn-primary, .job-filters .btn-outline { padding: 9px 14px; }
.matched-head { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--brand, #6366f1); margin: 6px 0 12px; }
.matched-head i { font-size: 20px; }
.matched-grid { margin-bottom: 6px; }

/* Public company page */
.company-page { padding-bottom: 40px; }
.company-about { margin-top: 4px; }
.company-about .post-body > :first-child { margin-top: 0; }
.company-about .post-body > :last-child { margin-bottom: 0; }
.company-head { display: flex; gap: 18px; align-items: center; margin: 8px 0 20px; }
.company-logo { width: 76px; height: 76px; border-radius: 14px; object-fit: cover; border: 1px solid var(--border); background: #fff; }
.company-head-main h1 { margin: 0 0 6px; }
.company-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 14px; align-items: center; }
.company-meta i { margin-right: 4px; }
.company-about p { line-height: 1.65; white-space: pre-wrap; font-size: .97rem; color: #334155; }
.company-about div { font-size: .97rem; color: #334155; }
.job-company { margin: 2px 0 10px; font-size: 15px; }
.job-company a { font-weight: 600; }

/* Training curriculum builder + syllabus */
.curriculum { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.cur-module { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; background: var(--surface, #fff); }
.cur-module-head { display: flex; justify-content: space-between; align-items: center; }
.cur-module-head h3 { margin: 0; font-size: 16px; }
.cur-lessons-label { margin: 12px 0 2px; font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.cur-lessons { list-style: none; padding: 0; margin: 0; }
.cur-lessons li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.cur-lessons li:last-child { border-bottom: none; }
.cur-lesson-num { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #eef2fb; color: var(--blue);
  font-size: .78rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.cur-lesson-main { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cur-lesson-title { font-weight: 600; }
.cur-chip { display: inline-flex; align-items: center; gap: 4px; background: #f1f5f9; border: 1px solid var(--border);
  border-radius: 999px; padding: 1px 9px; font-size: .78rem; color: var(--muted); }
a.cur-chip:hover { color: var(--blue); border-color: var(--blue); }
.cur-lesson-notes { flex-basis: 100%; margin: 2px 0 0; font-size: .88rem; color: var(--muted); }
.cur-lesson-title { display: inline-flex; align-items: center; gap: 6px; }
.cur-add-lesson summary { cursor: pointer; color: var(--brand, #6366f1); font-weight: 600; font-size: 14px; margin-top: 6px; }
.cur-add-lesson form { margin-top: 12px; padding: 14px 16px; background: #f7f9fc; border: 1px solid var(--border); border-radius: 10px; }
/* These controls sit outside .auth-card, so the site's field styling doesn't reach them —
   without this they fall back to browser defaults and run together on one line. */
.cur-add-lesson label { display: block; margin: 0 0 6px; font-weight: 600; font-size: .9rem; }
.cur-add-lesson input, .cur-add-lesson textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
  font-size: .95rem; font-family: inherit; background: #fff; outline: none; }
.cur-add-lesson textarea { resize: vertical; min-height: 72px; }
.cur-add-lesson input:focus, .cur-add-lesson textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,111,214,.1); }
.cur-lesson-grid { display: grid; grid-template-columns: 1fr 140px; gap: 14px; margin-bottom: 12px; }
.cur-add-lesson .cur-field { margin-bottom: 12px; }
.cur-add-lesson button[type="submit"] { width: auto; display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 0; }
@media (max-width: 640px) { .cur-lesson-grid { grid-template-columns: 1fr; } }
.cur-add-module { margin-top: 8px; }
.syllabus { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.syl-module { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.syl-module-head { background: var(--surface-2, #f1f5f9); padding: 10px 14px; font-weight: 700; font-size: 14px; }
.syl-module ul { list-style: none; margin: 0; padding: 6px 14px 10px; }
.syl-module li { padding: 5px 0; display: flex; align-items: center; gap: 7px; }
.syl-module li i { color: var(--brand, #6366f1); }

/* Course room (player) */
.course-room { max-width: 760px; margin: 0 auto; padding-bottom: 40px; }
.progress-wrap { margin: 10px 0 22px; }
.progress-bar { height: 10px; background: var(--surface-2, #e2e8f0); border-radius: 999px; overflow: hidden; }
.progress-bar span { display: block; height: 100%; background: linear-gradient(90deg, #6366f1, #16a34a); transition: width .3s; }
.progress-label { font-size: 13px; color: var(--muted); margin-top: 6px; font-weight: 600; }
.room-module { margin-bottom: 18px; }
.room-module h2 { font-size: 16px; margin: 0 0 8px; }
.room-lesson { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; overflow: hidden; }
.room-lesson.done { background: #f0fdf4; border-color: #bbf7d0; }
.room-lesson summary { display: flex; align-items: center; gap: 8px; padding: 12px 14px; cursor: pointer; font-weight: 600; }
.room-lesson summary i { font-size: 18px; color: var(--brand, #6366f1); }
.room-lesson.done summary i { color: #16a34a; }
.rl-title { flex: 1; }
.room-lesson-body { padding: 0 14px 14px; }
.lesson-content { line-height: 1.6; margin-bottom: 10px; }
.lesson-content p { margin: 0 0 8px; }

/* Completion certificate */
.cert-page { max-width: 760px; margin: 0 auto; padding: 12px 0 40px; }
.cert { border: 3px solid var(--brand, #6366f1); border-radius: 16px; padding: 40px 44px; text-align: center;
  background: linear-gradient(180deg, #ffffff, #f8faff); position: relative; }
.cert-brand { font-size: 22px; font-weight: 800; margin-bottom: 18px; }
.cert-brand .b-geeks { color: var(--text, #1e293b); } .cert-brand .b-array { color: var(--brand, #6366f1); }
.cert-kicker { text-transform: uppercase; letter-spacing: .22em; font-size: 13px; font-weight: 700; color: var(--brand, #6366f1); margin-bottom: 22px; }
.cert-line { color: var(--muted); margin: 10px 0; }
.cert-name { font-size: 34px; font-weight: 800; font-family: Georgia, 'Times New Roman', serif; margin: 6px 0; }
.cert-course { font-size: 22px; font-weight: 700; margin: 6px 0 4px; }
.cert-foot { display: flex; justify-content: space-around; gap: 20px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); }
.cf-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cf-val { display: block; font-weight: 700; margin-top: 2px; }
.cert-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.cert-verified { display: inline-flex; align-items: center; gap: 6px; color: #16a34a; font-weight: 600; font-size: 14px; }
.cert-verified i { font-size: 18px; }
@media print {
  /* Print only the marked area (certificate or invoice); everything else vanishes. */
  body * { visibility: hidden; }
  .cert, .cert *, .print-area, .print-area * { visibility: visible; }
  .cert, .print-area { position: absolute; left: 0; top: 0; width: 100%; box-shadow: none; }
  .cert { border-width: 4px; }
  .cert-actions, .no-print, .site-header, .site-footer { display: none !important; }
}

/* ============================================================
   Responsive pass — mobile nav, tables, stacking, breakpoints
   ============================================================ */

/* Hamburger (hidden on desktop) */
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 10px;
  width: 40px; height: 40px; align-items: center; justify-content: center; font-size: 22px;
  color: var(--navy); cursor: pointer; flex: 0 0 auto; }
.nav-toggle:hover { background: #f4f7fb; }

/* Prevent accidental horizontal scroll from any stray wide element */
html, body { max-width: 100%; overflow-x: hidden; overflow-x: clip; }
img, svg, video { max-width: 100%; height: auto; }

/* ---------- Tablet and below (≤ 900px) ---------- */
@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; height: auto; min-height: 60px; padding-top: 10px; padding-bottom: 10px; row-gap: 10px; }
  .nav-toggle { display: inline-flex; order: 5; margin-left: auto; }
  .user-menu, .notif-menu { order: 6; }
  .login-link, .signup-link { order: 6; }

  /* nav + search collapse into a panel, opened by the hamburger */
  .nav-links { display: none; }
  .search { display: none; }
  body.nav-open .nav-links { display: flex; flex-direction: column; gap: 4px; width: 100%; order: 10; margin-left: 0;
    border-top: 1px solid var(--border); padding-top: 10px; }
  body.nav-open .nav-links a { padding: 10px 6px; border-radius: 8px; }
  body.nav-open .nav-links a:hover { background: #f4f7fb; }
  body.nav-open .search { display: flex; width: 100%; max-width: none; order: 11; }
  body.nav-open .search input { min-width: 0; }
  body.nav-open .search .search-scope { max-width: 84px; flex: 0 0 auto; }
  body.nav-open .search button { flex: 0 0 auto; padding: 10px 14px; }

  /* wide data tables become horizontally scrollable */
  .jobs-table, .team-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .jobs-table th, .jobs-table td, .team-table th, .team-table td { white-space: nowrap; }
  .jobs-table td .muted, .jobs-table .cover-letter { white-space: normal; }

  .post-layout { grid-template-columns: minmax(0,1fr); }
  .sidebar { position: static; }
  .featured { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .board-col { flex-basis: 210px; }
}

/* ---------- Phones (≤ 600px) ---------- */
@media (max-width: 600px) {
  .container { padding: 0 14px; }
  main.container { padding-top: 20px; padding-bottom: 40px; }

  .brand { font-size: 1.3rem; }
  .signup-link { padding: 8px 12px; font-size: .84rem; }
  .login-link { font-size: .84rem; }

  h1 { font-size: 1.5rem; }
  .hero h1 { font-size: 1.8rem; }
  .article-hero h1 { font-size: 1.55rem; }
  .auth-card { padding: 24px 18px; }
  .auth-card h1 { font-size: 1.35rem; }

  /* stacking for flex rows that assume width */
  .jobs-head { flex-direction: column; align-items: stretch; gap: 10px; }
  .jobs-head .btn-primary, .jobs-head .btn-outline { text-align: center; justify-content: center; }
  .phone-row { flex-wrap: wrap; }
  .phone-row > div { flex: 1 1 100% !important; width: 100% !important; }
  .phone-row select { width: 100%; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .form-actions .btn-primary, .form-actions .btn-outline { justify-content: center; text-align: center; }
  .form-actions .inline-form { display: block; }
  .form-actions .inline-form button { width: 100%; justify-content: center; }

  /* jobs filter bar stacks */
  .job-filters .jf-q, .job-filters .jf-loc, .job-filters .jf-tags { flex: 1 1 100%; }
  .job-filters .jf-sel { flex: 1 1 45%; }
  .job-filters .btn-primary, .job-filters .btn-outline { flex: 1 1 100%; text-align: center; justify-content: center; }

  /* company + certificate */
  .company-head { flex-direction: column; align-items: flex-start; }
  .cert { padding: 26px 18px; }
  .cert-name { font-size: 24px; }
  .cert-course { font-size: 17px; }
  .cert-foot { flex-direction: column; gap: 12px; }
  .cert-actions { flex-direction: column; align-items: stretch; text-align: center; }

  /* tabs + profile */
  .tabs { overflow-x: auto; }
  .tabs .tab { padding: 10px 10px; font-size: 14px; white-space: nowrap; }
  .profile-avatar { flex-wrap: wrap; }

  /* comments */
  .comment-toolbar { flex-direction: column; align-items: stretch; }
  .comment-toolbar .btn-primary { justify-content: center; }
  .emoji-bar { justify-content: center; }

  /* notifications dropdown fits the screen */
  .notif-pop { width: min(320px, calc(100vw - 28px)); }
  .user-pop { max-width: calc(100vw - 28px); }

  /* course room + curriculum */
  .cur-module-head { flex-wrap: wrap; gap: 6px; }
  .room-lesson summary { padding: 10px 10px; }

  /* footer stacks */
  .site-footer .foot-inner { flex-direction: column; text-align: center; gap: 8px; }
}

/* ---------- Small phones (≤ 380px) ---------- */
@media (max-width: 380px) {
  .brand { font-size: 1.15rem; }
  .brand .for-emp { display: none; }
  .avatar-btn { width: 34px; height: 34px; }
  .nav-toggle { width: 36px; height: 36px; }
  .hero h1 { font-size: 1.55rem; }
}

/* ---------- Large desktops (≥ 1600px): let content breathe, don't over-stretch */
@media (min-width: 1600px) {
  .container { max-width: 1440px; }
}

/* Search autocomplete dropdown */
.search-suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff;
  border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 30px rgba(22,51,90,.14);
  z-index: 60; overflow: hidden; max-height: 60vh; overflow-y: auto; }
.ss-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; color: var(--ink);
  border-bottom: 1px solid var(--border); font-size: .92rem; font-weight: 600; }
.ss-item:last-child { border-bottom: 0; }
.ss-item:hover, .ss-item.active { background: #eef2ff; color: var(--navy); }
.ss-item .ss-t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-type { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; border-radius: 999px; padding: 2px 8px; flex: 0 0 auto; }
.ss-blog { background: #eef2ff; color: #4338ca; }
.ss-job { background: #ecfeff; color: #0e7490; }
.ss-training { background: #f0fdf4; color: #166534; }

/* Plain article header — title, description, author, tags on the surface card (no gradient banner). */
.article-head { padding: 0 0 26px; margin-bottom: 28px; border-bottom: 1px solid #e2e8f0; }
.article-head .back { color: var(--blue); font-weight: 600; font-size: .9rem; }
.article-head h1 { font-size: 2.3rem; line-height: 1.18; letter-spacing: -.025em; margin: 14px 0 10px; color: var(--ink); }
.article-head .article-desc { color: #475569; font-size: 1.1rem; line-height: 1.55; margin: 0 0 14px; max-width: 860px; }
.article-head .byline { margin-top: 6px; }
.article-head .byline .when { color: #64748b; }

/* Compact follow toggle beside a tag pill — same palette, no "#" prefix. */
.tag-follow { cursor: pointer; border: 0; font-size: .74rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: #eaf1fc; color: var(--blue); }
.tag-follow:hover { background: #dbe7fa; }
/* Selects reuse the pill input look on filter cards. */
select.filter-input { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 34px; }

/* "View source code on your machine" dropdown on post pages */
.src-open-menu { display: none; position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; min-width: 280px; z-index: 30; }
.src-open-menu.open { display: block; }
.src-open-menu a, .src-open-menu button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 10px 12px; border: 0; background: transparent; border-radius: 8px; color: var(--body); font-weight: 600; font-size: .92rem; text-align: left; cursor: pointer; font-family: inherit; }
.src-open-menu a:hover, .src-open-menu button:hover { background: #f4f7fb; color: var(--blue); }

/* Tables inside article bodies: bordered, padded, striped, scrollable on small screens */
.post-body table { width: 100%; border-collapse: collapse; margin: 18px 0 24px; font-size: .95rem; display: block; overflow-x: auto; }
.post-body table thead { background: #f1f5fa; }
.post-body table th { text-align: left; font-weight: 700; color: var(--navy); padding: 10px 14px; border: 1px solid var(--border); white-space: nowrap; }
.post-body table td { padding: 10px 14px; border: 1px solid var(--border); vertical-align: top; }
.post-body table tbody tr:nth-child(even) { background: #f8fafc; }
.post-body table code { white-space: nowrap; }

/* Report-this-article control on post pages */
.report-post { margin-top: 14px; font-size: .92rem; color: var(--muted); }
.report-post summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.report-post summary:hover { color: var(--blue); }
.report-form { display: flex; flex-direction: column; gap: 8px; max-width: 420px; margin-top: 10px; }
.report-form select, .report-form textarea { padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; font-size: .92rem; }
.report-form button { align-self: flex-start; }

/* Report button — amber warning look so it stands apart from the share buttons */
.btn-report { color: #b45309; border-color: #f5c97b; background: #fef7ec; }
.btn-report:hover { color: #92400e; border-color: #d97706; background: #fdeed6; }

/* Images inside articles (and the cover) must never exceed the column width. */
.post-body img, .post-cover { max-width: 100%; height: auto; }

/* Inline newsletter prompt after the article body */
.nl-inline { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 22px; padding: 18px 20px;
  background: linear-gradient(135deg, #eff6ff, #ecfeff); border: 1px solid #bfdbfe; border-radius: 14px; }
.nl-inline-text { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 2px; }
.nl-inline-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0; }
.nl-inline-form input[type=email] { padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px; min-width: 220px; font-size: .95rem; }


.user-pop .nav-group-label { margin: 2px 2px 4px; }

/* Collapsible sidebar groups on the account hub */
.profile-nav .nav-group { margin: 0; }
.profile-nav summary.nav-group-label { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; user-select: none; }
.profile-nav summary.nav-group-label::-webkit-details-marker { display: none; }
.profile-nav summary.nav-group-label::after { content: "\2039"; /* chevron */ display: inline-block; transform: rotate(-90deg); transition: transform .15s; font-size: 1rem; margin-right: 10px; }
.profile-nav .nav-group[open] > summary.nav-group-label::after { transform: rotate(90deg); }

/* Training membership plan cards — the money moment, make it feel like one. */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 16px; align-items: stretch; }
.plan-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 16px; padding: 24px 20px 20px; background: var(--surface); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.plan-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(15,23,42,.10); border-color: #bcd0f7; }
.plan-card h3 { margin: 0 0 4px; font-size: 1.15rem; letter-spacing: -.01em; }
.plan-tagline { margin: 0 0 14px; font-size: .88rem; min-height: 3.4em; }
.plan-amount { font-size: 2rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1; }
.plan-rupee { font-size: 1.2rem; font-weight: 700; vertical-align: 6px; margin-right: 1px; }
.plan-per { font-size: .82rem; margin: 4px 0 14px; }
.plan-feats { list-style: none; margin: 0 0 18px; padding: 12px 0 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.plan-feats li { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--body); }
.plan-feats i { color: var(--teal); font-size: 1.05rem; flex: none; }
.plan-cta { width: 100%; justify-content: center; display: inline-flex; }
.plan-popular { border: 2px solid var(--blue); box-shadow: 0 10px 28px rgba(29,78,216,.14); }
.plan-popular:hover { border-color: var(--blue); }
.plan-flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(90deg, var(--blue), var(--teal)); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 4px 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }

/* Public member/trainer profile (/u/{handle}) */
.pp-shell { max-width: 1080px; margin: 0 auto; padding: 30px 0 60px; }
.pp-shell .auth-card { max-width: none; width: auto; }
.pp-hero { display: flex; gap: 26px; align-items: flex-start; padding: 32px; }
.pp-avatar { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: var(--shadow); }
.pp-id { min-width: 0; }
.pp-name { margin: 0 0 2px; font-size: 1.7rem; letter-spacing: -.02em; }
.pp-headline { margin-top: 6px; font-weight: 600; color: var(--body); }
.pp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pp-bio { margin: 12px 0 0; color: var(--body); max-width: 60ch; }
.pp-socials { display: flex; gap: 10px; margin-top: 14px; }
.pp-socials a { width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; color: var(--body); transition: all .15s; }
.pp-socials a:hover { color: var(--blue); border-color: var(--blue); transform: translateY(-2px); }
.pp-columns { display: grid; grid-template-columns: 2fr 3fr; gap: 20px; margin-top: 20px; align-items: start; }
.pp-columns-single { grid-template-columns: 1fr; }
.pp-card { padding: 24px; margin-bottom: 20px; }
.pp-posts { display: flex; flex-direction: column; }
.pp-post { display: flex; flex-direction: column; gap: 2px; padding: 12px 10px; margin: 0 -10px; border-radius: 10px; border-bottom: 1px solid var(--border); }
.pp-post:last-child { border-bottom: 0; }
.pp-post:hover { background: #f4f7fb; }
.pp-post-title { font-weight: 600; color: var(--ink); }
.pp-post:hover .pp-post-title { color: var(--blue); }
.pp-review { border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; margin-bottom: 10px; font-size: .93rem; }
@media (max-width: 720px) { .pp-hero { flex-direction: column; align-items: center; text-align: center; }
  .pp-chips, .pp-socials { justify-content: center; } .pp-columns { grid-template-columns: 1fr; } }

/* Trainer cards on the public institute page */
.trainer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-bottom: 26px; }
.trainer-card { background: linear-gradient(160deg, #eef7f6, #eef2fb); border: 1px solid var(--border); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.trainer-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(15,23,42,.10); }
.trainer-head { display: flex; align-items: center; gap: 14px; }
.trainer-head img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; }
.trainer-head h3 { margin: 0; font-size: 1rem; letter-spacing: -.01em; }
.trainer-line { display: flex; gap: 8px; align-items: flex-start; font-size: .92rem; color: var(--body); margin-bottom: 8px; }
.trainer-line i { color: var(--teal); flex: none; margin-top: 2px; }
.trainer-link { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--blue); display: inline-flex; align-items: center; gap: 6px; }

.trainer-handle { font-weight: 700; color: var(--blue); }
.trainer-handle:hover { text-decoration: underline; }

.trainer-overflow { display: none; }
.trainer-search { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; max-width: 420px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; }
.trainer-search i { color: var(--muted); }
.trainer-search input { border: none; outline: none; background: transparent; flex: 1; font-size: .95rem; }

.pp-overflow { display: none !important; }

/* Inline autocomplete dropdown (skills input on the course form) */
.tag-suggest { position: absolute; top: 100%; left: 0; right: 0; z-index: 30; background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 10px 26px rgba(15,23,42,.12);
  display: flex; flex-direction: column; overflow: hidden; }
/* display:flex would defeat the hidden attribute — the box must actually close when JS hides it. */
.tag-suggest[hidden] { display: none; }
.tag-suggest button { text-align: left; padding: 9px 14px; border: none; background: none; cursor: pointer; font-size: .95rem; }
.tag-suggest button:hover { background: #eef7f6; }

/* Quarter-hour time field (hour + minute selects, see js/time-quarter.js) */
.timepick { display: flex; align-items: center; gap: 6px; margin-bottom: 18px; }
.timepick select { flex: 1; min-width: 72px; margin-bottom: 0; }
.timepick .tp-sep { font-weight: 700; color: var(--muted); }

/* Inline validation on the batch form (js/batch-form-validate.js) */
.bf-err { color: #dc2626; font-size: .85rem; margin: 4px 0 12px; }
.bf-invalid, .bf-invalid input, .bf-invalid select { border-color: #dc2626 !important; }
.bf-invalid:focus, .bf-invalid input:focus, .bf-invalid select:focus { box-shadow: 0 0 0 3px rgba(220,38,38,.12) !important; }

/* Standalone selects inside a card form (class frequency, delivery mode, …). Scoped to
   direct children so the narrow .phone-row selects — country codes, time zone — keep
   their own sizing. Without this they fell back to the unstyled browser control. */
.auth-card form > select, .auth-card > select, select.select-styled {
  width: 100%; padding: 12px 15px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 1rem; font-family: inherit; color: inherit; background-color: #f7f9fc;
  margin-bottom: 18px; outline: none; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
.auth-card form > select:focus, .auth-card > select:focus, select.select-styled:focus {
  border-color: var(--blue); background-color: #fff; box-shadow: 0 0 0 4px rgba(31,111,214,.1);
}

/* Weekday picker: chips on one wrapping row rather than a stacked list */
.weekday-picker { margin: 0 0 18px; }
.weekday-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.weekday-chip {
  display: inline-flex; align-items: center; gap: 7px; margin: 0;
  padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px;
  background: #f7f9fc; cursor: pointer; font-weight: 600; font-size: .92rem;
  user-select: none; transition: border-color .12s, background .12s;
}
.weekday-chip:hover { border-color: var(--blue); background: #fff; }
.weekday-chip input { margin: 0; cursor: pointer; }

/* Per-class-day timing and mode (js/batch-days.js) */
.day-rules {
  margin: 0 0 18px; padding: 14px 16px 4px;
  border: 1px solid var(--border); border-radius: 12px; background: #f7f9fc;
}
.day-rules-head {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline;
  justify-content: space-between; font-weight: 600; font-size: .92rem; margin-bottom: 10px;
}
.day-rules-head .btn-link {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--blue); font-size: .85rem; font-weight: 500;
}
.day-rule { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
/* display:flex would defeat the hidden attribute, so unticked days need this explicitly. */
.day-rule[hidden], .day-rules[hidden] { display: none; }

/* phone-row zeroes its inputs' bottom margins, so the venue rows need their own rhythm. */
#venue-fields .phone-row { margin-bottom: 16px; }
.day-rule-name { width: 42px; font-weight: 600; font-size: .9rem; }
.day-rule-dash { color: var(--muted); font-weight: 700; }
.day-rule .timepick { margin-bottom: 0; }
.day-rule select { margin-bottom: 0; width: auto; min-width: 110px; }
@media (max-width: 560px) {
  .day-rule { flex-wrap: wrap; }
  .day-rule-name { width: 100%; }
}

/* Session calendar: module dropdown + topic input sit on one tidy line. */
.module-topic { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.module-topic .inline-form { display: flex; align-items: center; gap: 6px; }
.module-topic select { margin: 0; max-width: 260px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: #f7f9fc; font-size: .92rem; }
.module-topic input[name="topic"] { margin: 0 !important; width: 200px; padding: 8px 10px; font-size: .92rem; }
.module-topic .btn-outline { padding: 7px 10px; }

/* Move/cancel session modal */
.session-dialog { border: none; border-radius: 14px; padding: 22px 24px; width: min(560px, 92vw);
  box-shadow: 0 24px 60px rgba(15,23,42,.25); }
.session-dialog::backdrop { background: rgba(15,23,42,.45); }
.session-dialog select, .session-dialog input[type="text"], .session-dialog input:not([type]), .session-dialog input[type="date"] {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px;
  background: #f7f9fc; font-size: 1rem; margin-bottom: 4px; }
.session-dialog label { display: block; font-weight: 600; margin: 10px 0 6px; }
.btn-link { background: none; border: 0; padding: 0; cursor: pointer; color: var(--blue); font-weight: 600; font-size: .92rem; }

/* Solid danger button (cancel-session confirm) */
.btn-danger { display: inline-flex; align-items: center; gap: 8px; background: #dc2626; color: #fff; font-weight: 700; padding: 13px 24px; border-radius: 999px; font-size: 1rem; border: 0; cursor: pointer; }
.btn-danger:hover { background: #b91c1c; }

/* Session row actions: Recording / Move / Cancel on one line */
.session-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; flex-wrap: nowrap; }
.session-actions a, .session-actions .inline-form { margin-left: 0; }
.session-actions .cur-add-lesson summary { margin-top: 0; white-space: nowrap; }
.session-actions .session-move { white-space: nowrap; }

/* Printable batch schedule (/org/training/batches/{id}/schedule) — matches the syllabus PDF design */
.schedule-print { background: transparent; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.sp-brandbar { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px 20px; margin-bottom: 14px; }
.sp-logo { height: 48px; width: auto; }
.sp-org-pill { display: inline-flex; align-items: center; gap: 12px; background: #fff; color: #0f172a; border-left: 1px solid var(--border); padding-left: 20px; font-size: 1.05rem; }
.sp-org-pill img { max-height: 44px; max-width: 150px; width: auto; height: auto; object-fit: contain; background: #fff; border-radius: 8px; padding: 2px; }
.sp-hero { background: var(--brand-grad); border-radius: 16px; padding: 24px 30px 22px; color: #fff; }
.sp-hero h1 { margin: 0 0 6px; color: #fff; font-size: 1.8rem; }
.sp-sub { margin: 0 0 14px; color: rgba(255,255,255,.92); }
.sp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-chip { background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 999px; padding: 5px 14px; font-size: .85rem; font-weight: 600; }
.sp-section { margin: 22px 0 10px; font-size: 1.15rem; border-bottom: 2px solid var(--brand, #14b8a6); padding-bottom: 6px; }
.sp-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 6px 18px; }
.sp-venue { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; margin-top: 14px; line-height: 1.5; }
.sp-venue .ti { color: var(--brand, #14b8a6); font-size: 20px; margin-top: 2px; }
.sp-table { width: 100%; border-collapse: collapse; }
.sp-page-pad { display: none; }
.sp-table td:nth-child(2), .sp-table td:nth-child(3) { white-space: nowrap; }
.sp-table th { text-align: left; color: #94a3b8; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; padding: 10px 8px; border-bottom: 1px solid var(--border); }
.sp-table td { padding: 10px 8px; border-bottom: 1px solid #eef2f7; vertical-align: middle; }
.sp-table tr:last-child td { border-bottom: 0; }
.sp-num { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: #0e7490; color: #fff; font-weight: 700; font-size: .8rem; }
.sp-cancelled td { color: #94a3b8; text-decoration: line-through; }
.sp-cancelled td:nth-child(4) { text-decoration: none; color: #dc2626; }
.sp-cancelled .sp-num { background: #cbd5e1; }
.sp-coordinator { padding: 14px 18px; }
.sp-coordinator p { margin: 0; line-height: 1.7; }
.sp-foot { margin-top: 16px; color: #94a3b8; font-size: .85rem; }
@media print {
  /* Zero page margin removes the browser's own date/title header and URL footer;
     the document keeps its breathing room via padding on the print area. */
  @page { margin: 0; }
  /* Small empty header/footer band on every page (browser text stays suppressed by the zero @page margin). */
  .print-area.schedule-print { padding: 12mm 12mm 14mm; }
  .sp-page-pad { display: table-row; }
  .sp-page-pad td { height: 8mm; padding: 0; border: 0 !important; }
  .sp-hero, .sp-chip, .sp-num { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  /* Let the session table flow across pages — only individual rows stay whole. */
  .sp-table tr { break-inside: avoid; }
  /* The session table card would split its border/padding at the page edge, leaving a dead
     band on both sides of the break — print it frameless so rows flow cleanly across pages. */
  .sp-table-card { border: 0; padding: 0; border-radius: 0; background: transparent; }
  /* Heading + card printed as one unit: it stays where it is if it fits in the space left,
     and moves whole to the next page only when it genuinely doesn't. */
  .sp-keep { break-inside: avoid; padding-top: 4mm; }
}

/* Membership invoices: keep every cell (incl. the View button) vertically centered on one row */
.invoice-table td { vertical-align: middle; }
.btn-compact { padding: 6px 18px; font-size: 14px; }
.invoice-list-head { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; }
.invoice-year-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.invoice-year-label select { padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }

/* Guide pages (/guide, /org/guide) */
.page-shell { max-width: 1080px; margin: 0 auto; padding: 28px 20px 60px; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.guide-card { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; text-decoration: none; color: var(--ink); transition: box-shadow .15s, transform .15s; }
.guide-card:hover { box-shadow: 0 6px 18px rgba(15,23,42,.08); transform: translateY(-2px); }
.guide-card strong { font-size: 1.05rem; }
.guide-card span { color: #64748b; font-size: .92rem; line-height: 1.45; }
.guide-shell { display: flex; gap: 32px; align-items: flex-start; }
.guide-nav { width: 230px; flex-shrink: 0; position: sticky; top: 90px; }
.guide-nav nav { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; }
.guide-nav nav a { padding: 8px 12px; border-radius: 8px; color: #475569; text-decoration: none; font-size: .95rem; }
.guide-nav nav a:hover { background: #f1f5f9; }
.guide-nav nav a.active { background: #e7f6f4; color: var(--brand, #0e7490); font-weight: 600; }
.guide-content { flex: 1; min-width: 0; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 28px 34px; }
.guide-content h1 { margin-top: 0; }
@media (max-width: 760px) {
  .guide-shell { flex-direction: column; }
  .guide-nav { width: 100%; position: static; }
}
.guide-content img { max-width: 100%; height: auto; border: 1px solid var(--border); border-radius: 10px; margin: 12px 0; box-shadow: 0 2px 10px rgba(15,23,42,.06); }

/* Markdown-help icon: hover/focus shows a syntax cheat sheet (partial _MdHelp.cshtml). */
.md-help { position: relative; display: inline-flex; align-items: center; margin-left: 6px; color: var(--muted); cursor: help; vertical-align: middle; }
.md-help .ti-markdown { font-size: 18px; }
.md-help:hover, .md-help:focus { color: var(--brand, #2563eb); outline: none; }
.md-help-pop { display: none; position: absolute; left: 0; top: calc(100% + 8px); z-index: 60; width: 280px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .12); font-size: 13px; font-weight: 400; color: var(--text, #0f172a); }
.md-help:hover .md-help-pop, .md-help:focus .md-help-pop, .md-help:focus-within .md-help-pop { display: block; }
.md-help-pop strong { display: block; margin-bottom: 6px; }
.md-help-pop table { border-collapse: collapse; width: 100%; margin-bottom: 6px; }
.md-help-pop td { padding: 2px 8px 2px 0; vertical-align: top; white-space: nowrap; }
.md-help-pop code { background: #f1f5f9; border-radius: 4px; padding: 1px 5px; font-size: 12px; }
.md-help-pop .muted { font-size: 12px; }

/* Home training-track cards are links now — keep card typography, no underline. */
a.card { text-decoration: none; color: inherit; }
a.card h3 { color: var(--text); }

/* Mid-article live-training promo card injected into the post body. */
.inline-training-promo { display: flex; flex-direction: column; gap: 6px; margin: 28px 0;
  padding: 18px 22px; border: 1px solid var(--border); border-left: 4px solid var(--blue, #1f6fd6);
  border-radius: 12px; background: #f7f9fc; }
.inline-training-promo .itp-kicker { font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue, #1f6fd6); display: flex; gap: 6px; align-items: center; }
.inline-training-promo .itp-title { font-weight: 700; font-size: 1.05rem; color: var(--text); }
.inline-training-promo .itp-meta { color: var(--muted); font-size: .9rem; }
.inline-training-promo .itp-cta { align-self: flex-start; margin-top: 6px; padding: 10px 20px; text-decoration: none; }

/* ---- Public batch details page (training/{slug}) ---- */
.td-hero { background: linear-gradient(120deg, #1f3b8f 0%, #1f6fd6 55%, #17b8a6 100%); color: #fff;
  border-radius: 16px; padding: 30px 34px; margin: 14px 0 0; }
.td-hero h1 { color: #fff; margin: 4px 0 6px; font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
.td-hero .td-org { margin: 0; font-size: .92rem; opacity: .92; display: flex; gap: 6px; align-items: center; }
.td-hero .td-org a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.td-hero .td-batch { margin: 0 0 14px; opacity: .92; }
.td-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.td-chip { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); border-radius: 999px;
  padding: 5px 13px; font-size: .84rem; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.td-chip-tag { background: rgba(255,255,255,.08); font-weight: 500; }
.td-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 14px 0 4px; }
.td-stat { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow); }
.td-stat .v { font-size: 1.25rem; font-weight: 800; color: var(--text); }
.td-stat .v .of { font-size: .9rem; font-weight: 600; color: var(--muted); }
.td-stat .k { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.td-when { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 10px 0 4px; color: var(--text); font-weight: 500; }
.td-when i { color: var(--blue, #1f6fd6); }

/* Curriculum accordion */
.td-module summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.td-module summary::-webkit-details-marker { display: none; }
.td-module .td-module-count { font-size: .84rem; font-weight: 500; display: inline-flex; gap: 6px; align-items: center; }
.td-module[open] .td-module-count .ti-chevron-down { transform: rotate(180deg); }
.td-module .td-module-count .ti-chevron-down { transition: transform .18s; }

/* Schedule grid */
.td-schedule { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 10px; }
.td-session { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 14px; }
.td-session-num { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: #eaf1fb; color: var(--blue, #1f6fd6);
  font-weight: 700; font-size: .86rem; display: flex; align-items: center; justify-content: center; }
.td-session-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.td-session-body .t { font-weight: 600; font-size: .92rem; color: var(--text); }
.td-session-body .l { font-size: .84rem; }
.td-cancelled { opacity: .55; }
.td-cancelled .t { text-decoration: line-through; }
@media (max-width: 640px) { .td-hero { padding: 22px 20px; } }

/* Institute identity card in the batch hero: logo on white so any logo stays crisp. */
.td-org-card { display: inline-flex; align-items: center; gap: 12px; background: rgba(255,255,255,.95);
  border-radius: 12px; padding: 8px 16px 8px 8px; margin-bottom: 14px; }
.td-org-logo { width: 44px; height: 44px; border-radius: 8px; object-fit: contain; background: #fff; }
.td-org-card:not(:has(.td-org-logo)) { padding-left: 16px; }
.td-org-meta { display: flex; flex-direction: column; line-height: 1.25; }
.td-org-name { font-weight: 700; color: #10264f; text-decoration: none; }
a.td-org-name:hover { text-decoration: underline; }
.td-org-sub { font-size: .8rem; color: #5b6b85; }
