/* Reconstructed stylesheet for the restored tabitha-usa.org (2009).
   The original /tabitha.css and /default.css were never archived by the Wayback Machine.
   Colours are taken from the site's own markup: #eae3ce (letters background), #001C5A (webshop headings),
   red accents used throughout the original pages. */
:root {
  --bg: #eae3ce;
  --paper: #fffdf7;
  --ink: #2b2620;
  --navy: #001c5a;
  --accent: #a3271f;
  --muted: #6b6255;
  --line: #d8ceb0;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.6 Georgia, "Times New Roman", serif;
}
a { color: var(--navy); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }
#pageBox { max-width: 960px; margin: 0 auto; background: var(--paper); min-height: 100vh;
  box-shadow: 0 0 0 1px var(--line); }

/* header */
#pageHeading { background: var(--navy); color: #fff; padding: 22px 28px 18px; }
#pageHeading h1 { margin: 0; font-size: 34px; line-height: 1.1; letter-spacing: .5px; font-weight: normal; }
#pageHeading h1 a { color: #fff; text-decoration: none; }
#pageHeading .tagline { margin: 4px 0 0; font-style: italic; color: #e6d9b3; font-size: 15px; }

/* navigation (was a fixed 640px two-row menu table) */
#navList { background: #f3ecd8; border-bottom: 1px solid var(--line); padding: 8px 20px; }
#navList ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 4px; }
#navList a { display: block; padding: 4px 9px; font: 14px/1.4 Verdana, Arial, sans-serif; color: var(--navy);
  text-decoration: none; border-radius: 3px; }
#navList a:hover, #navList a[aria-current] { background: var(--navy); color: #fff; }

/* content */
#content { padding: 22px 28px 30px; overflow-wrap: break-word; }
#content h2, #content h3 { color: var(--navy); font-weight: normal; line-height: 1.25; }
#content h2 { font-size: 24px; margin: 0 0 12px; }
#content h3 { font-size: 20px; margin: 18px 0 8px; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
#content h4, #content h5 { color: var(--accent); font-size: 16px; margin: 16px 0 6px; }
#content blockquote { margin: 8px 0 8px 22px; }
#content hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
#content table { border-collapse: collapse; max-width: 100%; }
#content td, #content th { vertical-align: top; padding: 4px 6px; }
.halfWidth, .fullWidth { margin-bottom: 8px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }

/* homepage: three columns as in the 2008-2009 design */
.home-cols { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 0 26px; }
.home-cols .boxed { margin-bottom: 18px; }
.home-cols .boxed h2 { font-size: 19px; border-bottom: 2px solid var(--accent); padding-bottom: 4px; margin-top: 4px; }
.updates ul { padding-left: 18px; margin: 4px 0 10px; }
.updates h3 { font-size: 16px !important; border: 0 !important; margin: 12px 0 2px !important; }

/* notice / replacement cards */
.card { background: #f6f0de; border: 1px solid var(--line); border-left: 4px solid var(--navy); padding: 12px 16px;
  margin: 14px 0; border-radius: 3px; }
.card p { margin: 4px 0; }
.card .btn { display: inline-block; margin-top: 6px; background: var(--navy); color: #fff; padding: 6px 14px;
  border-radius: 3px; text-decoration: none; font: 14px Verdana, Arial, sans-serif; }
.card .btn:hover { background: var(--accent); color: #fff; }

/* donation options list (was the PHP webshop) */
.item { display: flex; gap: 18px; border-top: 1px solid var(--line); padding: 12px 0; }
.item img { width: 200px; flex: none; align-self: flex-start; }
.item .name { color: var(--navy); font-weight: bold; }
.item .price { color: var(--accent); font-weight: bold; }

/* report sections (10th / 13th anniversary reports, originally framesets) */
.report-toc { background: #f6f0de; border: 1px solid var(--line); padding: 10px 14px; margin-bottom: 18px;
  font: 14px/1.6 Verdana, Arial, sans-serif; }
.report-toc ol { margin: 4px 0 0; padding-left: 22px; columns: 2; }
.report-body { font-size: 15px; }
.report-body p { margin: 0 0 6px; }
.table-scroll { overflow-x: auto; max-width: 100%; }

/* field news letters */
.letter-index { columns: 3; font-size: 14px; }

/* footer */
#copyright { border-top: 1px solid var(--line); padding: 16px 28px 26px; color: var(--muted);
  font: 12px/1.5 Verdana, Arial, sans-serif; }

@media (max-width: 820px) {
  .home-cols { grid-template-columns: 1fr; }
  .cols { grid-template-columns: 1fr; }
  .letter-index { columns: 2; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  #pageHeading { padding: 16px 16px 14px; }
  #pageHeading h1 { font-size: 28px; }
  #navList { padding: 6px 10px; }
  #content { padding: 16px; }
  #copyright { padding: 14px 16px 22px; }
  #content blockquote { margin-left: 10px; }
  .item { flex-direction: column; }
  .item img { width: 100%; max-width: 260px; }
  .report-toc ol { columns: 1; }
  .letter-index { columns: 1; }
  /* fixed-width layout tables stack on phones */
  #content table.stack, #content table.stack > tbody, #content table.stack > tbody > tr,
  #content table.stack > tbody > tr > td, #content table.stack > tr, #content table.stack > tr > td {
    display: block; width: auto !important; height: auto !important;
  }
}
