Files
mind-garden/at-transit/web-design/html/assets/styles.css
T
phattaranun.a bc1edb39ef feat: add routes page with filtering and drawer details
- Implemented a new routes page with search and category filtering.
- Added a drawer component to display detailed information about selected routes.
- Created a CSS file for styling the routes page and its components.
- Introduced a Python script to upload seed images to SeaweedFS and generate SQL insert statements for the images table.
2026-07-18 16:51:23 +07:00

1311 lines
43 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* ============================================================
AT Transit — bold-creative light theme
Ported from flow_ui/ui/_shared.css + index.html inline styles
============================================================ */
:root {
--bg: #f7f9fd;
--surface: #ffffff;
--ink: #1f2a44;
--ink-muted: #4a5876;
--muted: #6f7b95;
--line: #e9eef7;
--sky-50: #dbeafe; --sky-700: #1d4ed8;
--purple-50: #ede9fe; --purple-700: #6d28d9;
--pink-50: #fce7f3; --pink-700: #be185d;
--mint-50: #d1fae5; --mint-700: #047857;
--green-50: #dcfce7; --green-700: #15803d;
--amber-50: #fef3c7; --amber-700: #b45309;
--grad-sky: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
--grad-purple: linear-gradient(135deg, #8b5cf6 0%, #c084fc 100%);
--grad-pink: linear-gradient(135deg, #ec4899 0%, #f472b6 100%);
--grad-mint: linear-gradient(135deg, #10b981 0%, #34d399 100%);
--grad-amber: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
--grad-cta: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
--radius: 16px;
--radius-lg: 22px;
--shadow-sm: 0 4px 14px rgba(20, 40, 90, .06);
--shadow-md: 0 10px 24px rgba(20, 40, 90, .10);
--shadow-lg: 0 18px 36px rgba(15, 23, 42, .14);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
font-family: "Noto Sans Thai", "Prompt", "Sukhumvit Set", "Sarabun",
system-ui, -apple-system, sans-serif;
background: var(--bg);
color: var(--ink);
min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
/* ---------- Layout helpers ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .container { padding: 0 18px; } }
.main { padding: 40px 0 24px; }
/* ---------- Topbar ---------- */
.topbar {
position: sticky; top: 0; z-index: 50;
background: #ffffff;
border-bottom: 1px solid var(--line);
box-shadow: 0 2px 8px rgba(20, 40, 90, .04);
}
.topbar__inner {
display: flex; align-items: center; gap: 18px;
padding: 14px 28px; max-width: 1200px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo {
width: 44px; height: 44px; border-radius: 12px;
background: var(--grad-cta);
padding: 4px;
}
.brand__title { margin: 0; font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.brand__subtitle { margin: 0; font-size: .72rem; color: var(--muted); }
.nav { margin-left: auto; display: flex; gap: 28px; }
.nav a {
color: var(--ink-muted); font-size: .92rem; font-weight: 600;
padding: 6px 4px; border-bottom: 2px solid transparent; transition: color .15s;
}
.nav a.active { color: var(--pink-700); border-bottom-color: #ec4899; }
.nav a:hover { color: var(--ink); }
.cta-pill {
background: var(--grad-cta); color: #fff; padding: 10px 22px;
border-radius: 999px; font-weight: 700; font-size: .88rem;
box-shadow: 0 6px 14px rgba(124, 58, 237, .3);
display: inline-block;
}
@media (max-width: 820px) {
.nav { display: none; }
.brand__subtitle { display: none; }
}
/* ---------- Hero ---------- */
.hero {
position: relative; overflow: hidden;
padding: 56px 0 64px;
background: linear-gradient(180deg, #f0ebff 0%, #ffe8ee 50%, #fff4d6 100%);
text-align: center;
}
.hero__blob {
position: absolute; border-radius: 50%;
filter: blur(50px); opacity: .55; z-index: 0;
}
.hero__blob.one { width: 220px; height: 220px; background: #b794f4; top: -50px; left: 8%; }
.hero__blob.two { width: 260px; height: 260px; background: #f9a8d4; top: 40%; right: 8%; }
.hero__blob.three { width: 180px; height: 180px; background: #fde68a; bottom: -40px; left: 38%; }
.hero__inner { position: relative; z-index: 1; }
.hero__badge {
display: inline-block;
background: rgba(255, 255, 255, .8);
backdrop-filter: blur(6px);
color: var(--purple-700);
padding: 6px 16px; border-radius: 999px;
font-size: .82rem; font-weight: 700;
margin-bottom: 18px;
box-shadow: 0 4px 10px rgba(124, 58, 237, .12);
}
.hero h1 {
margin: 0 0 26px;
font-size: clamp(1.6rem, 4vw, 2.4rem);
font-weight: 800; line-height: 1.35; color: var(--ink);
}
.hero__lead {
margin: -6px auto 0;
max-width: 640px;
color: var(--ink-muted);
font-size: 1rem;
line-height: 1.7;
}
.hero__grad {
background: linear-gradient(120deg, #d946ef 10%, #a855f7 60%, #6366f1 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.hero__actions {
margin: 28px auto 0;
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 14px;
max-width: 860px;
}
.pill-link {
display: flex;
align-items: center;
justify-content: center;
min-height: 58px;
background: rgba(255, 255, 255, .88);
color: var(--ink);
padding: 12px 18px;
border-radius: 18px;
font-weight: 800;
font-size: .98rem;
border: 1px solid rgba(124, 58, 237, .18);
box-shadow: 0 10px 22px rgba(40, 60, 120, .10);
transition: transform .15s, box-shadow .15s, border-color .15s;
}
.pill-link:hover { transform: translateY(-2px); box-shadow: 0 14px 24px rgba(40, 60, 120, .16); }
.pill-link--primary {
background: var(--grad-cta);
color: #fff;
border-color: transparent;
}
.pill-link--secondary {
background: rgba(255, 255, 255, .95);
border-color: rgba(59, 130, 246, .22);
}
.pill-link--accent {
background: rgba(255, 255, 255, .95);
border-color: rgba(236, 72, 153, .22);
}
@media (max-width: 900px) {
.hero__actions { grid-template-columns: 1fr; }
}
/* ---------- Zones / Cards ---------- */
.zone { margin-bottom: 36px; }
.zone__head {
display: flex; align-items: center; gap: 14px; margin-bottom: 14px;
flex-wrap: wrap;
}
.zone__tag {
padding: 5px 14px; border-radius: 999px;
font-size: .82rem; font-weight: 700;
}
.zone__tag.sky { background: var(--sky-50); color: var(--sky-700); }
.zone__tag.purple { background: var(--purple-50); color: var(--purple-700); }
.zone__tag.pink { background: var(--pink-50); color: var(--pink-700); }
.zone__tag.mint { background: var(--mint-50); color: var(--mint-700); }
.zone__desc { color: var(--muted); font-size: .88rem; margin: 0; }
.grid {
display: grid; gap: 18px;
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.card {
display: flex; gap: 12px; align-items: center;
padding: 14px; border-radius: 12px; background: #fff; color: inherit;
box-shadow: 0 6px 18px rgba(20, 40, 90, 0.06); border: 1px solid var(--line);
transition: transform .12s ease, box-shadow .12s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12); }
.card__head { width: 64px; height: 64px; display:flex; align-items:center; justify-content:center; border-radius:10px; flex-shrink:0; }
.card__head.sky { background: var(--grad-sky); }
.card__head.purple { background: var(--grad-purple); }
.card__head.pink { background: var(--grad-pink); }
.card__head.mint { background: var(--grad-mint); }
.card__head.amber { background: var(--grad-amber); }
.card__badge { color: #fff; font-size: 18px; font-weight: 800; }
.card__body { flex:1; padding: 0; }
.card__name { margin: 0; font-size: 1rem; color: var(--ink); font-weight: 800; }
.card__meta { margin-top:6px; font-size: 13px; color: var(--muted); }
.card__chips { margin-top:10px; display:flex; gap:8px; }
.chip { background: rgba(0,0,0,0.04); padding:6px 10px; border-radius:999px; font-size:12px; color: var(--ink-muted); font-weight:700; }
.chip.sky { background: var(--sky-50); color: var(--sky-700); }
.chip.purple { background: var(--purple-50); color: var(--purple-700); }
.chip.pink { background: var(--pink-50); color: var(--pink-700); }
.chip.mint { background: var(--mint-50); color: var(--mint-700); }
.chip.green { background: var(--green-50); color: var(--green-700); }
.chip.amber { background: var(--amber-50); color: var(--amber-700); }
/* ---------- Stats summary ---------- */
.summary { padding: 8px 0 40px; }
.summary__grid {
display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.stat {
padding: 28px 18px; text-align: center;
border-radius: 18px; margin: 0;
}
.stat h3 { margin: 0 0 4px; font-size: 2rem; color: var(--ink); font-weight: 800; }
.stat p { margin: 0; font-size: .82rem; color: var(--ink-muted); font-weight: 600; }
.stat.pink { background: var(--pink-50); }
.stat.sky { background: var(--sky-50); }
.stat.purple { background: var(--purple-50); }
.stat.mint { background: var(--mint-50); }
@media (max-width: 720px) {
.summary__grid { grid-template-columns: repeat(2, 1fr); }
}
/* ---------- Generic content (routes/stops detail pages) ---------- */
.page { max-width: 1200px; margin: 0 auto; padding: 28px 28px 60px; }
.section-title { margin: 28px 0 14px; font-size: 1.25rem; color: var(--ink); font-weight: 800; }
.muted { color: var(--muted); }
.panel {
background: #fff; border-radius: var(--radius);
box-shadow: var(--shadow-sm); padding: 22px 24px;
border: 1px solid var(--line);
}
.crumbs { color: var(--muted); font-size: .85rem; margin: 8px 0 12px; }
.crumbs a { color: var(--purple-700); font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }
.pill {
display: inline-block; padding: 5px 12px; border-radius: 999px;
background: var(--purple-50); color: var(--purple-700);
font-size: .78rem; font-weight: 700;
}
.pill--alt { background: var(--pink-50); color: var(--pink-700); }
.table {
width: 100%; border-collapse: separate; border-spacing: 0;
margin-top: 14px;
background: linear-gradient(180deg, #ffffff 0%, #fbfbff 100%);
border-radius: var(--radius); overflow: hidden;
border: 1px solid var(--line);
box-shadow: var(--shadow-sm);
}
.table th, .table td { padding: 14px 18px; text-align: left; font-size: .92rem; }
.table th {
background: linear-gradient(180deg, #f3eefe 0%, #fde7f0 100%);
color: var(--ink); font-weight: 800;
font-size: .76rem; text-transform: uppercase; letter-spacing: .06em;
border-bottom: 1px solid var(--line);
}
.table tr + tr td { border-top: 1px solid var(--line); }
.table tbody tr:hover td { background: #faf8ff; }
.map-wrap {
height: 360px; border-radius: var(--radius); overflow: hidden;
border: 1px solid var(--line);
}
/* ---------- Stop detail (map + gallery) ---------- */
.stop-detail__split {
display: grid;
grid-template-columns: 1.1fr 1fr;
gap: 18px;
margin-bottom: 8px;
}
@media (max-width: 900px) {
.stop-detail__split { grid-template-columns: 1fr; }
}
.stop-detail__gallery {
display: flex; flex-direction: column; gap: 10px;
background: #fff; border-radius: var(--radius);
border: 1px solid var(--line); box-shadow: var(--shadow-sm);
overflow: hidden;
}
.stop-detail__gallery--empty,
.stop-detail__map--empty {
display: flex; align-items: center; justify-content: center;
min-height: 320px; background: #f4f6fc; color: var(--muted);
}
.stop-detail__hero-img {
width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block;
}
.stop-detail__thumbs {
display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
padding: 0 10px 10px;
}
.stop-detail__thumbs img {
width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
border-radius: 10px; border: 1px solid var(--line);
}
.stop-detail__map {
height: 100%; min-height: 360px;
border-radius: var(--radius); overflow: hidden;
border: 1px solid var(--line); box-shadow: var(--shadow-sm);
background: #e5edf7;
}
.stop-detail__placeholder {
font-size: .95rem; font-weight: 600;
}
/* ---------- Schedule card list (soft gradient, modern) ---------- */
.schedule-list {
display: grid; gap: 14px; margin-top: 14px;
}
.schedule-card {
position: relative;
display: grid; grid-template-columns: minmax(220px, 320px) 1fr;
gap: 18px; align-items: center;
padding: 18px 20px 18px 26px;
background: linear-gradient(135deg, #ffffff 0%, #fbfaff 60%, #fff5fb 100%);
border: 1px solid var(--line);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-sm);
overflow: hidden;
transition: transform .15s ease, box-shadow .15s ease;
}
.schedule-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.schedule-card__rail {
position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
background: var(--grad-cta);
}
.schedule-card--sky .schedule-card__rail { background: var(--grad-sky); }
.schedule-card--purple .schedule-card__rail { background: var(--grad-purple); }
.schedule-card--pink .schedule-card__rail { background: var(--grad-pink); }
.schedule-card--mint .schedule-card__rail { background: var(--grad-mint); }
.schedule-card--amber .schedule-card__rail { background: var(--grad-amber); }
.schedule-card--sky { background: linear-gradient(135deg, #ffffff 0%, #f0f6ff 100%); }
.schedule-card--purple { background: linear-gradient(135deg, #ffffff 0%, #f6f1ff 100%); }
.schedule-card--pink { background: linear-gradient(135deg, #ffffff 0%, #fff0f7 100%); }
.schedule-card--mint { background: linear-gradient(135deg, #ffffff 0%, #ecfdf5 100%); }
.schedule-card--amber { background: linear-gradient(135deg, #ffffff 0%, #fff7e8 100%); }
.schedule-card__head {
display: flex; flex-direction: column; gap: 10px;
}
.schedule-card__route {
display: inline-flex; flex-direction: column; align-items: flex-start;
padding: 10px 16px; border-radius: 14px;
color: #fff; min-width: 140px;
box-shadow: 0 8px 18px rgba(15, 23, 42, .15);
background: var(--grad-cta);
}
.schedule-card__route.sky { background: var(--grad-sky); }
.schedule-card__route.purple { background: var(--grad-purple); }
.schedule-card__route.pink { background: var(--grad-pink); }
.schedule-card__route.mint { background: var(--grad-mint); }
.schedule-card__route.amber { background: var(--grad-amber); }
.schedule-card__route-label {
font-size: .68rem; text-transform: uppercase; letter-spacing: .1em;
opacity: .85; font-weight: 700;
}
.schedule-card__route-id {
font-size: 1.5rem; font-weight: 900; letter-spacing: .02em; line-height: 1.1;
}
.schedule-card__meta {
display: flex; flex-direction: column; gap: 4px;
}
.schedule-card__direction {
display: inline-flex; align-items: center; gap: 6px;
font-weight: 700; color: var(--ink); font-size: .92rem;
}
.schedule-card__note {
font-size: .82rem; color: var(--ink-muted);
}
.schedule-card__times {
display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start;
}
.schedule-card__time {
display: inline-flex; align-items: center; gap: 5px;
padding: 7px 12px; border-radius: 999px;
font-size: .88rem; font-weight: 700; letter-spacing: .02em;
color: var(--ink);
background: linear-gradient(135deg, #ffffff 0%, #f3eefe 100%);
border: 1px solid #e3d9fb;
box-shadow: 0 2px 6px rgba(124, 58, 237, .08);
}
.schedule-card__time:hover {
background: var(--grad-cta); color: #fff; border-color: transparent;
}
.schedule-card__empty {
font-size: .85rem; color: var(--muted); font-style: italic;
}
@media (max-width: 720px) {
.schedule-card { grid-template-columns: 1fr; gap: 12px; padding: 16px 16px 16px 22px; }
.schedule-card__route { width: 100%; }
}
/* Detail-page hero (inside .page wrapper) */
.page > .hero {
border-radius: var(--radius-lg);
margin-bottom: 22px;
padding: 30px 28px;
text-align: left;
background: linear-gradient(135deg, #ede9fe 0%, #fce7f3 100%);
}
.page > .hero h1 {
font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 6px 0 10px;
}
/* ---------- Footer (rich dark) ---------- */
.footer {
margin-top: 48px;
background:
radial-gradient(circle at 0% 0%, rgba(122, 76, 192, .35), transparent 35%),
radial-gradient(circle at 100% 10%, rgba(48, 113, 184, .35), transparent 35%),
linear-gradient(180deg, #1a1830 0%, #0f1126 100%);
color: #cfd5ec;
padding: 48px 0 0;
}
.footer .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer__grid {
display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 28px;
}
.footer__brand { display: flex; flex-direction: column; gap: 12px; }
.footer__brand-row { display: flex; align-items: center; gap: 12px; }
.footer__brand-row img {
width: 48px; height: 48px; border-radius: 12px;
background: #fff; padding: 4px; object-fit: contain;
}
.footer__brand-row strong {
display: block; color: #fff; font-size: 1.05rem;
font-weight: 800; letter-spacing: .01em;
}
.footer__brand-row span { display: block; color: #9aa3c3; font-size: .82rem; margin-top: 2px; }
.footer__brand p { margin: 0; color: #b6bdda; font-size: .88rem; line-height: 1.6; }
.footer__col h4 {
margin: 0 0 14px; color: #fff; font-size: .9rem;
font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
}
.footer__col ul {
list-style: none; padding: 0; margin: 0;
display: flex; flex-direction: column; gap: 8px;
}
.footer__col ul a {
color: #cfd5ec; font-size: .9rem; transition: color .15s;
display: inline-flex; align-items: center; gap: 8px;
}
.footer__col ul a::before { content: "›"; color: #a855f7; font-weight: 800; }
.footer__col ul a:hover { color: #fff; }
.footer__contact .row { margin-bottom: 8px; }
.footer__contact a, .footer__contact span {
display: inline-flex; align-items: center; gap: 8px;
color: #cfd5ec; font-size: .88rem;
}
.footer__sponsors {
margin-top: 36px; padding-top: 28px;
border-top: 1px solid rgba(255, 255, 255, .08);
}
.footer__sponsors h4 { margin: 0 0 6px; color: #fff; font-size: .95rem; font-weight: 800; }
.footer__sponsors .lead { margin: 0 0 18px; color: #9aa3c3; font-size: .85rem; }
.sponsor-strip {
display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px;
}
.sponsor-tile {
background: #fff; border-radius: 12px; padding: 10px;
display: flex; align-items: center; justify-content: center;
aspect-ratio: 5 / 3; overflow: hidden;
transition: transform .15s, box-shadow .15s;
}
.sponsor-tile img {
width: 100%; height: 100%;
object-fit: contain;
}
.sponsor-tile:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(0, 0, 0, .35); }
.footer__bottom {
margin-top: 36px; padding: 18px 0 22px;
border-top: 1px solid rgba(255, 255, 255, .08);
text-align: center;
}
.footer__bottom p { margin: 0; color: #8d96b8; font-size: .82rem; letter-spacing: .02em; }
.footer__bottom .pill {
display: inline-block; margin-left: 10px; padding: 2px 10px;
border-radius: 999px; background: rgba(122, 76, 192, .25);
color: #d8c7ff; font-size: .72rem; font-weight: 700;
}
@media (max-width: 980px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
.footer__grid { grid-template-columns: 1fr; }
.footer { padding: 36px 0 0; }
}
/* ============================================================
Modern soft-gradient list pages (/stops, /routes)
============================================================ */
.page-hero {
position: relative; overflow: hidden;
border-radius: var(--radius-lg);
padding: 44px 36px 38px;
margin-bottom: 22px;
background:
radial-gradient(120% 140% at 0% 0%, #ede9fe 0%, transparent 55%),
radial-gradient(120% 140% at 100% 0%, #fce7f3 0%, transparent 55%),
radial-gradient(120% 140% at 50% 120%, #fef3c7 0%, transparent 55%),
linear-gradient(135deg, #ffffff 0%, #fbfaff 100%);
border: 1px solid rgba(168, 85, 247, .12);
box-shadow: var(--shadow-sm);
}
.page-hero--alt {
background:
radial-gradient(120% 140% at 0% 0%, #dbeafe 0%, transparent 55%),
radial-gradient(120% 140% at 100% 0%, #ede9fe 0%, transparent 55%),
radial-gradient(120% 140% at 50% 120%, #d1fae5 0%, transparent 55%),
linear-gradient(135deg, #ffffff 0%, #f7faff 100%);
border-color: rgba(59, 130, 246, .14);
}
.page-hero__blob {
position: absolute; border-radius: 50%; filter: blur(46px); opacity: .55;
pointer-events: none;
}
.page-hero__blob--a { width: 220px; height: 220px; background: #c4b5fd; top: -50px; left: -40px; }
.page-hero__blob--b { width: 260px; height: 260px; background: #f9a8d4; top: 30%; right: -60px; }
.page-hero__blob--c { width: 180px; height: 180px; background: #fde68a; bottom: -50px; left: 40%; }
.page-hero--alt .page-hero__blob--a { background: #93c5fd; }
.page-hero--alt .page-hero__blob--b { background: #c4b5fd; }
.page-hero--alt .page-hero__blob--c { background: #6ee7b7; }
.page-hero__inner { position: relative; z-index: 1; }
.page-hero__badge {
display: inline-block; padding: 6px 14px; border-radius: 999px;
background: rgba(255, 255, 255, .7); backdrop-filter: blur(6px);
border: 1px solid rgba(168, 85, 247, .25);
color: var(--purple-700); font-size: .72rem; font-weight: 800;
letter-spacing: .08em;
}
.page-hero__title {
margin: 14px 0 8px; font-size: 2.4rem; font-weight: 900;
color: var(--ink); letter-spacing: -.01em; line-height: 1.15;
}
.page-hero__title-grad {
background: var(--grad-cta); -webkit-background-clip: text;
background-clip: text; color: transparent;
margin-left: 10px;
}
.page-hero--alt .page-hero__title-grad { background: var(--grad-sky); -webkit-background-clip: text; background-clip: text; }
.page-hero__subtitle { margin: 0 0 16px; color: var(--ink-muted); font-size: 1rem; }
.page-hero__stats { display: flex; flex-wrap: wrap; gap: 10px; }
.page-hero__stat {
display: inline-flex; align-items: baseline; gap: 6px;
padding: 8px 16px; border-radius: 999px;
background: rgba(255, 255, 255, .8); backdrop-filter: blur(8px);
border: 1px solid rgba(15, 23, 42, .06);
font-size: .85rem; color: var(--ink-muted); font-weight: 600;
box-shadow: 0 4px 12px rgba(124, 58, 237, .08);
}
.page-hero__stat b {
background: var(--grad-cta); -webkit-background-clip: text;
background-clip: text; color: transparent;
font-size: 1.05rem; font-weight: 900;
}
.map-wrap--soft { border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); margin-bottom: 18px; }
/* Toolbar (search + filter chips) */
.toolbar {
display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
padding: 14px 16px; margin: 18px 0;
background: linear-gradient(135deg, #ffffff 0%, #fbfaff 100%);
border: 1px solid var(--line);
border-radius: var(--radius);
box-shadow: var(--shadow-sm);
}
.toolbar__search {
flex: 1 1 280px;
display: inline-flex; align-items: center; gap: 8px;
padding: 8px 14px; border-radius: 12px;
background: #f4f6fc; border: 1px solid var(--line);
color: var(--muted);
}
.toolbar__search input {
flex: 1; border: 0; outline: 0; background: transparent;
font: inherit; color: var(--ink);
}
.toolbar__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-soft {
display: inline-flex; align-items: center; gap: 6px;
padding: 6px 12px; border-radius: 999px;
font-size: .78rem; font-weight: 700; letter-spacing: .01em;
border: 1px solid transparent;
}
.chip-soft--sky { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); color: var(--sky-700); border-color: #cfe0fb; }
.chip-soft--purple { background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%); color: var(--purple-700); border-color: #ddd3fb; }
.chip-soft--pink { background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%); color: var(--pink-700); border-color: #f9cce3; }
.chip-soft--mint { background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%); color: var(--mint-700); border-color: #b6ecd0; }
.chip-soft--amber { background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%); color: var(--amber-700); border-color: #fde9a8; }
/* Route category sections (/routes) */
.toolbar--stacked {
align-items: flex-start;
}
.route-category-summary {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 14px;
margin: 18px 0 22px;
}
.route-category-summary__card {
padding: 18px 18px 20px;
border-radius: var(--radius-lg);
border: 1px solid var(--line);
background: linear-gradient(135deg, #ffffff 0%, #fbfaff 100%);
box-shadow: var(--shadow-sm);
}
.route-category-summary__card h2 {
margin: 8px 0 6px;
font-size: 1rem;
line-height: 1.35;
color: var(--ink);
}
.route-category-summary__card p {
margin: 0;
color: var(--ink-muted);
font-size: .84rem;
line-height: 1.55;
}
.route-category-summary__card strong {
display: inline-block;
margin-top: 14px;
font-size: 1rem;
font-weight: 900;
}
.route-category-summary__eyebrow {
display: inline-flex;
align-items: center;
min-height: 30px;
padding: 0 12px;
border-radius: 999px;
font-size: .72rem;
font-weight: 800;
letter-spacing: .08em;
}
.route-category-summary__card--sky {
background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
}
.route-category-summary__card--sky .route-category-summary__eyebrow {
background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
color: var(--sky-700);
}
.route-category-summary__card--purple {
background: linear-gradient(135deg, #ffffff 0%, #f5f3ff 100%);
}
.route-category-summary__card--purple .route-category-summary__eyebrow {
background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
color: var(--purple-700);
}
.route-category-summary__card--pink {
background: linear-gradient(135deg, #ffffff 0%, #fdf2f8 100%);
}
.route-category-summary__card--pink .route-category-summary__eyebrow {
background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
color: var(--pink-700);
}
.route-category-summary__card--mint {
background: linear-gradient(135deg, #ffffff 0%, #ecfdf5 100%);
}
.route-category-summary__card--mint .route-category-summary__eyebrow {
background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
color: var(--mint-700);
}
.route-category-summary__card--amber {
background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
}
.route-category-summary__card--amber .route-category-summary__eyebrow {
background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
color: var(--amber-700);
}
.route-category-list {
display: flex;
flex-direction: column;
gap: 24px;
}
.route-category {
padding: 20px;
border-radius: 24px;
border: 1px solid var(--line);
box-shadow: var(--shadow-sm);
}
.route-category--sky {
background: linear-gradient(180deg, #f8fbff 0%, #eff6ff 100%);
}
.route-category--purple {
background: linear-gradient(180deg, #faf7ff 0%, #f5f3ff 100%);
}
.route-category--pink {
background: linear-gradient(180deg, #fff8fb 0%, #fdf2f8 100%);
}
.route-category--mint {
background: linear-gradient(180deg, #f7fefb 0%, #ecfdf5 100%);
}
.route-category--amber {
background: linear-gradient(180deg, #fffdf7 0%, #fffbeb 100%);
}
.route-category__head {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 18px;
margin-bottom: 14px;
}
.route-category__badge {
display: inline-flex;
align-items: center;
min-height: 30px;
padding: 0 12px;
border-radius: 999px;
font-size: .72rem;
font-weight: 800;
letter-spacing: .08em;
margin-bottom: 10px;
}
.route-category__badge--sky {
background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
color: var(--sky-700);
}
.route-category__badge--purple {
background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
color: var(--purple-700);
}
.route-category__badge--pink {
background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
color: var(--pink-700);
}
.route-category__badge--mint {
background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
color: var(--mint-700);
}
.route-category__badge--amber {
background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
color: var(--amber-700);
}
.route-category__title {
margin: 0 0 6px;
font-size: 1.3rem;
font-weight: 900;
color: var(--ink);
}
.route-category__desc {
margin: 0;
color: var(--ink-muted);
font-size: .92rem;
line-height: 1.6;
max-width: 760px;
}
.route-category__stats {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.route-category__empty {
padding: 20px 18px;
border-radius: 18px;
border: 1px dashed rgba(124, 58, 237, .22);
background: rgba(255, 255, 255, .72);
color: var(--muted);
font-weight: 700;
}
/* Tile grid + tile component */
.tile-grid {
display: grid; gap: 16px; margin-top: 4px;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.tile {
position: relative;
display: grid; grid-template-columns: 76px 1fr auto;
gap: 14px; align-items: center;
padding: 16px 18px; border-radius: var(--radius-lg);
border: 1px solid var(--line);
background: linear-gradient(135deg, #ffffff 0%, #fbfaff 100%);
box-shadow: var(--shadow-sm);
color: inherit; overflow: hidden;
transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tile::before {
content: ""; position: absolute; inset: 0;
background: var(--grad-cta); opacity: 0;
transition: opacity .2s ease;
border-radius: inherit; pointer-events: none;
mix-blend-mode: multiply;
}
.tile:hover {
transform: translateY(-3px);
box-shadow: var(--shadow-md);
border-color: rgba(168, 85, 247, .28);
}
.tile--sky { background: linear-gradient(135deg, #ffffff 0%, #f0f6ff 100%); }
.tile--purple { background: linear-gradient(135deg, #ffffff 0%, #f6f1ff 100%); }
.tile--pink { background: linear-gradient(135deg, #ffffff 0%, #fff0f7 100%); }
.tile--mint { background: linear-gradient(135deg, #ffffff 0%, #ecfdf5 100%); }
.tile--amber { background: linear-gradient(135deg, #ffffff 0%, #fff7e8 100%); }
.tile__badge {
width: 64px; height: 64px; border-radius: 18px;
display: flex; align-items: center; justify-content: center;
color: #fff; font-size: 30px; font-weight: 900;
box-shadow: 0 10px 22px rgba(15, 23, 42, .18);
background: var(--grad-cta);
}
.tile__badge--num { font-size: 18px; letter-spacing: .02em; padding: 0 6px; text-align: center; }
.tile__badge--sky { background: var(--grad-sky); }
.tile__badge--purple { background: var(--grad-purple); }
.tile__badge--pink { background: var(--grad-pink); }
.tile__badge--mint { background: var(--grad-mint); }
.tile__badge--amber { background: var(--grad-amber); }
.tile__body { min-width: 0; }
.tile__title {
margin: 0 0 4px; font-size: 1rem; font-weight: 800; color: var(--ink);
line-height: 1.3;
overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
-webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.tile__meta {
margin: 0 0 8px; font-size: .82rem; color: var(--ink-muted);
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tile__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tile__arrow {
font-size: 1.4rem; color: var(--muted); font-weight: 700;
transition: transform .18s ease, color .18s ease;
}
.tile:hover .tile__arrow { color: var(--purple-700); transform: translateX(4px); }
@media (max-width: 720px) {
.page-hero { padding: 32px 22px 28px; }
.page-hero__title { font-size: 1.8rem; }
.tile { grid-template-columns: 56px 1fr; padding: 14px; }
.tile__badge { width: 52px; height: 52px; font-size: 24px; border-radius: 14px; }
.tile__arrow { display: none; }
}
/* ============ Route detail hero ============ */
.route-hero { padding-top: 38px; }
.route-hero__top {
display: grid;
grid-template-columns: 96px 1fr;
gap: 20px;
align-items: center;
position: relative; z-index: 1;
}
.route-hero__badge {
width: 96px; height: 96px;
border-radius: 26px;
background: linear-gradient(135deg,#7c3aed,#ec4899 55%,#f59e0b);
color: #fff;
font-weight: 900; font-size: 1.9rem;
letter-spacing: .5px;
display: flex; align-items: center; justify-content: center;
box-shadow: 0 18px 38px rgba(124,58,237,.35), inset 0 1px 0 rgba(255,255,255,.4);
border: 3px solid rgba(255,255,255,.7);
}
.route-hero__title-wrap { min-width: 0; }
.route-hero__chips {
display: flex; flex-wrap: wrap; gap: 6px;
margin-bottom: 8px;
}
.route-hero__actions {
margin-top: 18px;
display: flex; flex-wrap: wrap; gap: 12px;
position: relative; z-index: 1;
}
.route-hero__cta {
display: inline-flex; align-items: center; gap: 8px;
padding: 12px 22px;
border-radius: 999px;
background: linear-gradient(135deg,#7c3aed,#ec4899);
color: #fff !important; font-weight: 800; font-size: .95rem;
text-decoration: none;
box-shadow: 0 12px 28px rgba(124,58,237,.32);
transition: transform .18s ease, box-shadow .18s ease;
}
.route-hero__cta:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(124,58,237,.42); }
.route-hero__back {
display: inline-flex; align-items: center; gap: 6px;
padding: 12px 18px;
border-radius: 999px;
background: rgba(255,255,255,.72);
border: 1px solid rgba(124,58,237,.18);
color: var(--purple-700) !important; font-weight: 700; font-size: .9rem;
text-decoration: none;
backdrop-filter: blur(6px);
transition: background .18s ease;
}
.route-hero__back:hover { background: #fff; }
/* ============ Route map section ============ */
.route-map-section { margin-top: 28px; }
.route-map-section__head {
display: flex; align-items: center; justify-content: space-between;
gap: 14px; flex-wrap: wrap;
margin-bottom: 10px;
}
.route-map-section__head .section-title { margin: 0; }
.route-map-section__legend {
display: inline-flex; flex-wrap: wrap; gap: 14px;
font-size: .85rem; color: var(--ink-muted); font-weight: 600;
}
.route-map-section__legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot {
width: 12px; height: 12px; border-radius: 50%;
display: inline-block;
border: 2px solid #fff;
box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}
.dot--start { background: linear-gradient(135deg,#34d399,#10b981); }
.dot--mid { background: linear-gradient(135deg,#a78bfa,#7c3aed); }
.dot--end { background: linear-gradient(135deg,#fb7185,#e11d48); }
.route-map {
height: 460px;
border: 1px solid rgba(124,58,237,.12);
}
.route-map-empty {
padding: 28px;
text-align: center;
border-radius: 20px;
background: linear-gradient(135deg,#fdf4ff,#eef2ff);
border: 1px dashed rgba(124,58,237,.25);
}
/* ============ Stops timeline ============ */
.stop-timeline {
list-style: none;
padding: 0; margin: 14px 0 0;
display: flex; flex-direction: column; gap: 10px;
position: relative;
}
.stop-node {
position: relative;
display: grid;
grid-template-columns: 56px 1fr auto;
align-items: center;
gap: 14px;
padding: 14px 16px;
border-radius: 18px;
background: linear-gradient(135deg,#ffffff 0%,#fbfaff 100%);
border: 1px solid rgba(124,58,237,.10);
box-shadow: 0 6px 16px rgba(31,28,68,.05);
transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.stop-node:hover {
transform: translateY(-1px);
border-color: rgba(124,58,237,.25);
box-shadow: 0 10px 24px rgba(124,58,237,.12);
}
.stop-node__line {
position: absolute;
left: 43px; top: 100%;
width: 2px; height: 10px;
background: linear-gradient(180deg, rgba(124,58,237,.35), rgba(124,58,237,0));
}
.stop-node:last-child .stop-node__line { display: none; }
.stop-node__bullet {
width: 44px; height: 44px;
border-radius: 14px;
background: linear-gradient(135deg,#a78bfa,#7c3aed);
color: #fff;
font-weight: 800; font-size: 1.05rem;
display: flex; align-items: center; justify-content: center;
border: 3px solid #fff;
box-shadow: 0 6px 14px rgba(124,58,237,.30);
}
.stop-node__bullet.is-start { background: linear-gradient(135deg,#34d399,#10b981); box-shadow: 0 6px 14px rgba(16,185,129,.30); }
.stop-node__bullet.is-end { background: linear-gradient(135deg,#fb7185,#e11d48); box-shadow: 0 6px 14px rgba(225,29,72,.28); }
.stop-node--sky .stop-node__bullet:not(.is-start):not(.is-end) { background: linear-gradient(135deg,#7dd3fc,#0284c7); }
.stop-node--pink .stop-node__bullet:not(.is-start):not(.is-end) { background: linear-gradient(135deg,#fda4af,#db2777); }
.stop-node--mint .stop-node__bullet:not(.is-start):not(.is-end) { background: linear-gradient(135deg,#6ee7b7,#059669); }
.stop-node--amber .stop-node__bullet:not(.is-start):not(.is-end) { background: linear-gradient(135deg,#fcd34d,#d97706); }
.stop-node__body { min-width: 0; }
.stop-node__head {
display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
margin-bottom: 4px;
}
.stop-node__title {
font-weight: 800; font-size: 1.02rem;
color: var(--ink, #1f1c44);
text-decoration: none;
}
.stop-node__title:hover { color: var(--purple-700); }
.stop-node__meta {
display: flex; flex-wrap: wrap; gap: 8px;
align-items: center;
font-size: .85rem; color: var(--ink-muted);
}
.stop-node__loc { font-size: .82rem; }
.stop-node__warn {
font-size: .75rem; font-weight: 700;
padding: 2px 8px; border-radius: 999px;
background: #fff7ed; color: #c2410c;
border: 1px solid #fed7aa;
}
.stop-node__arrow {
font-size: 1.4rem; color: var(--muted);
font-weight: 700; text-decoration: none;
transition: transform .18s ease, color .18s ease;
}
.stop-node:hover .stop-node__arrow { color: var(--purple-700); transform: translateX(4px); }
@media (max-width: 720px) {
.route-hero__top { grid-template-columns: 76px 1fr; gap: 14px; }
.route-hero__badge { width: 76px; height: 76px; font-size: 1.5rem; border-radius: 22px; }
.route-map { height: 360px; }
.stop-node { grid-template-columns: 48px 1fr; padding: 12px 14px; }
.stop-node__bullet { width: 40px; height: 40px; font-size: .95rem; border-radius: 12px; }
.stop-node__line { left: 37px; }
.stop-node__arrow { display: none; }
}
/* ===================== */
/* Static showcase extras */
/* ===================== */
.showcase-shell {
background: linear-gradient(180deg, #f4f7ff 0%, #fff8fc 45%, #fffdf4 100%);
min-height: 100vh;
}
.showcase-main {
max-width: 1280px;
margin: 0 auto;
padding: 32px 28px 64px;
}
.showcase-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
gap: 20px;
}
.showcase-card {
background: rgba(255,255,255,.92);
border: 1px solid rgba(124,58,237,.12);
border-radius: 24px;
overflow: hidden;
box-shadow: 0 22px 40px rgba(76, 29, 149, .12);
}
.showcase-card__head {
padding: 18px 20px 14px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.showcase-card__head h2 {
margin: 0;
font-size: 1.05rem;
}
.showcase-card__meta {
font-size: .84rem;
color: var(--muted);
}
.showcase-card__actions {
display: flex;
flex-wrap: wrap;
gap: 10px;
padding: 0 20px 16px;
}
.showcase-card__actions a {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 40px;
padding: 0 14px;
border-radius: 999px;
background: var(--grad-cta);
color: #fff;
font-weight: 700;
font-size: .85rem;
}
.showcase-frame {
width: 100%;
height: 360px;
border: 0;
background: #fff;
border-top: 1px solid var(--line);
}
.mock-map,
.mock-gallery,
.mock-hero-media,
.mock-inline-banner {
position: relative;
overflow: hidden;
border-radius: 22px;
}
.mock-map {
min-height: 320px;
background:
radial-gradient(circle at 18% 26%, rgba(59,130,246,.35), transparent 18%),
radial-gradient(circle at 74% 28%, rgba(236,72,153,.28), transparent 16%),
radial-gradient(circle at 60% 74%, rgba(16,185,129,.26), transparent 18%),
linear-gradient(135deg, #eef4ff 0%, #ffffff 34%, #fff4fb 100%);
border: 1px solid rgba(124,58,237,.12);
}
.mock-map::before,
.mock-map::after {
content: '';
position: absolute;
inset: 0;
}
.mock-map::before {
background-image:
linear-gradient(rgba(59,130,246,.08) 1px, transparent 1px),
linear-gradient(90deg, rgba(59,130,246,.08) 1px, transparent 1px);
background-size: 40px 40px;
}
.mock-map::after {
background:
linear-gradient(120deg, transparent 0 8%, rgba(124,58,237,.18) 8% 10%, transparent 10% 26%, rgba(236,72,153,.18) 26% 28%, transparent 28% 70%, rgba(16,185,129,.18) 70% 72%, transparent 72% 100%),
linear-gradient(180deg, transparent 0 14%, rgba(59,130,246,.12) 14% 16%, transparent 16% 52%, rgba(245,158,11,.12) 52% 54%, transparent 54% 100%);
}
.mock-map__pin,
.mock-map__line,
.mock-map__legend {
position: absolute;
z-index: 2;
}
.mock-map__pin {
width: 18px;
height: 18px;
border-radius: 50%;
border: 3px solid #fff;
box-shadow: 0 6px 16px rgba(15,23,42,.18);
}
.mock-map__pin--start { background: #10b981; }
.mock-map__pin--mid { background: #8b5cf6; }
.mock-map__pin--end { background: #ec4899; }
.mock-map__line {
left: 14%;
right: 12%;
top: 42%;
height: 4px;
border-radius: 999px;
background: linear-gradient(90deg, #10b981 0%, #8b5cf6 50%, #ec4899 100%);
transform: rotate(-11deg);
box-shadow: 0 8px 16px rgba(124,58,237,.18);
}
.mock-map__legend {
right: 18px;
bottom: 18px;
background: rgba(255,255,255,.88);
backdrop-filter: blur(10px);
border: 1px solid rgba(124,58,237,.12);
border-radius: 16px;
padding: 10px 12px;
font-size: .78rem;
color: var(--ink-muted);
display: grid;
gap: 6px;
}
.mock-map__legend b { color: var(--ink); }
.mock-gallery {
min-height: 320px;
background: linear-gradient(135deg, #f7f0ff 0%, #ffffff 45%, #fff0f8 100%);
border: 1px solid var(--line);
display: grid;
place-items: center;
}
.mock-gallery__grid {
width: 100%;
display: grid;
grid-template-columns: 2fr 1fr;
gap: 10px;
padding: 12px;
}
.mock-gallery__hero,
.mock-gallery__stack > div {
border-radius: 16px;
min-height: 140px;
position: relative;
overflow: hidden;
}
.mock-gallery__hero {
background: linear-gradient(135deg, #312e81 0%, #7c3aed 38%, #ec4899 100%);
}
.mock-gallery__stack {
display: grid;
gap: 10px;
}
.mock-gallery__stack > div:nth-child(1) { background: linear-gradient(135deg, #0ea5e9, #22d3ee); }
.mock-gallery__stack > div:nth-child(2) { background: linear-gradient(135deg, #10b981, #84cc16); }
.mock-gallery__stack > div:nth-child(3) { background: linear-gradient(135deg, #f59e0b, #fb7185); }
.mock-gallery__label {
position: absolute;
left: 16px;
bottom: 16px;
background: rgba(255,255,255,.16);
color: #fff;
border: 1px solid rgba(255,255,255,.24);
border-radius: 999px;
padding: 6px 12px;
font-size: .78rem;
font-weight: 700;
backdrop-filter: blur(8px);
}
.mock-inline-banner {
min-height: 220px;
background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 38%, #be185d 100%);
border: 1px solid rgba(255,255,255,.08);
}
.mock-inline-banner::after {
content: 'AT Transit Preview';
position: absolute;
left: 20px;
bottom: 20px;
color: rgba(255,255,255,.92);
font-weight: 800;
letter-spacing: .04em;
font-size: 1.1rem;
}
.mock-empty {
display: grid;
place-items: center;
min-height: 220px;
border: 1px dashed rgba(124,58,237,.18);
border-radius: 22px;
background: linear-gradient(135deg, rgba(255,255,255,.8) 0%, rgba(243,232,255,.9) 100%);
color: var(--muted);
font-weight: 700;
}
.redirect-demo {
min-height: 100vh;
display: grid;
place-items: center;
background: linear-gradient(180deg, #f3e8ff 0%, #fdf2f8 55%, #fff7ed 100%);
padding: 32px;
}
.redirect-demo__card {
max-width: 720px;
width: 100%;
background: rgba(255,255,255,.92);
border-radius: 28px;
box-shadow: 0 22px 50px rgba(124,58,237,.14);
border: 1px solid rgba(124,58,237,.12);
padding: 32px;
}
.redirect-demo__code {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 8px 12px;
background: #111827;
color: #fff;
border-radius: 999px;
font-size: .82rem;
font-weight: 700;
}
.kv-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 12px;
}
.kv-card {
background: rgba(255,255,255,.78);
border: 1px solid var(--line);
border-radius: 16px;
padding: 14px 16px;
}
.kv-card small {
display: block;
color: var(--muted);
margin-bottom: 8px;
}
.code-block {
background: #0f172a;
color: #e2e8f0;
border-radius: 18px;
padding: 18px 20px;
overflow: auto;
font-size: .84rem;
}
.tile-grid--compact {
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
@media (max-width: 900px) {
.showcase-main { padding: 24px 18px 56px; }
.showcase-frame { height: 300px; }
.showcase-card__head { align-items: flex-start; flex-direction: column; }
}