/* Websites (T3, module sites): a browser frame (tab strip + address bar) around organisation websites. */
/* P9 scheme tokens: light = the colours these rules always used, dark = the browser frame and sites in a dark reading theme. */
:root {
  --sites-blue-text: #174ea6;
  --sites-line: #e4e7eb;
  --sites-line-2: #dadce0;
  --sites-line-3: #c9ccd1;
  --sites-orange-text: #c5221f;
  --sites-surface: #fff;
  --sites-surface-2: #f8f9fa;
  --sites-surface-3: #f1f3f4;
  --sites-surface-4: #dee1e6;
  --sites-text: #111;
  --sites-text-2: #202124;
  --sites-text-3: #1f2933;
  --sites-text-4: #3e4c59;
  --sites-text-5: #52606d;
  --sites-text-6: #5f6368;
  --sites-tint-blue: #e8f0fe;
  --sites-tint-orange: #fce8e6;
  --sites-tint-yellow: #fffbe6;
  --sites-tint-yellow-2: #fef7e0;
  --sites-yellow-line: #d0c38f;
  --sites-yellow-text: #5f4b0e;
  --sites-yellow-text-2: #7a4f01;
  --sites-yellow-text-3: #6b5a1e;
}
[data-scheme="dark"] {
  --sites-blue-text: #7cabf9;
  --sites-line: #424548;
  --sites-line-2: #484a4d;
  --sites-line-3: #4f5256;
  --sites-orange-text: #f88477;
  --sites-surface: #1c1e21;
  --sites-surface-2: #232424;
  --sites-surface-3: #282a2a;
  --sites-surface-4: #393b3f;
  --sites-text: #ececec;
  --sites-text-2: #dedfe3;
  --sites-text-3: #cfdce9;
  --sites-text-4: #b4c5d4;
  --sites-text-5: #a8b8c7;
  --sites-text-6: #afb3b9;
  --sites-tint-blue: #282d35;
  --sites-tint-orange: #372b2a;
  --sites-tint-yellow: #252316;
  --sites-tint-yellow-2: #2a2517;
  --sites-yellow-line: #5c5744;
  --sites-yellow-text: #bda976;
  --sites-yellow-text-2: #cda26b;
  --sites-yellow-text-3: #baaa76;
}
.st-app { display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; border: 1px solid var(--sites-line-3); background: var(--sites-surface); min-height: calc(100dvh - 150px); font-family: "Segoe UI", Roboto, Arial, sans-serif; }
.st-browser { background: var(--sites-surface-4); flex: none; }
.st-tabs { display: flex; padding: 8px 10px 0; gap: 2px; }
.st-tab { display: flex; align-items: center; gap: 8px; background: var(--sites-surface); border-radius: 9px 9px 0 0; padding: 8px 14px; font-size: 12.5px; max-width: 240px; min-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--sites-text-2); }
.st-tab i { width: 14px; height: 14px; border-radius: 3px; flex: none; }
.st-bar { display: flex; align-items: center; gap: 8px; background: var(--sites-surface); padding: 6px 10px 8px; border-bottom: 1px solid var(--sites-line-2); }
.st-bar > button { border: 0; background: none; color: var(--sites-text-6); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
.st-bar > button:hover { background: var(--sites-surface-3); }
.st-bar input { flex: 1; border: 0; background: var(--sites-surface-3); border-radius: 999px; padding: 8px 14px 8px 36px; font-size: 14px; color: var(--sites-text-2); outline: none; margin-left: -34px; }
.st-bar input:focus { background: var(--sites-surface); box-shadow: 0 0 0 2px #1a73e8; }
.st-lock { position: relative; z-index: 1; display: flex; align-items: center; gap: 3px; color: var(--sites-text-6); font-size: 12.5px; padding-left: 10px; white-space: nowrap; pointer-events: none; }
.st-lock.is-warn { color: var(--sites-orange-text); font-weight: 600; background: var(--sites-tint-orange); border-radius: 999px; padding: 3px 8px; margin-left: 4px; }
.st-lock.is-warn + input { padding-left: 106px; margin-left: -100px; }
.st-view { flex: 1; overflow-y: auto; background: var(--sites-surface); }
.st-start { max-width: 860px; margin: 0 auto; padding: 48px 20px; text-align: center; }
.st-start h1 { font-size: 26px; color: var(--sites-text-2); margin: 0 0 6px; } .st-start > p { color: var(--sites-text-6); margin: 0 0 28px; }
.st-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.st-tile-link { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 10px; border-radius: 10px; border: 1px solid transparent; background: var(--sites-surface-2); text-align: center; }
.st-tile-link:hover { border-color: var(--sites-line-2); background: var(--sites-surface); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.st-fav { width: 44px; height: 44px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 18px; }
.st-tile-link b { font-size: 13px; color: var(--sites-text-2); } .st-tile-link small { font-size: 11.5px; color: var(--sites-text-6); word-break: break-all; }
.st-tile-link em { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--sites-orange-text); text-transform: uppercase; letter-spacing: .06em; }
.st-404 { max-width: 560px; margin: 80px auto; padding: 0 20px; color: var(--sites-text-6); } .st-404 h1 { color: var(--sites-text-2); font-size: 24px; font-weight: 500; }
/* the site itself: --st-c brand colour, --st-a accent */
.st-site { min-height: 100%; display: flex; flex-direction: column; font-family: Georgia, "Source Serif Pro", serif; color: var(--sites-text-3); }
.st-head { display: flex; align-items: center; gap: 12px; padding: 14px 36px; background: var(--st-c); color: #fff; font-family: "Segoe UI", Roboto, Arial, sans-serif; }
.st-head > b { font-size: 18px; letter-spacing: .01em; }
.st-logo img, .st-logo .avatar { border-radius: 6px !important; background: var(--sites-surface); }
.st-head nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.st-head nav button { border: 0; background: none; color: rgba(255,255,255,.85); font-size: 14px; padding: 8px 12px; border-bottom: 2px solid transparent; }
.st-head nav button.is-active, .st-head nav button:hover { color: #fff; border-bottom-color: var(--st-a); }
.st-banner { display: flex; align-items: center; gap: 10px; padding: 12px 36px; font-family: "Segoe UI", Roboto, Arial, sans-serif; font-size: 15px; font-weight: 600; }
.st-banner.is-info { background: var(--sites-tint-blue); color: var(--sites-blue-text); }
.st-banner.is-warning { background: var(--sites-tint-yellow-2); color: var(--sites-yellow-text-2); border-bottom: 2px solid #fab219; }
.st-banner.is-critical { background: #d03b3b; color: #fff; }
.st-dirbar { display: flex; align-items: center; gap: 10px; padding: 8px 36px; background: var(--sites-tint-yellow); border-bottom: 1px dashed #e0c36a; font: 12.5px "Segoe UI", Roboto, Arial, sans-serif; color: var(--sites-yellow-text-3); }
.st-banner-edit { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; width: 100%; }
.st-banner-edit input[name="text"] { flex: 1; min-width: 220px; padding: 7px 10px; border: 1px solid var(--sites-yellow-line); border-radius: 6px; font: inherit; font-size: 14px; }
.st-banner-edit select { padding: 6px; border-radius: 6px; border: 1px solid var(--sites-yellow-line); }
.st-btn { border: 0; background: var(--st-c, #1a73e8); color: #fff; border-radius: 4px; padding: 10px 18px; font: 600 14px "Segoe UI", Roboto, Arial, sans-serif; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.st-btn.ghost { background: var(--sites-surface); color: var(--sites-yellow-text); border: 1px solid var(--sites-yellow-line); padding: 5px 10px; font-size: 12.5px; }
.st-site main { flex: 1; }
.st-hero { position: relative; min-height: 340px; display: flex; align-items: flex-end; background: var(--st-c) var(--st-img, none) center / cover no-repeat; }
.st-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.2)); }
.st-hero-copy { position: relative; max-width: 640px; padding: 40px 36px; color: #fff; }
.st-kicker { font: 700 12px "Segoe UI", Roboto, Arial, sans-serif; text-transform: uppercase; letter-spacing: .12em; color: var(--st-a); margin: 0 0 8px; }
.st-hero h1 { font-size: 36px; line-height: 1.15; margin: 0 0 10px; }
.st-hero-copy p { font-size: 17px; line-height: 1.5; margin: 0 0 18px; }
.st-hero .st-btn { background: var(--st-a); color: var(--sites-text); }
.st-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; padding: 34px 36px; max-width: 1180px; }
.st-tile { border-top: 4px solid var(--st-c); padding-top: 12px; }
.st-tile h3 { font-size: 19px; margin: 0 0 6px; } .st-tile p { font-size: 15px; line-height: 1.55; color: var(--sites-text-4); margin: 0; }
.st-latest, .st-newsroom { padding: 10px 36px 34px; max-width: 980px; }
.st-latest h2, .st-newsroom h1 { font-size: 24px; border-bottom: 2px solid var(--st-c); padding-bottom: 8px; margin: 0 0 6px; }
.st-newsroom { padding-top: 30px; }
.st-sub { color: var(--sites-text-5); margin: 0 0 12px; }
.st-news { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 2px 18px; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--sites-line); background: none; padding: 16px 0; font-family: inherit; color: inherit; }
.st-news:hover b { color: var(--st-c); text-decoration: underline; }
.st-news time { grid-row: span 2; font: 600 12.5px "Segoe UI", Roboto, Arial, sans-serif; color: #7b8794; text-transform: uppercase; letter-spacing: .04em; padding-top: 3px; }
.st-news b { font-size: 18px; line-height: 1.3; }
.st-news span { font-size: 14.5px; color: var(--sites-text-5); line-height: 1.5; }
.st-contact { font-size: 13px; color: #7b8794; margin-top: 20px; }
.st-none { color: #7b8794; padding: 20px 0; }
.st-foot { display: flex; flex-wrap: wrap; gap: 6px 24px; padding: 22px 36px; background: #1f2933; color: #cbd2d9; font: 13px "Segoe UI", Roboto, Arial, sans-serif; }
.st-foot b { color: #fff; } .st-foot span:last-child { margin-left: auto; color: #7b8794; }
/* the look-alike: a little off (sloppier type, crowded header, a red urgency strip) */
.st-site.is-spoof .st-head { font-family: Arial, sans-serif; padding: 10px 24px; }
.st-site.is-spoof .st-hero h1 { font-family: Arial, sans-serif; font-weight: 800; letter-spacing: -.01em; }
@media (max-width: 720px) {
  .st-app { border-radius: 0; border-left: 0; border-right: 0; margin: 0 -14px; }
  .st-tabs { display: none; }
  .st-head { padding: 10px 14px; flex-wrap: wrap; } .st-head nav { margin-left: 0; width: 100%; overflow-x: auto; flex-wrap: nowrap; } .st-head nav button { white-space: nowrap; padding: 6px 8px; }
  .st-banner, .st-dirbar { padding: 10px 14px; }
  .st-hero { min-height: 260px; } .st-hero-copy { padding: 24px 16px; } .st-hero h1 { font-size: 26px; }
  .st-grid, .st-latest, .st-newsroom, .st-foot { padding-left: 16px; padding-right: 16px; }
  .st-news { grid-template-columns: minmax(0, 1fr); } .st-news time { grid-row: auto; }
  .st-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-lock:not(.is-warn) { display: none; } .st-bar input { margin-left: 0; padding-left: 14px; }
}
