/* DRI's look (the old ADPC "4Resilience" design): Google Sans, light grey ground, white panels,
   ADPC red. The platform's screens take the same through their theme settings. */
:root {
  --surface: #f3f4f6; --surface-2: #e5e7eb; --panel: #ffffff; --ink: #1f2937; --ink-muted: #676767;
  --line: #e5e7eb; --accent: #ad0f0a; --accent-soft: #ffe9e8;
  --font: 'Google Sans', 'Noto Sans Thai', ui-sans-serif, system-ui, sans-serif;
}
html, body { height: 100%; margin: 0; }
body { background: var(--surface); color: var(--ink); font-family: var(--font);
  /* the platform's screens */
  --vp-primary: var(--accent); --vp-font: var(--font); --vp-ground: var(--surface); --vp-side: var(--panel); }
vp-workspace { display: block; height: 100vh; }
[hidden] { display: none !important; }

/* sign-in: what DRI is on the left, the card on the right (stacked on a phone) */
.signin { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 100vh; }
/* on a phone, signing in comes first and what DRI is follows */
@media (max-width: 900px) { .signin { grid-template-columns: 1fr; } .panel { order: -1; min-height: 100vh; box-sizing: border-box; }
  .hero { min-height: auto; padding: 36px 24px; } .hero-logo { display: none; } .eyebrow { margin-top: 0; } }
.hero { position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
  padding: 56px 64px; color: #fff; background: radial-gradient(120% 90% at 0% 0%, #c8241d 0%, #ad0f0a 45%, #7d0a07 100%); }
.pattern { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(255,255,255,.07); pointer-events: none; }
.hero-body { position: relative; max-width: 520px; }
.hero-logo { height: 40px; border-radius: 4px; box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.eyebrow { margin: 40px 0 6px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.hero-title { margin: 0; font-size: 56px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
.hero-lead { margin: 16px 0 0; font-size: 17px; line-height: 1.55; opacity: .95; }
.points { list-style: none; margin: 36px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.points li { display: flex; gap: 14px; align-items: flex-start; }
.points .dot { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.14); }
.points svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.points b { display: block; font-size: 15px; font-weight: 600; }
.points span { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.5; opacity: .85; }
.hero-foot { position: relative; margin: 40px 0 0; font-size: 12px; opacity: .7; }
.panel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 40px 24px; background: var(--surface); }
.card { width: 100%; max-width: 400px; box-sizing: border-box; padding: 36px 32px 24px; border-radius: 16px; background: var(--panel);
  box-shadow: 0 1px 2px rgba(16,24,40,.06), 0 12px 32px -12px rgba(16,24,40,.18); }
.card-logo { height: 34px; display: none; }
@media (max-width: 900px) { .card-logo { display: block; margin-bottom: 18px; } }
.card h2 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.card .sub { margin: 8px 0 24px; font-size: 14px; line-height: 1.55; color: var(--ink-muted); }
.card .error { margin: -8px 0 18px; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; line-height: 1.45; color: var(--accent);
  background: var(--accent-soft); }
.google { display: flex; align-items: center; justify-content: center; gap: 12px; height: 46px; border: 1px solid #dadce0; border-radius: 10px;
  background: #fff; color: #1f1f1f; font-size: 15px; font-weight: 500; text-decoration: none; transition: background .15s, box-shadow .15s; }
.google:hover { background: #f8f9fa; box-shadow: 0 1px 3px rgba(60,64,67,.2); }
.google:focus-visible { outline: 3px solid rgba(173,15,10,.35); outline-offset: 2px; }
.google svg { width: 20px; height: 20px; }
.who { margin: 16px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-muted); text-align: center; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 16px;
  border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-muted); }
.lang { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; background: #fff; padding: 4px 12px; color: var(--ink); font: inherit; font-size: 12.5px; cursor: pointer; }
.lang:hover { border-color: var(--accent); color: var(--accent); }
.powered { margin: 0; font-size: 12px; color: var(--ink-muted); }

/* the 4Resilience start screen (inside the workspace, above its composer) */
.resilience { display: flex; flex-direction: column; align-items: center; text-align: center; font-family: var(--font); color: var(--ink); }
.resilience h1 { margin: 0; font-size: 48px; font-weight: 700; letter-spacing: -0.01em; }
.resilience .tagline { margin: 14px 0 0; max-width: 640px; font-size: 14px; }
.resilience .hint { margin: 4px 0 0; max-width: 640px; font-size: 12px; color: var(--ink-muted); }
.tiles { display: grid; grid-template-columns: repeat(3, 160px); gap: 16px; margin-top: 28px; }
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(2, 160px); } }
.tile { display: flex; height: 132px; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 0;
  border-radius: 12px; background: var(--accent); color: #fff; font: inherit; cursor: pointer;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.12); transition: transform .15s, box-shadow .15s; }
.tile:hover { transform: translateY(-4px); box-shadow: 0 20px 25px -5px rgba(0,0,0,.15); }
.tile svg { width: 30px; height: 30px; }
.tile b { font-size: 14px; font-weight: 600; }
.tile span { font-size: 11px; opacity: .9; }
.all { margin-top: 22px; padding: 8px 20px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
  color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.all:hover { border-color: var(--accent); color: var(--accent); }
