/* Queens Estates Community Hub
   Built for older readers: large text, high contrast, big tap targets. */

:root {
  --ink: #111111;
  --paper: #ffffff;
  --soft: #f4f6f8;
  --header-bg: #17365d;
  --header-ink: #ffffff;
  --link: #0b4f9e;
  --accent: #0b6e2f;
  --danger: #a11212;
  --border: #5a6b7d;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header + navigation ------------------------------------------------------ */

.site-header {
  background: var(--header-bg);
  color: var(--header-ink);
  padding: 20px 0 0 0;
}

.site-title {
  margin: 0;
  font-size: 1.9rem;
  font-weight: bold;
  line-height: 1.2;
}

.site-sub {
  margin: 4px 0 16px 0;
  font-size: 1.05rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 16px;
}

.site-nav a {
  color: var(--header-ink);
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
  padding: 10px 16px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05rem;
}

.site-nav a:hover,
.site-nav a:focus {
  background: #ffffff;
  color: var(--header-bg);
}

.site-nav a[aria-current="page"] {
  background: #ffd75e;
  border-color: #ffd75e;
  color: #111111;
}

/* Main content ------------------------------------------------------------ */

main { padding: 24px 0 40px 0; }

h1 { font-size: 1.7rem; margin: 0 0 12px 0; line-height: 1.25; }
h2 { font-size: 1.35rem; margin: 28px 0 10px 0; line-height: 1.3; }
h3 { font-size: 1.15rem; margin: 0 0 6px 0; }

a { color: var(--link); }
a:focus, button:focus, input:focus, textarea:focus {
  outline: 3px solid #ffd75e;
  outline-offset: 2px;
}

.card {
  background: var(--soft);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 0 0 20px 0;
}

.card p:last-child { margin-bottom: 0; }

.date-line { color: #333; font-size: 0.95rem; margin: 0 0 6px 0; }
.meta-line { color: #333; margin: 0 0 4px 0; }
.small { font-size: 0.95rem; }

.weather-now { font-size: 1.3rem; font-weight: bold; margin: 0 0 4px 0; }
.fact { margin-top: 14px; }

/* Forms ------------------------------------------------------------------- */

label {
  display: block;
  font-weight: bold;
  margin: 16px 0 6px 0;
}

input[type="text"],
input[type="tel"],
input[type="password"],
textarea {
  width: 100%;
  font: inherit;
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
}

button,
.button {
  display: inline-block;
  font: inherit;
  font-weight: bold;
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: var(--radius);
  padding: 14px 26px;
  min-height: 52px;
  cursor: pointer;
  margin-top: 18px;
  text-decoration: none;
}

button:hover, .button:hover { background: #084d20; }

button.secondary {
  background: #ffffff;
  color: var(--ink);
  border: 2px solid var(--border);
}
button.secondary:hover { background: var(--soft); }

button.danger { background: var(--danger); }
button.danger:hover { background: #7d0d0d; }

button.small-btn {
  padding: 8px 16px;
  min-height: 44px;
  margin-top: 0;
  font-size: 0.95rem;
}

.form-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  display: none;
}
.form-message.ok { display: block; background: #e2f2e4; border: 2px solid var(--accent); }
.form-message.err { display: block; background: #fbe3e3; border: 2px solid var(--danger); }

/* Lists, tables ------------------------------------------------------------ */

.item-actions { margin-top: 10px; display: flex; gap: 10px; flex-wrap: wrap; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 8px 0;
  background: #ffffff;
}
th, td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
th { background: var(--soft); }

/* Footer ------------------------------------------------------------------- */

.site-footer {
  border-top: 2px solid var(--border);
  padding: 18px 16px 30px 16px;
  color: #333;
}

[hidden] { display: none !important; }

@media (max-width: 560px) {
  body { font-size: 18px; }
  .site-title { font-size: 1.6rem; }
  .site-nav a { padding: 10px 12px; }
}
