/* Defence Information Recognition Programme - shared stylesheet */

:root {
  --navy: #0a1f3d;
  --navy-deep: #061226;
  --navy-mid: #143260;
  --gold: #c8a951;
  --gold-bright: #e0bc5d;
  --paper: #f5f2ea;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --line: #d8d2c2;
  --alert: #b91c1c;
  --ms-blue: #0067B8;
  --ms-blue-hover: #005da6;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Georgia", "Times New Roman", serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ----- top bar ----- */
.gov-bar {
  background: var(--navy-deep);
  color: #d8d2c2;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 6px 24px;
  border-bottom: 1px solid var(--gold);
}
.gov-bar .container { display: flex; justify-content: space-between; align-items: center; max-width: 1180px; margin: 0 auto; }
.gov-bar .crest { font-weight: 700; color: var(--gold); }

/* ----- header ----- */
header.masthead {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: #fff;
  border-bottom: 4px solid var(--gold);
}
header.masthead .container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.crest-mark {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff7d6 0%, var(--gold) 55%, #8a6f1f 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: "Georgia", serif; font-weight: 700; color: var(--navy-deep);
  font-size: 24px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  border: 2px solid #fff;
}
.brand-text { line-height: 1.1; }
.brand-text .agency {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-bright);
}
.brand-text .programme {
  font-size: 22px; font-weight: 700;
  font-family: "Georgia", serif;
}

/* ----- hero ----- */
.hero {
  position: relative;
  height: 460px;
  background: var(--navy-deep) center/cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,18,38,0.35) 0%, rgba(6,18,38,0.78) 100%);
}
.hero .hero-text {
  position: relative; z-index: 2;
  text-align: center; color: #fff;
  padding: 0 24px; max-width: 880px;
}
.hero h1 {
  font-size: 44px; line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  margin-bottom: 14px;
}
.hero .lede {
  font-size: 18px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
  color: #f0e8d0;
  font-style: italic;
}
.hero .pill {
  display: inline-block;
  margin-top: 18px;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 6px 16px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 999px;
}

/* ----- body container ----- */
main { max-width: 1180px; margin: 0 auto; padding: 48px 24px 64px; }

section.briefing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-bottom: 48px;
  margin-top: 48px;
}
.briefing h2 {
  font-size: 24px;
  color: var(--navy);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 8px;
  margin-bottom: 12px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.02em;
}
.briefing p { margin-bottom: 10px; }
.briefing ul { margin: 8px 0 12px 22px; }
.briefing li { margin-bottom: 4px; }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.gallery img {
  width: 100%; height: 110px; object-fit: cover;
  border: 1px solid var(--line);
  filter: saturate(0.95);
}

/* ----- claim card (Microsoft-style sign-in) ----- */
.claim-section {
  background: #fff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 36px 44px 28px;
  max-width: 440px;
  margin: 0 auto;
  border-radius: 2px;
}

.ms-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.ms-logo {
  width: 22px; height: 22px;
}
.ms-brand-text {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #5e5e5e;
  letter-spacing: 0.005em;
}

.signin-title {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.field {
  margin-bottom: 4px;
}
.field input {
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid #6b6b6b;
  border-radius: 0;
  font-size: 15px;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: transparent;
  color: #1a1a1a;
  height: 36px;
  outline: none;
  box-sizing: border-box;
}
.field input::placeholder { color: #888; }
.field input:focus {
  border-bottom: 2px solid var(--ms-blue);
  padding-bottom: 7px;     /* compensate for thicker bottom border */
}

.ms-cant-access {
  display: inline-block;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  color: var(--ms-blue);
  text-decoration: none;
  margin: 6px 0 18px;
}
.ms-cant-access:hover { text-decoration: underline; }

.ms-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 20px;
  margin-bottom: 12px;
}
.ms-btn {
  background: var(--ms-blue);
  color: #fff;
  border: 1px solid var(--ms-blue);
  padding: 8px 28px;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 0;
  min-width: 108px;
  height: 36px;
}
.ms-btn:hover { background: var(--ms-blue-hover); border-color: var(--ms-blue-hover); }

.ms-signin-options {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e0e0e0;
}
.key-icon { width: 18px; height: 18px; flex: 0 0 18px; }
.ms-signin-options a {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  color: var(--ms-blue);
  text-decoration: none;
}
.ms-signin-options a:hover { text-decoration: underline; }

/* ----- footer ----- */
footer.site {
  background: var(--navy-deep);
  color: #a8b3c5;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  padding: 28px 24px;
  text-align: center;
  border-top: 4px solid var(--gold);
}
footer.site a { color: var(--gold-bright); text-decoration: none; }
footer.site .small { font-size: 11px; opacity: 0.7; margin-top: 6px; }

/* ----- whoops page ----- */
.goose-stage {
  min-height: 100vh;
  background: radial-gradient(ellipse at top, #fff5d6 0%, #fde6a8 35%, #f0c870 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px;
}
.goose-card {
  background: #fff;
  max-width: 620px;
  width: 100%;
  border: 4px solid var(--navy);
  border-radius: 8px;
  padding: 36px 32px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.18);
  position: relative;
}
.goose-card .ribbon {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  background: var(--alert);
  color: #fff;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 6px 16px;
  font-weight: 700;
}
.goose-card .emoji {
  font-size: 96px;
  line-height: 1;
  margin-bottom: 8px;
}
.goose-card h1 {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 34px;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.goose-card .tagline {
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 22px;
}
.goose-card .message {
  background: #faf3df;
  border-left: 4px solid var(--gold);
  padding: 16px 18px;
  text-align: left;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 22px;
}
.goose-card .takeaways {
  text-align: left;
  margin: 0 auto 24px;
  max-width: 460px;
}
.goose-card .takeaways h3 {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}
.goose-card .takeaways li {
  list-style: none;
  padding: 4px 0 4px 22px;
  position: relative;
  font-size: 14px;
}
.goose-card .takeaways li::before {
  content: "•";
  position: absolute; left: 6px; top: 4px;
  color: var(--gold);
  font-weight: 700;
}
.goose-card .closer {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

/* ----- admin dashboard ----- */
.admin-wrap {
  max-width: 1180px; margin: 0 auto; padding: 28px 24px 48px;
  font-family: "Helvetica Neue", Arial, sans-serif;
}
.admin-wrap h1 {
  font-size: 24px; color: var(--navy); border-bottom: 2px solid var(--gold);
  padding-bottom: 8px; margin-bottom: 16px;
}
.admin-meta {
  display: flex; gap: 18px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line);
  padding: 14px 18px; margin-bottom: 22px;
}
.admin-meta .stat { font-size: 13px; color: var(--ink-soft); }
.admin-meta .stat strong { color: var(--navy); font-size: 18px; display: block; }

table.submissions {
  width: 100%; border-collapse: collapse;
  background: #fff; border: 1px solid var(--line);
  font-size: 14px;
}
table.submissions th {
  background: var(--navy); color: #fff;
  text-align: left; padding: 10px 12px;
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
}
table.submissions td { padding: 9px 12px; border-top: 1px solid var(--line); vertical-align: top; }
table.submissions tr:nth-child(even) td { background: #faf7ee; }
table.submissions .email { font-weight: 600; color: var(--navy); }
table.submissions .ip { font-family: "Menlo", monospace; font-size: 12px; color: var(--ink-soft); }
table.submissions .ua { font-size: 11px; color: var(--ink-soft); max-width: 360px; word-break: break-word; }
table.submissions .empty {
  text-align: center; padding: 36px;
  color: var(--ink-soft); font-style: italic;
}
.admin-tools {
  margin: 18px 0; display: flex; gap: 10px;
}
.admin-tools a, .admin-tools button {
  background: var(--navy); color: #fff; border: none;
  padding: 8px 14px; font-size: 13px; border-radius: 2px;
  text-decoration: none; cursor: pointer;
  font-family: inherit;
}
.admin-tools a.secondary { background: var(--ink-soft); }
.admin-tools button.danger { background: var(--alert); }