/* Shared style for northlys.com. Colours follow the app's dark theme. */
:root {
  --background: #0e0f23; /* AppColors.backgroundPrimary */
  --surface: #1d1b37;
  --text: #ffffff;
  --text-secondary: #b9b8e3;
  --accent: #9f94ff;
  --line: #2c2f5c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

header, main, footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

header .brand {
  color: var(--text);
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
}

nav { display: flex; gap: 20px; }
nav a { color: var(--text-secondary); text-decoration: none; }
nav a[aria-current="page"], nav a:hover { color: var(--text); }

main { padding-top: 32px; padding-bottom: 48px; }

/* Inside the app, which has its own Back button and title (WebPageView). */
.in-app header { display: none; }
.in-app main { padding-top: 16px; }

pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 13px/1.5 ui-monospace, Menlo, Consolas, monospace;
  color: var(--text-secondary);
  background: var(--surface);
  border-radius: 12px;
  padding: 16px;
}

h1 { font-size: 34px; line-height: 1.2; margin: 0 0 8px; }
h2 { font-size: 23px; margin: 40px 0 8px; }
h3 { font-size: 18px; margin: 24px 0 4px; }
.updated { color: var(--text-secondary); margin: 0 0 24px; }

a { color: var(--accent); }
ul { padding-left: 22px; }
li { margin: 4px 0; }

.summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 4px 20px;
  margin: 24px 0;
}

table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--text-secondary); font-weight: 600; }
.table-scroll { overflow-x: auto; }

footer {
  padding-top: 24px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  color: var(--text-secondary);
  font-size: 15px;
}

/* Moderation page (/admin) */
.admin-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 4px 20px 20px;
  margin: 24px 0;
}
.admin-card h2 { margin-top: 16px; }
.admin-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
.admin-button {
  font: inherit;
  font-weight: 600;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 10px 18px;
  cursor: pointer;
}
.admin-button.danger { color: #f08181; border-color: #f08181; } /* AppColors.error */
.admin-button:disabled { opacity: 0.5; cursor: default; }
