/* SELVO ride community (trails.js): conditions, shared trails, group rides */
.tc-page { --tc-card: var(--grey, #f5f5f7); --tc-line: var(--grey-2, #e8e8ed); }
.dark .tc-page { --tc-card: var(--night-2, #1c1c1e); --tc-line: var(--night-3, #2c2c2e); }
.tc-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tc-jump a { text-decoration: none; padding: 9px 16px; border-radius: 980px; background: var(--tc-card); color: inherit; font-weight: 500; font-size: 15px; transition: background-color .2s; }
.tc-jump a:hover { background: var(--tc-line); }
.tc-sec { padding-top: 56px; scroll-margin-top: 80px; }
.tc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; }
.tc-head .cf-sub { margin: 8px 0 0; max-width: 620px; }
.tc-feed { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.tc-card { position: relative; padding: 18px; border-radius: 18px; background: var(--tc-card); display: flex; flex-direction: column; gap: 6px; }
.tc-card b { font-size: 18px; font-weight: 600; line-height: 1.25; }
.tc-card p { margin: 0; font-size: 15px; line-height: 1.45; }
.tc-card .tc-lines { color: var(--mute); font-size: 14px; }
.tc-top, .tc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tc-foot { margin-top: auto; padding-top: 6px; }
.tc-top small, .tc-by, .tc-row small, .tc-rt small { color: var(--mute); font-size: 13px; }
.tc-cond { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; font-size: 13.5px; font-weight: 600; background: color-mix(in oklab, var(--cc) 14%, transparent); color: color-mix(in oklab, var(--cc) 82%, var(--ink)); }
.dark .tc-cond { color: color-mix(in oklab, var(--cc) 55%, #fff); background: color-mix(in oklab, var(--cc) 28%, transparent); }
.tc-cond i { width: 8px; height: 8px; border-radius: 50%; background: var(--cc); }
.tc-lvl { font-size: 13px; font-weight: 600; padding: 3px 9px; border-radius: 8px; background: var(--tc-line); }
.tc-lvl.l-easy { background: #dff3e6; color: #17603a; } .tc-lvl.l-mid { background: #dde9fb; color: #1d4f99; } .tc-lvl.l-hard { background: #2b2b2e; color: #fff; } .tc-lvl.l-pro { background: #1d1d1f; color: #ffd24a; }
.dark .tc-lvl.l-easy { background: #17402a; color: #b9f0cf; } .dark .tc-lvl.l-mid { background: #1b3358; color: #c7dcff; } .dark .tc-lvl.l-hard { background: #3a3a3d; }
.tc-like { border: 0; background: transparent; color: var(--mute); font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; padding: 6px 10px; border-radius: 980px; transition: background-color .2s, color .2s; }
.tc-like:hover { background: var(--tc-line); color: var(--ink); }
.tc-like.on { color: var(--ink); background: var(--tc-line); }
.dark .tc-like.on, .dark .tc-like:hover { color: #fff; }
.tc-x { border: 0; background: transparent; color: var(--mute); font: inherit; font-size: 13px; cursor: pointer; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; align-self: flex-start; }
.tc-x:hover { color: var(--ink); }
.dark .tc-x:hover { color: #fff; }
.tc-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 8px 0 12px; }
.tc-cc { display: flex; flex-wrap: wrap; gap: 6px; }
.tc-cc button { border: 0; font: inherit; font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 980px; background: var(--tc-card); color: var(--mute); cursor: pointer; transition: background-color .2s, color .2s; }
.tc-cc button[aria-selected="true"] { background: var(--ink); color: #fff; }
.dark .tc-cc button[aria-selected="true"] { background: #fff; color: #000; }
.tc-q { height: 40px; min-width: 220px; padding: 0 14px; border: 0; border-radius: 980px; background: var(--tc-card); font: inherit; font-size: 15px; color: inherit; }
.tc-q:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.tc-tablehead, .tc-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 16px; align-items: center; }
.tc-tablehead { padding: 0 16px 8px; font-size: 13px; color: var(--mute); }
.tc-list { list-style: none; margin: 0; padding: 0; border-radius: 18px; background: var(--tc-card); overflow: hidden; }
.tc-row { padding: 14px 16px; }
.tc-row + .tc-row { box-shadow: inset 0 1px 0 var(--tc-line); }
.tc-main b { display: block; font-weight: 600; }
.tc-main span { font-size: 14px; color: var(--mute); }
.tc-f, .tc-r { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.tc-wait, .tc-none { color: var(--mute); font-size: 13.5px; }
.tc-b { border: 0; font: inherit; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 980px; background: var(--paper, #fff); color: var(--ink); cursor: pointer; transition: background-color .2s; }
.tc-b:hover { background: var(--tc-line); }
.dark .tc-b { background: var(--night-3, #2c2c2e); color: #fff; }
.tc-empty { padding: 22px 16px; color: var(--mute); list-style: none; }
.tc-rides { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tc-ride { display: grid; grid-template-columns: 74px 1fr auto; gap: 18px; align-items: center; padding: 16px; border-radius: 18px; background: var(--tc-card); }
.tc-date { display: flex; flex-direction: column; align-items: center; padding: 10px 0; border-radius: 14px; background: var(--paper, #fff); line-height: 1.1; }
.dark .tc-date { background: var(--night-3, #2c2c2e); }
.tc-date b { font-size: 26px; font-weight: 600; }
.tc-date span { font-size: 13px; font-weight: 600; }
.tc-date small { font-size: 12px; color: var(--mute); }
.tc-rt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tc-rt b { font-weight: 600; font-size: 17px; }
.tc-rt span { font-size: 14.5px; color: var(--mute); }
.tc-rt p { margin: 2px 0; font-size: 15px; }
.tc-ra { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.tc-ra .tc-x { align-self: flex-end; }
.tc-sheet { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, 0); transition: background-color .25s; }
.tc-sheet.on { background: rgba(0, 0, 0, .38); }
.tc-panel { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 22px; border-radius: 22px; background: var(--paper, #fff); color: var(--ink); opacity: 0; transform: translateY(18px); transition: opacity .3s cubic-bezier(.22, 1, .36, 1), transform .3s cubic-bezier(.22, 1, .36, 1); }
.dark .tc-panel { background: var(--night-2, #1c1c1e); color: #f5f5f7; }
.tc-sheet.on .tc-panel { opacity: 1; transform: none; }
.tc-ph { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.tc-ph h3 { margin: 0; font-size: 22px; }
.tc-close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--tc-card, #f5f5f7); color: inherit; cursor: pointer; display: grid; place-items: center; }
.tc-close svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.tc-form { display: flex; flex-direction: column; gap: 14px; }
.tc-form label, .tc-form legend { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14.5px; }
.tc-form em { font-style: normal; font-weight: 400; color: var(--mute); }
.tc-form fieldset { border: 0; padding: 0; margin: 0; }
.tc-form legend { margin-bottom: 6px; }
.tc-form input:not([type=radio]), .tc-form select, .tc-form textarea { font: inherit; font-weight: 400; font-size: 16px; color: inherit; padding: 11px 13px; border: 0; border-radius: 12px; background: var(--grey, #f5f5f7); }
.dark .tc-form input:not([type=radio]), .dark .tc-form select, .dark .tc-form textarea { background: var(--night-3, #2c2c2e); }
.tc-form :focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.tc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tc-chips label { display: block; }
.tc-chips input { position: absolute; opacity: 0; pointer-events: none; }
.tc-chips span { display: inline-block; padding: 8px 13px; border-radius: 980px; background: var(--grey, #f5f5f7); font-weight: 500; font-size: 14px; cursor: pointer; transition: background-color .2s, color .2s; }
.dark .tc-chips span { background: var(--night-3, #2c2c2e); }
.tc-chips input:checked + span { background: var(--ink); color: #fff; }
.dark .tc-chips input:checked + span { background: #fff; color: #000; }
.tc-chips input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.tc-demo { margin: 0; font-size: 13.5px; color: var(--mute); }
.tc-acts { display: flex; justify-content: flex-end; gap: 8px; }
.tc-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 90; padding: 12px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 15px; opacity: 0; transform: translate(-50%, 10px); pointer-events: none; transition: opacity .25s, transform .25s cubic-bezier(.22, 1, .36, 1); }
.tc-toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 760px) {
  .tc-tablehead { display: none; }
  .tc-row { grid-template-columns: 1fr auto; gap: 8px 12px; }
  .tc-main { grid-column: 1 / -1; }
  .tc-f { grid-column: 1; } .tc-r { grid-column: 1; } .tc-b { grid-column: 2; grid-row: 2 / span 2; align-self: center; }
  .tc-ride { grid-template-columns: 64px 1fr; }
  .tc-ra { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; }
  .tc-q { flex: 1; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { .tc-panel, .tc-toast, .tc-sheet { transition: none; } }
