---
type: "Source File"
title: "<html lang=\"en\">"
description: "<!DOCTYPE html> <html lang=\"en\"> <head> <meta charset=\"UTF-8\"> <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"> <title>{% block title %}CopeCheck Cities{% endblock %}</title> <meta."
resource: "https://cities.copecheck.com"
tags: ["copecheck", "cities", "source-file", "html"]
timestamp: "2026-08-24T09:44:56Z"
site: "cities"
source_path: "copecheck-cities/templates/base.html"
---

# <html lang="en">

Source path: `copecheck-cities/templates/base.html`  
Index snapshot generated: `2026-11-24T13:27:52Z`  
File modified: `2026-08-24T09:44:56Z`

```html
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{% block title %}CopeCheck Cities{% endblock %}</title>
    <meta name="description" content="{{ meta_description|default('CopeCheck Cities — AI displacement vulnerability rankings for cities worldwide.') }}">
    <link rel="canonical" href="https://cities.copecheck.com{% block canonical %}{{ request.path }}{% endblock %}">
    <style>
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
            background: #0a0a0a;
            color: #e0e0e0;
            line-height: 1.6;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }
        a { color: #6cb4ee; text-decoration: none; }
        a:hover { color: #9dd0ff; text-decoration: underline; }

        nav {
            background: #111;
            border-bottom: 1px solid #222;
            padding: 1rem 2rem;
            display: flex;
            align-items: center;
            gap: 2rem;
        }
        nav .brand {
            font-size: 1.1rem;
            font-weight: 700;
            color: #fff;
            letter-spacing: -0.02em;
        }
        nav .brand span { color: #6cb4ee; }
        nav .nav-links { display: flex; gap: 1.5rem; font-size: 0.9rem; }

        .container {
            max-width: 960px;
            margin: 0 auto;
            padding: 2rem 1.5rem;
            flex: 1;
        }

        h1 { font-size: 1.8rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
        h2 { font-size: 1.3rem; font-weight: 600; color: #fff; margin-bottom: 0.5rem; }
        .subtitle { color: #888; font-size: 0.95rem; margin-bottom: 2rem; }

        table {
            width: 100%;
            border-collapse: collapse;
            margin: 1rem 0;
        }
        th, td {
            text-align: left;
            padding: 0.7rem 1rem;
            border-bottom: 1px solid #1a1a1a;
        }
        th {
            background: #111;
            color: #999;
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            font-weight: 600;
        }
        th a { color: #999; }
        th a:hover { color: #6cb4ee; text-decoration: none; }
        tr:hover { background: #111; }

        .score-cell {
            font-weight: 700;
            font-variant-numeric: tabular-nums;
        }
        .score-high { color: #ff6b6b; }
        .score-med { color: #ffa94d; }
        .score-low { color: #69db7c; }

        .risk-tag {
            display: inline-block;
            padding: 0.15rem 0.5rem;
            border-radius: 3px;
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: uppercase;
        }
        .risk-high { background: rgba(255,107,107,0.15); color: #ff6b6b; }
        .risk-medium { background: rgba(255,169,77,0.15); color: #ffa94d; }
        .risk-low { background: rgba(105,219,124,0.15); color: #69db7c; }

        .pagination {
            display: flex;
            gap: 0.5rem;
            margin-top: 1.5rem;
            justify-content: center;
        }
        .pagination a, .pagination span {
            padding: 0.4rem 0.8rem;
            border-radius: 4px;
            font-size: 0.85rem;
        }
        .pagination a { background: #1a1a1a; }
        .pagination a:hover { background: #252525; text-decoration: none; }
        .pagination .current { background: #6cb4ee; color: #000; font-weight: 600; }

        .bar {
            height: 8px;
            border-radius: 4px;
            background: #1a1a1a;
            overflow: hidden;
        }
        .bar-fill { height: 100%; border-radius: 4px; }

        .detail-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
            margin: 1.5rem 0;
        }
        .detail-box {
            background: #111;
            border: 1px solid #1a1a1a;
            border-radius: 6px;
            padding: 1.2rem;
        }
        .detail-box .label { font-size: 0.8rem; color: #666; text-transform: uppercase; letter-spacing: 0.05em; }
        .detail-box .value { font-size: 1.6rem; font-weight: 700; color: #fff; margin-top: 0.3rem; }

        .country-card {
            background: #111;
            border: 1px solid #1a1a1a;
            border-radius: 8px;
            padding: 1.5rem;
            margin-bottom: 1rem;
            transition: border-color 0.2s;
        }
        .country-card:hover { border-color: #333; }
        .country-card h3 { font-size: 1.2rem; color: #fff; margin-bottom: 0.3rem; }
        .country-card p { color: #888; font-size: 0.9rem; }
        .country-flag { font-size: 2rem; margin-right: 1rem; }

        footer {
            border-top: 1px solid #1a1a1a;
            padding: 2rem;
            text-align: center;
            font-size: 0.8rem;
            color: #555;
        }
        footer .network-links {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 0.8rem 1.5rem;
            margin-bottom: 1rem;
        }
        footer .network-links a { color: #666; }
        footer .network-links a:hover { color: #6cb4ee; }

        .breadcrumb {
            font-size: 0.85rem;
            color: #666;
            margin-bottom: 1.5rem;
        }
        .breadcrumb a { color: #666; }
        .breadcrumb a:hover { color: #6cb4ee; }


        /* Oracle / Advice tabs */
        .tab-container { margin: 1.5rem 0; }
        .tab-buttons { display: flex; gap: 0; border-bottom: 1px solid #333; margin-bottom: 0; }
        .tab-btn {
            padding: 0.6rem 1.2rem;
            background: transparent;
            border: 1px solid transparent;
            border-bottom: none;
            color: #666;
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
            border-radius: 6px 6px 0 0;
            transition: all 0.2s;
            font-family: inherit;
        }
        .tab-btn:hover { color: #aaa; background: #111; }
        .tab-btn.active {
            color: #fff;
            background: #111;
            border-color: #333;
            border-bottom-color: #111;
            position: relative;
            top: 1px;
        }
        .tab-panel {
            display: none;
            padding: 1.2rem;
            background: #111;
            border: 1px solid #333;
            border-top: none;
            border-radius: 0 0 6px 6px;
        }
        .tab-panel.active { display: block; }
        .tab-panel p { color: #ccc; font-size: 0.92rem; line-height: 1.7; }
        .oracle-section { margin: 2rem 0; }
        .oracle-section h2 { font-size: 1.1rem; margin-bottom: 0.8rem; }
        .oracle-icon { margin-right: 0.4rem; }
        .oracle-preview {
            color: #888;
            font-size: 0.82rem;
            font-style: italic;
            max-width: 280px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        @media (max-width: 640px) {
            nav { padding: 0.8rem 1rem; gap: 1rem; flex-wrap: wrap; }
            nav .nav-links { flex-wrap: wrap; gap: 0.6rem 1rem; min-width: 0; }
            .container { padding: 1.5rem 1rem; }
            h1 { font-size: 1.4rem; }
            .detail-grid { grid-template-columns: 1fr; }
            th, td { padding: 0.5rem 0.6rem; font-size: 0.85rem; }
        }
    .oracle-float {
  position: fixed;
  left: max(1rem, env(safe-area-inset-left));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 9998;
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.72rem 0.92rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.75rem;
  background: rgba(12, 16, 24, 0.9);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.oracle-float:hover,
.oracle-float:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.36);
  color: #fff;
}

.oracle-float-kicker {
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  opacity: 0.72;
  text-transform: uppercase;
}

.oracle-float-title {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.1;
}

@media (max-width: 640px) {
  .oracle-float {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    width: auto;
    align-items: center;
    text-align: center;
  }

  .oracle-float-kicker {
    display: none;
  }
}
</style>
    <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
    <link rel="icon" type="image/png" sizes="32x32" href="/static/favicon-32.png">
    <meta property="og:title" content="{% block og_title %}CopeCheck Cities — AI Displacement Rankings{% endblock %}">
    <meta property="og:description" content="{% block og_description %}AI displacement vulnerability rankings for cities worldwide.{% endblock %}">
    <meta property="og:type" content="{% block og_type %}website{% endblock %}">
    <meta property="og:url" content="https://cities.copecheck.com{{ request.path }}">
    <meta property="og:image" content="{% block og_image %}/static/og-default.png{% endblock %}">
    <meta property="og:site_name" content="CopeCheck Cities">
    <meta name="twitter:card" content="summary">
    <meta name="twitter:title" content="{% block tw_title %}CopeCheck Cities — AI Displacement Rankings{% endblock %}">
    <meta name="twitter:description" content="{% block tw_description %}AI displacement vulnerability rankings for cities worldwide.{% endblock %}">
    <script type="application/ld+json">
    {"@context": "https://schema.org", "@type": "WebSite", "name": "CopeCheck Cities", "url": "https://cities.copecheck.com", "description": "AI displacement vulnerability rankings for cities worldwide."}
    </script>
</head>
<body>
    <nav>
        <a href="/" class="brand">Cope<span>Check</span> Cities</a>
        <div class="nav-links">
            {% for code, info in countries.items() if countries is defined %}
            <a href="/{{ code }}/">{{ info.flag }} {{ info.name }}</a>
            {% endfor %}
            <a href="/articles/" style="border-left: 1px solid #333; padding-left: 1.5rem;">Articles</a>
        </div>
    </nav>

    <div class="container">
        <div style="margin-bottom:1rem;padding:0.75rem 0.9rem;border:1px solid #333;border-radius:6px;color:#aaa;font-size:0.82rem;">
            <strong style="color:#ddd;">Structural baseline:</strong>
            bundled city files were last changed {{ city_dataset_status.first_import }}–{{ city_dataset_status.last_import }}.
            Those are file-maintenance timestamps, not observation dates. Rankings use historical workforce composition
            and fixed heuristic weights; they are not real-time labour-market readings or displacement probabilities.
        </div>
        {% include "_ai_label.html" %}
        {% block content %}{% endblock %}
    </div>


  <!-- Newsletter Signup - The Cope Report -->
        <section class="cope-newsletter" style="
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
    border-top: 2px solid rgba(245, 158, 11, 0.3);
    border-bottom: 2px solid rgba(245, 158, 11, 0.3);
    padding: 3rem 1.5rem;
    text-align: center;
    font-family: inherit;
  ">
    <div style="max-width: 600px; margin: 0 auto;">
      <h3 style="
        font-family: 'Cormorant Garamond', Georgia, serif;
        font-size: 1.8rem; font-weight: 700;
        color: #f59e0b;
        margin: 0 0 0.5rem 0;
        letter-spacing: 0.02em;
      ">The Cope Report</h3>
      <p style="
        color: #9ca3af; font-size: 0.95rem;
        margin: 0 0 1.5rem 0; line-height: 1.5;
      ">A weekly digest of AI displacement cope, scored by the Oracle.<br>
      Top stories, new verdicts, and fresh data.</p>
      <div style="max-width: 460px; margin: 0 auto;">
        <a href="#" onclick="window.open('https://copecheck.beehiiv.com','CopeReport','width=600,height=700,top='+((screen.height-700)/2)+',left='+((screen.width-600)/2)+',toolbar=no,menubar=no,scrollbars=yes,resizable=yes');return false;" style="
          display: inline-block;
          padding: 0.85rem 2.5rem;
          background: #f59e0b;
          color: #1a1a2e;
          border: none;
          border-radius: 8px;
          font-weight: 700;
          font-size: 1.1rem;
          text-decoration: none;
          cursor: pointer;
          transition: all 0.2s ease;
          letter-spacing: 0.5px;
        " onmouseover="this.style.background='#d97706'" onmouseout="this.style.background='#f59e0b'">Subscribe Free</a>
      </div>
      <p style="
        color: #6b7280; font-size: 0.75rem;
        margin: 1rem 0 0 0;
      ">Weekly. No spam. Unsubscribe anytime. Powered by <a href="https://beehiiv.com" style="color:#6b7280;text-decoration:underline;" target="_blank" rel="noopener">beehiiv</a>.</p>
    </div>
  </section>

    <footer>
        {% include "_ai_footer.html" %}
        <div class="network-links">
            <a href="https://copecheck.com">CopeCheck</a>
            <a href="https://uk.copecheck.com">UK</a>
            <a href="https://countries.copecheck.com">Countries</a>
            <a href="https://eu.copecheck.com">EU</a>
            <a href="https://policy.copecheck.com">Policy</a>
            <a href="https://cities.copecheck.com">Cities</a>
            <a href="https://layoffs.copecheck.com">Layoffs</a>
            <a href="https://careers.copecheck.com">Careers</a>            <a href="https://quiz.copecheck.com">Quiz</a>
            <a href="https://copecheck.com/contact?from=https://cities.copecheck.com">Feedback</a>

        </div>
        <div>CopeCheck Network &copy; {{ city_dataset_status.current_year }}</div>
    </footer>

  <!-- Feedback Widget -->
  <div id="cope-feedback-toggle" onclick="document.getElementById('cope-feedback-box').style.display=document.getElementById('cope-feedback-box').style.display==='none'?'block':'none'" style="
    position: fixed; bottom: 20px; right: 20px;
    background: rgba(245,158,11,0.9); color: #1a1a2e;
    padding: 10px 16px; border-radius: 20px;
    font-size: 0.85rem; font-weight: 700;
    cursor: pointer; z-index: 9999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    font-family: inherit;
  ">Got feedback?</div>
  <div id="cope-feedback-box" style="
    display: none; position: fixed; bottom: 65px; right: 20px;
    background: #1a1a2e; border: 1px solid rgba(245,158,11,0.3);
    border-radius: 10px; padding: 1.2rem; width: 300px;
    z-index: 9999; box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    font-family: inherit;
  ">
    <p style="color:#f59e0b;font-size:0.9rem;font-weight:700;margin:0 0 0.75rem 0;">Send Feedback</p>
    <textarea id="cope-fb-text" placeholder="What's on your mind?" rows="3" style="
      width:100%;box-sizing:border-box;padding:0.6rem;
      background:rgba(255,255,255,0.06);border:1px solid rgba(245,158,11,0.2);
      border-radius:6px;color:#e5e7eb;font-size:0.85rem;
      font-family:inherit;resize:vertical;outline:none;
    "></textarea>
    <input id="cope-fb-email" type="email" placeholder="Email (optional, for reply)" style="
      width:100%;box-sizing:border-box;padding:0.5rem;margin-top:0.5rem;
      background:rgba(255,255,255,0.06);border:1px solid rgba(245,158,11,0.2);
      border-radius:6px;color:#e5e7eb;font-size:0.85rem;
      font-family:inherit;outline:none;
    ">
    <button onclick="copeSendFeedback()" style="
      width:100%;margin-top:0.6rem;padding:0.55rem;
      background:#f59e0b;color:#1a1a2e;border:none;border-radius:6px;
      font-weight:700;font-size:0.85rem;cursor:pointer;font-family:inherit;
    ">Send</button>
    <p id="cope-fb-status" style="color:#9ca3af;font-size:0.75rem;margin:0.5rem 0 0 0;display:none;"></p>
  </div>
  <script>
  function copeSendFeedback(){
    var t=document.getElementById("cope-fb-text").value.trim();
    var e=document.getElementById("cope-fb-email").value.trim();
    var s=document.getElementById("cope-fb-status");
    if(!t){s.style.display="block";s.style.color="#ef4444";s.textContent="Please enter some feedback.";return;}
    s.style.display="block";s.style.color="#9ca3af";s.textContent="Sending...";
    fetch("/api/feedback",{method:"POST",headers:{"Content-Type":"application/json"},
      body:JSON.stringify({text:t,email:e,page:window.location.pathname})
    }).then(function(r){return r.json()}).then(function(d){
      if(d.success){s.style.color="#22c55e";s.textContent="Thanks for your feedback!";
        document.getElementById("cope-fb-text").value="";
        setTimeout(function(){document.getElementById("cope-feedback-box").style.display="none";s.style.display="none";},2000);
      }else{s.style.color="#ef4444";s.textContent=d.error||"Failed to send.";}
    }).catch(function(){s.style.color="#ef4444";s.textContent="Network error.";});
  }
  </script>
  <a class="oracle-float" href="https://chatgpt.com/g/[redacted]" target="_blank" rel="noopener" aria-label="Ask the Oracle custom GPT">
    <span class="oracle-float-kicker">Custom GPT</span>
    <span class="oracle-float-title">Ask the Oracle</span>
  </a>
</body>
</html>
```
