/* VFP Developers */
:root {
  --ink: #16233f;
  --ink-2: #3b4763;
  --muted: #6b7286;
  --line: #e6e0d6;
  --line-2: #d8d0c2;
  --bg: #f8f5ef;
  --card: #ffffff;
  --accent: #e8692a;
  --accent-ink: #b34a14;
  --accent-soft: #fdeee4;
  --green: #1f7a4d;
  --green-soft: #e3f3ea;
  --blue: #2559a8;
  --blue-soft: #e5eefb;
  --red: #b42318;
  --red-soft: #fdecea;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(22, 35, 63, .05), 0 6px 20px -10px rgba(22, 35, 63, .18);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 var(--sans); color: var(--ink); background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
img { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-underline-offset: 2px; }
a:hover { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .9em; background: #f1ece3; padding: .1em .35em; border-radius: 5px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2.5rem); }
.page-pad { padding-block: 2.5rem 4rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }

/* header */
.site-header { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 20; }
.nav { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: inherit; font-weight: 700; }
.brand:hover { color: inherit; }
.brand-mark { font-family: var(--mono); background: var(--accent); color: #fff; padding: .15rem .45rem; border-radius: 6px; font-size: .95rem; letter-spacing: .04em; }
.brand-text { font-size: 1.05rem; letter-spacing: -.01em; }
.nav-links { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.nav-links a, .nav-links .link-btn { color: #d6dbe7; text-decoration: none; padding: .45rem .7rem; border-radius: 8px; font-size: .95rem; }
.nav-links a:hover, .nav-links .link-btn:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-links a.active { color: #fff; background: rgba(255,255,255,.12); }
.nav-links .btn { color: #fff; }
.nav-sep { width: 1px; height: 22px; background: rgba(255,255,255,.18); margin: 0 .4rem; }
.nav-toggle { display: none; margin-left: auto; background: transparent; border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: 8px; padding: .4rem .8rem; font: inherit; }
.inline-form { display: inline; margin: 0; }
.link-btn { background: none; border: 0; font: inherit; color: var(--accent-ink); cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 2px; }
.nav-links .link-btn { text-decoration: none; }
.link-btn.danger { color: var(--red); }
/* Main menu holds only public pages; personal links live in the account menu (.user-menu). */
.nav-links a, .nav-links .link-btn { white-space: nowrap; }
.nav-right { display: flex; align-items: center; gap: .6rem; margin-left: .75rem; }
.nav-right .btn { color: #fff; }
.mobile-only { display: none !important; }
.nav-toggle { padding: .45rem .55rem; line-height: 0; }
.burger, .burger::before, .burger::after { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; position: relative; content: ''; }
.burger::before { position: absolute; top: -6px; } .burger::after { position: absolute; top: 6px; }
@media (max-width: 1100px) {
  .nav { flex-wrap: wrap; gap: .5rem; }
  .nav-right { margin-left: auto; }
  .nav-toggle { display: inline-block; order: 3; }
  .nav-links { display: none; order: 4; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 1rem; margin-left: 0; }
  .nav-links.open { display: flex; }
  .nav-sep { width: 100%; height: 1px; margin: .3rem 0; }
  .nav-links .btn { text-align: center; }
  .mobile-only { display: revert !important; }
  .nav-links .btn.mobile-only { display: inline-flex !important; }
  .desktop-only { display: none !important; }
}
@media (max-width: 420px) { .brand-text { display: none; } }

/* account menu (photo in the header) */
.user-menu { position: relative; }
.user-menu > summary { list-style: none; display: flex; align-items: center; gap: .3rem; cursor: pointer; padding: 2px; border-radius: 999px; }
.user-menu > summary::-webkit-details-marker { display: none; }
.user-menu > summary:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.user-menu > summary .avatar { border: 2px solid rgba(255,255,255,.85); }
.user-menu .caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid #c3c9d8; }
.user-menu[open] .caret { transform: rotate(180deg); }
.user-pop { position: absolute; right: 0; top: calc(100% + 10px); min-width: 250px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(17,24,39,.18); padding: .4rem; z-index: 30; }
.user-pop .user-head { display: flex; gap: .7rem; align-items: center; padding: .6rem .6rem .7rem; }
.user-pop .user-head b { font-size: .98rem; }
.user-pop .user-head .small { word-break: break-all; }
.user-pop a, .user-pop .menu-btn { display: block; width: 100%; text-align: left; padding: .55rem .7rem; border-radius: 8px; color: var(--ink); text-decoration: none; font: inherit; font-size: .95rem; background: none; border: 0; cursor: pointer; }
.user-pop a:hover, .user-pop .menu-btn:hover, .user-pop a:focus-visible, .user-pop .menu-btn:focus-visible { background: rgba(17,24,39,.06); }
.user-pop a[aria-current] { font-weight: 600; }
.user-pop hr { border: 0; border-top: 1px solid var(--line); margin: .3rem 0; }
.user-pop form { margin: 0; }
.avatar-nav { width: 34px; height: 34px; }
.avatar-nav.avatar-initials { font-size: .75rem; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; background: var(--accent); color: #fff; border: 1px solid var(--accent); border-radius: 10px; padding: .65rem 1.15rem; font: 600 .98rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, transform .05s; }
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .45rem .85rem; font-size: .9rem; border-radius: 8px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: var(--ink-2); }
.btn-danger { background: var(--red); border-color: var(--red); }
.btn-danger:hover { background: #8f1c13; border-color: #8f1c13; }
.btn-block { width: 100%; }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pad { padding: 1.5rem; }
.grid.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.1rem; }
.dev-card { display: flex; flex-direction: column; gap: .7rem; padding: 1.25rem; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s, box-shadow .15s; }
.dev-card:hover { color: inherit; border-color: var(--line-2); transform: translateY(-2px); box-shadow: 0 2px 4px rgba(22,35,63,.06), 0 14px 30px -14px rgba(22,35,63,.3); }
.dev-card-top { display: flex; gap: .9rem; align-items: center; }
.dev-card h3 { margin: 0; font-size: 1.08rem; }
.headline { color: var(--ink-2); margin: .15rem 0 0; font-size: .93rem; line-height: 1.4; }
.meta { display: flex; flex-wrap: wrap; gap: .25rem .9rem; color: var(--muted); font-size: .86rem; margin: 0; }
.meta span + span::before { content: "·"; margin-right: .9rem; margin-left: -.5rem; color: var(--line-2); }
.dev-card-foot { margin-top: auto; }

/* avatars */
.avatar { border-radius: 50%; object-fit: cover; flex: none; background: #eee; }
.avatar-md { width: 56px; height: 56px; }
.avatar-lg { width: 96px; height: 96px; }
.avatar-xl { width: 148px; height: 148px; margin: 0 auto 1rem; border: 4px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.avatar-initials { --h: 20; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: hsl(var(--h) 45% 28%); background: hsl(var(--h) 55% 90%); }
.hue-0 { --h: 0; }
.hue-1 { --h: 30; }
.hue-2 { --h: 60; }
.hue-3 { --h: 90; }
.hue-4 { --h: 120; }
.hue-5 { --h: 150; }
.hue-6 { --h: 180; }
.hue-7 { --h: 210; }
.hue-8 { --h: 240; }
.hue-9 { --h: 270; }
.hue-10 { --h: 300; }
.hue-11 { --h: 330; }
.avatar-md.avatar-initials { font-size: 1.1rem; }
.avatar-lg.avatar-initials { font-size: 1.8rem; }
.avatar-xl.avatar-initials { display: flex; font-size: 2.8rem; }

/* chips & badges */
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.chips li, .chips a { background: #f3eee6; border: 1px solid var(--line); color: var(--ink-2); border-radius: 999px; padding: .25rem .7rem; font-size: .88rem; text-decoration: none; }
.chips li:has(a) { padding: 0; border: 0; background: none; }
.chips a { display: inline-block; }
.chips a:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); }
.chips-sm li { font-size: .78rem; padding: .15rem .55rem; }
.chip-more { color: var(--muted) !important; }
.badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; padding: .22rem .65rem; border-radius: 999px; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-open { background: var(--green-soft); color: var(--green); }
.badge-freelance { background: var(--blue-soft); color: var(--blue); }
.badge-hiring { background: var(--accent-soft); color: var(--accent-ink); }

/* hero */
.hero { background: radial-gradient(1200px 400px at 80% -10%, rgba(232,105,42,.18), transparent 60%), var(--ink); color: #fff; padding: 4rem 0 4.5rem; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); letter-spacing: -.025em; margin-bottom: .6rem; }
.hero .accent { color: #ff9a5c; }
.hero .lead { color: #c9d0de; font-size: 1.12rem; max-width: 36em; }
.hero .muted { color: #a8b1c4; }
.hero a { color: #ffb184; }
.eyebrow { font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent-ink); margin-bottom: .6rem; }
.hero .eyebrow { color: #ff9a5c; }
.lead { font-size: 1.1rem; color: var(--ink-2); }
.search-hero { display: flex; gap: .5rem; background: #fff; border-radius: 12px; padding: .4rem; max-width: 560px; margin: 1.6rem 0 1rem; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); }
.search-hero input { flex: 1; border: 0; font: inherit; padding: .6rem .8rem; min-width: 0; color: var(--ink); background: transparent; }
.search-hero input:focus { outline: none; }
.term { background: #0d1529; border: 1px solid #2a3756; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); transform: rotate(1.2deg); }
.term-bar { display: flex; align-items: center; gap: .35rem; padding: .55rem .8rem; background: #1b2642; font: .75rem var(--mono); color: #95a0ba; }
.term-bar span { width: 10px; height: 10px; border-radius: 50%; background: #3a4766; }
.term-bar span:first-child { background: #e8692a; }
.term-bar b { margin-left: .5rem; font-weight: 500; }
.term pre { margin: 0; padding: 1.1rem 1.2rem 1.3rem; font: .92rem/1.65 var(--mono); color: #e6ebf5; white-space: pre-wrap; }
.term .c { color: #7d8aa8; }
.cursor { display: inline-block; width: .6em; height: 1.1em; background: #ff9a5c; vertical-align: -.2em; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } .dev-card { transition: none; } }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-panel { display: none; } .hero { padding: 2.8rem 0 3rem; } }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: -2rem; position: relative; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 1.9rem; line-height: 1.1; font-family: var(--mono); }
.stat span { color: var(--muted); font-size: .9rem; }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; } }

.section { margin-top: 3.5rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
.section-head h2 { margin: 0; }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin-bottom: 4rem; }
@media (max-width: 760px) { .two-up { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.ticks li { position: relative; padding-left: 1.6rem; margin-bottom: .55rem; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: .75rem; height: .4rem; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* directory */
.page-title { margin-bottom: 1.5rem; }
.page-title h1 { margin-bottom: .2rem; }
.page-title p { margin: 0; }
.row-between { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.filters { display: flex; flex-wrap: wrap; gap: .9rem; padding: 1rem 1.1rem; align-items: flex-end; margin-bottom: 1rem; }
.filters .field { margin: 0; min-width: 160px; }
.filters .grow { flex: 1 1 240px; }
.quick-skills { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-bottom: 1.5rem; }
.chip-link { font-size: .84rem; padding: .2rem .65rem; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; color: var(--ink-2); background: #fff; }
.chip-link:hover, .chip-link.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.pager { display: flex; justify-content: center; align-items: center; gap: 1.5rem; margin-top: 2rem; }
.empty { text-align: center; }

/* forms */
.field { margin-bottom: 1rem; display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
label, .label, legend { font-weight: 600; font-size: .9rem; color: var(--ink); }
.opt { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], input[type=tel], input:not([type]), select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: 9px; padding: .58rem .75rem; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232,105,42,.18); }
input[type=file] { font-size: .9rem; }
.hint { font-size: .82rem; color: var(--muted); margin: 0; }
.err { font-size: .85rem; color: var(--red); margin: .1rem 0 0; font-weight: 500; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.field-row.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 680px) { .field-row, .field-row.three { grid-template-columns: 1fr; } }
fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; margin: .4rem 0 1rem; cursor: pointer; }
.check input { margin-top: .3rem; accent-color: var(--accent); }
.prefix-input { display: flex; border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden; background: #fff; }
.prefix-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232,105,42,.18); }
.prefix-input span { background: #f3eee6; color: var(--muted); padding: .58rem .6rem; font-size: .85rem; white-space: nowrap; border-right: 1px solid var(--line); display: flex; align-items: center; max-width: 60%; overflow: hidden; text-overflow: ellipsis; }
.prefix-input input { border: 0; border-radius: 0; box-shadow: none !important; }

.auth { max-width: 520px; margin-inline: auto; }
.auth h1 { font-size: 1.7rem; }

.flashes { padding-top: 1.2rem; }
.flash { padding: .8rem 1rem; border-radius: 10px; margin-bottom: 1rem; font-size: .95rem; border: 1px solid; }
.flash-success { background: var(--green-soft); border-color: #bfe3cf; color: #145236; }
.flash-error { background: var(--red-soft); border-color: #f4c7c2; color: #7d1a12; }
.flash-info { background: var(--blue-soft); border-color: #c8d9f3; color: #1b4280; }

/* account */
.form-section { display: grid; grid-template-columns: 230px 1fr; gap: 2rem; margin-bottom: 1.1rem; }
.section-label h2 { font-size: 1.1rem; margin-bottom: .3rem; }
.section-label p { color: var(--muted); font-size: .88rem; margin: 0; }
.section-body > :last-child { margin-bottom: 0; }
@media (max-width: 860px) { .form-section { grid-template-columns: 1fr; gap: 1rem; } }
.photo-field { display: flex; gap: 1.2rem; align-items: center; margin-bottom: 1.3rem; }
.photo-field > div:last-child { display: flex; flex-direction: column; gap: .35rem; }
.photo-preview .avatar { width: 96px; height: 96px; }
.segmented { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .35rem; }
.segmented label { cursor: pointer; font-weight: 500; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: inline-block; padding: .45rem .9rem; border: 1px solid var(--line-2); border-radius: 999px; font-size: .9rem; background: #fff; }
.segmented input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.segmented input:focus-visible + span { outline: 3px solid rgba(232,105,42,.5); outline-offset: 2px; }
.skill-picker { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.2rem; }
.skill-opt { cursor: pointer; font-weight: 500; }
.skill-opt input { position: absolute; opacity: 0; pointer-events: none; }
.skill-opt span { display: inline-block; padding: .3rem .75rem; border: 1px solid var(--line-2); border-radius: 999px; font-size: .86rem; background: #fff; transition: all .12s; }
.skill-opt input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.skill-opt input:checked + span::before { content: "✓ "; }
.skill-opt input:focus-visible + span { outline: 3px solid rgba(232,105,42,.5); outline-offset: 2px; }
.project-row { border: 1px dashed var(--line-2); border-radius: 12px; padding: 1rem 1rem .6rem; margin-bottom: .8rem; background: #fcfbf8; }
.project-row .field { margin-bottom: .7rem; }
.remove-project { font-size: .84rem; color: var(--muted); margin-bottom: .4rem; }
.privacy-row { display: grid; grid-template-columns: 1fr auto; gap: 1.2rem; align-items: center; }
@media (max-width: 680px) { .privacy-row { grid-template-columns: 1fr; gap: 0; margin-bottom: 1rem; } }
.switch { display: flex; align-items: center; gap: .7rem; cursor: pointer; font-weight: 500; font-size: .92rem; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track { flex: none; width: 42px; height: 24px; border-radius: 999px; background: #d6d0c5; position: relative; transition: background .15s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked + .track { background: var(--green); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 3px solid rgba(232,105,42,.5); outline-offset: 2px; }
.save-bar { position: sticky; bottom: 0; z-index: 10; background: rgba(248,245,239,.92); backdrop-filter: blur(8px); border-top: 1px solid var(--line); margin: 1.5rem calc(50% - 50vw) 2rem; padding: .8rem 0; }
.save-inner { display: flex; justify-content: flex-end; align-items: center; gap: 1rem; }
.save-bar.dirty #dirty-note { color: var(--accent-ink); font-weight: 600; }
.sub-form h3 { margin-bottom: .8rem; }
.danger-zone { border-color: #f1d0cc; }
.danger-zone h2 { color: var(--red); }

/* profile */
.owner-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; background: var(--accent-soft); border: 1px solid #f6d2bd; border-radius: 12px; padding: .7rem 1rem; margin-bottom: 1.5rem; font-size: .93rem; }
.copy { cursor: pointer; }
.profile { display: grid; grid-template-columns: 320px 1fr; gap: 1.3rem; align-items: start; }
.profile-side { text-align: center; position: sticky; top: 84px; }
.profile-name { font-size: 1.6rem; margin-bottom: .2rem; }
.profile-side .headline { margin-bottom: .9rem; }
.facts { text-align: left; margin: 1.3rem 0; border-top: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }
.h-small { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-family: var(--mono); }
.contact .btn { margin-bottom: .45rem; }
.contact p { margin-bottom: .6rem; word-break: break-all; }
.contact-none { background: #f6f3ed; border-radius: 10px; padding: .7rem; }
.link-list { list-style: none; margin: 1rem 0 0; padding: 0; text-align: left; }
.link-list a { display: flex; flex-direction: column; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: 10px; margin-bottom: .45rem; text-decoration: none; color: var(--ink); }
.link-list a:hover { border-color: var(--accent); }
.link-list span { font-weight: 600; font-size: .9rem; }
.link-list small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-main { display: flex; flex-direction: column; gap: 1.1rem; }
.profile-main h2 { font-size: 1.15rem; margin-bottom: .9rem; }
.prose { color: var(--ink-2); line-height: 1.7; }
.projects { list-style: none; margin: 0; padding: 0; }
.projects li { padding: 1rem 0; border-top: 1px solid var(--line); }
.projects li:first-child { border-top: 0; padding-top: 0; }
.projects h3 { margin-bottom: .3rem; }
.projects h3 a { text-decoration: none; color: var(--ink); }
.projects h3 a:hover { color: var(--accent-ink); }
.projects p { margin: 0 0 .3rem; color: var(--ink-2); }
@media (max-width: 860px) { .profile { grid-template-columns: 1fr; } .profile-side { position: static; } }

/* hire / about */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0; }
.step b { display: inline-flex; width: 2rem; height: 2rem; border-radius: 50%; background: var(--ink); color: #fff; align-items: center; justify-content: center; font-family: var(--mono); margin-bottom: .7rem; }
.step p { font-size: .93rem; color: var(--ink-2); margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.prose-page h2 { margin-top: 2rem; }
.prose-page ul { padding-left: 1.2rem; color: var(--ink-2); }
.prose-page li { margin-bottom: .45rem; }

/* admin */
.inline-search { display: flex; gap: .5rem; }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.admin-table th, .admin-table td { padding: .7rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: #fbf9f5; }
.admin-table .actions form { display: flex; gap: .8rem; justify-content: flex-end; }
.status { font-size: .78rem; padding: .15rem .55rem; border-radius: 999px; background: var(--green-soft); color: var(--green); font-weight: 600; }
.status-hidden { background: #fff4d6; color: #8a5a00; }
.status-banned { background: var(--red-soft); color: var(--red); }

/* footer */
.site-footer { background: #eee8dd; border-top: 1px solid var(--line); padding: 2.5rem 0 1.5rem; margin-top: 2rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.brand-footer { color: var(--ink); margin-bottom: .6rem; }
.footer-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-links a { color: var(--ink-2); text-decoration: none; font-size: .93rem; }
.footer-links a:hover { color: var(--accent-ink); }
.legal { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line-2); }

/* admin reset-link box & notes */
.notice { background: #fff8e6; border: 1px solid #f1dca4; border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: 1.2rem; }
.notice input { font-family: var(--mono); font-size: .85rem; margin: .4rem 0 .7rem; }
.notice .actions-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.requests { margin-bottom: 1.5rem; }
.requests li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem 0; border-top: 1px solid var(--line); }
.requests ul { list-style: none; margin: 0; padding: 0; }
.requests form { display: flex; gap: .8rem; }
.setup { max-width: 680px; margin: 4rem auto; }
.setup code { word-break: break-all; }

/* share / QR */
.share { margin-top: 1.3rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.share .qr { width: 180px; height: 180px; margin: .2rem auto .5rem; border: 1px solid var(--line); border-radius: 10px; padding: 6px; background: #fff; }
.share-actions { display: flex; flex-wrap: wrap; gap: .45rem; justify-content: center; }
.share-actions .btn { flex: 1 1 auto; }
.share-tip { margin-top: .9rem; text-align: left; background: #f6f3ed; border-radius: 10px; padding: .6rem .7rem; }
@media print { .site-header, .site-footer, .owner-bar, .share-actions, .share-tip { display: none !important; } }

/* legal pages & consents */
.lang-switch { font-size: .9rem; margin-bottom: 1.2rem; }
.lang-switch a[aria-current] { font-weight: 700; color: var(--ink); text-decoration: none; }
.legal h2 { font-size: 1.15rem; }
.legal-table { width: 100%; border-collapse: collapse; margin: .5rem 0 1.2rem; font-size: .92rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: .6rem .8rem; border-bottom: 1px solid var(--line); }
.legal-table th { background: #fbf9f5; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-links { margin-top: .5rem; }
.legal-links a { color: var(--muted); }
.consents { margin: .4rem 0 1.2rem; }
.consents .check { margin-bottom: .7rem; }
.consent-text { flex: 1; }
.consent-text > span[lang] { display: block; }
.consent-text .en { display: block; margin-top: .3rem; color: var(--muted); font-size: .9rem; }
@media (max-width: 680px) { .legal-table { display: block; overflow-x: auto; } }

/* code library */
.avatar-xs { width: 22px; height: 22px; }
.avatar-xs.avatar-initials { font-size: .6rem; }
.btn-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.res-card { display: flex; flex-direction: column; gap: .5rem; padding: 1.15rem 1.25rem; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.res-card:hover { color: inherit; border-color: var(--line-2); transform: translateY(-2px); }
.res-card h3 { margin: 0; font-size: 1.05rem; }
.res-desc { color: var(--ink-2); font-size: .9rem; margin: 0; line-height: 1.5; }
.res-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin: 0; }
.res-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: .3rem; font-size: .85rem; }
.res-owner { display: inline-flex; align-items: center; gap: .4rem; color: var(--ink-2); }
.kind { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; padding: .15rem .5rem; border-radius: 6px; background: #eef1f7; color: var(--ink-2); }
.kind-source { background: #e9f2ff; color: #1e4f9a; }
.kind-tool { background: #fdeee4; color: var(--accent-ink); }
.kind-library { background: #eaf6ef; color: #1f6b45; }
.kind-sample { background: #f4ecfb; color: #6a3a99; }
.kind-app { background: #fff4d6; color: #7a5200; }
.res-title { font-size: 1.7rem; margin: .6rem 0 1rem; }
.res-side { text-align: left; }
.res-actions { display: flex; flex-direction: column; gap: .5rem; margin-bottom: .8rem; }
.res-mini { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .8rem; }
.res-mini .res-card { box-shadow: none; }
.host-chip { font-family: var(--mono); font-size: .8rem; background: #f3eee6; border: 1px solid var(--line); border-radius: 6px; padding: .1rem .45rem; color: var(--ink-2); }
.host-chip.trusted { background: var(--green-soft); border-color: #bfe3cf; color: var(--green); }
.warn { background: #fff4d6; border: 1px solid #f1dca4; border-radius: 10px; padding: .6rem .7rem; color: #6b4a00; }
.checksum { margin: 1rem 0; }
.checksum code { display: block; word-break: break-all; margin: .3rem 0; font-size: .78rem; }
.report { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: .8rem; }
.report summary { cursor: pointer; color: var(--muted); font-size: .9rem; }
.report form { margin-top: .8rem; }
.leaving h1 { font-size: 1.6rem; }
.dest { background: #f6f3ed; border-radius: 10px; padding: .8rem 1rem; }
.dest-url { word-break: break-all; }
.leave-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.mono { font-family: var(--mono); font-size: .88rem; }
.delete-res { margin-top: 1rem; text-align: right; }
.status-pending { background: #e5eefb; color: #1b4280; }
.review-list { list-style: none; margin: 0; padding: 0; }
.review-list > li { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--line); align-items: start; }
.review-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: flex-end; max-width: 420px; }
.review-actions input { width: 180px; padding: .35rem .5rem; font-size: .85rem; }
.flag { font-size: .72rem; background: #fdecea; color: var(--red); border-radius: 5px; padding: .05rem .4rem; font-weight: 600; }
.break { word-break: break-all; }
.reports { margin: .4rem 0 0; padding-left: 1.1rem; }
.contact-out { display: flex; flex-direction: column; gap: .45rem; }
.contact-out a { word-break: break-all; }
.cf-turnstile { margin: .3rem 0 1rem; min-height: 0; }
@media (max-width: 760px) { .review-list > li { grid-template-columns: 1fr; } .review-actions { justify-content: flex-start; } }
.res-layout { display: grid; grid-template-columns: 1fr 340px; gap: 1.3rem; align-items: start; }
.res-layout .res-side { position: sticky; top: 84px; }
@media (max-width: 860px) { .res-layout { grid-template-columns: 1fr; } .res-layout .res-side { position: static; } }
.recovery { margin: 0 0 1rem; }
.recovery summary { cursor: pointer; color: var(--muted); font-size: .88rem; margin-bottom: .6rem; }

/* moderators */
.role { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .08rem .4rem; border-radius: 5px; background: var(--blue-soft); color: var(--blue); vertical-align: 1px; }
.role-owner { background: var(--ink); color: #fff; }
.team { margin-top: 1.2rem; }
.team-list { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.team-list > li { padding: .9rem 0; border-top: 1px solid var(--line); }
.perm-form { margin-top: .5rem; display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; }
.perm-boxes { display: flex; flex-direction: column; gap: .1rem; flex: 1 1 100%; }
.perm-boxes .check { margin: .15rem 0; }
.add-mod { border-top: 1px solid var(--line); padding-top: 1rem; max-width: 640px; }
.add-mod h3 { font-size: 1rem; }
#activity { margin-top: 1.2rem; }
.log-table td { vertical-align: top; }

/* terms notice */
.terms-banner { background: #fff4d6; border-bottom: 1px solid #f1dca4; padding: .7rem 0; font-size: .9rem; }
.terms-banner .wrap { display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: center; }
.terms-banner .en { color: var(--muted); flex: 1 1 260px; }
.terms-banner span[lang] { flex: 1 1 100%; }
.terms-banner.notice-upcoming { background: var(--blue-soft); border-color: #c8d9f3; }
.nowrap { white-space: nowrap; }

/* sponsors */
.sponsors-strip { border-top: 1px solid var(--line); background: #fbf9f5; padding: 1.1rem 0; margin-top: 2rem; }
.sponsors-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.6rem; }
.sponsors-label { margin: 0; font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.sponsor-logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; flex: 1; }
.sponsor-logos img { height: 40px; width: auto; max-width: 180px; object-fit: contain; filter: grayscale(30%); opacity: .9; transition: filter .15s, opacity .15s; }
.sponsor-logos a:hover img { filter: none; opacity: 1; }
.sponsor-logos.big img { height: 56px; max-width: 240px; }
.sponsors-strip .become { font-size: .82rem; color: var(--muted); margin-left: auto; }
.sponsors-strip + .site-footer { margin-top: 0; }
.sponsor-admin { list-style: none; margin: 0 0 1rem; padding: 0; }
.sponsor-admin > li { padding: .8rem 0; border-top: 1px solid var(--line); }
.sponsor-row { display: flex; gap: 1rem; align-items: center; }
.sponsor-row img { max-width: 140px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 3px; }
.sponsor-form { margin-top: .7rem; }
.add-sponsor summary, .sponsor-admin summary { cursor: pointer; }
#sponsors { margin-top: 1.2rem; }

/* GitHub previews */
.gh-preview { margin: .6rem 0; }
.gh-preview img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: #f3eee6; }
.gh-sm { margin: -.2rem -.2rem .2rem; }
.gh-sm img { border-radius: 8px; }
.gh-md { max-width: 420px; }
.gh-lg { margin: 0 0 1.2rem; }
.gh-desc { font-size: .9rem; color: var(--ink-2); margin-top: .45rem; }
.gh-desc::before { content: "GitHub: "; font-family: var(--mono); font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- language switcher (FR · EN · ES) ---------- */
.lang-switcher { display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 2px; }
.lang-switcher a { text-decoration: none; padding: .25rem .55rem; font-size: .8rem; font-weight: 600; letter-spacing: .03em; border-radius: 999px; color: #c3c9d8; }
.lang-switcher a.on { background: #fff; color: var(--ink); }
@media (max-width: 420px) { .lang-switcher a { padding: .2rem .4rem; } }
.dev-card .meta .langs { font-weight: 600; letter-spacing: .03em; }

/* ---------- profile views (/account/views) ---------- */
.avatar-sm { width: 40px; height: 40px; }
.avatar-sm.avatar-initials { font-size: .85rem; }
.views-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1rem; }
.views-stats .stat { padding: 1rem 1.2rem; display: flex; flex-direction: column; }
.views-stats .stat b { font-size: 2rem; line-height: 1.1; }
.views-stats .stat span { color: var(--muted, #667); font-size: .9rem; }
.views-grid { margin-bottom: 1rem; }
.bars { display: block; width: 100%; height: 140px; border-bottom: 1px solid rgba(0,0,0,.12); }
.bars .bar { fill: var(--accent); }
.bars .bar.zero { fill: rgba(0,0,0,.1); }
.bars-axis { display: flex; justify-content: space-between; margin-top: .3rem; }
.src-list { list-style: none; padding: 0; margin: 0 0 .8rem; display: grid; gap: .55rem; }
.src-list li { display: grid; grid-template-columns: 9.5rem 1fr 2.5rem; align-items: center; gap: .6rem; }
.src-list .src-bar { display: block; width: 100%; height: 10px; }
.src-list .src-bar .track { fill: rgba(0,0,0,.06); }
.src-list .src-bar .fill { fill: var(--accent); }
.src-list b { text-align: right; }
.viewer-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .7rem; }
.viewer-list li { display: grid; grid-template-columns: 40px 1fr auto; gap: .8rem; align-items: center; }
@media (max-width: 640px) { .views-stats { gap: .5rem; } .views-stats .stat { padding: .7rem .8rem; } .views-stats .stat b { font-size: 1.4rem; } .views-stats .stat span { font-size: .78rem; } .src-list li { grid-template-columns: 7rem 1fr 2rem; } }

/* ---------- code library: votes and comments ---------- */
.vote { display: flex; align-items: center; gap: .7rem; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.vote-btn { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: .45rem .9rem; font: 600 .92rem/1 var(--sans); cursor: pointer; }
.vote-btn:hover { border-color: var(--accent); }
.vote-btn.on { background: #fff3ec; border-color: var(--accent); color: var(--accent-ink); }
.vote-btn.static { cursor: default; }
.res-stats { display: inline-flex; gap: .6rem; }
.comments { margin-top: 1rem; }
.comment-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 1rem; }
.comment { border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.comment:last-child { border-bottom: 0; }
.comment-pending, .comment-hidden { opacity: .75; background: #fafaf7; border-radius: 8px; padding: .6rem; }
.comment-head { display: flex; gap: .7rem; align-items: center; margin-bottom: .4rem; }
.comment-body { white-space: normal; overflow-wrap: anywhere; }
.comment-actions { display: flex; gap: .8rem; align-items: center; margin-top: .3rem; }
.comment-actions form { margin: 0; display: inline-flex; gap: .4rem; align-items: center; }
.report-comment summary { cursor: pointer; color: var(--muted); }
.tag { font-size: .72rem; background: #eef2ff; color: #3730a3; border-radius: 999px; padding: .1rem .5rem; font-weight: 600; }
.comment-form textarea { width: 100%; }

/* ---------- events ---------- */
.event-list { display: grid; gap: .9rem; }
.event-card { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1rem 1.2rem; text-decoration: none; color: inherit; }
.event-card h3 { margin: .25rem 0 .3rem; font-size: 1.1rem; }
.event-card p { margin: .1rem 0; }
.date-block { flex: none; width: 64px; text-align: center; border-radius: 12px; background: var(--ink); color: #fff; padding: .45rem 0 .5rem; }
.date-block span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: #f0b08e; }
.date-block b { display: block; font-size: 1.6rem; line-height: 1.1; }
.tabs { margin: 0 0 1rem; }
.tabs a[aria-current] { font-weight: 700; color: var(--ink); text-decoration: none; }
.kind-online { background: #e0f2fe; color: #075985; }
.kind-in_person { background: #ecfccb; color: #3f6212; }
.kind-hybrid { background: #f3e8ff; color: #6b21a8; }
.event-side .btn-block { margin: .8rem 0 .5rem; }
.cal-links { margin: .4rem 0 .8rem; }
.break { overflow-wrap: anywhere; }
@media (max-width: 560px) { .date-block { width: 52px; } .date-block b { font-size: 1.3rem; } }
.event-card .res-top { justify-content: flex-start; gap: .7rem; }
.nav-right .btn { white-space: nowrap; }
.nav-links a, .nav-links .link-btn { padding: .45rem .4rem; font-size: .9rem; } .nav-links { gap: .1rem; }

/* "new events" counter in the menu */
.nav-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 3px;
  border-radius: 999px; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700; line-height: 1; vertical-align: 2px; box-shadow: 0 0 0 2px var(--ink); }
.nav-toggle { position: relative; }
.nav-toggle.has-news::after { content: ''; position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--ink); }

/* event form: date and time boxes with calendar / clock icons (start – end on one row) */
.when { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.dt-pair { display: flex; gap: .5rem; }
.dt-box { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 1px 3px rgba(17,24,39,.08); overflow: hidden; cursor: pointer; margin: 0; }
.dt-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232,105,42,.15); }
.dt-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; background: #f3f4f6; border-right: 1px solid var(--line); color: var(--ink); }
.dt-box input { border: 0 !important; box-shadow: none !important; outline: none; background: transparent; padding: .55rem .6rem; font: inherit; color: var(--ink); min-width: 0; width: 8rem; cursor: pointer; }
.dt-box.dt-time input { width: 6.7rem; }
.dt-box input::-webkit-calendar-picker-indicator { display: none; }
.when-dash { color: var(--muted); font-size: 1.3rem; padding: 0 .1rem; }
.when-row legend { margin-bottom: .4rem; }
@media (max-width: 640px) {
  .when { flex-direction: column; align-items: stretch; } .when-dash { display: none; }
  .dt-pair { width: 100%; } .dt-box { flex: 1.25 1 0; min-width: 0; } .dt-box.dt-time { flex: 1 1 0; }
  .dt-box input, .dt-box.dt-time input { width: 100%; padding: .55rem .45rem; }
}
