/* Google (module wire): app skin. Rules moved verbatim from styles.css (C1); the variables are the app identity, posture themes re-map the shell only. */
/* P9 scheme tokens: light = the colours these rules always used, dark = Google in its own dark theme. */
:root {
  --google-blue-line: #1a73e8;
  --google-blue-text: #1a0dab;
  --google-blue-text-2: #1967d2; /* P9 contrast: #1a73e8 was 4.3:1 on #f8f9fa */
  --google-green-text: #006621;
  --google-line: #f8f9fa;
  --google-line-2: #e5e5e5;
  --google-line-3: #dfe1e5;
  --google-line-4: #dadce0;
  --google-orange-text: #b32424;
  --google-surface: #fff;
  --google-surface-2: #f8f9fa;
  --google-surface-3: #f1f3f5;
  --google-surface-4: #f1f3f4;
  --google-surface-5: #e8eaed;
  --google-text: #202124;
  --google-text-2: #333;
  --google-text-3: #3c4043;
  --google-text-4: #4d5156;
  --google-text-5: #5f6368;
  --google-text-6: #666;
  --google-text-7: #5f6368; /* P9 contrast: #70757a was 4.4:1 on #f8f9fa */
  --google-tint-blue: #e8f0fe;
}
[data-scheme="dark"] {
  --google-blue-line: #8ab4f8;
  --google-blue-text: #99c3ff;
  --google-blue-text-2: #8ab4f8;
  --google-green-text: #bdc1c6;
  --google-line: #3c4043;
  --google-line-2: #3c4043;
  --google-line-3: #5f6368;
  --google-line-4: #5f6368;
  --google-orange-text: #f98479;
  --google-surface: #202124;
  --google-surface-2: #303134;
  --google-surface-3: #3c4043;
  --google-surface-4: #3c4043;
  --google-surface-5: #3c4043;
  --google-text: #e8eaed;
  --google-text-2: #e8eaed;
  --google-text-3: #e8eaed;
  --google-text-4: #bdc1c6;
  --google-text-5: #9aa0a6;
  --google-text-6: #9aa0a6;
  --google-text-7: #9aa0a6;
  --google-tint-blue: #394457;
}
.module-body[data-module="wire"] {
  --app-font: "Roboto", "Open Sans", Arial, sans-serif;
  --app-accent: #1a73e8;
  --app-bg: #f8f9fa;
  --app-surface: #ffffff;
  --app-radius: 8px;
}

/* ---------- Wire / browser ---------- */
.browser-shell { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.tabstrip { display: flex; gap: 3px; padding: 7px 8px 0; background: var(--bg-elev); border-bottom: 1px solid var(--border); overflow-x: auto; }
.tab { display: flex; align-items: center; background: var(--surface-2); border: 1px solid var(--border); border-bottom: none; border-radius: 8px 8px 0 0; max-width: 220px; }
.tab.is-active { background: var(--surface); border-color: var(--border-strong); }
.tab-label { display: flex; align-items: center; gap: 7px; padding: 7px 8px; min-width: 0; color: var(--muted); }
.tab.is-active .tab-label { color: var(--text); }
.tab-label span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; }
.tab-favicon { width: 8px; height: 8px; border-radius: 50%; background: var(--site, var(--faint)); flex: none; }
.tab-close { padding: 5px; color: var(--faint); border-radius: 5px; }
.tab-close:hover { color: var(--text); background: var(--surface-3); }

.addressbar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.nav-btn { width: 28px; height: 28px; display: grid; place-items: center; color: var(--muted); border-radius: 6px; }
.nav-btn:hover:not(:disabled) { background: var(--surface-3); color: var(--text); }
.nav-btn:disabled { opacity: 0.35; cursor: default; }
.address-field { flex: 1; display: flex; align-items: center; gap: 8px; padding: 5px 10px; background: var(--bg); border: 1px solid var(--border); border-radius: 7px; }
.lock-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); flex: none; }
.address-field input { flex: 1; background: none; border: none; outline: none; font-size: 12px; color: var(--muted); }
.address-field input:focus { color: var(--text); }

.article-hero {
  height: 150px;
  background: var(--hero, linear-gradient(135deg, #21343f, #2a4a55));
  display: flex; align-items: flex-end;
  padding: 14px;
  border-bottom: 1px solid var(--border);
}
.hero-site { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.82); }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; padding: 22px; }
.kicker { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 6px; }
.article-title { font-size: 28px; line-height: 1.16; letter-spacing: -0.015em; margin-bottom: 8px; }
.article-summary { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.byline { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--faint); padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.byline .text-btn { margin-left: auto; }
.article-body { padding: 16px 0; display: flex; flex-direction: column; gap: 12px; }
.article-body p { font-size: 14px; color: var(--text); max-width: 68ch; }

.comments { margin-top: 10px; border-top: 1px solid var(--border); padding-top: 14px; }
.comments-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.comments-head h3 { font-size: 13px; }
.comments-head h3 span { color: var(--faint); font-weight: 400; margin-left: 3px; }
.as-label { font-size: 10.5px; color: var(--faint); }
.comment { display: flex; gap: 9px; padding: 8px 0; }
.comment-meta { display: flex; gap: 8px; align-items: baseline; }
.comment-meta strong { font-size: 11.5px; }
.comment-meta span { font-family: var(--font-mono); font-size: 9.5px; color: var(--faint); }
.comment p { font-size: 12.5px; color: var(--muted); }
.composer-inline { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 7px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; }
.composer-inline input { flex: 1; background: none; border: none; outline: none; font-size: 12px; }
.article-side { display: flex; flex-direction: column; gap: 9px; }
.article-side h3 { font-size: 12.5px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.side-story { display: flex; gap: 9px; text-align: left; padding: 9px; border-radius: 9px; border: 1px solid transparent; }
.side-story:hover { background: var(--surface-2); border-color: var(--border); }
.site-mark { width: 3px; min-height: 30px; border-radius: 2px; background: var(--site, var(--faint)); flex: none; }
.side-story span:last-child { display: flex; flex-direction: column; gap: 2px; }
.side-story strong { font-size: 12px; font-weight: 600; line-height: 1.3; }
.side-story small { font-size: 10px; color: var(--faint); }

.empty-state { padding: 60px 22px; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); text-align: center; }
.empty-state h2 { font-size: 17px; color: var(--text); }
.empty-state p { font-size: 12.5px; }

@media (max-width: 1180px) {
  .article-grid { grid-template-columns: minmax(0, 1fr);  }
  .article-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));  }
}
@media (max-width: 720px) {
  .article-side { grid-template-columns: 1fr;  }
}
/* ---------- Wire / news site ---------- */
.browser-shell { border-radius: 8px; border-color: var(--border); }
.article-hero { height: 96px; align-items: center; padding: 0 22px; border-bottom: 3px solid #c62828; }
.masthead { display: flex; flex-direction: column; gap: 3px; }
.article-hero .hero-site { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; text-transform: none; color: #fff; }
.hero-tagline { font-size: 11px; color: rgba(255, 255, 255, 0.72); }
.site-nav { display: flex; gap: 20px; padding: 0 22px; background: #111; overflow-x: auto; }
.site-nav-link { padding: 10px 0 8px; color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; border-bottom: 3px solid transparent; white-space: nowrap; }
.site-nav-link:hover { color: #ffb3b3; }
.site-nav-link.is-active { border-bottom-color: #c62828; }
.kicker { color: var(--google-orange-text); }
.article-title { font-size: 31px; font-weight: 700; }
.article-summary { font-size: 15px; }
.article-body p { font-size: 15px; line-height: 1.7; }
.article-side h3 { border-bottom: 2px solid #c62828; padding-bottom: 6px; }
.side-story { border: 1px solid transparent; }
.side-story:hover { background: var(--google-surface-2); border-color: var(--border); }
.composer-inline { background: var(--google-surface-2); }

/* ---------- Google ---------- */
.google-home { min-height: 520px; display: flex; flex-direction: column; }
.google-top { display: flex; align-items: center; justify-content: flex-end; gap: 16px; padding: 4px 8px 0; color: var(--muted); }
.google-top-link { font-size: 12px; color: var(--muted); }
.google-apps { display: inline-flex; padding: 5px; border-radius: 50%; }
.google-apps:hover { background: var(--google-surface-3); }
.google-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 0 60px; }
.google-logo { display: inline-flex; align-items: baseline; gap: 0; font-family: "Product Sans", "Open Sans", Arial, sans-serif; font-size: 72px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; margin-bottom: 26px; }
.google-logo.compact { font-size: 28px; margin: 0; }
.google-logo span { display: inline-block; }
.g-blue { color: #4285f4; }
.g-red { color: #ea4335; }
.g-yellow { color: #fbbc05; }
.g-green { color: #34a853; }
.google-home-form { width: min(620px, 92vw); }
.google-search { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--google-surface); border: 1px solid var(--google-line-3); border-radius: 24px; box-shadow: 0 1px 4px rgba(32,33,36,0.08); color: var(--muted); }
.google-search:hover { box-shadow: 0 2px 8px rgba(32,33,36,0.14); }
.google-search input { flex: 1; border: none; outline: none; background: none; font-size: 15px; color: var(--text); }
.google-search.compact { padding: 7px 12px; border-radius: 20px; }
.google-mic { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #4285f4; }
.google-mic:hover { background: var(--google-tint-blue); }
.google-actions { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.google-btn { padding: 9px 16px; font-size: 12.5px; color: var(--google-text-3); background: var(--google-surface-2); border: 1px solid var(--google-line); border-radius: 4px; }
.google-btn:hover { background: var(--google-surface-4); border-color: var(--google-line-4); }
.google-quick { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 22px; }
.google-quick button { padding: 4px 9px; font-size: 11.5px; color: var(--google-text-3); background: var(--google-surface-4); border-radius: 999px; }
.google-quick button:hover { background: var(--google-surface-5); }
.google-note { margin-top: 26px; font-size: 10.5px; color: var(--faint); }

.google-results { max-width: 860px; }
.google-results-head { display: flex; align-items: center; gap: 14px; padding: 2px 0 10px; }
.google-logo-btn { flex: none; }
.google-results-head .google-search { flex: 1; }
.google-submit { width: 28px; height: 28px; display: grid; place-items: center; color: var(--google-blue-text-2); border-radius: 50%; }
.google-submit:hover { background: var(--google-tint-blue); }
.google-top-links { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.google-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 10px; }
.google-tab { padding: 9px 12px; font-size: 12px; color: var(--muted); border-bottom: 3px solid transparent; }
.google-tab.is-active { color: var(--google-blue-text-2); border-bottom-color: var(--google-blue-line); font-weight: 600; }
.google-stats { font-size: 11px; color: var(--faint); margin: 6px 0 14px; }
.google-result-list { display: flex; flex-direction: column; gap: 18px; }
.google-result { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 4px 6px; border-radius: 6px; }
.google-result:hover { background: var(--google-surface-2); }
.google-result-site { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--google-text); }
.favicon-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--site, var(--faint)); }
.crumb { color: var(--faint); }
.google-result-title { font-size: 18px; color: var(--google-blue-text); line-height: 1.3; }
.google-result:hover .google-result-title { text-decoration: underline; }
.google-result-snippet { font-size: 12.5px; color: var(--google-text-4); line-height: 1.55; max-width: 70ch; }
.google-result-url { font-size: 11.5px; color: var(--google-green-text); }
.google-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.google-image { text-align: left; display: flex; flex-direction: column; gap: 5px; font-size: 11.5px; }
.google-image-thumb { aspect-ratio: 4 / 3; background: var(--thumb); border-radius: 6px; }
.google-image small { color: var(--faint); }
.google-videos { display: flex; flex-direction: column; gap: 12px; }
.google-video { display: flex; gap: 12px; text-align: left; padding: 6px; border-radius: 8px; }
.google-video:hover { background: var(--google-surface-2); }
.google-video-thumb { position: relative; width: 190px; aspect-ratio: 16 / 9; background: var(--thumb); border-radius: 6px; flex: none; }
.google-video-copy { display: flex; flex-direction: column; gap: 3px; }
.google-video-copy strong { font-size: 14px; color: var(--google-blue-text); }
.google-video-copy small { font-size: 11.5px; color: var(--muted); }
.google-related { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.google-related .eyebrow { width: 100%; }
.google-related button { padding: 6px 11px; font-size: 12px; background: var(--google-surface-4); border-radius: 999px; color: var(--google-text); }
.google-related button:hover { background: var(--google-surface-5); }
.google-pager { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 12px; color: var(--google-blue-text-2); }
.google-pager-active { color: var(--muted); }
.article-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.article-source { font-size: 10.5px; color: var(--faint); font-family: var(--font-mono); }

/* ---------- C2 Google: results page, tabs, news, images, article ---------- */
.google-lens { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #4285f4; opacity: 0.55; cursor: default; }
.google-search input { min-width: 0; }
.google-top-link { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: var(--muted); }
.google-top-link:hover { color: var(--google-blue-text-2); text-decoration: underline; }
.google-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.google-tab { background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; white-space: nowrap; }
.google-tab:hover { color: var(--google-text); }
.google-block-title { font-size: 13px; font-weight: 500; color: var(--google-text); margin: 4px 0 10px; }
.google-result-date { color: var(--google-text-7); margin-right: 4px; font-size: 11.5px; }
.google-result-snippet { display: block; }

/* top stories: a horizontal row of cards */
.google-top-stories { margin: 4px 0 20px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; }
.google-story-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(160px, 1fr); gap: 12px; overflow-x: auto; scrollbar-width: thin; }
.google-story { display: flex; flex-direction: column; gap: 4px; text-align: left; min-width: 0; }
.google-story-thumb { display: block; aspect-ratio: 16 / 10; border-radius: 8px; background: var(--thumb); }
.google-story-site { font-size: 11px; color: var(--google-text-5); }
.google-story-title { font-size: 13.5px; color: var(--google-text); line-height: 1.3; }
.google-story small { font-size: 10.5px; color: var(--google-text-7); }
.google-story:hover .google-story-title { text-decoration: underline; }

/* people also ask: native accordion */
.google-paa { margin: 4px 0 18px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.google-paa .google-block-title { padding: 12px 14px 0; margin: 0; }
.google-paa-item { border-top: 1px solid var(--border); }
.google-paa-item:first-of-type { border-top: 0; }
.google-paa-item summary { list-style: none; cursor: pointer; padding: 13px 14px; font-size: 14px; color: var(--google-text); display: flex; justify-content: space-between; gap: 10px; }
.google-paa-item summary::-webkit-details-marker { display: none; }
.google-paa-item summary::after { content: "⌄"; color: var(--google-text-5); font-size: 16px; line-height: 1; }
.google-paa-item[open] summary::after { content: "⌃"; }
.google-paa-item p { padding: 0 14px 13px; font-size: 13px; color: var(--google-text-4); line-height: 1.55; }

/* news tab: cards */
.google-news-list { display: flex; flex-direction: column; gap: 4px; }
.google-news-card { display: flex; gap: 14px; text-align: left; padding: 10px; border-radius: 10px; }
.google-news-card:hover { background: var(--google-surface-2); }
.google-news-thumb { flex: none; width: 150px; aspect-ratio: 16 / 10; border-radius: 8px; background: var(--thumb); }
.google-news-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.google-news-copy strong { font-size: 16px; font-weight: 400; color: var(--google-blue-text); line-height: 1.3; }
.google-news-copy small { font-size: 12.5px; color: var(--google-text-4); line-height: 1.5; }
.google-news-card:hover strong { text-decoration: underline; }

/* images tab: masonry of lens posts and reel posters */
.google-masonry { columns: 180px auto; column-gap: 10px; }
.google-tile { display: flex; flex-direction: column; gap: 4px; width: 100%; margin: 0 0 10px; text-align: left; break-inside: avoid; }
.google-tile-thumb { display: block; width: 100%; aspect-ratio: 3 / 4; border-radius: 8px; background: var(--thumb); }
.google-tile:nth-child(3n) .google-tile-thumb { aspect-ratio: 4 / 5; }
.google-tile:nth-child(4n) .google-tile-thumb { aspect-ratio: 1 / 1; }
.google-tile-label { font-size: 12.5px; color: var(--google-text); line-height: 1.35; }
.google-tile small { font-size: 11px; color: var(--google-text-7); }
.google-tile:hover .google-tile-label { text-decoration: underline; }

/* videos tab keeps its list; the thumb is the reel's own */
.google-video-thumb { width: 200px; }
.google-video-copy strong { line-height: 1.3; }

/* article: dateline, related list */
.dateline { font-size: 11.5px; color: var(--faint); margin: 0 0 6px; }
.dateline time { font-family: var(--font-mono); }
.google-related-stories { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--border); }
.google-related-item { display: flex; flex-direction: column; gap: 3px; width: 100%; text-align: left; padding: 9px 4px; border-bottom: 1px solid var(--border); }
.google-related-item strong { font-size: 14.5px; font-weight: 500; color: var(--google-text); line-height: 1.35; }
.google-related-item:hover strong { text-decoration: underline; }

/* pagination: numbered pages, Next */
.google-pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 22px 0 8px; font-size: 14px; }
.google-pager-active { min-width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 50%; background: #1a73e8; color: #fff; font-weight: 600; }
.google-page-btn, .google-pager-next { min-width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 50%; color: var(--google-blue-text-2); padding: 0 10px; }
.google-pager-next { border-radius: 20px; font-weight: 600; }
.google-page-btn:hover, .google-pager-next:hover { background: var(--google-surface-4); }
.google-pager-note { font-size: 11.5px; color: var(--faint); margin-left: 8px; }

@media (max-width: 720px) {
  .google-top-links { gap: 8px; }
  .google-top-links .google-top-link { display: none; }
  .google-news-thumb { width: 96px; }
  .google-video-thumb { width: 130px; }
  .google-masonry { columns: 2; column-gap: 8px; }
  .google-story-row { grid-auto-columns: 62%; }
  .google-results-head { flex-wrap: wrap; }
  .google-results-head .google-search { order: 3; flex-basis: 100%; }
  .google-related { gap: 6px; }
}

/* --- T1 fidelity: each outlet carries its own masthead bar in its accent colour ---------------------------------- */
.site-masthead { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding: 14px 20px 12px; background: var(--google-surface); border-top: 5px solid var(--site); border-bottom: 1px solid var(--google-line-2); }
.site-masthead-name { font: 800 26px/1.05 Georgia, 'Times New Roman', serif; letter-spacing: -.01em; color: var(--site); }
.site-masthead-tag { font-size: 12px; color: var(--google-text-6); font-style: italic; }
.site-masthead-actions { margin-left: auto; display: flex; gap: 12px; font-size: 12px; font-weight: 600; color: var(--google-text-2); }
@media (max-width: 600px) { .site-masthead-name { font-size: 21px; } .site-masthead-actions { display: none; } }
/* the outlet's masthead names the site once: the photo band under it carries no second site name */
.site-masthead + .article-hero .masthead { display: none; }

/* P9 dark scheme: the module tokens above, Google in its own dark theme */
[data-scheme="dark"] .module-body[data-module="wire"] {
  --app-accent: #8ab4f8;
  --app-bg: #202124;
  --app-surface: #303134;
}
