/* Tau Iota Lambda members portal. Layout modeled on the fraternity's AlphaMX
   portal: black utility strip, white header with horizontal menu, black pill
   buttons and gold-striped panels. */
:root {
  --black: #08080a; --ink: #1b1b1f; --gold: #c9a13b; --gold-bright: #e6c466; --gold-deep: #94751f;
  --bg: #f4f2ec; --white: #fff; --text: #1b1a17; --muted: #6a6457; --line: #dcd6c8;
  --ok: #1f6b3a; --err: #a12626;
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 "Archivo", system-ui, sans-serif; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--gold-deep); }
a:hover { color: var(--black); }
h1, h2, h3 { font-family: var(--display); margin: 0; }
h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 300; line-height: 1.1; }
p { margin: 0 0 0.8em; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px); }
.muted { color: var(--muted); } .small { font-size: 0.86rem; } .center { text-align: center; }
.gold-text { color: var(--gold-deep); font-weight: 600; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Strip + header */
.strip { background: var(--black); color: #fff; font-size: 0.8rem; }
.strip .wrap { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.strip a { color: #fff; text-decoration: none; } .strip a:hover { color: var(--gold-bright); }
.strip-user { display: flex; gap: 8px; align-items: center; }
.strip form { display: inline; } .strip button { background: none; border: 0; color: #fff; font: inherit; cursor: pointer; padding: 0; }
.strip button:hover { color: var(--gold-bright); }
.top { background: var(--white); border-bottom: 3px solid var(--gold); box-shadow: 0 2px 10px rgba(0,0,0,.06); position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--black); flex: none; }
.brand img { height: 60px; }
.brand b { display: block; font-family: var(--display); font-stretch: 70%; font-weight: 800; text-transform: uppercase; font-size: 1.35rem; letter-spacing: .04em; line-height: 1; }
.brand i { display: block; font-style: normal; font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-deep); margin-top: 5px; font-weight: 600; }
.mainnav { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 2px; margin-left: auto; }
.mainnav a { text-decoration: none; color: var(--text); padding: 10px 14px; border-radius: 14px; border: 1px solid transparent; font-size: .95rem; text-align: center; white-space: nowrap; line-height: 1.25; display: block; }
.mainnav a:hover { color: var(--gold-deep); }
.mainnav a.on { border-color: var(--gold); color: var(--black); font-weight: 600; }
.mainnav a.admin { color: var(--gold-deep); }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 11px 10px; cursor: pointer; }
.menu-btn span { display: block; height: 2px; background: var(--black); margin-bottom: 6px; }
@media (max-width: 1100px) {
  .menu-btn { display: block; }
  .top .wrap { flex-wrap: wrap; min-height: 68px; } .brand img { height: 46px; }
  .mainnav { display: none; width: 100%; flex-direction: column; padding-bottom: 12px; }
  .nav-open .mainnav { display: flex; }
  .mainnav { align-items: stretch; }
  .mainnav a { text-align: left; }
}

.main { padding-top: 28px; padding-bottom: 56px; flex: 1; }
.foot { background: var(--black); color: rgba(255,255,255,.6); font-size: .8rem; padding: 18px 0; text-align: center; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head p { margin: 6px 0 0; }
.crumbs a { text-decoration: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--black); color: #fff; border: 0; border-radius: 999px; padding: 11px 26px; font: 600 .92rem "Archivo", sans-serif; text-decoration: none; cursor: pointer; transition: background .2s, color .2s; white-space: nowrap; }
.btn:hover { background: var(--gold-deep); color: #fff; }
.btn--gold { background: var(--gold); color: var(--black); } .btn--gold:hover { background: var(--gold-bright); color: var(--black); }
.btn--grey { background: #6d6d70; } .btn--sm { padding: 7px 16px; font-size: .82rem; } .btn--block { width: 100%; padding: 14px; }
.linklike { background: none; border: 0; padding: 0; color: var(--gold-deep); font: inherit; font-size: .86rem; cursor: pointer; text-decoration: underline; }
.linklike:hover { color: var(--err); } .linklike.light { color: #fff; }
.inline-form { display: inline; margin-left: 10px; }

/* Panels (AlphaMX-style header bar with a gold stripe) */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 4px; margin-bottom: 22px; overflow: hidden; }
.panel-head { background: var(--ink); color: #fff; padding: 9px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 4px solid var(--gold); font-size: .84rem; }
.panel-head.sub { border-top: 1px solid var(--line); }
.panel-head h2 { font-size: .86rem; font-weight: 600; letter-spacing: .04em; }
.panel-head a { color: var(--gold-bright); }
.panel-body { padding: 18px; }
.narrow { max-width: 520px; } .narrow.wide { max-width: 860px; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.cols--form { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); }
@media (max-width: 900px) { .cols, .cols--form { grid-template-columns: 1fr; gap: 0; } }

/* Forms */
.stack { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-size: .84rem; font-weight: 600; }
label small { font-weight: 400; color: var(--muted); }
input, select, textarea { font: inherit; font-weight: 400; color: inherit; width: 100%; padding: 10px 12px; border: 1px solid #c9c3b4; border-radius: 4px; background: #fff; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,161,59,.25); }
input[type=file] { padding: 8px; background: #faf8f3; } input[type=checkbox] { width: auto; }
textarea { resize: vertical; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.inline input:not([type=checkbox]), .inline select { flex: 1; min-width: 160px; width: auto; }
.check { display: flex; align-items: center; gap: 6px; font-weight: 400; white-space: nowrap; }

.flash { padding: 12px 16px; border-radius: 4px; margin-bottom: 18px; border-left: 4px solid; background: #fff; }
.flash--ok { border-color: var(--ok); } .flash--error { border-color: var(--err); color: var(--err); }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th { text-align: left; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 10px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 16px; border-bottom: 1px solid #ece7db; vertical-align: top; }
tr:last-child td { border-bottom: 0; } tr.off { opacity: .5; }
.num { text-align: right; white-space: nowrap; } td form { display: inline; }
.fname { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 600; }
.fname:hover { color: var(--gold-deep); }
.ico { width: 20px; height: 16px; flex: none; border-radius: 2px; }
.ico--folder { background: var(--gold); position: relative; margin-top: 3px; }
.ico--folder::before { content: ""; position: absolute; left: 0; top: -3px; width: 9px; height: 4px; background: var(--gold); border-radius: 2px 2px 0 0; }
.ico--file { width: 14px; height: 18px; margin: 0 3px; border: 2px solid #8a8577; background: #fff; }
.badge { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: #ece7db; color: var(--muted); }
.badge--submitted { background: #fbf0cf; color: #7a5b00; } .badge--approved { background: #d9ecf9; color: #0b4c7a; }
.badge--paid { background: #d8efdf; color: var(--ok); } .badge--denied { background: #f6dada; color: var(--err); }

/* Dashboard */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.tile { background: var(--black); color: #fff; padding: 22px; border-radius: 4px; border-bottom: 4px solid var(--gold); }
.tile b { display: block; font-family: var(--display); font-stretch: 68%; font-size: 2.8rem; font-weight: 800; color: var(--gold); line-height: 1; font-variant-numeric: tabular-nums; }
.tile span { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.actions-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.quick { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 4px; padding: 16px 18px; text-decoration: none; color: var(--text); transition: transform .2s, box-shadow .2s; }
.quick:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(0,0,0,.4); color: var(--text); }
.quick b { display: block; } .quick span { font-size: .84rem; color: var(--muted); }
@media (max-width: 900px) { .tiles, .actions-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .actions-row { grid-template-columns: 1fr; } .pair { grid-template-columns: 1fr; } }
.note { padding: 10px 0; border-bottom: 1px solid #ece7db; } .note:last-child { border: 0; } .note p { margin-bottom: 2px; white-space: pre-wrap; }
.rowlink { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #ece7db; text-decoration: none; color: var(--text); }
.rowlink:last-child { border: 0; } a.rowlink:hover b { color: var(--gold-deep); }

/* Directory */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 16px; display: flex; gap: 14px; align-items: center; }
.card-main { display: grid; gap: 1px; flex: 1; min-width: 0; font-size: .9rem; } .card-main a { overflow: hidden; text-overflow: ellipsis; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--black); color: var(--gold); display: grid; place-items: center; font-family: var(--display); font-weight: 800; flex: none; font-size: .95rem; }

/* Requests + report */
.request { padding: 14px 0; border-bottom: 1px solid #ece7db; } .request:first-child { padding-top: 0; } .request:last-child { border: 0; padding-bottom: 0; }
.request-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; } .request-top b { font-size: 1.25rem; }
.request p { margin-bottom: 4px; }
.report h3 { font-size: 1rem; margin: 22px 0 8px; padding-bottom: 6px; border-bottom: 2px solid var(--gold); } .report h3:first-child { margin-top: 0; }
.report ul { margin: 0 0 8px; padding-left: 20px; }
.big { font-size: 5rem; font-weight: 800; color: var(--gold-deep); }

/* Sign-in */
body.auth { background: var(--black) radial-gradient(circle at 50% 0%, #2a2413, var(--black) 60%); }
body.auth .main { display: grid; place-items: center; padding: 32px 16px; }
.auth-card { background: #fff; width: 100%; max-width: 420px; padding: 36px 32px; border-radius: 6px; border-top: 5px solid var(--gold); text-align: center; }
.auth-card .stack { text-align: left; margin: 22px 0 18px; } .auth-card h1 { font-weight: 800; font-stretch: 70%; text-transform: uppercase; }
.auth-logo { height: 110px; margin: 0 auto 12px; display: block; }
.auth-card .linklike { color: var(--muted); }

/* Chat */
body.chat-page .main { max-width: none; padding: 0; display: flex; } body.chat-page .foot { display: none; }
.chat { display: grid; grid-template-columns: 270px minmax(0, 1fr); flex: 1; height: calc(100vh - 121px); min-height: 420px; width: 100%; }
.chat-side { background: var(--ink); color: #ddd; padding: 16px 10px; overflow-y: auto; }
.chat-side h3 { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 14px 10px 6px; }
.chat-side h3:first-child { margin-top: 0; }
.chat-side a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 6px; color: #d6d3cb; text-decoration: none; font-size: .93rem; }
.chat-side a:hover { background: rgba(255,255,255,.07); color: #fff; } .chat-side a.on { background: var(--gold); color: var(--black); font-weight: 700; }
.chat-side em { font-style: normal; background: #c0392b; color: #fff; font-size: .7rem; font-weight: 700; border-radius: 999px; padding: 1px 7px; }
.chat-new { display: flex; gap: 6px; margin: 6px 10px 0; }
.chat-new input, .chat-new select { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.15); color: #fff; padding: 6px 8px; font-size: .85rem; }
.chat-new select option { color: #000; }
.chat-new button { background: var(--gold); border: 0; border-radius: 4px; width: 34px; font-weight: 800; cursor: pointer; }
.chat-main { display: flex; flex-direction: column; background: #fff; min-width: 0; min-height: 0; }
.chat-main header { display: flex; align-items: baseline; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.chat-main header h2 { font-size: 1.15rem; } .chat-back { display: none; text-decoration: none; font-size: 1.2rem; color: var(--black); }
.chat-log { flex: 1; overflow-y: auto; padding: 16px 20px; }
.chat-day { text-align: center; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 14px 0 10px; }
.msg { display: flex; gap: 10px; margin-top: 12px; max-width: 780px; } .msg .avatar { width: 36px; height: 36px; font-size: .78rem; }
.msg.cont { margin-top: 3px; } .msg.cont .avatar { visibility: hidden; height: 0; } .msg.cont .meta { display: none; }
.bubble { min-width: 0; } .bubble .meta { font-size: .78rem; color: var(--muted); } .bubble .meta b { color: var(--text); font-size: .9rem; }
.bubble p { margin: 2px 0 0; background: #f1eee6; padding: 8px 12px; border-radius: 4px 14px 14px 14px; white-space: pre-wrap; overflow-wrap: anywhere; display: inline-block; }
.msg.mine { margin-left: auto; flex-direction: row-reverse; } .msg.mine .bubble { text-align: right; }
.msg.mine .bubble p { background: var(--black); color: #fff; border-radius: 14px 4px 14px 14px; text-align: left; }
.chat-form { display: flex; gap: 10px; padding: 12px 20px 16px; border-top: 1px solid var(--line); align-items: flex-end; }
.chat-form textarea { resize: none; border-radius: 20px; padding: 10px 16px; }
@media (max-width: 760px) {
  .chat { grid-template-columns: 1fr; height: calc(100vh - 105px); } .chat-side { display: none; } .chat-back { display: inline; }
  .chat.show-side .chat-side { display: block; } .chat.show-side .chat-main { display: none; }
}

/* Menu groups */
.navgroup { position: relative; }
.navdrop { display: none; position: absolute; right: 0; top: 100%; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); box-shadow: 0 16px 32px -16px rgba(0,0,0,.4); min-width: 220px; padding: 6px 0; z-index: 30; }
.navgroup:hover .navdrop, .navgroup:focus-within .navdrop { display: block; }
.navdrop a { display: block; text-align: left; border-radius: 0; padding: 9px 16px; border: 0; }
.navdrop a:hover { background: #f4f2ec; }
@media (max-width: 1100px) { .navdrop { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 0 16px; } }

/* Calendar */
.event { display: grid; grid-template-columns: 76px 1fr auto; gap: 18px; padding: 16px 18px; border-bottom: 1px solid #ece7db; align-items: start; }
.event:last-child { border-bottom: 0; }
.event-date { background: var(--black); color: #fff; text-align: center; border-radius: 4px; padding: 8px 4px; border-bottom: 3px solid var(--gold); }
.event-date b { display: block; font-family: var(--display); font-stretch: 68%; font-size: 1.9rem; line-height: 1; color: var(--gold); }
.event-date span { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.event h3 { font-size: 1.1rem; margin-bottom: 2px; } .event p { margin: 2px 0; }
.event-side { display: grid; gap: 6px; justify-items: end; }
.kind { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); }
.month-head { padding: 8px 18px; background: #f4f2ec; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { .event { grid-template-columns: 60px 1fr; } .event-side { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; } }

/* Report tracker */
.tracker { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.track { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; color: var(--text); font-size: .9rem; }
.track::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: #d9d4c7; flex: none; }
.track.done::before { background: var(--ok); } .track.done { background: #f0f7f2; border-color: #cfe5d6; }
.track:hover { border-color: var(--gold); color: var(--text); }
.sumrow { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 14px; font-size: .9rem; } .sumrow b { font-size: 1.2rem; display: block; }
pre.lang { white-space: pre-wrap; font: inherit; background: #f7f5ef; border-left: 3px solid var(--gold); padding: 10px 12px; margin: 6px 0 10px; }

/* Featured meeting banner */
.feature { background: var(--black); color: #fff; border-radius: 4px; border-left: 6px solid var(--gold); padding: 22px 26px; margin-bottom: 22px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.feature h2 { font-stretch: 70%; font-weight: 800; text-transform: uppercase; font-size: clamp(1.5rem, 3vw, 2.2rem); margin-top: 4px; }
.feature .kind { color: var(--gold); } .feature p { margin: 4px 0 0; color: rgba(255,255,255,.75); } .feature .muted { color: rgba(255,255,255,.6); }
.btn--light { background: #fff; color: var(--black); } .btn--light:hover { background: var(--gold-bright); color: var(--black); }
.agenda-up label { display: inline; font-weight: 400; cursor: pointer; }

/* My Notes */
.notes .chat-side { width: auto; }
.notes-new { margin: 0 6px 10px; } .notes-filter { margin: 0 6px 8px; width: calc(100% - 12px); background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.15); color: #fff; padding: 8px 10px; font-size: .88rem; }
.notes-filter::placeholder { color: rgba(255,255,255,.5); }
.note-link span { display: grid; gap: 1px; min-width: 0; } .note-link b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note-link small { color: rgba(255,255,255,.5); font-size: .74rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-side a.note-link.on small { color: rgba(0,0,0,.6); } .note-link[hidden] { display: none; }
.notes-empty, .notes-private { color: rgba(255,255,255,.5); font-size: .78rem; margin: 14px 10px 0; }
.notes-head { gap: 10px !important; align-items: center !important; }
.notes-head input { border: 0; padding: 4px 0; background: none; box-shadow: none !important; }
#note-title { font-family: var(--display); font-size: 1.5rem; font-weight: 600; flex: 1; min-width: 0; }
#note-section { width: 170px; flex: none; font-size: .82rem; color: var(--gold-deep); font-weight: 600; text-align: right; }
.notes-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 8px 20px; border-bottom: 1px solid var(--line); background: #faf8f3; }
.notes-bar button[data-cmd] { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 5px 10px; font: inherit; font-size: .84rem; cursor: pointer; min-width: 34px; }
.notes-bar button[data-cmd]:hover { border-color: var(--gold); }
#note-status { margin-left: auto; } #note-delete { margin-left: 12px; }
.notes-body { flex: 1; overflow-y: auto; padding: 22px clamp(20px, 5vw, 56px); font-size: 1.05rem; line-height: 1.6; outline: none; }
.notes-body:empty::before { content: attr(data-placeholder); color: #aaa497; }
.notes-body h2 { font-size: 1.35rem; margin: .8em 0 .3em; } .notes-body h3 { font-size: 1.1rem; margin: .8em 0 .3em; }
.notes-body ul, .notes-body ol { padding-left: 24px; margin: 0 0 .8em; } .notes-body p, .notes-body div { margin: 0 0 .5em; }
@media (max-width: 760px) { #note-section { width: 96px; } .notes-bar { padding: 8px 12px; } #note-status { width: 100%; margin: 4px 0 0; } }
