/* Companion shared styles. Matches web/index.html palette (cream/black/Solway,
   neo-brutalist shadows). External CSS is a slight deviation from the existing
   inline-everything pattern in web/, but with six Companion pages sharing
   chrome it's the right tradeoff — keeps per-page files small and avoids
   copy-paste drift. */

@import url('https://fonts.googleapis.com/css2?family=Solway:wght@300;400;500;700;800&display=swap');

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

:root {
  --black: #000000;
  --white: #FFFFFF;
  --cream: #F4EBD9;
  --gray50: #F8F8F8;
  --gray100: #F0F0F0;
  --gray200: #E8E8E8;
  --gray300: #D0D0D0;
  --gray400: #999999;
  --gray500: #666666;
  --gray700: #333333;
  --red: #CC0000;
  --green: #2E7D32;
  --shadow: 4px 4px 0 var(--black);
  --shadow-lg: 8px 8px 0 var(--black);
  --shadow-sm: 2px 2px 0 var(--black);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Solway', Georgia, serif;
  background: var(--cream);
  color: var(--black);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:hover { opacity: 0.7; }

/* Page shell */
.shell {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 2px solid var(--black);
  background: var(--white);
}

.header .logo {
  font-weight: 800; font-size: 20px; letter-spacing: -0.5px;
  text-decoration: none;
}

.header .nav a { text-decoration: none; margin-left: 16px; font-size: 14px; }

.title {
  font-size: 32px; font-weight: 800; letter-spacing: -0.8px;
  margin-bottom: 8px;
}

.subtitle { font-size: 16px; color: var(--gray500); margin-bottom: 32px; }

/* Cards */
.card {
  background: var(--white);
  border: 2px solid var(--black);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 16px;
}

.card-sm { padding: 16px; box-shadow: var(--shadow-sm); }

/* Forms */
.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: 13px; font-weight: 500;
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  padding: 10px 12px;
  border: 2px solid var(--black);
  background: var(--white);
  outline: none;
}
.field input:focus { box-shadow: var(--shadow-sm); }
.field .hint { font-size: 12px; color: var(--gray500); margin-top: 6px; }

/* Buttons */
.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 20px;
  border: 2px solid var(--black);
  background: var(--black);
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--black); opacity: 1; }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--black); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: var(--shadow); }

.btn-secondary {
  background: var(--white); color: var(--black);
}

.btn-danger {
  background: var(--white); color: var(--red);
}

.btn-sm { padding: 6px 12px; font-size: 13px; box-shadow: var(--shadow-sm); }
.btn-sm:hover { box-shadow: 3px 3px 0 var(--black); }

/* Badges */
.badge {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
  padding: 2px 8px;
  border: 1.5px solid var(--black);
  background: var(--white);
}
.badge-unverified { background: var(--gray200); }
.badge-pending_review { background: #FFF3CD; }
.badge-approved { background: #D4EDDA; }
.badge-rejected { background: #F8D7DA; }

/* Alerts */
.alert { padding: 12px 16px; border: 2px solid var(--black); background: var(--white); margin-bottom: 16px; font-size: 14px; }
.alert-success { background: #D4EDDA; }
.alert-error { background: #F8D7DA; }
.alert-info { background: var(--gray100); }

/* Utility */
.row { display: flex; align-items: center; gap: 12px; }
.row-sb { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.muted { color: var(--gray500); }
.muted-sm { color: var(--gray500); font-size: 13px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }

.link-plain { text-decoration: none; }
.link-plain:hover { text-decoration: underline; }

@media (max-width: 520px) {
  .title { font-size: 26px; }
  .shell { padding: 24px 16px 60px; }
}
