/* Daily Rider Community: page layouts. Colours, buttons and avatars are in base.css. */

/* ---------- The page around the plugin ---------- */

body.drc-page { background-color: var(--dr-bg); }
body.drc-page [data-vertical-spacing] { --theme-content-vertical-spacing: 40px; }
body.drc-page .entry-content > .drc { margin-block: 0; }

/* ---------- Shared pieces ---------- */

.drc-card { background: var(--dr-surface); border: 1px solid var(--dr-line); border-radius: 12px; }
.drc-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.drc-h2 { font-size: 17px; line-height: 1.3; font-weight: 700; }
.drc .drc-link { padding: 0; border: 0; background: none; color: var(--dr-accent); font-size: 14px; font-weight: 600; cursor: pointer; }
.drc .drc-link:hover { text-decoration: underline; }
.drc-label { margin-bottom: 10px; color: var(--dr-muted); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.drc-eyebrow { color: var(--dr-accent); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.drc .drc-display { font-family: "Barlow Condensed", "Inter", sans-serif; font-size: 44px; font-weight: 700; line-height: 1; text-transform: uppercase; letter-spacing: 0; }
.drc .drc-display--xl { margin: 4px 0 8px; font-size: 52px; }
.drc-lead { color: var(--dr-muted); font-size: 16px; text-wrap: pretty; }
.drc-empty { padding: 24px; color: var(--dr-muted); text-align: center; }
.drc-empty--big { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 44px 24px; color: var(--dr-ink); }
.drc-empty--big p { max-width: 440px; color: var(--dr-muted); font-size: 14px; }
.drc-empty--big .drc-btn { margin-top: 8px; }
.drc-empty__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
.drc-status { color: var(--dr-muted); font-size: 13px; }
.drc-status.is-error { color: var(--dr-nc); }
.drc-status.is-ok { color: var(--dr-pb); }
.drc-status:empty { display: none; }

.drc-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.drc-tabs::-webkit-scrollbar { display: none; }
.drc .drc-tab {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 15px 12px 12px;
	border: 0;
	border-bottom: 3px solid transparent;
	border-radius: 0;
	background: none;
	color: var(--dr-muted);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.55;
	white-space: nowrap;
}
.drc .drc-tab:hover { color: var(--dr-ink); }
.drc .drc-tab.is-active { color: var(--dr-ink); border-bottom-color: var(--dr-accent); }
.drc .drc-tab:active { transform: none; }
.drc-count { padding: 1px 7px; border-radius: 999px; background: var(--dr-soft); color: var(--dr-muted); font-size: 12px; font-weight: 600; line-height: 1.5; }

.drc-seg { display: flex; gap: 4px; width: max-content; max-width: 100%; padding: 4px; overflow-x: auto; border-radius: 10px; background: var(--dr-soft); scrollbar-width: none; }
.drc-seg--full { display: grid; grid-template-columns: 1fr 1fr; width: auto; margin-bottom: 18px; }
.drc .drc-seg__btn { padding: 8px 18px; border: 0; border-radius: 7px; background: transparent; color: var(--dr-muted); font-size: 14px; font-weight: 600; white-space: nowrap; }
.drc-seg--full .drc-seg__btn { padding: 7px 8px; font-size: 13px; }
.drc .drc-seg__btn.is-active { background: var(--dr-surface); color: var(--dr-ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }

.drc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.drc-chip { padding: 5px 11px; border-radius: 999px; background: var(--dr-soft); font-size: 13px; font-weight: 500; line-height: 1.4; }

.drc-socials { display: flex; flex-wrap: wrap; gap: 6px; }
.drc .drc-social {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 36px;
	padding: 0 14px 0 10px;
	border: 1px solid var(--dr-line);
	border-radius: 999px;
	background: var(--dr-surface);
	color: var(--dr-ink);
	font-size: 13px;
	font-weight: 600;
	transition: border-color .15s, background .15s;
}
.drc .drc-social:hover { border-color: var(--dr-muted); background: var(--dr-soft); }
.drc-social svg { flex: none; display: block; }
.drc-muted-ico { color: var(--dr-muted); }

.drc-pin { display: inline-grid; place-items: center; flex: none; border-radius: 50% 50% 50% 0; background: var(--dr-accent); transform: rotate(-45deg); }
.drc-pin > span { border-radius: 50%; background: var(--dr-surface); }
.drc-pin--lg { width: 30px; height: 30px; }
.drc-pin--lg > span { width: 11px; height: 11px; }
.drc-pin--sm { width: 12px; height: 12px; background: currentColor; }
.drc-pin--sm > span { width: 5px; height: 5px; }
.drc-pin--xs { width: 10px; height: 10px; }
.drc-pin--xs > span { width: 4px; height: 4px; }

/* Media tiles: square in grids, wide when a post has one item. */
.drc .drc-tile { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; padding: 0; overflow: hidden; border: 0; border-radius: 0; background: var(--dr-soft); }
.drc .drc-tile:active { transform: none; }
.drc-tile__img, .drc-tile img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.drc-tile__play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .2); }
.drc-tile__play > span { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: rgba(255, 255, 255, .92); }
.drc-tile__play > span::after { content: ""; width: 0; height: 0; margin-left: 5px; border-left: 17px solid #141414; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.drc-tile__dur { position: absolute; right: 10px; bottom: 10px; padding: 2px 7px; border-radius: 3px; background: rgba(0, 0, 0, .7); color: #fff; font-size: 12px; font-weight: 600; line-height: 1.5; }
.drc-tile__dur--small { right: auto; left: 5px; bottom: 5px; padding: 1px 6px; font-size: 11px; }
.drc-tile__more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .45); color: #fff; font-size: 28px; font-weight: 700; }

.drc-mgrid { display: grid; gap: 8px; }
.drc-mgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.drc-mgrid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.drc-mgrid--tight { gap: 6px; overflow: hidden; border-radius: 8px; }
.drc-mgrid--4 .drc-tile { border-radius: 8px; }
.drc-mgrid--4 .drc-tile:hover { opacity: .9; }
.drc-mgrid--4 .drc-tile__play { background: rgba(0, 0, 0, .18); }
.drc-mgrid--4 .drc-tile__play > span { width: 48px; height: 48px; }
.drc-mgrid--4 .drc-tile__play > span::after { margin-left: 4px; border-left-width: 14px; border-top-width: 8px; border-bottom-width: 8px; }
.drc-mgrid--4 .drc-tile__dur { right: 8px; bottom: 8px; }

/* Maps (Leaflet with OpenStreetMap tiles; our own orange pin). */
.drc-map, .drc-ride__map {
	position: relative;
	display: block;
	overflow: hidden;
	background: repeating-linear-gradient(135deg, var(--dr-soft) 0 10px, var(--dr-bg) 10px 20px);
}
.drc-map, .drc-ride__map { isolation: isolate; }
.drc-map__canvas { position: absolute; inset: 0; z-index: 0; }
/* The pin's box sits dead centre as drawn; the map is panned so the place is under its tip. */
.drc-map > .drc-pin { position: absolute; left: 50%; top: 50%; z-index: 1; margin: -15px 0 0 -15px; pointer-events: none; }
.drc .leaflet-container { font-family: inherit; background: var(--dr-soft); }
.drc .leaflet-control-attribution { font-size: 10px; background: rgba(255, 255, 255, .8); }
.drc .leaflet-control-attribution a { color: #333; }
:root[data-color-mode*="dark"] .drc .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.9) contrast(.9); }
.drc-route-start { display: block; width: 14px; height: 14px; border: 3px solid var(--dr-surface); border-radius: 50%; background: #2E9E5B; box-sizing: border-box; }
.drc-pin--md { width: 26px; height: 26px; }
.drc-pin--md > span { width: 10px; height: 10px; }

/* ---------- Riders directory ---------- */

.drc-dir { display: flex; flex-direction: column; gap: 24px; }
.drc-dir__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.drc-dir__intro { max-width: 640px; }
.drc-dir__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; }
.drc input.drc-search { flex: 1 1 260px; max-width: 440px; padding: 10px 18px; border-radius: 999px; background: var(--dr-bg); }
.drc-dir__sort { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.drc-dir__count { margin-right: 6px; color: var(--dr-muted); font-size: 14px; }
.drc .drc-sort { padding: 8px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--dr-muted); font-size: 14px; font-weight: 600; }
.drc .drc-sort:hover { color: var(--dr-ink); }
.drc .drc-sort.is-active { background: var(--dr-btn); color: var(--dr-btn-ink); }

.drc-rgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.drc-rcard { display: flex; flex-direction: column; align-items: center; padding: 0 20px 20px; overflow: hidden; text-align: center; transition: border-color .18s ease; }
.drc-rcard:hover { border-color: var(--dr-muted); }
.drc-rcard__banner { position: relative; align-self: stretch; height: 96px; margin: 0 -20px; overflow: hidden; background: #000 url(default-cover.webp) center / auto 100% no-repeat; }
.drc-rcard__banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.drc-rcard__banner .drc-rcard__blur { position: absolute; inset: -20px; width: calc(100% + 40px); max-width: none; height: calc(100% + 40px); filter: blur(18px) saturate(1.2); opacity: .75; }
.drc-rcard__av { position: relative; margin-top: -44px; }
.drc .drc-rcard__name { margin-top: 14px; color: var(--dr-ink); font-size: 16px; font-weight: 700; line-height: 1.3; }
.drc .drc-rcard__name:hover { text-decoration: underline; }
.drc-rcard__sub { display: -webkit-box; margin-top: 2px; overflow: hidden; color: var(--dr-muted); font-size: 14px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.drc-rcard__count { margin-top: 8px; color: var(--dr-muted); font-size: 13px; }
.drc-rcard__count strong, .drc-phead__stats strong { color: var(--dr-ink); font-weight: 600; }
.drc-rcard__foot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin-top: auto; padding-top: 18px; }
.drc .drc-rcard__foot .drc-btn { padding: 9px 0; }

/* ---------- Rider profile ---------- */

.drc-profile { display: flex; flex-direction: column; gap: 24px; }
.drc-phead { overflow: hidden; }
.drc-phead__cover { width: 100%; aspect-ratio: 4 / 1; min-height: 150px; background: #000 url(default-cover.webp) center / auto 100% no-repeat; } /* the Daily Rider banner until a rider adds their own cover */
.drc-phead__cover img { display: block; width: 100%; height: 100%; min-height: 150px; object-fit: cover; }
.drc-phead__id { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 24px; padding: 0 32px; }
.drc-phead__av { position: relative; margin-top: -56px; }
.drc-phead__who { flex: 1 1 300px; min-width: 0; padding-top: 18px; }
.drc-phead__name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.drc-phead__name h1 { font-size: 30px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.drc-phead__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; color: var(--dr-muted); }
.drc-phead__stats { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 12px; color: var(--dr-muted); font-size: 14px; }
.drc-phead__actions { display: flex; gap: 8px; padding-top: 22px; }
.drc .drc-btn--follow { min-width: 116px; }
.drc-phead__tabs { margin-top: 20px; padding: 0 20px; border-top: 1px solid var(--dr-line); }

.drc-wall { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; }
.drc-wall__side { display: flex; flex: 1 1 300px; flex-direction: column; gap: 24px; min-width: 0; }
.drc-wall__feed { display: flex; flex: 2 1 480px; flex-direction: column; gap: 16px; min-width: 0; }
.drc-feed { display: flex; flex-direction: column; gap: 16px; }
.drc-feed:empty { display: none; }
.drc .drc-more { align-self: center; }

.drc-side-card { padding: 20px 24px 24px; }
.drc-side-card > .drc-card__head { margin-bottom: 14px; }
.drc-community > .drc-card__head { margin-bottom: 12px; }

.drc-intro { overflow: hidden; }
.drc-sec { padding: 18px 24px; border-top: 1px solid var(--dr-line); }
.drc-sec--top { padding: 22px 24px 20px; border-top: 0; }
.drc-intro > .drc-sec:last-child { padding-bottom: 20px; }
.drc-sec--top .drc-h2 { margin-bottom: 10px; }
.drc-intro__bio { font-size: 15px; line-height: 1.6; text-wrap: pretty; }
.drc-why figcaption { margin-bottom: 0; }
.drc-why__body { display: flex; gap: 10px; margin-top: 8px; }
.drc-why__mark { flex: none; color: var(--dr-accent); font-family: "Barlow Condensed", sans-serif; font-size: 40px; font-weight: 700; line-height: .8; }
.drc-why blockquote { font-size: 15px; font-style: italic; line-height: 1.55; text-wrap: pretty; }
.drc-facts { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 14px; }
.drc-facts dt { color: var(--dr-muted); }
.drc-facts dd { font-weight: 600; text-align: right; }

.drc-checkin { overflow: hidden; }
.drc-checkin__head { padding: 20px 24px 14px; }
.drc-checkin .drc-map { height: 150px; margin: 0 24px; border-radius: 8px; }
.drc-checkin__place { display: flex; align-items: center; gap: 12px; padding: 14px 24px 20px; }
.drc-checkin__text { flex: 1; min-width: 0; }
.drc-checkin__name { font-weight: 600; }
.drc-checkin__empty { padding: 0 16px 16px; }

.drc-people__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; }
.drc .drc-person { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; color: var(--dr-ink); text-align: center; }
.drc .drc-person:hover { opacity: .8; }
.drc-person__name { width: 100%; overflow: hidden; font-size: 13px; font-weight: 600; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }

/* Composer */
.drc-composer { padding: 16px 20px; }
.drc-composer__top { display: flex; align-items: center; gap: 12px; }
.drc .drc-composer__input {
	flex: 1;
	min-width: 0;
	min-height: 44px;
	max-height: 260px;
	padding: 11px 18px;
	border-radius: 22px;
	background: var(--dr-bg);
	line-height: 20px;
	resize: none;
	overflow-y: auto;
}
.drc .drc-composer__input::placeholder { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.drc-composer__media { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0 56px; }
.drc-cthumb { position: relative; width: 76px; height: 76px; overflow: hidden; border-radius: 8px; background: var(--dr-soft); }
.drc-cthumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.drc-cthumb--video::after { content: "▶"; position: absolute; left: 6px; bottom: 5px; color: #fff; font-size: 11px; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.drc-cthumb__bar { position: absolute; left: 6px; right: 6px; bottom: 6px; height: 4px; overflow: hidden; border-radius: 4px; background: rgba(255, 255, 255, .5); }
.drc-cthumb__bar > span { display: block; height: 100%; background: var(--dr-accent); transition: width .2s; }
.drc .drc-cthumb__x { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .65); color: #fff; font-size: 14px; line-height: 1; }
.drc-chip-place, .drc-chip-ride {
	display: flex;
	align-items: center;
	gap: 8px;
	width: max-content;
	max-width: 100%;
	margin: 12px 0 0 56px;
	padding: 7px 8px 7px 12px;
	border-radius: 999px;
	background: var(--dr-accent-soft);
	color: var(--dr-accent);
	font-size: 14px;
	font-weight: 600;
}
.drc-chip-ride { background: var(--dr-soft); color: var(--dr-ink); }
.drc-chip-ride svg { color: #7c5cd6; flex: none; }
.drc-chip-place > span:not(.drc-pin), .drc-chip-ride > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drc .drc-chip-place__x { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 4px; border: 0; border-radius: 999px; background: transparent; color: inherit; font-size: 15px; line-height: 1; }
.drc-chip-ride .drc-chip-place__x:first-of-type { font-size: 12px; font-weight: 600; color: var(--dr-muted); }
.drc-composer__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--dr-line); }
.drc .drc-tool-pill { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 10px; border: 0; border-radius: 999px; background: transparent; color: var(--dr-ink); font-size: 14px; font-weight: 600; transition: background .15s; }
.drc .drc-tool-pill:hover { background: var(--dr-soft); }
.drc-tool-pill svg { flex: none; display: block; }
.drc-tool-pill--photo svg { color: #2E9E5B; }
.drc-tool-pill--video svg { color: #D9382C; }
.drc-tool-pill--ride svg { color: #7c5cd6; }
.drc-tool-pill--pin svg { color: var(--dr-accent); }
.drc .drc-tool-pill[aria-pressed="true"] { background: var(--dr-accent-soft); }
.drc .drc-tool-pill--ride[aria-pressed="true"] { background: var(--dr-soft); }
.drc-composer__status { flex: 1; min-width: 0; padding: 0 8px; text-align: right; }
.drc-composer__status:empty { display: block; }
.drc .drc-composer__post { padding: 9px 22px; }

/* Wall posts */
.drc-post { overflow: hidden; scroll-margin-top: 24px; }
.drc-post__head { display: flex; align-items: center; gap: 12px; padding: 16px 20px 0; }
.drc-post__who { flex: 1; min-width: 0; line-height: 1.3; }
.drc .drc-post__name { color: var(--dr-ink); font-weight: 600; }
.drc .drc-post__name:hover { text-decoration: underline; }
.drc-post__verb { color: var(--dr-muted); font-weight: 400; }
.drc-post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; color: var(--dr-muted); font-size: 13px; }
.drc .drc-post__meta a:hover { text-decoration: underline; }
.drc .drc-post__place { display: inline-flex; align-items: center; gap: 5px; color: var(--dr-ink); font-weight: 500; }
.drc-menu-wrap { position: relative; }
.drc .drc-post__more { width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--dr-muted); font-size: 18px; letter-spacing: 1px; }
.drc .drc-post__more:hover { background: var(--dr-soft); }
.drc-menu { position: absolute; top: 40px; right: 0; z-index: 20; min-width: 180px; padding: 6px; border: 1px solid var(--dr-line); border-radius: 10px; background: var(--dr-surface); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .3); }
.drc .drc-menu button { display: block; width: 100%; padding: 9px 12px; border: 0; border-radius: 6px; background: none; color: var(--dr-ink); font-size: 14px; text-align: left; }
.drc .drc-menu button:hover { background: var(--dr-soft); }
.drc .drc-menu button.is-danger { color: var(--dr-nc); }
.drc-post__text { padding: 12px 20px 14px; text-wrap: pretty; overflow-wrap: anywhere; }
.drc .drc-post__text a { color: var(--dr-accent); text-decoration: underline; }
.drc-post__gap { height: 12px; }
.drc-post__media { display: grid; gap: 3px; }
.drc-post__media--c1 { grid-template-columns: minmax(0, 1fr); }
.drc-post__media--c1 .drc-tile { aspect-ratio: 16 / 9; }
.drc-post__media--c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.drc-post__media--c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.drc-post__counts { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 20px; color: var(--dr-muted); font-size: 14px; }
.drc-likers { display: flex; align-items: center; gap: 8px; }
.drc-likers__faces { display: flex; }
.drc-likers__faces:empty { display: none; }
.drc-likers__av + .drc-likers__av { margin-left: -7px; }
.drc-likers__av.drc-av--initials { font-size: 9px; }
.drc .drc-post__ccount { color: inherit; }
.drc a.drc-post__ccount:hover { color: var(--dr-ink); text-decoration: underline; }
.drc-post__actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px 12px; border-top: 1px solid var(--dr-line); }
.drc .drc-act { display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--dr-muted); font-size: 14px; font-weight: 600; }
.drc .drc-act:hover { background: var(--dr-soft); color: var(--dr-ink); }
.drc .drc-act--like:hover { background: var(--dr-accent-soft); color: var(--dr-accent); }
.drc .drc-act--like.is-on { color: var(--dr-accent); }
.drc-act svg { flex: none; display: block; transition: transform .2s cubic-bezier(.3, 1.6, .5, 1); }
.drc-act--like.is-on svg { fill: currentColor; transform: scale(1.12); }
.drc-post__comments:not(:empty) { padding: 14px 20px 0; border-top: 1px solid var(--dr-line); }
.drc-post__reply { display: flex; align-items: center; gap: 10px; padding: 12px 20px 16px; }
.drc-post__comments:empty + .drc-post__reply { border-top: 1px solid var(--dr-line); }
.drc .drc-pill-input, .drc input.drc-pill-input { flex: 1; min-width: 0; padding: 8px 14px; border-radius: 999px; background: var(--dr-bg); font-size: 14px; }
.drc .drc-pill-input--link { display: block; border: 1px solid var(--dr-line); color: var(--dr-muted); }
.drc .drc-pill-input--link:hover { border-color: var(--dr-muted); }

/* Comments: under a wall post ("card") and on a post's page ("thread"). */
.drc-comment { display: flex; align-items: flex-start; gap: 10px; }
.drc-comment__main { flex: 1; min-width: 0; }
.drc-comment__bubble { position: relative; display: inline-block; max-width: 100%; padding: 8px 14px; border-radius: 14px; background: var(--dr-soft); font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.drc-comment__who { display: flex; align-items: center; gap: 6px; }
.drc .drc-comment__name { color: var(--dr-ink); font-weight: 600; }
.drc .drc-comment__name:hover { text-decoration: underline; }
.drc-comment__text { display: block; text-wrap: pretty; }
.drc .drc-comment__text a { color: var(--dr-accent); text-decoration: underline; }
.drc-comment__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding: 4px 14px 0; color: var(--dr-muted); font-size: 12px; }
.drc .drc-comment__act { padding: 0; border: 0; background: none; color: inherit; font-size: 12px; font-weight: 600; }
.drc .drc-comment__act:hover { color: var(--dr-ink); }
.drc-comment--thread .drc-comment__bubble { padding: 9px 14px; border-radius: 16px; }
.drc-comment--thread .drc-comment__meta { gap: 4px; padding: 4px 8px 0; font-weight: 600; }
.drc-comment--thread .drc-comment__meta time { padding: 0 6px; font-weight: 400; }
.drc .drc-comment--thread .drc-comment__act { padding: 3px 6px; border-radius: 6px; }
.drc .drc-comment--thread .drc-comment__act:hover { background: var(--dr-soft); }
.drc .drc-comment__act.is-on { color: var(--dr-accent); }
.drc-comment__likes { position: absolute; right: -10px; bottom: -10px; display: flex; align-items: center; gap: 3px; padding: 2px 7px 2px 5px; border-radius: 999px; background: var(--dr-surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .18); font-size: 11px; font-weight: 600; line-height: 1.4; }
.drc-comment__likes svg { display: block; }
.drc-comment__replies { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; padding-left: 14px; border-left: 2px solid var(--dr-line); }
.drc-comment.is-new .drc-comment__bubble { animation: drPop .4s var(--dr-ease); }
@keyframes drPop { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Ride posts */
.drc-ride { padding: 12px 20px 0; }
.drc .drc-ride__text { margin: 0 0 14px; text-wrap: pretty; }
.drc-ride__title { font-size: 18px; font-weight: 700; line-height: 1.3; }
.drc-ride__line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; color: var(--dr-muted); font-size: 14px; }
.drc-ride__map { height: 210px; margin: 14px 20px 0; border-radius: 10px; }
.drc .drc-ride__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 14px 20px 2px; overflow: hidden; border: 1px solid var(--dr-line); border-radius: 10px; background: var(--dr-line); }
.drc .drc-ride__stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.drc .drc-ride__stats--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.drc .drc-ride__stats--1 { grid-template-columns: minmax(0, 1fr); }
.drc-ride__stats > div { padding: 12px 14px; background: var(--dr-surface); }
.drc-ride__stats dt { color: var(--dr-muted); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.drc-ride__stats dd { margin-top: 2px; font-size: 18px; font-weight: 700; }

/* Articles tab */
.drc-agrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.drc-agrid > li { display: flex; min-width: 0; }
.drc .drc-art {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--dr-line);
	border-radius: 12px;
	background: var(--dr-surface);
	color: inherit;
	transition: transform .35s var(--dr-ease), box-shadow .35s var(--dr-ease);
}
.drc .drc-art:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .22); }
.drc-art__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--dr-soft); }
.drc-art__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--dr-ease); }
.drc-art:hover .drc-art__media img { transform: scale(1.06); }
.drc-art__body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 22px 24px 24px; }
.drc-art__cat { color: var(--dr-accent); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.drc-art__title { display: -webkit-box; overflow: hidden; font-size: 19px; font-weight: 700; line-height: 1.3; text-wrap: pretty; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.drc-art__foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--dr-line); font-size: 14px; }
.drc-art__foot time { color: var(--dr-muted); }
.drc-art__cta { display: inline-flex; align-items: center; gap: 6px; color: var(--dr-ink); font-weight: 600; transition: color .2s; }
.drc-art:hover .drc-art__cta { color: var(--dr-accent); }
.drc-art__arrow { display: inline-block; transition: transform .3s var(--dr-ease); }
.drc-art:hover .drc-art__arrow { transform: translateX(4px); }
.drc-art--ghost { flex: 1; border-style: dashed; background: transparent; opacity: .75; }
.drc .drc-art--ghost:hover { transform: none; box-shadow: none; }
.drc-art--ghost .drc-art__media { background: repeating-linear-gradient(135deg, var(--dr-soft) 0 10px, transparent 10px 20px); }
.drc-art--ghost .drc-art__body { gap: 12px; }
.drc-art--ghost .drc-art__foot { border-top-style: dashed; }
.drc-bar { display: block; border-radius: 3px; background: var(--dr-soft); }
.drc-bar--cat { width: 84px; height: 10px; }
.drc-bar--t1 { width: 90%; height: 16px; }
.drc-bar--t2 { width: 60%; height: 16px; }
.drc-bar--date { width: 96px; height: 12px; }

/* Photos & videos tab */
.drc-mediacard { padding: 24px; }
.drc-mediacard > .drc-card__head { flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.drc-mediacard .drc-muted { font-size: 14px; }

/* About tab */
.drc-about { display: flex; flex-wrap: wrap; align-items: stretch; gap: 24px; }
.drc-about__main { flex: 2 1 420px; min-width: 0; padding: 28px; }
.drc-about__main > .drc-h2 { margin-bottom: 12px; }
.drc-about__bio { font-size: 16px; line-height: 1.65; text-wrap: pretty; }
.drc .drc-about__why { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--dr-line); }
.drc-about__why .drc-label { margin-bottom: 0; letter-spacing: .06em; }
.drc-about__why blockquote { margin-top: 8px; font-size: 19px; font-weight: 500; line-height: 1.5; text-wrap: pretty; }
.drc-about__chips { gap: 8px; margin-top: 24px; }
.drc-about__chips .drc-chip { padding: 6px 12px; }
.drc-about__details { flex: 1 1 260px; min-width: 0; padding: 28px; }
.drc-about__details > .drc-h2 { margin-bottom: 4px; }
.drc-dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--dr-line); font-size: 14px; }
.drc-dl dt { color: var(--dr-muted); }
.drc-dl dd { font-weight: 600; text-align: right; }
.drc-about__follow { margin-top: 18px; }

/* ---------- A wall post on its own page ---------- */

.drc-postpage { display: flex; flex-direction: column; gap: 14px; }
.drc .drc-back { align-self: flex-start; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 8px; color: var(--dr-ink); font-size: 14px; font-weight: 600; }
.drc .drc-back:hover { background: var(--dr-soft); }
.drc-back span { font-size: 18px; line-height: 1; }
.drc-pp { --stage: 560px; display: flex; flex-wrap: wrap; overflow: hidden; }
.drc-pp__viewer { position: relative; display: flex; flex: 3 1 520px; flex-direction: column; min-width: 0; background: #0b0b0b; }
.drc-pp__stage { position: relative; height: var(--stage); }
.drc-pp__stage img, .drc-pp__stage video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.drc-pp__counter { position: absolute; top: 14px; right: 14px; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; font-weight: 600; }
.drc .drc-pp__nav { position: absolute; top: calc(var(--stage) / 2 - 22px); display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); color: #141414; font-size: 20px; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.drc .drc-pp__nav:hover { background: #fff; }
.drc-pp__nav--prev { left: 14px; }
.drc-pp__nav--next { right: 14px; }
.drc-pp__thumbs { display: flex; justify-content: center; gap: 8px; padding: 12px; overflow-x: auto; }
.drc .drc-pp__thumb { flex: none; width: 64px; height: 44px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 6px; background: none; opacity: .55; }
.drc .drc-pp__thumb:hover, .drc .drc-pp__thumb.is-active { opacity: 1; }
.drc .drc-pp__thumb.is-active { border-color: #fff; }
.drc-pp__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.drc-pp__ride { flex: 3 1 520px; min-width: 0; padding-bottom: 20px; }
.drc-pp__ride .drc-ride { padding-top: 20px; }
.drc-pp__ride .drc-ride__map { height: 340px; }
.drc .drc-pp__ride .drc-ride__stats { margin-bottom: 0; }
.drc-pp__side { display: flex; flex: 2 1 360px; flex-direction: column; min-width: 0; border-left: 1px solid var(--dr-line); }
.drc-pp__side .drc-post__head { padding: 18px 20px 0; }
.drc-post__counts--page { padding: 0 20px 12px; }
.drc-post__actions--page { border-bottom: 1px solid var(--dr-line); }
.drc-thread { display: flex; flex: 1; flex-direction: column; gap: 18px; max-height: var(--stage); padding: 18px 20px; overflow: auto; }
.drc-thread__label { color: var(--dr-muted); font-size: 13px; font-weight: 600; }
.drc-thread__list { display: flex; flex-direction: column; gap: 18px; }
.drc-pp__reply { padding: 12px 20px 16px; border-top: 1px solid var(--dr-line); }
.drc-pp__reply-row { display: flex; align-items: center; gap: 10px; }
.drc .drc-pp__reply input.drc-pill-input { padding: 9px 16px; }
.drc .drc-pp__post { padding: 8px; border: 0; background: none; color: var(--dr-accent); font-size: 14px; font-weight: 700; }
.drc-pp__replying { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--dr-muted); font-size: 12px; }
.drc .drc-pp__replying button { width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: var(--dr-soft); color: inherit; font-size: 13px; line-height: 1; }
.drc-pp--media .drc-pp__side { max-height: var(--stage); }
.drc-pp--media.has-thumbs .drc-pp__side { max-height: calc(var(--stage) + 68px); }
.drc-pp--media .drc-thread { min-height: 0; max-height: none; }
.drc-pp--solo { width: 100%; max-width: 760px; margin: 0 auto; }
.drc-pp--solo .drc-pp__side { border-left: 0; }
.drc-pp--solo .drc-thread { max-height: none; }

/* ---------- Rider dashboard ---------- */

.drc-dash { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px; }
.drc-dash__side { position: sticky; top: var(--dr-sticky); display: flex; flex: 0 0 240px; flex-direction: column; gap: 16px; min-width: 0; }
.drc-dash__main { display: flex; flex: 1 1 560px; flex-direction: column; gap: 24px; min-width: 0; }
.drc-dash__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.drc .drc-dash__sub { max-width: 620px; margin-top: 8px; color: var(--dr-muted); text-wrap: pretty; }

.drc-acct { padding: 16px; }
.drc-acct__who { display: flex; align-items: center; gap: 12px; padding: 4px 4px 16px; border-bottom: 1px solid var(--dr-line); }
.drc-acct__text { min-width: 0; line-height: 1.35; }
.drc-acct__name { font-weight: 700; }
.drc-acct .drc-link { font-size: 13px; }
.drc-acct__nav { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; }
.drc .drc-acct__item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; color: var(--dr-muted); font-size: 15px; font-weight: 500; white-space: nowrap; }
.drc .drc-acct__item:hover { background: var(--dr-soft); }
.drc .drc-acct__item.is-active { background: var(--dr-soft); color: var(--dr-ink); font-weight: 600; }
.drc-acct__n { color: var(--dr-muted); font-size: 12px; font-weight: 600; }

.drc-todo { padding: 18px 16px 12px; }
.drc-todo__head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px; }
.drc-todo__title { font-weight: 700; }
.drc-todo__pct { color: var(--dr-accent); font-size: 13px; font-weight: 700; }
.drc-todo__bar { height: 6px; margin: 10px 4px 6px; overflow: hidden; border-radius: 999px; background: var(--dr-soft); }
.drc-todo__bar > span { display: block; height: 100%; border-radius: 999px; background: var(--dr-accent); transition: width .3s; }
.drc-todo__left { padding: 0 4px 8px; color: var(--dr-muted); font-size: 12px; }
.drc-todo__list { display: flex; flex-direction: column; }
.drc .drc-todo__item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 4px; border-radius: 8px; color: var(--dr-ink); font-size: 13px; text-align: left; }
.drc .drc-todo__item:hover { background: var(--dr-soft); }
.drc-todo__dot { display: grid; place-items: center; flex: none; width: 18px; height: 18px; border: 1.5px dashed var(--dr-line); border-radius: 50%; color: var(--dr-pb); font-size: 11px; font-weight: 700; }
.drc-todo__label { flex: 1; min-width: 0; }
.drc .drc-todo__item.is-done { color: var(--dr-muted); }
.drc-todo__item.is-done .drc-todo__label { text-decoration: line-through; }
.drc-todo__item.is-done .drc-todo__dot { border: 0; background: var(--dr-pb-bg); }

/* My articles */
.drc-table { overflow: hidden; container-type: inline-size; }
.drc-tabs--sm { padding: 0 12px; border-bottom: 1px solid var(--dr-line); }
.drc .drc-tabs--sm .drc-tab { padding: 14px 10px 11px; font-size: 14px; }
.drc-table__head, .drc-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px 120px 220px; }
.drc-table__head { gap: 16px; padding: 10px 20px; border-bottom: 1px solid var(--dr-line); background: var(--dr-bg); color: var(--dr-muted); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.drc-table__head > :last-child { text-align: right; }
.drc-row { align-items: center; gap: 12px 16px; padding: 16px 20px; border-top: 1px solid var(--dr-line); transition: background-color .18s ease; }
.drc-table__rows > .drc-row:first-child, .drc-table__rows > .drc-row.is-first { border-top: 0; }
.drc-row:hover { background: var(--dr-bg); }
.drc-row__article { display: flex; align-items: center; gap: 14px; min-width: 0; }
.drc-row__thumb { flex: none; width: 88px; height: 60px; overflow: hidden; border-radius: 6px; background: var(--dr-soft); }
.drc-row__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.drc-row__text { display: flex; flex-direction: column; min-width: 0; }
.drc-row__title { display: -webkit-box; overflow: hidden; font-weight: 600; line-height: 1.35; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.drc-row__cat { margin-top: 2px; color: var(--dr-muted); font-size: 13px; }
.drc-row__date { color: var(--dr-muted); font-size: 14px; }
.drc-row__actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.drc-row__note { grid-column: 1 / -1; margin-left: 102px; padding: 10px 14px; border-radius: 8px; background: var(--dr-nc-bg); color: var(--dr-nc); font-size: 14px; text-wrap: pretty; }
.drc-row__request { display: flex; flex-direction: column; gap: 8px; grid-column: 1 / -1; margin-left: 102px; }
.drc-row__request label { font-size: 13px; font-weight: 600; }
.drc-row__request-bar { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.drc-row__request-bar .drc-status { margin-right: auto; }
.drc-table__none { padding: 28px 20px; color: var(--dr-muted); text-align: center; }

/* The table stacks whenever it is too narrow for its four columns (phones, tablets, a wrapped sidebar). */
@container (max-width: 860px) {
	.drc-table__head { display: none; }
	.drc-row { grid-template-columns: auto minmax(0, 1fr); gap: 12px; }
	.drc-row__article, .drc-row__actions, .drc-row__note, .drc-row__request { grid-column: 1 / -1; }
	.drc-row__date { align-self: center; }
	.drc-row__actions { justify-content: flex-start; }
	.drc-row__note, .drc-row__request { margin-left: 0; }
}

/* Write */
.drc-write { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; }
.drc-write__main { display: flex; flex: 3 1 480px; flex-direction: column; gap: 16px; min-width: 0; }
.drc-write__side { position: sticky; top: var(--dr-sticky); display: flex; flex: 1 1 260px; flex-direction: column; gap: 16px; min-width: 0; }
.drc-banner { padding: 16px 20px; border: 1px solid var(--dr-note-line); border-radius: 12px; background: var(--dr-note); }
.drc-banner__label { color: var(--dr-rv); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.drc-banner__text p { margin-top: 6px; text-wrap: pretty; }
.drc-banner--review { border-color: var(--dr-line); background: var(--dr-soft); }
.drc-banner--review .drc-banner__label { color: var(--dr-muted); }
.drc-editor-card { overflow: hidden; overflow: clip; }
.drc-mainphoto { position: relative; width: 100%; aspect-ratio: 16 / 6; background: var(--dr-soft); }
.drc-mainphoto.is-empty { background: repeating-linear-gradient(135deg, var(--dr-soft) 0 10px, var(--dr-bg) 10px 20px); }
.drc-mainphoto__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.drc .drc-mainphoto__add { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; width: max-content; height: max-content; margin: auto; padding: 10px 18px; border: 1px solid var(--dr-line); border-radius: 8px; background: var(--dr-surface); color: var(--dr-ink); font-size: 14px; font-weight: 600; }
.drc .drc-mainphoto__add:hover { border-color: var(--dr-ink); }
.drc-mainphoto__btns { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 8px; }
.drc .drc-photo-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 0; border-radius: 8px; background: #fff; color: #141414; font-size: 13px; font-weight: 600; }
.drc .drc-photo-btn--dark { background: rgba(0, 0, 0, .65); color: #fff; }
.drc-mainphoto__status { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 12px; }
.drc-mainphoto__status:empty { display: none; }
.drc-mainphoto__status.is-error { background: var(--dr-nc); }
.drc-editor-card__help { padding: 8px 28px 0; color: var(--dr-muted); font-size: 12px; }
.drc input.drc-title-input { display: block; width: 100%; padding: 18px 28px 8px; border: 0; border-radius: 0; background: transparent; color: var(--dr-ink); font-size: 32px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; outline: none; }
.drc .drc-title-input:hover, .drc .drc-title-input:focus { border: 0; outline: none; }
.drc-editor__toolbar { position: sticky; top: var(--dr-top); z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin-top: 8px; padding: 6px 20px; border-top: 1px solid var(--dr-line); border-bottom: 1px solid var(--dr-line); background: var(--dr-bg); }
.drc .drc-tool { min-width: 34px; height: 32px; padding: 0 9px; border: 0; border-radius: 6px; background: transparent; color: var(--dr-ink); font-size: 14px; font-weight: 500; }
.drc .drc-tool:hover { background: var(--dr-soft); }
.drc .drc-tool--bold { font-weight: 700; }
.drc .drc-tool--italic { font-style: italic; font-weight: 400; }
.drc-tool-sep { width: 1px; height: 20px; margin: 0 6px; background: var(--dr-line); }
.drc-editor__area { min-height: 320px; padding: 24px 28px 28px; font-size: 17px; line-height: 1.7; outline: none; overflow-wrap: anywhere; }
.drc-editor__area:empty::before { content: attr(data-placeholder); color: var(--dr-muted); pointer-events: none; }
.drc-editor__area > * { margin: 0 0 20px; }
.drc-editor__area h1, .drc-editor__area h2 { margin: 28px 0 10px; font-size: 24px; line-height: 1.25; font-weight: 700; }
.drc-editor__area h3 { margin: 24px 0 8px; font-size: 20px; line-height: 1.3; font-weight: 700; }
.drc-editor__area > :first-child { margin-top: 0; }
.drc-editor__area ul, .drc-editor__area ol { padding-left: 22px; list-style: revert; }
.drc-editor__area blockquote { padding-left: 16px; border-left: 3px solid var(--dr-accent); font-style: italic; }
.drc-editor__area img { display: block; max-width: 100%; height: auto; border-radius: 8px; }
.drc-editor__area a { color: var(--dr-accent); text-decoration: underline; }
.drc-editor__foot { display: flex; justify-content: space-between; gap: 12px; padding: 10px 28px; border-top: 1px solid var(--dr-line); color: var(--dr-muted); font-size: 13px; }
.drc-publish { padding: 20px; }
.drc-publish__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.drc-publish__btns { display: flex; flex-direction: column; gap: 8px; }
.drc .drc-publish__status { margin-top: 12px; }
.drc .drc-publish__note { margin-top: 14px; color: var(--dr-muted); font-size: 13px; text-wrap: pretty; }
.drc-details { display: flex; flex-direction: column; gap: 18px; padding: 20px; }

.drc-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.drc-field > label { font-size: 13px; font-weight: 600; }
.drc-field__label-row { display: flex; justify-content: space-between; gap: 12px; }
.drc-counter { color: var(--dr-muted); font-size: 12px; font-weight: 400; }
.drc-counter.is-over { color: var(--dr-nc); }
.drc-opt { color: var(--dr-muted); font-weight: 400; }
.drc-hint { color: var(--dr-muted); font-size: 12px; }
.drc-select { position: relative; display: block; }
.drc .drc-select select { padding: 10px 32px 10px 12px; appearance: none; -webkit-appearance: none; background-image: none; }
.drc-select::after { content: ""; position: absolute; top: 50%; right: 14px; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid var(--dr-muted); transform: translateY(-50%); pointer-events: none; }
.drc .drc-details input, .drc .drc-details textarea { padding: 10px 12px; }
.drc textarea { resize: vertical; line-height: 1.55; }

/* My profile */
.drc-me { display: flex; flex-direction: column; gap: 20px; }
.drc-me__cols { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; }
.drc-me__main { display: flex; flex: 1 1 460px; flex-direction: column; gap: 20px; min-width: 0; }
.drc-me__panel { display: flex; flex-direction: column; gap: 20px; }
.drc-me__side { position: sticky; top: var(--dr-sticky); display: flex; flex: 0 1 300px; flex-direction: column; gap: 16px; min-width: 260px; }
.drc-photos { overflow: hidden; }
.drc-photos__cover { position: relative; width: 100%; aspect-ratio: 3.6 / 1; min-height: 120px; background: #000 url(default-cover.webp) center / auto 100% no-repeat; }
.drc-photos__cover img { display: block; width: 100%; height: 100%; min-height: 120px; object-fit: cover; }
.drc .drc-photos__change { position: absolute; top: 12px; right: 12px; padding: 8px 12px; background: rgba(255, 255, 255, .95); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.drc-photos__row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; padding: 0 24px 22px; }
.drc-photos__av { position: relative; flex: none; margin-top: -48px; }
.drc-photos__av .drc-av { background: var(--dr-surface); }
.drc-photos__av .drc-av--initials { background: var(--dr-accent-soft); }
.drc .drc-photos__plus { position: absolute; right: 2px; bottom: 2px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 3px solid var(--dr-surface); border-radius: 50%; background: var(--dr-btn); color: var(--dr-btn-ink); font-size: 16px; font-weight: 600; line-height: 1; }
.drc-photos__text { flex: 1 1 220px; min-width: 0; padding-bottom: 4px; }
.drc-photos__title { font-weight: 700; }
.drc-photos__help { margin-top: 2px; color: var(--dr-muted); font-size: 13px; text-wrap: pretty; }
.drc-photos__text .drc-status { margin-top: 6px; }
.drc-form-card__head { padding: 22px 24px 0; }
.drc-form-card__head p { margin-top: 4px; color: var(--dr-muted); font-size: 14px; text-wrap: pretty; }
.drc-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px 16px; padding: 20px 24px 24px; }
.drc-form-grid--dialog { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); padding: 0; }
.drc-field--wide { grid-column: 1 / -1; }
.drc-field--narrow { max-width: 360px; }
.drc .drc-links { display: flex; flex-direction: column; padding: 12px 24px; }
.drc-links__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 0; border-top: 1px solid var(--dr-line); }
.drc-links__row:first-child { border-top: 0; }
.drc-links__label { display: flex; flex: none; align-items: center; gap: 12px; width: 150px; font-weight: 600; }
.drc .drc-links__row input { flex: 1 1 240px; width: auto; }
.drc-links__state { flex: none; width: 96px; color: var(--dr-muted); font-size: 12px; font-weight: 600; }
.drc-links__state.is-on { color: var(--dr-pb); }
.drc-brand-tile { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; }
.drc-brand-tile svg { display: block; }
.drc-brand-tile--website { background: var(--dr-soft); color: var(--dr-muted); }
.drc-brand-tile--instagram { background: linear-gradient(45deg, #F9CE34 0%, #EE2A7B 50%, #6228D7 100%); }
.drc-brand-tile--youtube { background: #FF0000; }
.drc-brand-tile--facebook { background: #1877F2; }
.drc-brand-tile--tiktok { background: #141414; }
.drc-close { padding: 20px 24px; border-color: var(--dr-nc-bg); }
.drc-close__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.drc-close__text { min-width: 0; }
.drc-close .drc-h2 { color: var(--dr-nc); }
.drc-close__text p { margin-top: 4px; color: var(--dr-muted); font-size: 14px; text-wrap: pretty; }
.drc-close__form { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.drc-close__bar { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.drc-close__bar .drc-status { margin-right: auto; }
.drc-close.is-pending .drc-state { padding: 4px 10px; }

.drc-savebar { position: sticky; bottom: 16px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 20px; border-radius: 12px; background: var(--dr-btn); color: var(--dr-btn-ink); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .35); animation: drPop .25s var(--dr-ease); }
.drc-savebar__msg { font-size: 14px; font-weight: 500; }
.drc-savebar__msg.is-error { color: #ffb4a8; }
:root[data-color-mode*="dark"] .drc-savebar__msg.is-error { color: var(--dr-nc); }
.drc-savebar__btns { display: flex; gap: 8px; }
.drc .drc-savebar__discard { padding: 9px 16px; border: 0; border-radius: 8px; background: transparent; color: inherit; font-size: 14px; font-weight: 600; opacity: .75; }
.drc .drc-savebar__discard:hover { opacity: 1; }
.drc .drc-savebar__save { padding: 9px 20px; border: 0; border-radius: 8px; background: var(--dr-accent-strong); color: #fff; font-size: 14px; font-weight: 600; }

.drc-preview { overflow: hidden; }
.drc-preview__label { padding: 12px 16px; border-bottom: 1px solid var(--dr-line); color: var(--dr-muted); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.drc-preview__cover { height: 84px; background: #000 url(default-cover.webp) center / auto 100% no-repeat; }
.drc-preview__cover img { display: block; width: 100%; height: 84px; object-fit: cover; }
.drc-preview__body { padding: 0 16px 18px; }
.drc-preview__av { position: relative; margin-top: -32px; }
.drc-preview__name { margin-top: 8px; font-weight: 700; }
.drc-preview__meta { color: var(--dr-muted); font-size: 13px; }
.drc-preview__meta:empty { display: none; }
.drc .drc-preview__bio { display: -webkit-box; margin-top: 10px; overflow: hidden; font-size: 13px; line-height: 1.5; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.drc-preview__bio:empty { display: none; }
.drc-preview .drc-btn { margin-top: 14px; }

/* Notifications page */
.drc-notes-page { overflow: hidden; }
.drc-notes-page__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--dr-line); }
.drc-notes-page .drc-seg__btn { padding: 7px 16px; font-size: 13px; }
.drc-notes-page .drc-link-btn { padding: 6px 8px; font-size: 14px; }
.drc-notes-group__label { padding: 16px 20px 4px; color: var(--dr-muted); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.drc-notes-group .drc-notes { padding: 0 6px 6px; }
.drc-notes-group:not([hidden]) + .drc-notes-group--earlier { border-top: 1px solid var(--dr-line); }
.drc-notes-group--earlier .drc-notes { padding-bottom: 8px; }

/* Login prompt for visitors on member pages */
.drc-gate { display: flex; justify-content: center; }
.drc-gate__card { max-width: 560px; padding: 40px 32px; text-align: center; }
.drc-gate .drc-h1 { font-family: "Barlow Condensed", sans-serif; font-size: 44px; font-weight: 700; line-height: 1; text-transform: uppercase; }
.drc-gate p { margin-top: 12px; color: var(--dr-muted); }
.drc-gate .drc-actions { margin-top: 20px; }

/* Dialogs: check in, log a ride */
.drc-dialog { width: 100%; max-width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; overflow: visible; border: 0; background: transparent; color: var(--dr-ink); }
.drc-dialog--wide { max-width: min(580px, calc(100vw - 32px)); }
.drc-dialog::backdrop { background: rgba(0, 0, 0, .45); }
.drc-dialog__card { display: flex; flex-direction: column; gap: 14px; max-height: calc(100vh - 32px); padding: 20px; overflow: auto; border-radius: 14px; background: var(--dr-surface); box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .4); }
.drc-dialog__head { display: flex; justify-content: space-between; align-items: center; }
.drc .drc-dialog__x { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--dr-muted); font-size: 22px; line-height: 1; }
.drc .drc-dialog__x:hover { background: var(--dr-soft); color: var(--dr-ink); }
.drc-dialog__or { display: flex; align-items: center; gap: 10px; color: var(--dr-muted); font-size: 12px; }
.drc-dialog__or::before, .drc-dialog__or::after { content: ""; flex: 1; height: 1px; background: var(--dr-line); }
.drc-place-search { display: flex; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid var(--dr-line); border-radius: 999px; background: var(--dr-bg); color: var(--dr-muted); }
.drc .drc-place-search input { padding: 10px 0; border: 0; background: transparent; }
.drc .drc-place-search input:focus { outline: none; }
.drc-place-search:focus-within { outline: 2px solid var(--dr-accent); outline-offset: -1px; }
.drc-place-list { max-height: 260px; overflow: auto; }
.drc-place-list:empty { display: none; }
.drc .drc-place-list button { display: flex; flex-direction: column; align-items: flex-start; width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; background: none; color: var(--dr-ink); text-align: left; }
.drc .drc-place-list button:hover, .drc .drc-place-list button:focus-visible { background: var(--dr-soft); }
.drc-place-list strong { font-weight: 600; }
.drc-place-list span { color: var(--dr-muted); font-size: 13px; }
.drc-dialog__note { color: var(--dr-muted); font-size: 12px; }
.drc-dialog__foot { display: flex; justify-content: flex-end; gap: 8px; }
.drc-gpx { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px; border: 1px dashed var(--dr-line); border-radius: 10px; }
.drc-gpx .drc-hint { flex: 1 1 200px; }
.drc-gpx svg { color: #7c5cd6; }

/* Lightbox */
.drc-lightbox { width: 100vw; max-width: none; height: 100vh; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(0, 0, 0, .92); }
.drc-lightbox::backdrop { background: rgba(0, 0, 0, .6); }
.drc-lightbox__stage { position: absolute; inset: 56px 64px; display: grid; place-items: center; }
.drc-lightbox__stage img, .drc-lightbox__stage video { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.drc .drc-lightbox__btn { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); color: #141414; font-size: 22px; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.drc-lightbox__close { top: 16px; right: 16px; }
.drc-lightbox__prev { top: calc(50% - 22px); left: 12px; }
.drc-lightbox__next { top: calc(50% - 22px); right: 12px; }
.drc-lightbox__count { position: absolute; left: 50%; bottom: 16px; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; font-weight: 600; transform: translateX(-50%); }
.drc-lightbox__count:empty { display: none; }

/* Skeletons while more posts load */
.drc-skpost { overflow: hidden; }
.drc-skpost__head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; }
.drc-skpost__lines { display: flex; flex: 1; flex-direction: column; gap: 8px; }
.drc-skpost__text { display: flex; flex-direction: column; gap: 8px; padding: 0 20px 16px; }
.drc-skpost__media { aspect-ratio: 16 / 9; border-radius: 0; }
.drc-skpost__acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 14px 20px; }

/* ---------- Narrower screens ---------- */

@media (max-width: 1080px) {
	.drc-rgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
	.drc-dash__side { position: static; flex: 1 1 100%; }
	/* On narrow screens the checklist shows only what is left to do. */
	.drc-todo__list li:has(.is-done) { display: none; }
	.drc-todo.is-complete { display: none; }
	.drc-acct__nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
	.drc-write__side, .drc-me__side { position: static; }
	.drc-pp { --stage: 420px; }
	.drc-pp__side { border-left: 0; border-top: 1px solid var(--dr-line); }
	.drc-pp--solo .drc-pp__side { border-top: 0; }
	.drc-thread { max-height: none; }
	.drc-pp--media .drc-pp__side, .drc-pp--media.has-thumbs .drc-pp__side { max-height: none; }
}

@media (max-width: 820px) {
	.drc-rgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
	body.drc-page [data-vertical-spacing] { --theme-content-vertical-spacing: 20px; }
	.drc-phead__id { padding: 0 16px; }
	.drc-av--xl { --s: 112px; }
	.drc-phead__tabs { padding: 0 4px; }
	.drc-phead__actions { padding-top: 0; padding-bottom: 4px; }
	.drc-agrid { grid-template-columns: minmax(0, 1fr); }
	.drc-agrid__ghost { display: none; }
	.drc-mgrid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.drc .drc-ride__stats--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.drc .drc-display { font-size: 36px; }
	.drc .drc-display--xl { font-size: 44px; }
	.drc-me__side { flex: 1 1 100%; min-width: 0; }
	.drc-links__label { width: auto; flex: 1 1 100%; }
	.drc-links__state { width: auto; }
	.drc-pp { --stage: 300px; }
	.drc-pp__ride .drc-ride__map { height: 240px; }
	.drc-composer__media, .drc-chip-place, .drc-chip-ride { margin-left: 0; }
}

@media (max-width: 560px) {
	.drc-rgrid { grid-template-columns: minmax(0, 1fr); }
	.drc .drc-tool-pill { padding: 0 10px; }
	.drc .drc-tool-pill span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.drc-lightbox__stage { inset: 56px 8px; }
}
