/* Tamraght Forum components. Tokens mirror the Tamraght theme. */
:root {
	--bg: #F2EADF; --surface: #FBF7F1; --sand-2: #E9DECF; --ink: #1C2B33; --muted: #5E625F; --line: #DDD1C1;
	--accent: #B8482A; --accent-ink: #9C3A20; --ocean: #17485A; --ocean-2: #123A49; --ocean-ink: #EAF1F0;
	--success: #2F6B4A; --warning: #9A6A12; --r-sm: 6px; --r-md: 14px; --r-pill: 999px;
}

.tmf-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tmf-muted { color: var(--muted); }
.tmf-ico { width: 1em; height: 1em; vertical-align: -0.14em; flex-shrink: 0; }
.tmf-h3 { font-size: 1.15rem; margin-top: 1.6em; }
.tmf-lede { color: var(--muted); font-size: 1.06rem; max-width: 60ch; margin: 0; }
.tmf-stack { display: grid; gap: 20px; align-content: start; }

/* Buttons & links */
.tmf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 22px; border-radius: var(--r-pill); border: 1.5px solid var(--accent); background: var(--accent); color: var(--surface); font-weight: 600; font-size: .98rem; line-height: 1.1; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, transform .1s; }
.tmf-btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--surface); }
.tmf-btn:active { transform: translateY(1px); }
.tmf-btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.tmf-btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.tmf-btn--sm { min-height: 34px; padding: 6px 14px; font-size: .88rem; }
.tmf-btn--on { background: var(--ocean); border-color: var(--ocean); color: var(--ocean-ink); }
.tmf-btn--ghost.tmf-btn--on { background: var(--sand-2); border-color: var(--ocean); color: var(--ocean); }
.tmf-btn.is-disabled { opacity: .5; pointer-events: none; }
.tmf-link { font-weight: 600; color: var(--ocean); text-decoration: none; font-size: .92rem; }
.tmf-link:hover { color: var(--accent); text-decoration: underline; }
.tmf-linkbtn { background: none; border: 0; padding: 0; color: var(--muted); font-weight: 600; font-size: .92rem; cursor: pointer; }
.tmf-linkbtn:hover { color: var(--accent); text-decoration: underline; }
.tmf-inline-form { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.tmf-row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* Notices */
.tmf-notice { border-radius: var(--r-sm); padding: 12px 16px; margin-bottom: 18px; border: 1px solid; font-weight: 600; }
.tmf-notice ul { margin: 0; padding-left: 1.1em; }
.tmf-notice--ok { background: #E3EEE6; border-color: #B7D2BF; color: var(--success); }
.tmf-notice--err { background: #F6E1DA; border-color: #E7B7A8; color: var(--accent-ink); }
.tmf-notice--warn { background: #F5EAD2; border-color: #E2CC9A; color: #7A5410; }

/* Avatars & badges */
.tmf-av { border-radius: 50%; object-fit: cover; flex-shrink: 0; display: inline-block; background: var(--sand-2); }
.tmf-av--i { display: inline-grid; place-items: center; font-family: var(--font-display); font-weight: 800; color: var(--surface); line-height: 1; }
.tmf-av--h0 { background: var(--ocean); } .tmf-av--h1 { background: var(--accent); } .tmf-av--h2 { background: #5B6B2E; } .tmf-av--h3 { background: #8A6A4A; } .tmf-av--h4 { background: #2C6377; }
.tmf-badge { display: inline-flex; align-items: center; gap: 4px; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: var(--r-pill); background: var(--sand-2); color: var(--ink); line-height: 1.3; vertical-align: 2px; }
.tmf-badge--artist { background: var(--ocean); color: var(--ocean-ink); }
.tmf-badge--biz { background: var(--ink); color: var(--surface); }
.tmf-badge--mod { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.tmf-badge--warn { background: #F5EAD2; color: #7A5410; }
.tmf-badge--ok { background: #E3EEE6; color: var(--success); }
.tmf-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: var(--surface); font-family: var(--font-body); font-size: .72rem; font-weight: 600; vertical-align: 2px; }
.tmf-user { font-weight: 600; color: var(--ink); text-decoration: none; }
a.tmf-user:hover { color: var(--accent); }
.tmf-meta { font-size: .88rem; color: var(--muted); }
.tmf-meta a { color: var(--muted); }

/* Panels & cards */
.tmf-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: clamp(18px, 3vw, 28px); margin-bottom: 22px; }
.tmf-card > h2 { font-size: 1.35rem; }
.tmf-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; }
.tmf-panel h2 { font-size: 1.12rem; }
.tmf-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.tmf-sec-head h2 { margin: 0; font-size: 1.5rem; }
.tmf-panel .tmf-sec-head h2 { font-size: 1.12rem; }
.tmf-sec-head--light h2 { color: var(--ocean-ink); }
.tmf-sec-head--light .tmf-link { color: #F4B39E; }

/* Empty states */
.tmf-empty { text-align: center; padding: 48px 20px; border: 1.5px dashed var(--line); border-radius: var(--r-md); color: var(--muted); background: color-mix(in srgb, var(--surface) 55%, transparent); }
.tmf-empty__art { width: 120px; height: 60px; color: var(--ocean); margin: 0 auto 12px; display: block; }
.tmf-empty h3 { color: var(--ink); font-size: 1.3rem; }
.tmf-empty p { max-width: 46ch; margin: 0 auto 18px; }

/* Page head */
.tmf-page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 32px; flex-wrap: wrap; margin-bottom: 26px; }
.tmf-page-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; letter-spacing: -0.025em; margin-bottom: .2em; }
.tmf-page-head__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.tmf-crumbs { display: flex; gap: 8px; font-size: .9rem; color: var(--muted); margin-bottom: 10px; }
.tmf-crumbs a { color: var(--muted); font-weight: 600; text-decoration: none; }
.tmf-crumbs a:hover { color: var(--accent); }
.tmf-search input { min-width: 240px; min-height: 44px; padding: 8px 16px 8px 40px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='6.5' fill='none' stroke='%235E625F' stroke-width='2'/%3E%3Cpath d='M16 16l4 4' stroke='%235E625F' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 14px center / 18px; }
.tmf-search--wide { margin-bottom: 18px; }
.tmf-search--wide input { width: 100%; max-width: 420px; }
.tmf-access { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ocean); background: #17485A14; padding: 4px 10px; border-radius: var(--r-pill); margin-bottom: 10px; }
.tmf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tmf-chips a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9rem; padding: 7px 14px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); }
.tmf-chips a:hover { border-color: var(--ink); color: var(--ink); }
.tmf-chips a[aria-current] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.tmf-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.tmf-tabs a { padding: 12px 16px; color: var(--muted); font-weight: 600; text-decoration: none; border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tmf-tabs a:hover { color: var(--ink); }
.tmf-tabs a[aria-current] { color: var(--ink); border-color: var(--accent); }

/* Hero */
.tmf-hero { display: grid; grid-template-columns: 1.35fr .65fr; align-items: center; gap: clamp(24px, 5vw, 64px); padding: clamp(8px, 3vw, 28px) 0 clamp(28px, 5vw, 56px); }
.tmf-hero__title { font-size: clamp(2.4rem, 5.4vw, 4.1rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; margin-bottom: 20px; }
.tmf-hero__title em { font-style: normal; color: var(--accent); }
.tmf-hero__sub { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 50ch; margin-bottom: 28px; }
.tmf-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.tmf-hero__media { position: relative; }
.tmf-hero__art { width: 100%; max-width: 480px; margin-left: auto; display: block; }
@media (max-width: 760px) {
	.tmf-hero { grid-template-columns: 1fr; }
	.tmf-hero__media { order: -1; max-width: 300px; }
	.tmf-hero__art { margin: 0; }
}

/* Home */
.tmf-home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.tmf-home-side { display: grid; gap: 20px; }
@media (max-width: 960px) { .tmf-home-grid { grid-template-columns: 1fr; } }
.tmf-room-list { list-style: none; margin: 0; padding: 0; }
.tmf-room-list li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.tmf-room-list li:first-child { border-top: 0; }
.tmf-room-list a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); text-decoration: none; }
.tmf-room-list a:hover { color: var(--accent); }
.tmf-room-list .tmf-ico { color: var(--ocean); }
.tmf-room-list li.is-locked a { color: var(--muted); }

.tmf-band { margin-top: clamp(40px, 6vw, 72px); background: var(--ocean); color: var(--ocean-ink); border-radius: 22px; overflow: hidden; position: relative; }
.tmf-band::after { content: ""; position: absolute; inset: auto -10% -60px; height: 140px; background: radial-gradient(60% 100% at 50% 100%, #B8482A40, transparent 70%); pointer-events: none; }
.tmf-band__inner { position: relative; z-index: 1; padding: clamp(24px, 4vw, 44px); }
.tmf-band__empty { color: #C9D8D7; }
.tmf-band__note { margin: 22px 0 0; color: #C9D8D7; }
.tmf-band__note a { color: #F4B39E; font-weight: 600; }
.tmf-artist-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; scrollbar-color: #EAF1F055 transparent; }
.tmf-artist-strip > * { scroll-snap-align: start; }

/* Topic rows */
.tmf-rows { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.tmf-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 76px 120px; gap: 16px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); }
.tmf-row:first-child { border-top: 0; }
.tmf-row:hover { background: #F7F1E8; }
.tmf-row__title { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 1.04rem; color: var(--ink); text-decoration: none; line-height: 1.3; }
.tmf-row__title:hover { color: var(--accent); }
.tmf-flag { color: var(--ocean); display: inline-flex; }
.tmf-row__stat { text-align: center; line-height: 1.1; }
.tmf-row__stat strong { display: block; font-family: var(--font-display); font-size: 1.2rem; }
.tmf-row__stat span { font-size: .75rem; color: var(--muted); }
.tmf-row__last { display: flex; align-items: center; gap: 8px; justify-content: flex-end; font-size: .85rem; color: var(--muted); }
@media (max-width: 640px) {
	.tmf-row { grid-template-columns: 36px minmax(0, 1fr); gap: 4px 12px; padding: 12px 14px; }
	.tmf-row__av { grid-row: span 2; }
	.tmf-row__stat { grid-column: 2; display: flex; gap: 4px; align-items: baseline; text-align: left; font-size: .85rem; }
	.tmf-row__stat strong { display: inline; font-size: .9rem; font-family: inherit; }
	.tmf-row__last { display: none; }
}

/* Forum index */
.tmf-forum-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tmf-forum { display: grid; grid-template-columns: minmax(0, 1fr) 90px 220px; gap: 20px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--ocean); border-radius: var(--r-md); padding: 18px 22px; }
.tmf-forum--artist, .tmf-forum--business { border-left-color: var(--accent); }
.tmf-forum--members { border-left-color: #8A6A4A; }
.tmf-forum h2 { font-size: 1.3rem; margin-bottom: 6px; }
.tmf-forum h2 a { color: var(--ink); text-decoration: none; }
.tmf-forum h2 a:hover { color: var(--accent); }
.tmf-forum p { margin: 0; color: var(--muted); }
.tmf-forum .tmf-access { margin-bottom: 6px; }
.tmf-forum__stat { text-align: center; line-height: 1.1; }
.tmf-forum__stat strong { display: block; font-family: var(--font-display); font-size: 1.6rem; }
.tmf-forum__stat span { font-size: .78rem; color: var(--muted); }
.tmf-forum__stat--lock { font-size: 1.4rem; color: var(--muted); }
.tmf-forum__last { display: grid; gap: 2px; font-size: .9rem; }
.tmf-forum__last a { font-weight: 600; color: var(--ink); text-decoration: none; }
.tmf-forum__last a:hover { color: var(--accent); }
.tmf-forum.is-locked { background: color-mix(in srgb, var(--surface) 60%, var(--bg)); }
@media (max-width: 760px) { .tmf-forum { grid-template-columns: 1fr auto; } .tmf-forum__last { grid-column: 1 / -1; } }

/* Pager */
.tmf-pager { display: flex; gap: 6px; flex-wrap: wrap; margin: 22px 0; }
.tmf-pager a, .tmf-pager__cur, .tmf-pager__gap { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-pill); font-weight: 600; text-decoration: none; }
.tmf-pager a { border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.tmf-pager a:hover { border-color: var(--ink); }
.tmf-pager__cur { background: var(--ink); color: var(--surface); }

/* Forms */
.tmf-form { display: grid; gap: 16px; }
.tmf-form > h2 { margin: 0; }
.tmf-field { display: grid; gap: 6px; align-content: start; }
.tmf-field > label, .tmf-label, .tmf-form legend, .tmf-report__form label, .tmf-reject label { font-weight: 600; font-size: .92rem; }
.tmf-form input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]), .tmf-form select, .tmf-form textarea, .tmf-report textarea, .tmf-invite__filter {
	width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #FFFDF9; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.tmf-form textarea, .tmf-report textarea { min-height: 0; resize: vertical; line-height: 1.5; }
.tmf-form input:focus, .tmf-form select:focus, .tmf-form textarea:focus, .tmf-report textarea:focus, .tmf-invite__filter:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px #B8482A33; }
.tmf-form input[type=file] { font-size: .9rem; }
.tmf-hint { margin: 0; font-size: .84rem; color: var(--muted); }
.tmf-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding-top: 4px; }
.tmf-actions--split { justify-content: space-between; }
.tmf-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tmf-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 720px) { .tmf-grid2 { grid-template-columns: 1fr; } .tmf-grid4 { grid-template-columns: 1fr 1fr; } }
.tmf-check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: .95rem; cursor: pointer; }
.tmf-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.tmf-num { max-width: 90px; }
.tmf-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.tmf-form legend { padding: 0; margin-bottom: 10px; }
.tmf-hp { position: absolute; left: -9999px; }
.tmf-extra { display: grid; gap: 14px; border-top: 1px dashed var(--line) !important; padding-top: 14px !important; }
.js .tmf-extra[hidden] { display: none; }

.tmf-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.tmf-types legend { grid-column: 1 / -1; }
.tmf-type { position: relative; cursor: pointer; }
.tmf-type input { position: absolute; opacity: 0; inset: 0; }
.tmf-type__body { display: grid; gap: 4px; height: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: #FFFDF9; font-size: .88rem; color: var(--muted); transition: border-color .15s, background .15s; }
.tmf-type__body strong { font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); }
.tmf-type input:checked + .tmf-type__body { border-color: var(--accent); background: #B8482A0D; box-shadow: inset 0 0 0 1px var(--accent); }
.tmf-type input:focus-visible + .tmf-type__body { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Auth */
.tmf-auth { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 5vw, 56px); align-items: start; }
.tmf-auth--narrow { grid-template-columns: .9fr 1fr; max-width: 920px; }
.tmf-auth__intro h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; letter-spacing: -0.025em; }
.tmf-auth__intro { position: sticky; top: 100px; }
@media (max-width: 820px) { .tmf-auth, .tmf-auth--narrow { grid-template-columns: 1fr; } .tmf-auth__intro { position: static; } }

/* Topic */
.tmf-topic-head { margin-bottom: 18px; }
.tmf-topic-head h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; letter-spacing: -0.02em; max-width: 30ch; }
.tmf-topic-flags { display: flex; gap: 8px; flex-wrap: wrap; }
.tmf-modbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: var(--r-md); background: #B8482A0F; border: 1px dashed #B8482A66; }
.tmf-modbar__label { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-right: 4px; }
.tmf-modbar select { min-height: 34px; padding: 4px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.tmf-thread { display: grid; gap: 14px; }
.tmf-post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 24px; scroll-margin-top: 100px; }
.tmf-post--op { border-top: 4px solid var(--accent); }
.tmf-post:target { box-shadow: 0 0 0 3px #B8482A55; }
.tmf-post__head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.tmf-post__who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tmf-post__body { max-width: 72ch; overflow-wrap: anywhere; }
.tmf-post__body p:last-child { margin-bottom: 0; }
.tmf-post__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.tmf-quote { margin: 0 0 12px; padding: 10px 14px; border-left: 3px solid var(--ocean); background: #17485A0D; border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--muted); font-size: .94rem; }
.tmf-quote cite { display: block; font-style: normal; font-weight: 600; color: var(--ocean); font-size: .85rem; margin-bottom: 2px; }
.tmf-report { position: relative; margin-left: auto; }
.tmf-report summary { list-style: none; cursor: pointer; color: var(--muted); font-size: .88rem; font-weight: 600; }
.tmf-report summary::-webkit-details-marker { display: none; }
.tmf-report summary:hover { color: var(--accent); }
.tmf-report__form { position: absolute; right: 0; top: 28px; z-index: 5; width: min(320px, 80vw); display: grid; gap: 8px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 12px 30px #1C2B3322; }
.tmf-reply-box { margin-top: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 24px; }
.tmf-reply-box .tmf-h3 { margin-top: 0; }

/* Dashboard */
.tmf-dash-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.tmf-dash-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 4px; }
.tmf-dash-head__actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.tmf-dash-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .tmf-dash-grid { grid-template-columns: 1fr; } }
.tmf-status { border-radius: var(--r-md); padding: 16px 20px; margin-bottom: 20px; border: 1px solid; }
.tmf-status p { margin: 4px 0 0; }
.tmf-status--pending { background: #F5EAD2; border-color: #E2CC9A; color: #5E430C; }
.tmf-status--rejected { background: #F6E1DA; border-color: #E7B7A8; color: var(--accent-ink); }
.tmf-status--ok { background: #E3EEE6; border-color: #B7D2BF; color: var(--success); }
.tmf-notes, .tmf-simple-list, .tmf-collab-list { list-style: none; margin: 0; padding: 0; }
.tmf-notes li, .tmf-simple-list li, .tmf-collab-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.tmf-notes li:first-child, .tmf-simple-list li:first-child, .tmf-collab-list li:first-child { border-top: 0; }
.tmf-notes li .tmf-muted, .tmf-simple-list li > .tmf-muted { font-size: .82rem; white-space: nowrap; }
.tmf-notes li.is-new { position: relative; padding-left: 14px; }
.tmf-notes li.is-new::before { content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; margin-top: -3px; border-radius: 50%; background: var(--accent); }
.tmf-notes a, .tmf-simple-list a, .tmf-collab-list a { color: var(--ink); font-weight: 600; text-decoration: none; }
.tmf-notes a:hover, .tmf-simple-list a:hover, .tmf-collab-list a:hover { color: var(--accent); }
.tmf-collab-list li > div:first-child { display: grid; }
.tmf-simple-list--actions li { flex-wrap: wrap; }

.tmf-avatar-field { display: flex; gap: 16px; align-items: center; }
.tmf-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.tmf-swatches legend { width: 100%; }
.tmf-swatch { display: grid; justify-items: center; gap: 4px; cursor: pointer; font-size: .8rem; }
.tmf-swatch input { position: absolute; opacity: 0; }
.tmf-swatch span { width: 44px; height: 44px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 3px var(--surface), 0 0 0 1.5px var(--line); }
.tmf-swatch input:checked + span { box-shadow: inset 0 0 0 3px var(--surface), 0 0 0 3px var(--ink); }
.tmf-swatch input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.tmf-swatch em { font-style: normal; color: var(--muted); }
.tmf-layouts { display: flex; flex-wrap: wrap; gap: 12px; }
.tmf-layouts legend { width: 100%; }
.tmf-layout { display: grid; gap: 6px; justify-items: center; cursor: pointer; font-size: .85rem; }
.tmf-layout input { position: absolute; opacity: 0; }
.tmf-layout em { font-style: normal; color: var(--muted); }
.tmf-layout__pic { width: 92px; height: 68px; padding: 6px; border: 1.5px solid var(--line); border-radius: 10px; background: #FFFDF9; display: grid; gap: 4px; }
.tmf-layout__pic i { background: var(--sand-2); border-radius: 3px; }
.tmf-layout--grid .tmf-layout__pic { grid-template-columns: 1fr 1fr; }
.tmf-layout--spotlight .tmf-layout__pic { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr 1fr; }
.tmf-layout--spotlight .tmf-layout__pic i:first-child { grid-row: span 3; }
.tmf-layout--spotlight .tmf-layout__pic i:last-child { display: none; }
.tmf-layout--stack .tmf-layout__pic { grid-template-rows: 2fr 1fr; }
.tmf-layout--stack .tmf-layout__pic i:nth-child(n+3) { display: none; }
.tmf-layout input:checked + .tmf-layout__pic { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.tmf-layout input:checked + .tmf-layout__pic i { background: #B8482A55; }
.tmf-layout input:focus-visible + .tmf-layout__pic { outline: 3px solid var(--accent); outline-offset: 2px; }
.tmf-cover-prev img { border-radius: var(--r-sm); max-height: 140px; width: auto; }
.tmf-upload { grid-template-columns: 1fr auto; align-items: center; margin-bottom: 18px; }
.tmf-upload input[type=file] { grid-column: 1; }
.tmf-drop { grid-column: 1 / -1; display: grid; gap: 4px; padding: 20px; border: 1.5px dashed var(--line); border-radius: var(--r-md); text-align: center; cursor: pointer; color: var(--muted); font-size: .9rem; }
.tmf-drop strong { color: var(--ink); font-size: 1rem; }
.tmf-drop:hover { border-color: var(--accent); }
.tmf-gal-edit { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.tmf-gal-edit li { display: grid; gap: 8px; }
.tmf-gal-edit img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-sm); }
.tmf-gal-edit__row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .85rem; }
.tmf-gal-edit__row .tmf-num { min-height: 34px !important; padding: 4px 8px !important; width: 60px; }

/* Mini events & date tiles */
.tmf-mini-events { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tmf-mini-event { display: flex; align-items: center; gap: 12px; }
.tmf-mini-event > div { display: grid; min-width: 0; flex: 1; }
.tmf-mini-event a { font-weight: 600; color: var(--ink); text-decoration: none; }
.tmf-mini-event a:hover { color: var(--accent); }
.tmf-mini-event .tmf-muted { font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tmf-mini-events--wide { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 20px; gap: 14px; }
.tmf-date { display: inline-grid; place-items: center; width: 52px; height: 56px; flex-shrink: 0; border-radius: 10px; background: var(--ocean); color: var(--ocean-ink); line-height: 1; }
.tmf-date__m { font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; align-self: end; }
.tmf-date__d { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; align-self: start; padding-top: 2px; }

/* Events */
.tmf-month { font-size: 1.3rem; margin: 26px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.tmf-event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.tmf-event-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.tmf-event-card:hover { box-shadow: 0 14px 30px #8A6A4A26; transform: translateY(-2px); }
.tmf-event-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--sand-2); }
.tmf-event-card__media img { width: 100%; height: 100%; object-fit: cover; }
.tmf-event-card__ph { display: block; width: 100%; height: 100%; min-height: 120px; background: radial-gradient(circle at 70% 45%, #B8482A 0 13.6%, transparent 14%), linear-gradient(180deg, #E7D3BC 0 55%, #2C6377 55% 70%, #17485A 70%); }
.tmf-event-card__body { display: flex; gap: 14px; padding: 16px 18px 18px; }
.tmf-event-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.tmf-event-card h3 a { color: var(--ink); text-decoration: none; }
.tmf-event-card h3 a:hover { color: var(--accent); }
.tmf-event-card p { margin: 0 0 6px; font-size: .9rem; }
.tmf-event-card__with { color: var(--ocean); font-weight: 600; }
.tmf-event-card__going { font-weight: 600; color: var(--accent); }

.tmf-event__head { display: grid; grid-template-columns: minmax(0, 1fr); border-radius: var(--r-md); overflow: hidden; background: var(--surface); border: 1px solid var(--line); margin-bottom: 24px; }
.tmf-event__media { aspect-ratio: 21 / 8; overflow: hidden; background: var(--sand-2); }
.tmf-event__media img, .tmf-event__media .tmf-event-card__ph { width: 100%; height: 100%; object-fit: cover; }
.tmf-event__title { display: flex; gap: 18px; align-items: center; padding: 20px 24px; }
.tmf-event__title h1 { font-size: clamp(1.7rem, 3.8vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 4px; }
.tmf-event__title .tmf-date { width: 64px; height: 70px; }
.tmf-event__title .tmf-date__d { font-size: 1.9rem; }
.tmf-event__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.tmf-event__side { display: grid; gap: 16px; }
@media (max-width: 900px) { .tmf-event__grid { grid-template-columns: 1fr; } .tmf-event__media { aspect-ratio: 16 / 9; } }
.tmf-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 22px; }
.tmf-facts > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; }
.tmf-facts dt { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.tmf-facts dd { margin: 0; font-weight: 600; }
.tmf-facts--compact { margin: 14px 0; }
.tmf-facts--compact > div { background: #FFFDF9; }
.tmf-facts__wide { grid-column: 1 / -1; }
.tmf-facts--compact dd { font-weight: 400; overflow-wrap: anywhere; }
.tmf-prose { max-width: 68ch; }
.tmf-lineup { margin-top: 28px; }
.tmf-lineup h2 { font-size: 1.3rem; }
.tmf-lineup ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.tmf-lineup li { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; }
.tmf-lineup li > div { display: grid; flex: 1; }
.tmf-collab-admin { margin-top: 22px; }
.tmf-rsvp__count { font-size: 1.05rem; }
.tmf-rsvp__count strong { font-family: var(--font-display); font-size: 1.8rem; color: var(--accent); }
.tmf-rsvp__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.tmf-faces { display: flex; flex-wrap: wrap; margin-top: 16px; padding-left: 8px; }
.tmf-faces .tmf-av { margin-left: -8px; box-shadow: 0 0 0 2px var(--surface); }
.tmf-faces__more { margin-left: 6px; align-self: center; font-size: .85rem; color: var(--muted); font-weight: 600; }
.tmf-invite__list { list-style: none; margin: 10px 0 0; padding: 0; max-height: 280px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r-sm); background: #FFFDF9; }
.tmf-invite__list li { padding: 8px 12px; border-top: 1px solid var(--line); }
.tmf-invite__list li:first-child { border-top: 0; }
.tmf-invite__list .tmf-check { align-items: center; }
.tmf-invite__list .tmf-check input { margin-top: 0; }

/* Artists */
.tmf-artist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.tmf-artist-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--surface); border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.tmf-artist-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px #1C2B3322; color: var(--ink); }
.tmf-artist-card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--artist); }
.tmf-artist-card__media img { width: 100%; height: 100%; object-fit: cover; }
.tmf-artist-card__ph { display: block; width: 100%; height: 100%; background: radial-gradient(circle at 30% 70%, #FBF7F133 0 18%, transparent 19%), radial-gradient(circle at 75% 30%, #FBF7F122 0 26%, transparent 27%), var(--artist); }
.tmf-artist-card__body { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-top: 4px solid var(--artist); margin-top: -1px; }
.tmf-artist-card__body > span { display: grid; min-width: 0; }
.tmf-artist-card strong { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.15; }
.tmf-artist-card em { font-style: normal; color: var(--muted); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tmf-artist { --artist: #B8482A; }
.tmf-artist__hero { position: relative; margin-bottom: 28px; }
.tmf-artist__cover { height: clamp(180px, 30vw, 360px); border-radius: 22px; overflow: hidden; background: radial-gradient(circle at 78% 40%, #FBF7F12E 0 12%, transparent 12.5%), repeating-linear-gradient(170deg, transparent 0 26px, #FBF7F112 26px 28px), var(--artist); }
.tmf-artist__cover img { width: 100%; height: 100%; object-fit: cover; }
.tmf-artist__id { display: flex; align-items: flex-end; gap: 22px; flex-wrap: wrap; padding: 0 clamp(14px, 3vw, 32px); margin-top: -56px; position: relative; }
.tmf-artist__av { box-shadow: 0 0 0 5px var(--bg); }
.tmf-artist__av.tmf-av--i { background: var(--ink); }
.tmf-artist__id > div:nth-child(2) { flex: 1; min-width: 220px; padding-top: 60px; }
.tmf-artist__disc { margin: 0 0 4px; color: var(--artist); font-weight: 600; letter-spacing: .04em; }
.tmf-artist__id h1 { font-size: clamp(2.2rem, 5.4vw, 3.8rem); font-weight: 800; letter-spacing: -0.03em; margin: 0; }
.tmf-artist__tag { margin: 6px 0 0; font-size: 1.12rem; color: var(--muted); max-width: 52ch; }
.tmf-artist__actions { display: flex; gap: 10px; flex-wrap: wrap; padding-bottom: 6px; }
.tmf-artist .tmf-btn:not(.tmf-btn--ghost) { background: var(--artist); border-color: var(--artist); }
.tmf-artist .tmf-btn:not(.tmf-btn--ghost):hover { filter: brightness(.9); }
.tmf-artist__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; margin-bottom: 34px; }
@media (max-width: 860px) { .tmf-artist__grid { grid-template-columns: 1fr; } }
.tmf-artist__about .tmf-prose { font-size: 1.08rem; }
.tmf-artist__side { display: grid; gap: 16px; }
.tmf-artist__side .tmf-date { background: var(--artist); }
.tmf-artist__links { list-style: none; padding: 0; margin: 18px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tmf-artist__links a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1.5px solid var(--ink); border-radius: var(--r-pill); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; }
.tmf-artist__links a:hover { background: var(--ink); color: var(--surface); }
.tmf-artist__links .tmf-ico { width: 18px; height: 18px; }
.tmf-artist .tmf-report { margin-left: 0; }
.tmf-showcase { display: grid; gap: 14px; }
.tmf-showcase figure { margin: 0; }
.tmf-showcase a { display: block; overflow: hidden; border-radius: 12px; background: var(--sand-2); }
.tmf-showcase img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tmf-showcase a:hover img { transform: scale(1.03); }
.tmf-showcase figcaption { font-size: .88rem; color: var(--muted); margin-top: 6px; }
.tmf-showcase--grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.tmf-showcase--grid a { aspect-ratio: 1; }
.tmf-showcase--spotlight { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tmf-showcase--spotlight figure:first-child { grid-column: span 2; grid-row: span 2; }
.tmf-showcase--spotlight a { aspect-ratio: 1; }
.tmf-showcase--spotlight figure:first-child a { aspect-ratio: auto; height: calc(100% - 0px); }
.tmf-showcase--stack { max-width: 860px; }
.tmf-showcase--stack img { height: auto; }
@media (max-width: 640px) { .tmf-showcase--spotlight { grid-template-columns: 1fr 1fr; } }

/* Moderation */
.tmf-queue { list-style: none; margin: 0; padding: 0; }
.tmf-queue__who { display: flex; gap: 12px; align-items: center; }
.tmf-queue__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; }
.tmf-queue__item h3 { font-size: 1.15rem; margin: 6px 0 10px; }
.tmf-reject summary { list-style: none; }
.tmf-reject summary::-webkit-details-marker { display: none; }
.tmf-reject[open] { flex-basis: 100%; }
.tmf-reject .tmf-form { margin-top: 10px; max-width: 520px; gap: 8px; }
.tmf-table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.tmf-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.tmf-table th { text-align: left; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); }
.tmf-table td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.tmf-cell-user { display: flex; gap: 10px; align-items: center; }
.tmf-cell-user .tmf-badge { margin-left: 6px; }
.tmf-fold { padding: 0; }
.tmf-fold summary { padding: 16px 22px; cursor: pointer; display: flex; gap: 10px; align-items: baseline; }
.tmf-fold .tmf-forum-form { padding: 0 22px 22px; }
.tmf-stack > .tmf-card { margin-bottom: 0; }

/* Lightbox */
.tmf-lightbox { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: #0E1E26EB; padding: 24px; }
.tmf-lightbox[hidden], .tmf-invite__list li[hidden] { display: none; }
.tmf-lightbox img { max-width: min(1200px, 100%); max-height: 86vh; width: auto; height: auto; border-radius: 8px; }
.tmf-lightbox button { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--surface); color: var(--ink); font-size: 1.6rem; cursor: pointer; }
.tmf-lightbox p { color: var(--ocean-ink); margin: 12px 0 0; text-align: center; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ==================================================================
 * v2: living-village homepage, profiles, alerts, sub-forums
 * ================================================================== */
[hidden] { display: none !important; }

/* "Right now" cards */
.tmf-now { margin: 4px 0 clamp(36px, 5vw, 56px); }
.tmf-now__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tmf-now-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.tmf-now-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px #8A6A4A2E; color: var(--ink); }
.tmf-now-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.tmf-now-card__media { display: block; aspect-ratio: 1; overflow: hidden; background: var(--sand-2); position: relative; }
.tmf-now-card__media > img, .tmf-now-card__media .tmf-media-logo, .tmf-now-card__media .tmf-media-ph { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.tmf-now-card:hover .tmf-now-card__media > img { transform: scale(1.03); }
.tmf-now-card__body { display: grid; gap: 4px; padding: 16px 18px 18px; }
.tmf-now-card__label { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.tmf-now-card__title { font-family: var(--font-display); font-weight: 700; font-size: 1.28rem; line-height: 1.15; }
.tmf-now-card__meta { color: var(--muted); font-size: .92rem; }
.tmf-now-card__stat { justify-self: start; margin-top: 6px; font-size: .8rem; font-weight: 600; padding: 3px 10px; border-radius: var(--r-pill); background: var(--sand-2); }
.tmf-now-card__stat.is-open { background: #E3EEE6; color: var(--success); }
.tmf-now-card--empty .tmf-now-card__title { color: var(--muted); }
@media (max-width: 760px) {
	.tmf-now__grid { grid-template-columns: 1fr; gap: 12px; }
	.tmf-now-card { flex-direction: row; }
	.tmf-now-card__media { width: 118px; flex-shrink: 0; }
	.tmf-now-card__body { padding: 12px 14px; align-content: center; }
	.tmf-now-card__title { font-size: 1.08rem; }
}

/* Generated art for cards without photos */
.tmf-now-art { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; }
.tmf-now-art--event { background: linear-gradient(180deg, #E7D3BC 0 58%, #2C6377 58% 72%, #17485A 72%); }
.tmf-now-art__sun { position: absolute; width: 42%; aspect-ratio: 1; border-radius: 50%; background: var(--accent); left: 50%; top: 58%; transform: translate(-50%, -50%); }
.tmf-now-art__date { position: absolute; left: 12%; top: 12%; display: grid; line-height: 1; font-family: var(--font-display); color: var(--ink); text-transform: uppercase; font-weight: 700; letter-spacing: .08em; font-size: .9rem; }
.tmf-now-art__date b { font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 800; letter-spacing: -0.03em; }
.tmf-now-art--topic { background: radial-gradient(circle at 85% 15%, #B8482A26 0 22%, transparent 23%), #EADBC8; }
.tmf-now-art__quote { position: absolute; left: 10%; top: 3%; font-family: var(--font-display); font-weight: 800; font-size: clamp(7rem, 16vw, 11rem); color: var(--accent); line-height: 1; opacity: .9; }
.tmf-now-art__count { position: absolute; left: 12%; bottom: 12%; display: grid; line-height: 1.1; color: var(--ink); font-weight: 600; font-size: .9rem; }
.tmf-now-art__count b { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 6vw, 4rem); letter-spacing: -0.03em; line-height: 1; }
.tmf-now-art--biz { background: var(--ocean); }
.tmf-now-art__big { font-family: var(--font-display); font-weight: 800; font-size: 5rem; color: #FBF7F1CC; }
.tmf-now-art--topic .tmf-now-art__big { color: var(--accent); }
.tmf-now-art--event .tmf-now-art__big { color: var(--ocean); }
@media (max-width: 760px) {
	.tmf-now-art__date b, .tmf-now-art__count b { font-size: 2rem; }
	.tmf-now-art__date, .tmf-now-art__count { font-size: .7rem; }
	.tmf-now-art__quote { font-size: 5.5rem; }
	.tmf-now-art__big { font-size: 3rem; }
}
.tmf-media-logo { display: grid !important; place-items: center; background: var(--artist, var(--ocean)); }
.tmf-media-logo img { width: 56%; height: 56%; object-fit: contain; border-radius: 12px; background: var(--surface); padding: 8%; }
.tmf-media-ph { display: grid !important; place-items: center; background: radial-gradient(circle at 75% 30%, #FBF7F12E 0 24%, transparent 25%), var(--artist, var(--ocean)); }
.tmf-media-ph span { font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 8vw, 5.5rem); color: #FBF7F1E6; }
.tmf-artist-card__media .tmf-media-logo, .tmf-artist-card__media .tmf-media-ph { width: 100%; height: 100%; }
.tmf-artist-card__media .tmf-media-ph span { font-size: 3.2rem; }

/* Community alerts */
.tmf-alert-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin: 0 0 22px; padding: 12px 18px; border-radius: var(--r-md); background: #F5EAD2; border: 1px solid #E2CC9A; color: #5E430C; text-decoration: none; }
.tmf-alert-strip:hover { border-color: var(--warning); color: #5E430C; }
.tmf-alert-strip .tmf-ico { width: 20px; height: 20px; color: var(--warning); }
.tmf-alert-strip__label { font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.tmf-alert-strip__title { font-weight: 600; color: var(--ink); flex: 1; min-width: 200px; }
.tmf-alert-strip__meta { font-size: .85rem; }
.tmf-alert-notice { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; margin: 0 0 20px; border-radius: var(--r-md); background: #F5EAD2; border: 1px solid #E2CC9A; color: #5E430C; }
.tmf-alert-notice .tmf-ico { width: 22px; height: 22px; color: var(--warning); margin-top: 2px; }
.tmf-alert-notice strong { color: var(--ink); }
.tmf-alert-notice p { margin: 4px 0 0; font-size: .93rem; max-width: 80ch; }
.tmf-alert-notice--compact { padding: 12px 14px; }
.tmf-alert-notice--compact p { font-size: .88rem; }
.tmf-alert-guide { display: grid; gap: 8px; padding: 16px; border: 1.5px dashed #E2CC9A; border-radius: var(--r-md); background: #FBF4E4; }
.tmf-alert-guide .tmf-alert-notice { margin: 0 0 4px; }
.tmf-alert-guide p, .tmf-alert-guide ul { margin: 0; }
.tmf-alert-guide ul { font-size: .93rem; display: grid; gap: 4px; }
.tmf-badge--alert { background: #F5EAD2; color: #7A5410; }
.tmf-flag--alert { color: var(--warning); }
.tmf-access--review { color: #7A5410; background: #F5EAD2; }
.tmf-review-banner { padding: 16px 20px; margin-bottom: 20px; border-radius: var(--r-md); background: #F5EAD2; border: 1px solid #E2CC9A; color: #5E430C; }
.tmf-review-banner p { margin: 4px 0 0; }
.tmf-clarify { margin-top: 12px; display: grid; gap: 8px; justify-items: start; }
.tmf-clarify blockquote { margin: 0; padding: 10px 14px; background: var(--surface); border-left: 3px solid var(--warning); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--ink); }
.tmf-modbar--review { background: #F5EAD2; border-color: #E2CC9A; }
.tmf-modbar--review .tmf-modbar__label { color: #7A5410; }
.tmf-modbar .tmf-reject { display: inline-block; }
.tmf-modbar .tmf-reject[open] { flex-basis: 100%; }
.tmf-post--alert { border-top-color: var(--warning); }
.tmf-post--held { border-style: dashed; background: #FBF7F1B3; }
.tmf-post--held > .tmf-badge { margin-bottom: 10px; }
.tmf-held { margin-top: 20px; display: grid; gap: 12px; }
.tmf-review-intro { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin-bottom: 18px; border-radius: var(--r-md); background: #F5EAD2; color: #5E430C; }
.tmf-review-intro .tmf-ico { width: 20px; height: 20px; color: var(--warning); margin-top: 3px; }
.tmf-review-intro p { margin: 0; max-width: 80ch; }
.tmf-queue__text { max-width: 75ch; margin-bottom: 12px; overflow-wrap: anywhere; }
.tmf-queue__text p:last-child { margin-bottom: 0; }

/* Badges */
.tmf-badge--org { background: #5B6B2E; color: var(--surface); }

/* Forum index & sub-forums */
.tmf-forums-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.tmf-forums-side { display: grid; gap: 16px; position: sticky; top: 90px; }
@media (max-width: 960px) { .tmf-forums-layout { grid-template-columns: 1fr; } .tmf-forums-side { position: static; } }
.tmf-forums-side h2 { display: flex; align-items: center; gap: 6px; }
.tmf-forums-side h2 .tmf-ico { color: var(--accent); }
.tmf-trend-list { margin: 0; padding: 0; list-style: none; counter-reset: trend; display: grid; gap: 12px; }
.tmf-trend-list li { counter-increment: trend; display: grid; grid-template-columns: 26px 1fr; column-gap: 8px; }
.tmf-trend-list li::before { content: counter(trend); grid-row: span 2; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--accent); line-height: 1.1; }
.tmf-trend-list a { font-weight: 600; color: var(--ink); text-decoration: none; line-height: 1.3; }
.tmf-trend-list a:hover { color: var(--accent); }
.tmf-trend-list .tmf-muted { font-size: .82rem; }
.tmf-suggest summary { list-style: none; cursor: pointer; display: grid; gap: 2px; }
.tmf-suggest summary::-webkit-details-marker { display: none; }
.tmf-suggest summary strong { color: var(--ocean); }
.tmf-suggest summary .tmf-muted { font-size: .85rem; }
.tmf-suggest[open] summary { margin-bottom: 14px; }
.tmf-subforums { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tmf-subforums a { display: inline-block; font-size: .82rem; font-weight: 600; color: var(--ink); text-decoration: none; padding: 4px 10px; border-radius: var(--r-pill); background: var(--sand-2); }
.tmf-subforums a:hover { background: var(--ink); color: var(--surface); }
.tmf-forum h2 a { display: inline-flex; align-items: center; gap: 8px; }
.tmf-forum h2 .tmf-ico { color: var(--warning); }
.tmf-forum--alerts { border-left-color: var(--warning); }
.tmf-forum--showcase { border-left-color: #5B6B2E; }
.tmf-forum--events { border-left-color: #2C6377; }
.tmf-forum-events { margin-bottom: 20px; }
.tmf-mini-events--row { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }

/* Topic rows with images */
.tmf-row.has-thumb { grid-template-columns: 40px minmax(0, 1fr) 56px 76px 120px; }
.tmf-row__thumb img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.tmf-row__title span { min-width: 0; }
@media (max-width: 640px) { .tmf-row.has-thumb { grid-template-columns: 36px minmax(0, 1fr); } .tmf-row__thumb { display: none; } }

/* Topic images */
.tmf-post__imgs { display: grid; gap: 8px; margin-top: 14px; max-width: 760px; }
.tmf-post__imgs--2 { grid-template-columns: 1fr 1fr; }
.tmf-post__imgs--3 { grid-template-columns: repeat(3, 1fr); }
.tmf-post__imgs figure { margin: 0; }
.tmf-post__imgs a { display: block; border-radius: 10px; overflow: hidden; background: var(--sand-2); }
.tmf-post__imgs img { width: 100%; height: auto; }
.tmf-post__imgs--2 img, .tmf-post__imgs--3 img { aspect-ratio: 1; object-fit: cover; height: 100%; }

/* Community creations */
.tmf-creations, .tmf-village { margin-top: clamp(40px, 6vw, 64px); }
.tmf-creation-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.tmf-creation { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.tmf-creation:hover { transform: translateY(-3px); box-shadow: 0 14px 30px #8A6A4A26; color: var(--ink); }
.tmf-creation__media { aspect-ratio: 1; display: block; overflow: hidden; background: var(--sand-2); }
.tmf-creation__media img { width: 100%; height: 100%; object-fit: cover; }
.tmf-creation__ph { display: grid; place-items: end start; width: 100%; height: 100%; padding: 14px; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--surface); background: radial-gradient(circle at 70% 30%, #FBF7F133 0 20%, transparent 21%), #5B6B2E; }
.tmf-creation__body { display: grid; gap: 2px; padding: 12px 14px 14px; }
.tmf-creation__body strong { line-height: 1.25; }
.tmf-creation__body .tmf-muted { font-size: .84rem; }
.tmf-creation--cta { border-style: dashed; background: transparent; }
.tmf-creation--cta .tmf-creation__media { display: grid; place-items: center; background: transparent; }
.tmf-creation__plus { font-family: var(--font-display); font-weight: 800; font-size: 4rem; color: var(--accent); }
.tmf-artist-grid--four { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.tmf-dir-note { margin: 18px 0 0; color: var(--muted); }
.tmf-dir-note a { font-weight: 600; }

/* Profiles: logos, hours, contact, help */
.tmf-av--square { border-radius: 18px !important; }
.tmf-av--logo { object-fit: contain; background: var(--surface); }
.tmf-artist__av.tmf-av--logo { padding: 8px; }
.tmf-profile--business .tmf-artist__av, .tmf-profile--org .tmf-artist__av { box-shadow: 0 0 0 5px var(--bg); }
.tmf-help-box { margin: 22px 0; padding: 18px 20px; border-radius: var(--r-md); background: color-mix(in srgb, var(--artist) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--artist) 30%, var(--line)); }
.tmf-help-box h2 { font-size: 1.2rem; }
.tmf-hours table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.tmf-hours th { text-align: left; font-weight: 400; color: var(--muted); padding: 5px 0; }
.tmf-hours td { text-align: right; padding: 5px 0; }
.tmf-hours tr + tr th, .tmf-hours tr + tr td { border-top: 1px solid var(--line); }
.tmf-hours tr.is-today th, .tmf-hours tr.is-today td { font-weight: 600; color: var(--ink); }
.tmf-hours .tmf-sec-head { margin-bottom: 8px; }
.tmf-hours .tmf-hint { margin-top: 10px; }
.tmf-contact ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tmf-contact li { display: flex; gap: 10px; align-items: flex-start; overflow-wrap: anywhere; }
.tmf-contact .tmf-ico { width: 18px; height: 18px; color: var(--artist); margin-top: 3px; }
.tmf-contact a { color: var(--ink); }
.tmf-gallery-title { font-size: 1.4rem; margin: 0 0 14px; }
.tmf-hours-edit legend { font-weight: 600; font-size: .92rem; }
.tmf-hours-grid { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 8px 12px; align-items: center; margin: 10px 0 12px; }
.tmf-hours-grid label { font-size: .9rem; color: var(--muted); }
@media (max-width: 620px) { .tmf-hours-grid { grid-template-columns: auto 1fr; } }

/* Moderation: categories */
.tmf-fold__kids { padding: 0 22px 18px; display: grid; gap: 8px; }
.tmf-fold--child { border: 1px solid var(--line); border-radius: var(--r-sm); background: #FFFDF9; }
.tmf-fold--child summary { padding: 10px 14px; font-weight: 600; }
.tmf-fold--child .tmf-forum-form { padding: 0 14px 14px; }
.tmf-term-admin .tmf-card { margin-bottom: 0; }
.tmf-term-admin h3 { font-size: 1.1rem; }
.tmf-inline-add { display: flex; gap: 8px; margin-top: 12px; }
.tmf-inline-add input { flex: 1; }
.tmf-queue .tmf-forum-form { margin: 10px 0; }

/* v2.1 */
.tmf-now { margin-top: 0; }
.tmf-now__title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.tmf-now + .tmf-alert-strip { margin: -12px 0 clamp(36px, 5vw, 52px); }
.tmf-upload-hint a { font-weight: 600; }
.tmf-upload .tmf-hint, .tmf-upload .tmf-upload-err { grid-column: 1 / -1; margin: 0; }
.tmf-upload-err { margin: 4px 0 0; font-size: .88rem; font-weight: 600; color: var(--accent-ink); }

/* ==================================================================
 * v2.2: day / night events
 * ================================================================== */
.tmf-vibe { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: -6px 0 18px; }
.tmf-vibe__opt { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: var(--r-md); text-decoration: none; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); transition: background .25s, color .25s, border-color .25s, transform .15s; }
.tmf-vibe__opt:hover { border-color: var(--ink); color: var(--ink); }
.tmf-vibe__opt:active { transform: translateY(1px); }
.tmf-vibe__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; }
.tmf-vibe__icon .tmf-ico { width: 26px; height: 26px; }
.tmf-vibe__opt--day .tmf-vibe__icon { background: #F6DDB8; color: #B8482A; }
.tmf-vibe__opt--night .tmf-vibe__icon { background: #1E2A4A; color: #F2E3B6; }
.tmf-vibe__text { display: grid; gap: 2px; }
.tmf-vibe__text strong { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.1; }
.tmf-vibe__text small { font-size: .88rem; color: var(--muted); }
.tmf-vibe__opt--day[aria-current] { background: linear-gradient(120deg, #F6DDB8, #F2EADF 70%); border-color: #E2B98A; color: #1C2B33; }
.tmf-vibe__opt--day[aria-current] small { color: #5E625F; }
.tmf-vibe__opt--night[aria-current] { background: radial-gradient(circle at 88% 20%, #F2E3B633 0 6%, transparent 7%), linear-gradient(120deg, #14203F, #1E3A47); border-color: #3A4F7A; color: #F2EADF; }
.tmf-vibe__opt--night[aria-current] small { color: #B9C6CF; }
.tmf-vibe__opt--night[aria-current] .tmf-vibe__icon { background: #F2E3B6; color: #14203F; }
@media (max-width: 560px) { .tmf-vibe__opt { padding: 12px 14px; gap: 10px; } .tmf-vibe__icon { width: 38px; height: 38px; } .tmf-vibe__text small { display: none; } }
.tmf-vibe-other { text-align: center; margin-top: 16px; }
.tmf-vibe-other a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }

/* Placeholder art for events without a photo */
.tmf-ph--night { background: radial-gradient(circle at 70% 36%, #F2E3B6 0 9%, transparent 9.6%), radial-gradient(circle at 22% 22%, #F2EADFCC 0 .6%, transparent .9%), radial-gradient(circle at 40% 12%, #F2EADF99 0 .5%, transparent .8%), radial-gradient(circle at 86% 14%, #F2EADFAA 0 .5%, transparent .8%), radial-gradient(circle at 12% 44%, #F2EADF88 0 .4%, transparent .7%), linear-gradient(180deg, #14203F 0 58%, #22406A 58% 72%, #0E1F29 72%) !important; }
.tmf-now-art--night { background: radial-gradient(circle at 24% 18%, #F2EADFAA 0 .6%, transparent .9%), radial-gradient(circle at 80% 14%, #F2EADF99 0 .5%, transparent .8%), linear-gradient(180deg, #14203F 0 58%, #22406A 58% 72%, #0E1F29 72%); }
.tmf-now-art--night .tmf-now-art__sun { background: #F2E3B6; width: 30%; top: 44%; }
.tmf-now-art--night .tmf-now-art__date { color: #F2EADF; }
.tmf-mini-event--night .tmf-date { background: #1E2A4A; color: #F2E3B6; }
.tmf-vibe-badge { display: inline-flex; align-items: center; gap: 5px; margin-right: 6px; padding: 2px 9px; border-radius: var(--r-pill); font-size: .78rem; font-weight: 600; }
.tmf-vibe-badge .tmf-ico { width: 14px; height: 14px; }
.tmf-vibe-badge--day { background: #F6DDB8; color: #8A3418; }
.tmf-vibe-badge--night { background: #1E2A4A; color: #F2E3B6; }

/* Event form: day / night pick */
.tmf-vibe-pick { display: flex; flex-wrap: wrap; gap: 10px; }
.tmf-vibe-pick legend { width: 100%; }
.tmf-vibe-pick .tmf-hint { width: 100%; }
.tmf-vibe-pick__opt { position: relative; cursor: pointer; }
.tmf-vibe-pick__opt input { position: absolute; opacity: 0; }
.tmf-vibe-pick__opt span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: #FFFDF9; font-weight: 600; }
.tmf-vibe-pick__opt--day input:checked + span { background: #F6DDB8; border-color: #B8482A; color: #8A3418; }
.tmf-vibe-pick__opt--night input:checked + span { background: #1E2A4A; border-color: #1E2A4A; color: #F2E3B6; }
.tmf-vibe-pick__opt input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Night palette: nightlife listing and night event pages */
body.tmf-night {
	--bg: #0E1B26; --surface: #152A37; --sand-2: #203A48; --ink: #EEF0EA; --muted: #A3B4B8; --line: #29444F;
	--accent: #E8744C; --accent-ink: #F59472; --ocean: #8CC3D3; --ocean-ink: #0E1B26;
	background: radial-gradient(1100px 520px at 85% -8%, #2E3F7A66, transparent 62%), radial-gradient(800px 400px at 0% 30%, #17485A55, transparent 60%), var(--bg);
	background-attachment: fixed;
	color-scheme: dark;
}
body.tmf-night .site-header { background: color-mix(in srgb, #0E1B26 88%, transparent); border-bottom-color: #29444F; }
body.tmf-night .nav-toggle__bars, body.tmf-night .nav-toggle__bars::before, body.tmf-night .nav-toggle__bars::after { background: var(--ink); }
body.tmf-night .tmf-btn { color: #0E1B26; }
body.tmf-night .tmf-btn--ghost { color: var(--ink); }
body.tmf-night .tmf-btn--ghost:hover { color: #0E1B26; }
body.tmf-night .tmf-date { background: #1E2A4A; color: #F2E3B6; box-shadow: inset 0 0 0 1px #3A4F7A; }
body.tmf-night .tmf-event-card:hover { box-shadow: 0 16px 40px #00000066, 0 0 0 1px #3A4F7A; }
body.tmf-night .tmf-event-card__going { color: #F2C46B; }
body.tmf-night .tmf-month { border-bottom-color: var(--line); }
body.tmf-night :is(.tmf-form, .tmf-report) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea) { background: #0E1B26; color: var(--ink); border-color: var(--line); }
body.tmf-night .tmf-notice--ok { background: #183A2C; border-color: #2F6B4A; color: #BFE3CB; }
body.tmf-night .tmf-empty { background: #152A3799; border-color: var(--line); }
body.tmf-night .tmf-empty__art { color: #F2E3B6; }
body.tmf-night .tmf-report__form { box-shadow: 0 12px 30px #00000088; }
body.tmf-night .site-footer { background-color: #0A141C; }
body.tmf-night .lang-switch { background: var(--surface); }
body.tmf-night .tmf-av--i { box-shadow: 0 0 0 1px #29444F; }
body.tmf-night .tmf-modbar { background: #E8744C14; }
body.tmf-night ::selection { background: #E8744C55; }
/* ------------------------------------------------------------------
 * v2.3 Weather bar + surf & tides
 * ------------------------------------------------------------------ */
.tmf-wx { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin: 0 0 18px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.tmf-wx__now { display: flex; align-items: center; gap: 10px; }
.tmf-wx__now > div { display: grid; line-height: 1.05; }
.tmf-wx-ico { flex: none; }
.tmf-wx__temp { font-family: var(--font-display); font-weight: 700; font-size: 2rem; letter-spacing: -.02em; }
.tmf-wx__label { color: var(--muted); font-size: .9rem; }
.tmf-wx__facts, .tmf-surf__now { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 0; }
.tmf-wx__facts > div, .tmf-surf__now > div { display: grid; gap: 1px; }
.tmf-wx__facts dt, .tmf-surf__now dt, .tmf-surf__spots > span { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tmf-wx__facts dd, .tmf-surf__now dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.tmf-wx__surf { margin-left: auto; display: grid; gap: 1px; padding: 8px 14px; border-radius: var(--r-sm); background: var(--ocean); color: var(--ocean-ink); text-decoration: none; line-height: 1.2; transition: background .2s; }
.tmf-wx__surf:hover { background: var(--ocean-2); color: var(--ocean-ink); }
.tmf-wx__surf span { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.tmf-wx__surf strong { font-size: .95rem; }

.tmf-surf { margin: 0 0 24px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); display: grid; gap: 14px; }
.tmf-surf__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.tmf-surf__head h2 { margin: 0; font-family: var(--font-display); font-size: 1.15rem; }
.tmf-surf__head .tmf-muted { font-size: .82rem; }
.tmf-tides { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tmf-tides li { padding: 5px 11px; border-radius: var(--r-pill); background: var(--bg); font-size: .88rem; }
.tmf-tides li span { color: var(--muted); }
.tmf-tides li b { font-variant-numeric: tabular-nums; }
.tmf-tides li em { font-style: normal; color: var(--muted); }
.tmf-tides li.is-past { opacity: .55; }
.tmf-surf__spots { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.tmf-surf__spots > span { margin-right: 4px; }
.tmf-surf__spots a { padding: 4px 10px; border: 1px solid var(--line); border-radius: var(--r-pill); font-size: .86rem; color: var(--ink); text-decoration: none; transition: border-color .2s, color .2s; }
.tmf-surf__spots a:hover { border-color: var(--ocean); color: var(--ocean); }
.tmf-surf__spots a::after { content: " ↗"; color: var(--muted); }

@media (max-width: 640px) {
	.tmf-wx { gap: 12px 18px; padding: 12px 14px; }
	.tmf-wx__facts, .tmf-surf__now { gap: 8px 18px; }
	.tmf-wx__surf { margin-left: 0; width: 100%; }
	.tmf-surf__spots > span { flex-basis: 100%; }
}

body.tmf-night .tmf-tides li { background: #0E1B26; }
body.tmf-night .tmf-wx__surf { background: #17485A; color: #EAF1F0; }

/* v2.4 data & account */
.tmf-data { margin-bottom: 18px; }
.tmf-data h2 { margin: 0 0 6px; font-size: 1.15rem; }
.tmf-data form { margin-top: 12px; }
.tmf-data--danger { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.tmf-btn--danger { background: #A33A2A; color: #fff; border-color: #A33A2A; }
.tmf-btn--danger:hover { background: #7E2A1E; color: #fff; }

/* v2.5 Site-wide day / night switch */
.mode-toggle { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); border-radius: 999px; }
.mode-toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.mode-toggle__track { position: relative; display: block; width: 54px; height: 30px; border-radius: 999px; background: var(--sand-2); border: 1px solid var(--line); transition: background .3s, border-color .3s; }
.mode-toggle svg { position: absolute; top: 7px; width: 14px; height: 14px; z-index: 1; transition: color .3s; }
.mode-toggle__sun { left: 7px; color: #C77A1E; }
.mode-toggle__moon { right: 7px; color: #9A9C97; }
.mode-toggle__knob { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #FFFDF8; box-shadow: 0 1px 3px #0003; transition: transform .3s cubic-bezier(.4,.2,.2,1), background .3s; }
body.tmf-night .mode-toggle__track { background: #1E2A4A; border-color: #3A4F7A; }
body.tmf-night .mode-toggle__knob { transform: translateX(24px); background: #F2E3B6; }
body.tmf-night .mode-toggle__sun { color: #6F7FA8; }
body.tmf-night .mode-toggle__moon { color: #14203F; }
@media (prefers-reduced-motion: reduce) { .mode-toggle__knob, .mode-toggle__track { transition: none; } }
/* v2.5b Night palette for the whole site */
body.tmf-night .tmf-band, body.tmf-night .site-footer { --ocean: #17485A; --ocean-2: #123A49; --ocean-ink: #EAF1F0; }
body.tmf-night .tmf-notice--err, body.tmf-night .tmf-status--rejected { background: #3A1F1C; color: #F4C9BE; border-color: #5A2E28; }
body.tmf-night .tmf-row:hover { background: #1A3240; }
body.tmf-night :is(.tmf-type__body, .tmf-layout__pic, .tmf-facts > div, .tmf-facts--compact > div, .tmf-invite__list, .tmf-invite__filter, .tmf-fold--child, .tmf-vibe-pick__opt span) { background: #0E1B26; color: var(--ink); border-color: var(--line); }
body.tmf-night .tmf-alert-guide { background: #2A2616; color: var(--ink); border-color: #4A4120; }
body.tmf-night .tmf-post--held { background: #152A37B3; }
body.tmf-night .tmf-vibe-badge--day, body.tmf-night .tmf-vibe-pick__opt--day input:checked + span { background: #3A3020; color: #F6DDB8; }
body.tmf-night .tmf-badge--biz { background: #29444F; color: var(--ink); }
/* v2.6 Post types, polls, offers */
.tmf-grid-2, .tmf-grid-3 { display: grid; gap: 14px; }
.tmf-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tmf-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .tmf-grid-2, .tmf-grid-3 { grid-template-columns: minmax(0, 1fr); } }

.tmf-pt-pick { border: 0; padding: 0; margin: 0; }
.tmf-pt-pick legend { margin-bottom: 8px; }
.tmf-pt-pick__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.tmf-pt-pick__opt { position: relative; cursor: pointer; }
.tmf-pt-pick__opt input { position: absolute; opacity: 0; inset: 0; }
.tmf-pt-pick__opt > span { display: grid; grid-template-columns: 22px 1fr; column-gap: 8px; row-gap: 1px; align-items: center; height: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--surface); transition: border-color .15s, background .15s; }
.tmf-pt-pick__opt .tmf-pt-ico { width: 20px; height: 20px; color: var(--ocean); grid-row: span 2; }
.tmf-pt-pick__opt strong { font-size: .92rem; line-height: 1.2; }
.tmf-pt-pick__opt small { font-size: .76rem; color: var(--muted); line-height: 1.25; }
.tmf-pt-pick__opt:hover > span { border-color: var(--ink); }
.tmf-pt-pick__opt input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.tmf-pt-pick__opt input:checked + span .tmf-pt-ico { color: var(--accent); }
.tmf-pt-pick__opt input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

.tmf-pt-fields { display: grid; gap: 10px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--bg); border: 1px dashed var(--line); }
.tmf-poll-toggle { align-items: center; font-weight: 600; }
.tmf-poll-toggle .tmf-pt-ico { width: 18px; height: 18px; margin-right: 4px; color: var(--ocean); vertical-align: -4px; }
.tmf-poll-build { display: grid; gap: 10px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--bg); border: 1px dashed var(--line); }
.tmf-poll-build fieldset { border: 0; padding: 0; margin: 0; }
.tmf-poll-build__opts { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 640px) { .tmf-poll-build__opts { grid-template-columns: minmax(0, 1fr); } }
.tmf-check--inline { align-self: end; padding-bottom: 10px; }

.tmf-pt-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 4px 0 2px; }
.tmf-topic-flags .tmf-pt-tags { display: contents; }
.tmf-pt { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: var(--r-pill); font-size: .74rem; font-weight: 600; line-height: 1.5; background: var(--sand-2); color: var(--ink); white-space: nowrap; }
.tmf-pt .tmf-pt-ico { width: 12px; height: 12px; }
.tmf-pt--question, .tmf-pt--recommend { background: #E3ECEF; color: #17485A; }
.tmf-pt--poll { background: #E6E2F2; color: #3E3470; }
.tmf-pt--sale, .tmf-pt--price { background: #F5E6C8; color: #7A4E0E; }
.tmf-pt--lost { background: #F6E1DA; color: #8A2E16; }
.tmf-pt--ride, .tmf-pt--meetup { background: #DCEBDD; color: #22573A; }
.tmf-pt--offer { background: var(--accent); color: #fff; }
.tmf-pt--ok { background: #DCEBDD; color: #22573A; }
.tmf-pt--warn { background: #F5E6C8; color: #7A4E0E; }
.tmf-pt--done { background: var(--line); color: var(--muted); }
.tmf-pt--on { background: var(--ink); color: var(--surface); }

.tmf-pt-card { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0 0 14px; padding: 12px 16px; border-radius: var(--r-sm); background: var(--bg); border-left: 3px solid var(--ocean); }
.tmf-pt-card > div { display: grid; gap: 1px; }
.tmf-pt-card dt { font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tmf-pt-card dd { margin: 0; font-weight: 600; }
.tmf-pt-card--offer { border-left-color: var(--accent); }
.tmf-pt-card--sale { border-left-color: #C98A2B; }
.tmf-pt-card--lost { border-left-color: #B8482A; }
.tmf-pt-card + .tmf-hint { margin: -6px 0 14px; }
.tmf-code { font-family: ui-monospace, Menlo, monospace; font-size: .92em; padding: 1px 6px; border-radius: 4px; background: var(--sand-2); }

.tmf-poll { margin-top: 16px; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); }
.tmf-poll fieldset { border: 0; padding: 0; margin: 0; }
.tmf-poll__results { list-style: none; margin: 0; padding: 0; }
.tmf-poll__form fieldset, .tmf-poll__results { display: grid; gap: 6px; }
.tmf-poll__opt { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: linear-gradient(90deg, color-mix(in srgb, var(--ocean) 16%, transparent) var(--pct, 0%), transparent var(--pct, 0%)); cursor: pointer; font-weight: 500; }
.tmf-poll__opt.is-result { cursor: default; }
.tmf-poll__opt input { width: 17px; height: 17px; margin: 0; accent-color: var(--accent); flex-shrink: 0; }
.tmf-poll__opt:hover:not(.is-result) { border-color: var(--ink); }
.tmf-poll__label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.tmf-poll__pct { font-variant-numeric: tabular-nums; font-weight: 700; font-size: .9rem; }
.tmf-poll__opt.is-top { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 22%, transparent) var(--pct, 0%), transparent var(--pct, 0%)); }
.tmf-poll__opt.is-mine .tmf-poll__label::after { content: " ✓"; color: var(--accent); font-weight: 700; }
.tmf-poll__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; font-size: .86rem; }
.tmf-poll--compact { margin-top: 8px; padding: 0; border: 0; background: none; }
.tmf-poll--compact .tmf-poll__opt { padding: 7px 10px; font-size: .92rem; }
.tmf-poll-side h2 { display: inline-flex; align-items: center; gap: 8px; }
.tmf-poll-side h2 .tmf-pt-ico { width: 18px; height: 18px; color: var(--accent); }
.tmf-poll-side__q { display: block; font-weight: 700; color: var(--ink); text-decoration: none; line-height: 1.3; }
.tmf-poll-side__q:hover { color: var(--accent); }
.tmf-home-side .tmf-poll-side { margin-bottom: 18px; }

.tmf-meetup { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--bg); }
.tmf-pt-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.tmf-post--answer { border-color: #5E9A5A; box-shadow: inset 4px 0 0 #5E9A5A; }
.tmf-answer-badge { display: inline-flex; margin-top: 10px; padding: 3px 10px; border-radius: var(--r-pill); background: #DCEBDD; color: #22573A; font-size: .8rem; font-weight: 700; }
.tmf-linkbtn--ok:hover { color: #2F6B4A; }
.tmf-chips--pt a { display: inline-flex; align-items: center; gap: 6px; }
.tmf-chips--pt .tmf-pt-ico { width: 14px; height: 14px; }

.tmf-offers { margin: 0 0 clamp(28px, 4vw, 44px); }
.tmf-offers__row { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.tmf-offer { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.tmf-offer::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--accent); }
.tmf-offer:hover { transform: translateY(-2px); box-shadow: 0 12px 26px #8A6A4A26; color: var(--ink); }
.tmf-offer .tmf-av, .tmf-offer img, .tmf-offer__logo { width: 56px; height: 56px; border-radius: 12px; flex-shrink: 0; object-fit: cover; }
.tmf-offer__body { display: grid; gap: 2px; min-width: 0; }
.tmf-offer__biz { font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.tmf-offer__title { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.2; }
.tmf-offer__meta { font-size: .84rem; color: var(--muted); }
.tmf-offer__meta code { font-family: ui-monospace, Menlo, monospace; color: var(--ink); background: var(--sand-2); padding: 0 5px; border-radius: 4px; }
.tmf-offer--cta { border-style: dashed; }
.tmf-offer--cta::before { display: none; }
.tmf-offer__plus { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 12px; background: var(--bg); font-size: 1.6rem; color: var(--accent); flex-shrink: 0; }

body.tmf-night .tmf-pt--question, body.tmf-night .tmf-pt--recommend { background: #1E3A47; color: #BFE0E8; }
body.tmf-night .tmf-pt--poll { background: #2C2850; color: #D3CCF5; }
body.tmf-night .tmf-pt--sale, body.tmf-night .tmf-pt--price, body.tmf-night .tmf-pt--warn { background: #3A3020; color: #F2D9A6; }
body.tmf-night .tmf-pt--lost { background: #3A1F1C; color: #F4C9BE; }
body.tmf-night .tmf-pt--ride, body.tmf-night .tmf-pt--meetup, body.tmf-night .tmf-pt--ok, body.tmf-night .tmf-answer-badge { background: #1E3A2A; color: #BFE3C8; }
body.tmf-night .tmf-pt-fields, body.tmf-night .tmf-poll-build, body.tmf-night .tmf-pt-card, body.tmf-night .tmf-meetup, body.tmf-night .tmf-offer__plus { background: #0E1B26; }
body.tmf-night .tmf-pt-pick__opt > span { background: #0E1B26; }
body.tmf-night .tmf-offer:hover { box-shadow: 0 12px 26px #00000066; }

/* v2.7 Village info + typed alerts */
.tmf-alert-stack { display: grid; gap: 8px; margin: 0 0 clamp(24px, 4vw, 36px); }
.tmf-alert-stack .tmf-alert-strip { margin: 0; }
.tmf-alert-strip .tmf-ico { width: 18px; height: 18px; flex-shrink: 0; }
.tmf-alert-strip--water .tmf-ico { color: #17485A; }
.tmf-alert-strip--power .tmf-ico { color: #C77A1E; }
.tmf-alert-strip--safety .tmf-ico { color: #B8482A; }
.tmf-pt--alert { background: #F5E6C8; color: #7A4E0E; }
.tmf-pt--alert .tmf-ico { width: 12px; height: 12px; }
.tmf-alert-fields { margin: 10px 0; }
.tmf-info-alerts { margin-bottom: 18px; }
.tmf-info-alerts .tmf-alert-stack { margin-bottom: 0; }
.tmf-info-ok { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 16px; border-radius: var(--r-md); background: #DCEBDD; color: #22573A; font-weight: 600; }
.tmf-info-ok .tmf-ico { width: 18px; height: 18px; }
.tmf-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 4px; }
@media (max-width: 760px) { .tmf-info-grid { grid-template-columns: minmax(0, 1fr); } }
.tmf-info-card { display: grid; gap: 12px; align-content: start; }
.tmf-info-card h2 { margin: 0; }
.tmf-info-next { margin: 0; font-weight: 700; color: var(--accent); }
.tmf-prayers, .tmf-fx, .tmf-pharma, .tmf-sos { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tmf-prayers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tmf-prayers li { display: grid; gap: 1px; padding: 8px 12px; border-radius: var(--r-sm); background: var(--bg); }
.tmf-prayers li span { font-size: .78rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.tmf-prayers li b { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.tmf-prayers li.is-sun { opacity: .7; }
.tmf-prayers li.is-next { background: var(--accent); color: #fff; }
.tmf-prayers li.is-next span { color: #fff; opacity: .85; }
.tmf-fx { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tmf-fx li { display: grid; gap: 1px; padding: 8px 12px; border-radius: var(--r-sm); background: var(--bg); }
.tmf-fx li span { font-size: .78rem; color: var(--muted); font-weight: 600; }
.tmf-fx li b { font-variant-numeric: tabular-nums; }
.tmf-fx-conv { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tmf-fx-conv input { width: 110px; }
.tmf-fx-conv input, .tmf-fx-conv select { padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font: inherit; }
.tmf-fx-out { font-weight: 600; font-variant-numeric: tabular-nums; }
.tmf-pharma li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tmf-pharma li:last-child { border-bottom: 0; }
.tmf-pharma li > div { display: grid; gap: 1px; min-width: 0; }
.tmf-pharma .tmf-btn { white-space: nowrap; font-variant-numeric: tabular-nums; }
.tmf-sos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tmf-sos a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--bg); color: var(--ink); text-decoration: none; }
.tmf-sos a:hover { background: var(--sand-2); }
.tmf-sos b { font-family: var(--font-display); font-size: 1.5rem; color: var(--accent); min-width: 2.2ch; }
.tmf-sos span { font-size: .88rem; line-height: 1.25; }
.tmf-info-note { margin: 22px 0 0; font-size: .84rem; color: var(--muted); max-width: 75ch; }
@media (max-width: 480px) { .tmf-prayers, .tmf-fx { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tmf-sos { grid-template-columns: minmax(0, 1fr); } }
body.tmf-night .tmf-prayers li, body.tmf-night .tmf-fx li, body.tmf-night .tmf-sos a { background: #0E1B26; }
body.tmf-night .tmf-sos a:hover { background: #203A48; }
body.tmf-night .tmf-info-ok { background: #1E3A2A; color: #BFE3C8; }
body.tmf-night .tmf-pt--alert { background: #3A3020; color: #F2D9A6; }
body.tmf-night .tmf-fx-conv input, body.tmf-night .tmf-fx-conv select { background: #0E1B26; }

.site-nav__main a, .site-nav__mod { white-space: nowrap; }

/* v2.8 Legal */
.tmf-legal__body { max-width: 78ch; line-height: 1.65; }
.tmf-legal__body h2 { font-size: 1.15rem; margin: 1.6em 0 .5em; }
.tmf-legal__body h2:first-child { margin-top: 0; }
.tmf-legal__body ul, .tmf-legal__body ol { padding-left: 1.2em; }
.tmf-legal__body li { margin-bottom: .4em; }
.tmf-legal__body code { font-size: .88em; background: var(--bg); padding: 1px 5px; border-radius: 4px; }
.tmf-todo { background: #F5E6C8; color: #7A4E0E; padding: 0 4px; border-radius: 3px; }
.tmf-legal-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-footer__base { flex-wrap: wrap; gap: 10px 24px; }
.site-footer__base a { color: inherit; opacity: .85; }
.site-footer__base a:hover { opacity: 1; }
body.tmf-night .tmf-todo { background: #3A3020; color: #F2D9A6; }
.site-nav__user .me span, .site-nav__user a { white-space: nowrap; }
