/* City public profile (city.html). Paper and dots: polaroid sights, paper tiles, dotted map. */
.cg-wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
#cg h1, #cg h2 { font-family: 'Fraunces', Georgia, serif; }
.cg-sec { padding: 4rem 0; }
.cg-alt { background: rgba(239,231,214,.72); }
.cg-sec h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; color: #1B3A2F; margin: 0 0 .4rem; }
.cg-lede { color: #4b5563; font-size: 1.02rem; max-width: 720px; margin: 0 0 1.8rem; }
.cg-src { font-size: .75rem; color: #8a7d68; margin-top: .8rem; }
.cg-credit { display: block; font-size: .68rem; color: #9a8d77; text-decoration: none; margin-top: .5rem; }
.cg-credit:hover { text-decoration: underline; }

/* 1. Postcard */
.cg-hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; overflow: hidden; color: #fff; background: #2b3a33; }
.cg-hero-img { position: absolute; inset: 0; background: center/cover no-repeat; transform: scale(1.03); }
.cg-hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,22,18,.05) 35%, rgba(15,22,18,.78) 100%); }
.cg-hero-in { position: relative; z-index: 1; padding-bottom: 4.5rem; width: 100%; }
.cg-kicker { font-weight: 800; letter-spacing: .2em; text-transform: uppercase; font-size: .85rem; opacity: .9; }
.cg-hero h1 { font-size: clamp(3.2rem, 11vw, 7.5rem); line-height: .95; margin: .3rem 0 1.1rem; color: #fff; text-shadow: 0 4px 30px rgba(0,0,0,.35); }
.cg-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.cg-tags span { display: inline-flex; align-items: center; gap: .4rem; background: rgba(255,253,248,.92); color: #1B2A23; border-radius: 999px; padding: .4rem .85rem; font-weight: 600; font-size: .88rem; }
.cg-tags i { width: 15px; height: 15px; color: #2CA58D; }
.cg-hero-credit { position: absolute; right: 14px; bottom: 10px; z-index: 1; }
.cg-hero-credit .cg-credit { color: rgba(255,255,255,.75); }
.cg-about { position: relative; margin-top: -2.6rem; z-index: 2; }
.cg-note { background: #FFFDF8; border: 1px solid #E3D8C2; border-radius: 6px; padding: 1.5rem 1.8rem; max-width: 780px; transform: rotate(-.6deg);
  box-shadow: 5px 6px 0 -1px #EFE7D6, 5px 6px 0 0 #E3D8C2, 0 26px 30px -24px rgba(40,30,10,.45); position: relative; }
.cg-note::before { content: ""; position: absolute; top: -10px; left: 50%; width: 90px; height: 22px; margin-left: -45px; background: rgba(196,215,86,.55); transform: rotate(2deg); }
.cg-note p { font-size: 1.08rem; line-height: 1.65; color: #1B2A23; margin: 0; }

/* 2. Sights as photo prints */
.cg-sights { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.6rem; }
.cg-sight { background: #FFFDF8; padding: 10px 10px 14px; border-radius: 4px; transform: rotate(var(--tilt)); transition: transform 240ms cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 1px 0 #fff inset, 0 18px 26px -18px rgba(40,30,10,.5), 0 0 0 1px #E3D8C2; }
.cg-sight:hover { transform: rotate(0) translateY(-6px); }
.cg-sight-img { aspect-ratio: 4 / 3; background: #EFE7D6 center/cover no-repeat; border-radius: 2px; }
.cg-sight-b { padding: .7rem .3rem 0; }
.cg-kind { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #2CA58D; }
.cg-sight h3 { font-size: 1.08rem; font-weight: 800; color: #1B2A23; margin: .2rem 0 .3rem; }
.cg-sight p { font-size: .86rem; color: #4b5563; margin: 0 0 .5rem; min-height: 2.4em; }
.cg-map { display: inline-flex; align-items: center; gap: .3rem; font-size: .82rem; font-weight: 700; color: #1f8773; text-decoration: none; }
.cg-map i { width: 14px; height: 14px; }

/* 3. Numbers as paper tiles */
.cg-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.2rem; }
.cg-tile { background: #FFFDF8; border: 1px solid #E3D8C2; border-radius: 14px; padding: 1.2rem 1.3rem; transform: rotate(var(--tilt));
  box-shadow: 4px 5px 0 -1px #EFE7D6, 4px 5px 0 0 #E3D8C2; display: flex; flex-direction: column; }
.cg-tile i { width: 30px; height: 30px; color: #9C6C44; margin-bottom: .5rem; }
.cg-tile b { font-family: 'Fraunces', Georgia, serif; font-size: 2.3rem; line-height: 1; color: #1B3A2F; }
.cg-tile span { font-weight: 700; color: #1B2A23; margin-top: .25rem; }
.cg-tile small { color: #8a7d68; font-size: .76rem; margin-top: .35rem; }

/* 4. Weather */
.cg-weather { display: grid; grid-template-columns: repeat(12, 1fr); gap: .5rem; background: #FFFDF8; border: 1px solid #E3D8C2; border-radius: 14px; padding: 1.2rem 1rem;
  box-shadow: 4px 5px 0 -1px #EFE7D6, 4px 5px 0 0 #E3D8C2; }
.cg-month { text-align: center; display: flex; flex-direction: column; align-items: center; border-radius: 10px; padding: .4rem 0; }
.cg-month.best { background: #EEF8F2; }
.cg-bar { position: relative; width: 14px; height: 120px; background: #F3EEE3; border-radius: 99px; margin-bottom: .4rem; }
.cg-bar i { position: absolute; left: 0; right: 0; border-radius: 99px; background: linear-gradient(0deg, #6BBCE6, #FFC222 60%, #E0907A); }
.cg-month b { color: #1B2A23; font-size: .95rem; } .cg-month span { color: #6b7280; font-size: .8rem; }
.cg-m { font-weight: 800; color: #1B3A2F; margin-top: .3rem; font-size: .85rem; }
.cg-month small { display: block; color: #8a7d68; font-size: .68rem; line-height: 1.3; }

/* 5. Living here */
.cg-lives { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.cg-life { display: flex; gap: .9rem; align-items: flex-start; background: #FFFDF8; border: 1px solid #E3D8C2; border-radius: 14px; padding: 1rem 1.1rem; position: relative; }
.cg-life img { width: 60px; height: 46px; object-fit: contain; flex: none; }
.cg-life-h { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #8a7d68; }
.cg-life-t { font-family: 'Fraunces', Georgia, serif; font-size: 1.2rem; font-weight: 800; color: #1B3A2F; }
.cg-life p { margin: .3rem 0 0; font-size: .88rem; color: #374151; } .cg-life p span { color: #8a7d68; }
.cg-life-s { position: absolute; top: .8rem; right: .9rem; font-weight: 800; font-size: .85rem; border-radius: 999px; padding: .1rem .55rem; background: #F3EEE3; color: #6b5a40; }
.cg-life.tier-excellent .cg-life-s { background: #F7E8B8; color: #7a5a00; } .cg-life.tier-good .cg-life-s { background: #DDF1E8; color: #1b6b59; }
.cg-life.tier-developing .cg-life-s { background: #F6DCD2; color: #93462c; }

/* 6. Twin cities */
.cg-map-card { background: #FFFDF8; border: 1px solid #E3D8C2; border-radius: 14px; padding: .8rem; box-shadow: 4px 5px 0 -1px #EFE7D6, 4px 5px 0 0 #E3D8C2;
  background-image: radial-gradient(circle, rgba(44,165,141,.18) 1.2px, transparent 1.5px); background-size: 22px 22px; }
.cg-map-card svg { width: 100%; height: auto; display: block; }
.cg-arc { fill: none; stroke: #E0907A; stroke-width: 1.6; stroke-dasharray: 1 6; stroke-linecap: round; }
.cg-twin-dot circle { fill: #FFFDF8; stroke: #2CA58D; stroke-width: 3; }
.cg-twin-dot:hover circle { fill: #2CA58D; }
.cg-home { fill: #FFC222; stroke: #9C6C44; stroke-width: 3; }
.cg-home-t { font-family: 'Fraunces', Georgia, serif; font-weight: 800; font-size: 20px; fill: #1B2A23; }
.cg-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.cg-chips span { background: #FFFDF8; border: 1px solid #E3D8C2; border-radius: 999px; padding: .25rem .7rem; font-size: .84rem; font-weight: 600; color: #1B2A23; }
.cg-chips small { color: #8a7d68; font-weight: 500; }

/* 7. Plan a visit */
.cg-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .9rem; }
.cg-links a { display: flex; align-items: center; gap: .7rem; background: #FFFDF8; border: 1.5px solid #1B2A23; border-radius: 14px; padding: .95rem 1.1rem;
  text-decoration: none; color: #1B2A23; font-weight: 700; box-shadow: 0 4px 0 #1B2A23; transition: transform 150ms, box-shadow 150ms; }
.cg-links a:hover { transform: translateY(2px); box-shadow: 0 2px 0 #1B2A23; }
.cg-links a span { flex: 1; } .cg-links i { width: 18px; height: 18px; color: #2CA58D; }
.cg-officials { margin-top: 2rem; color: #6b7280; font-size: .9rem; } .cg-officials a { color: #1f8773; font-weight: 700; }

@media (max-width: 760px) {
  .cg-hero { min-height: 70vh; }
  .cg-weather { grid-template-columns: repeat(6, 1fr); row-gap: 1rem; }
  .cg-lives { grid-template-columns: 1fr; }
  .cg-sight, .cg-tile, .cg-note { transform: none; }
}
.cg-twin-dot text { font-size: 15px; font-weight: 600; fill: #4b3a28; paint-order: stroke; stroke: #FFFDF8; stroke-width: 4px; }
.cg-far { font-family: 'Fraunces', Georgia, serif; font-size: 1.15rem; color: #1B3A2F; margin: 1.4rem 0 .2rem; }
.cg-life p b { font-family: 'Fraunces', Georgia, serif; font-size: 1.05rem; color: #1B3A2F; }
.cg-bar { width: 20px !important; height: 130px !important; }

/* ── Scoreboard (city-board.js) ── */
.cb-top { display: grid; grid-template-columns: 1fr 1.3fr; gap: 1.2rem; }
.cb-card { background: #FFFDF8; border: 1px solid #E3D8C2; border-radius: 16px; padding: 1.4rem 1.5rem; box-shadow: 5px 6px 0 -1px #EFE7D6, 5px 6px 0 0 #E3D8C2; }
.cb-label { font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #8a7d68; margin-bottom: .5rem; }
.cb-label small { text-transform: none; letter-spacing: 0; font-weight: 600; }
.cb-big { font-family: 'Fraunces', Georgia, serif; font-size: 5rem; font-weight: 800; line-height: .9; color: #1B3A2F; }
.cb-big small { font-size: 1.3rem; color: #8a7d68; }
.cb-place { font-family: 'Fraunces', Georgia, serif; font-size: 1.9rem; font-weight: 800; color: #2CA58D; margin: .4rem 0 .5rem; }
.cb-place span { font-size: 1.05rem; color: #6b7280; font-family: Inter, sans-serif; font-weight: 600; }
.cb-main p { color: #374151; margin: 0; }
.cb-pulse { display: flex; gap: .8rem; align-items: center; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px dashed #E3D8C2; font-size: .9rem; color: #1B2A23; }
.cb-pulse small { color: #6b7280; } .cb-pulse a { color: #1f8773; font-weight: 600; }
.cb-badge { flex: none; width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .72rem; text-transform: uppercase;
  color: #1B2A23; background: #EFE7D6; box-shadow: inset 0 0 0 4px #FFFDF8, 0 0 0 2px #C9B99A; }
.cb-badge.gold { background: #F3D46B; } .cb-badge.silver { background: #D3DAE1; } .cb-badge.bronze { background: #E2AE8C; } .cb-badge.platinum { background: #DCE8EE; }
.cb-row { display: grid; grid-template-columns: 2rem 1fr 38% 2.4rem; align-items: center; gap: .6rem; padding: .42rem .4rem; border-radius: 8px; text-decoration: none; color: #1B2A23; }
.cb-row:hover { background: #F6F1E6; }
.cb-row.me { background: #E7F4EE; box-shadow: inset 3px 0 0 #2CA58D; font-weight: 700; }
.cb-rank { font-family: 'Fraunces', Georgia, serif; font-weight: 800; color: #8a7d68; text-align: right; }
.cb-city small { color: #8a7d68; font-weight: 500; font-size: .78rem; }
.cb-bar { height: 10px; background: #F1EADB; border-radius: 99px; overflow: hidden; } .cb-bar i { display: block; height: 100%; background: #7CC3AC; border-radius: 99px; }
.cb-row.me .cb-bar i { background: #2CA58D; }
.cb-pts { text-align: right; font-weight: 800; }
.cb-gap { text-align: center; color: #b8aa90; letter-spacing: .3em; font-size: .8rem; }
.cb-all { margin-top: .6rem; border: 0; background: none; color: #1f8773; font-weight: 700; cursor: pointer; padding: .3rem .4rem; }
.cb-medals { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.2rem; }
.cb-medal { display: flex; align-items: center; gap: .7rem; background: #FFFDF8; border: 1px solid #E3D8C2; border-radius: 999px; padding: .4rem 1.1rem .4rem .45rem; }
.cb-medal-n { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Fraunces', Georgia, serif; font-weight: 800;
  box-shadow: inset 0 0 0 3px rgba(255,253,248,.7), 0 3px 0 rgba(60,40,10,.15); }
.cb-medal.gold .cb-medal-n { background: #F3D46B; } .cb-medal.silver .cb-medal-n { background: #D3DAE1; } .cb-medal.bronze .cb-medal-n { background: #E2AE8C; }
.cb-medal b { display: block; color: #1B2A23; } .cb-medal small { color: #8a7d68; }
.cb-h3 { font-family: 'Fraunces', Georgia, serif; font-size: 1.4rem; color: #1B3A2F; margin: 2.2rem 0 1rem; }
.cv-shields { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6rem 2rem; }
.cv-shields .shield { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.cv-shields .shield.open { transform: translateY(-6px); }
.cv-shields .shield.open .shield-label { color: #1f8773; text-decoration: underline; text-underline-offset: 4px; }
body.paper .shield.tier-none { --sc: #E3DCCF; --sc-d: #B7AC98; }
.cb-shields .shield-ribbon { font-size: .66rem; }
.cb-area { position: relative; margin-top: 1.5rem; background: #FFFDF8; border: 1px solid #E3D8C2; border-radius: 16px; padding: 1.3rem 1.5rem; box-shadow: 5px 6px 0 -1px #EFE7D6, 5px 6px 0 0 #E3D8C2; }
.cb-area h3 { font-family: 'Fraunces', Georgia, serif; font-size: 1.4rem; color: #1B3A2F; margin: 0 0 .8rem; } .cb-area h3 span { color: #2CA58D; }
.cv-close { position: absolute; top: .8rem; right: .8rem; border: 0; background: #EFE7D6; border-radius: 50%; width: 32px; height: 32px; font-size: 1.2rem; cursor: pointer; }
.cb-ind { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .9rem 1.6rem; }
.cb-i-t { font-weight: 600; font-size: .9rem; color: #1B2A23; margin-bottom: .3rem; } .cb-i-t small { color: #8a7d68; font-weight: 500; }
.cb-i-bars span { display: block; height: 22px; border-radius: 6px; margin-bottom: 4px; font-size: .78rem; line-height: 22px; padding-left: 8px; white-space: nowrap; min-width: 4.5rem; }
.cb-i-bars .me { background: #7CC3AC; color: #0f3b2f; } .cb-i-bars .me.bad { background: #E8B7A5; color: #6b2d17; }
.cb-i-bars .avg { background: #EFE7D6; color: #6b5a40; }
.cb-leaders { margin: 1rem 0 0; font-size: .9rem; color: #4b5563; } .cb-leaders a { color: #1f8773; font-weight: 600; }

/* ── Dashboard charts ── */
.cb-dash { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1.1rem; grid-auto-flow: dense; }
.cb-chart { background: #FFFDF8; border: 1px solid #E3D8C2; border-radius: 14px; padding: 1rem 1.1rem .8rem; box-shadow: 4px 5px 0 -1px #EFE7D6, 4px 5px 0 0 #E3D8C2; display: flex; flex-direction: column; }
.cb-chart.wide { grid-column: span 2; }
.cb-chart-h { display: flex; align-items: center; gap: .5rem; font-weight: 800; color: #1B2A23; }
.cb-chart-h i { width: 18px; height: 18px; color: #9C6C44; }
.cb-chart p { font-size: .87rem; color: #374151; margin: .35rem 0 .6rem; min-height: 2.6em; }
.cb-canvas { position: relative; height: 170px; } .cb-chart.wide .cb-canvas { height: 230px; }
.cb-chart small { color: #8a7d68; font-size: .7rem; margin-top: .4rem; }
@media (max-width: 860px) { .cb-top { grid-template-columns: 1fr; } .cb-chart.wide { grid-column: auto; } .cb-big { font-size: 4rem; } }

/* ── Twin cities: live map ── */
.cg-tw-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .8rem; }
.cg-tw-bar button { border: 1.5px solid #1B2A23; background: #FFFDF8; border-radius: 999px; padding: .4rem 1rem; font-weight: 700; cursor: pointer; box-shadow: 0 3px 0 #1B2A23; }
.cg-tw-bar button.on { background: #1B3A2F; color: #fff; }
.cg-tw-key { margin-left: auto; font-size: .8rem; color: #6b7280; display: flex; gap: .4rem; align-items: center; }
.cg-tw-key i { width: 12px; height: 12px; border-radius: 50%; border: 3px solid #9C6C44; background: #FFFDF8; display: inline-block; margin-left: .5rem; }
.cg-tw-key i.in { border-color: #2CA58D; }
.cg-tw-map { height: 540px; border-radius: 16px; border: 1px solid #E3D8C2; overflow: hidden; box-shadow: 5px 6px 0 -1px #EFE7D6, 5px 6px 0 0 #E3D8C2; background: #F3EEE3; }
.cg-tiles-paper { filter: sepia(.45) saturate(.55) brightness(1.04) contrast(.92); }
.cg-tw-line { stroke: #E0907A; stroke-width: 2.4; fill: none; stroke-dasharray: 2 9; stroke-linecap: round; animation: cg-flow 1.6s linear infinite; }
.cg-tw-line.in { stroke: #2CA58D; }
@keyframes cg-flow { to { stroke-dashoffset: -22; } }
.cg-tw-dot { fill: #FFFDF8; fill-opacity: 1; stroke: #9C6C44; stroke-width: 3; cursor: pointer; }
.cg-tw-dot.in { stroke: #2CA58D; }
.cg-tw-dot:hover { fill: #FFC222; }
.cg-tw-home { fill: #FFC222; fill-opacity: 1; stroke: #9C6C44; stroke-width: 3; }
.cg-tw-tip { font-family: Inter, sans-serif; font-weight: 700; font-size: .78rem; border-radius: 8px; border: 1px solid #E3D8C2; box-shadow: 0 4px 10px -4px rgba(60,40,10,.3); }
.cg-tw-tip.home { font-family: 'Fraunces', Georgia, serif; font-size: 1rem; background: #1B3A2F; color: #fff; border-color: #1B3A2F; }
.cg-tw-tip.home::before { border-top-color: #1B3A2F; }
.cg-tw-pop { display: flex; flex-direction: column; gap: .25rem; font-family: Inter, sans-serif; }
.cg-tw-pop b { font-family: 'Fraunces', Georgia, serif; font-size: 1.1rem; color: #1B2A23; } .cg-tw-pop span { color: #6b7280; font-size: .82rem; }
.cg-tw-pop a { color: #1f8773; font-weight: 700; }
.cg-tw-list a { text-decoration: none; display: inline-flex; align-items: center; gap: .3rem; background: #FFFDF8; border: 1px solid #E3D8C2; border-radius: 999px; padding: .25rem .7rem; font-size: .84rem; font-weight: 600; color: #1B2A23; }
.cg-tw-list a.in { border-color: #2CA58D; background: #EEF8F2; }
.cg-tw-list a:hover { border-color: #1B2A23; }
.cg-tw-list a i { width: 13px; height: 13px; color: #2CA58D; }
.cg-tw-list small { color: #8a7d68; font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .cg-tw-line, .cg-tw-dot { animation: none; } }
@media (max-width: 760px) { .cg-tw-map { height: 420px; } .cg-tw-key { margin-left: 0; } }

/* ── Insight boxes, ground truth, methodology ── */
.cb-insight { display: flex; gap: .9rem; align-items: flex-start; margin-top: 1.4rem; background: #FFFDF8; border: 1px solid #E3D8C2; border-left: 5px solid #2CA58D;
  border-radius: 12px; padding: 1rem 1.2rem; box-shadow: 4px 5px 0 -1px #EFE7D6, 4px 5px 0 0 #E3D8C2; }
.cb-insight > i { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: #E7F4EE; color: #1f8773; }
.cb-insight > div > b { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #1f8773; }
.cb-insight p { margin: .2rem 0 0; color: #1B2A23; } .cb-insight p b { color: #1B3A2F; }
.cb-eyebrow { display: inline-flex; align-items: center; gap: .45rem; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #9C6C44;
  background: #FFFDF8; border: 1px solid #E3D8C2; border-radius: 999px; padding: .35rem .8rem; margin-bottom: .8rem; }
.cb-eyebrow i { width: 15px; height: 15px; }
.cb-pairs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.cb-pair { background: #FFFDF8; border: 1px solid #E3D8C2; border-radius: 14px; padding: 1rem 1.2rem; box-shadow: 4px 5px 0 -1px #EFE7D6, 4px 5px 0 0 #E3D8C2; }
.cb-pair-h { display: flex; gap: .5rem; align-items: center; font-weight: 800; color: #1B2A23; } .cb-pair-h i { width: 18px; height: 18px; color: #9C6C44; }
.cb-pair-n { display: flex; justify-content: space-between; align-items: center; margin-top: .7rem; }
.cb-pair-n > i { width: 18px; height: 18px; color: #b8aa90; }
.cb-pair-n small { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #8a7d68; }
.cb-pair-n b { display: block; font-family: 'Fraunces', Georgia, serif; font-size: 2rem; color: #1B3A2F; line-height: 1.1; } .cb-pair-n .r b { color: #2CA58D; }
.cb-pair-n span { font-size: .75rem; color: #8a7d68; } .cb-pair-n .r { text-align: right; }
.cb-osm { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .8rem; }
.cb-osm-t { background: #FFFDF8; border: 1px solid #E3D8C2; border-radius: 12px; padding: .9rem 1rem; display: flex; flex-direction: column; }
.cb-osm-t i { width: 20px; height: 20px; color: #2CA58D; }
.cb-osm-t b { font-family: 'Fraunces', Georgia, serif; font-size: 1.9rem; color: #1B3A2F; line-height: 1.1; margin-top: .3rem; }
.cb-osm-t span { font-weight: 700; color: #1B2A23; font-size: .88rem; } .cb-osm-t small { color: #8a7d68; font-size: .72rem; margin-top: .2rem; }
.cb-method { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.4rem; align-items: start; }
.cb-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.cb-steps li { counter-increment: s; position: relative; padding: 0 0 1rem 3rem; color: #374151; line-height: 1.55; }
.cb-steps li::before { content: counter(s); position: absolute; left: 0; top: -.1rem; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: #FFFDF8; border: 2px solid #2CA58D;
  display: flex; align-items: center; justify-content: center; font-family: 'Fraunces', Georgia, serif; font-weight: 800; color: #1B3A2F; }
.cb-steps b { color: #1B2A23; } .cb-steps a { color: #1f8773; font-weight: 700; }
.cb-conf-n { font-family: 'Fraunces', Georgia, serif; font-size: 3rem; font-weight: 800; color: #1B3A2F; line-height: 1; } .cb-conf-n small { font-size: 1.1rem; color: #8a7d68; }
.cb-conf span { color: #4b5563; font-weight: 600; }
.cb-conf-bar { height: 10px; background: #F1EADB; border-radius: 99px; margin: .7rem 0; overflow: hidden; } .cb-conf-bar i { display: block; height: 100%; background: #2CA58D; }
.cb-conf ul { margin: .5rem 0 0; padding-left: 1.1rem; color: #374151; font-size: .9rem; line-height: 1.7; }
.cb-sources { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; margin-top: 1.6rem; }
.cb-sources a { display: flex; flex-direction: column; background: #FFFDF8; border: 1px solid #E3D8C2; border-radius: 12px; padding: .8rem 1rem; text-decoration: none; }
.cb-sources b { color: #1B2A23; } .cb-sources span { color: #8a7d68; font-size: .82rem; } .cb-sources a:hover { border-color: #2CA58D; }
.cg-more { margin-top: 1.2rem; } .cg-more a { color: #1f8773; font-weight: 700; }
@media (max-width: 860px) { .cb-method { grid-template-columns: 1fr; } }

/* ── Brand dots: paper and dots together (brown, blue, green) ── */
:root { --dot-b: #9C6C44; --dot-u: #6BBCE6; --dot-g: #C4D756; }
.cg-dots { display: inline-flex; gap: 7px; margin-right: .7rem; vertical-align: middle; }
.cg-dots i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.cg-dots i:nth-child(1) { background: var(--dot-b); } .cg-dots i:nth-child(2) { background: var(--dot-u); } .cg-dots i:nth-child(3) { background: var(--dot-g); }
.cg-kicker { color: var(--dot-u); }
/* every section title opens with the three dots */
.cg-sec h2::before { content: ""; display: block; width: 46px; height: 10px; margin-bottom: .75rem;
  background: radial-gradient(circle at 5px 5px, var(--dot-b) 4.5px, transparent 5px), radial-gradient(circle at 23px 5px, var(--dot-u) 4.5px, transparent 5px),
              radial-gradient(circle at 41px 5px, var(--dot-g) 4.5px, transparent 5px); }
/* a dotted seam between sections, like stitched paper */
.cg-sec { position: relative; }
.cg-sec::after { content: ""; position: absolute; left: 50%; top: 0; width: 216px; height: 10px; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(circle at 5px 5px, var(--dot-b) 3.5px, transparent 4px) 0 0 / 72px 10px repeat-x,
              radial-gradient(circle at 29px 5px, var(--dot-u) 3.5px, transparent 4px) 0 0 / 72px 10px repeat-x,
              radial-gradient(circle at 53px 5px, var(--dot-g) 3.5px, transparent 4px) 0 0 / 72px 10px repeat-x; }
/* dots in the details: the tags, the score place, the insight icon */
.cg-tags span i { color: var(--dot-b); }
.cb-insight { border-left-color: var(--dot-u); }
.cb-insight > i { background: #EAF5FB; color: #2f7fa8; }
.cb-row.me { box-shadow: inset 4px 0 0 var(--dot-b); }
.cb-steps li::before { border-color: var(--dot-u); }
.cb-steps li:nth-child(3n+1)::before { border-color: var(--dot-b); } .cb-steps li:nth-child(3n)::before { border-color: var(--dot-g); }
#score.paper-hero > canvas.paper-dots { opacity: .7; }

/* ── Page owner line ── */
.cb-own { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-top: 1.4rem; background: #FFFDF8; border: 1px dashed #C9B99A; border-radius: 12px; padding: .75rem 1rem; font-size: .9rem; color: #374151; }
.cb-own > i { width: 22px; height: 22px; color: #9C6C44; flex: none; }
.cb-own > div { flex: 1; min-width: 240px; }
.cb-own a { display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; color: #1f8773; text-decoration: none; white-space: nowrap; }
.cb-own a i { width: 15px; height: 15px; }
.cb-own.claimed { border: 1px solid #2CA58D; background: #EEF8F2; } .cb-own.claimed > i { color: #1f8773; }
/* ── Agora call ── */
.cb-agora { background: #1B3A2F; color: #F7F2E8; }
.cb-ag-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2rem; align-items: center; }
#cg .cb-agora h2 { color: #FFFDF8; }
.cb-agora .cb-eyebrow { background: rgba(255,253,248,.08); border-color: rgba(255,253,248,.2); color: #C4D756; }
.cb-ag-call p { color: rgba(247,242,232,.85); font-size: 1.05rem; }
.cb-ag-note { display: block; margin-top: .4rem; font-size: .85rem; color: rgba(247,242,232,.6); }
.cb-ag-btns { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }
.cb-ag-go { display: inline-flex; align-items: center; gap: .5rem; background: #C4D756; color: #1B2A23; font-weight: 800; padding: .8rem 1.4rem; border-radius: 14px; text-decoration: none; box-shadow: 0 4px 0 #8a9a2e; }
.cb-ag-go:hover { transform: translateY(2px); box-shadow: 0 2px 0 #8a9a2e; } .cb-ag-go i { width: 18px; height: 18px; }
.cb-ag-all { display: inline-flex; align-items: center; padding: .8rem 1.2rem; border-radius: 14px; border: 1.5px solid rgba(247,242,232,.5); color: #F7F2E8; font-weight: 700; text-decoration: none; }
.cb-ag-list { background: #FFFDF8; color: #1B2A23; border-radius: 16px; padding: 1.1rem 1.2rem; transform: rotate(.8deg); box-shadow: 6px 7px 0 -1px #EFE7D6, 6px 7px 0 0 #C9B99A; }
.cb-ag-p { display: block; padding: .7rem 0; border-top: 1px dashed #E3D8C2; text-decoration: none; color: inherit; }
.cb-ag-p b { display: block; color: #1B2A23; } .cb-ag-p span { display: flex; align-items: center; gap: .35rem; font-size: .8rem; color: #8a7d68; margin-top: .2rem; }
.cb-ag-p span i { width: 14px; height: 14px; color: #2CA58D; }
.cb-ag-empty { color: #6b7280; padding: 1rem 0; }
.cb-agora.cg-sec::after { display: none; }
@media (max-width: 860px) { .cb-ag-in { grid-template-columns: 1fr; } .cb-ag-list { transform: none; } }

.cb-insight ul { margin: .35rem 0 0; padding-left: 1.1rem; color: #1B2A23; }
.cb-insight li { margin: .3rem 0; line-height: 1.5; } .cb-insight li::marker { color: #9C6C44; }
.cb-insight a { color: #1f8773; }
.cg-tiles + .cb-insight, .cb-insight + .cg-tiles { margin-top: 1.4rem; }

/* ── Soul of the City & 45s Spoken Briefing (city-profile.js) ── */
.cg-soul-card {
  background: #FFFDF8;
  border: 1.5px solid #E3D8C2;
  border-radius: 18px;
  padding: 1.55rem 1.7rem;
  box-shadow: 6px 7px 0 -1px #EFE7D6, 6px 7px 0 0 #E3D8C2;
}
.cg-soul-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: .75rem; }
.cg-soul-arch { font-family: 'Fraunces', Georgia, serif; font-size: clamp(1.35rem, 2.5vw, 1.85rem); font-weight: 800; color: #1B3A2F; margin: .15rem 0 0; }
.cg-soul-acts { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.cg-soul-btn {
  border: 1.5px solid #1B2A23;
  background: #FFFDF8;
  color: #1B2A23;
  border-radius: 999px;
  padding: .45rem 1rem;
  font-size: .84rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 0 #1B2A23;
  transition: transform 140ms, box-shadow 140ms;
}
.cg-soul-btn.primary { background: #1B3A2F; color: #FFFDF8; }
.cg-soul-btn:hover:not(:disabled) { transform: translateY(1px); box-shadow: 0 2px 0 #1B2A23; }
.cg-soul-btn:focus-visible { outline: 2px solid #2CA58D; outline-offset: 2px; }
.cg-soul-btn:disabled { opacity: .65; cursor: wait; }
.cg-soul-dna { font-size: 1rem; line-height: 1.65; color: #1B2A23; margin: 0 0 1rem; }
.cg-soul-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: .85rem; }
.cg-soul-box { background: #FBF7EE; border: 1px solid #E3D8C2; border-radius: 12px; padding: .85rem 1rem; font-size: .88rem; color: #374151; line-height: 1.5; }
.cg-soul-box-t { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #1f8773; margin-bottom: .3rem; }
.cg-soul-box.horizon .cg-soul-box-t { color: #9C6C44; }
.cg-tts-box { margin-top: 1rem; padding-top: .9rem; border-top: 1px dashed #E3D8C2; }
.cg-tts-box audio { width: 100%; max-width: 460px; height: 38px; display: block; margin-bottom: .45rem; }
.cg-tts-box details { font-size: .84rem; color: #4b5563; background: #FBF7EE; border: 1px solid #E3D8C2; border-radius: 10px; padding: .5rem .8rem; }
.cg-tts-box summary { font-weight: 700; color: #1B3A2F; cursor: pointer; }
