/* font-family: Georgia, Times New Roman */
/* Headings font: Georgia, Times New Roman, serif; h1 34-40px desktop / 28px mobile, weight 700; h2 20-24px, weight 700; h3 16-18px, weight 700. */
/* Body font: Georgia, Times New Roman, serif; body 16px, line-height 1.45, weight 400; small 13-14px, weight 400. */
@font-face { font-family: "Headings"; src: local("Georgia"); }
@font-face { font-family: "Body"; src: local("Georgia"); }
@font-face { font-family: "Georgia"; src: local("Georgia"); }
@font-face { font-family: "Inter"; src: local("Georgia"); }

:root {
  --page: #efefef;
  --panel: #ffffff;
  --chrome: #d9d9d9;
  --soft-yellow: #f6f7cf;
  --green: #4f8a35;
  --link: #0000ee;
  --text: #111111;
  --shadow: #555555;
}

* { box-sizing: border-box; }

body.site-page {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.45;
}

a { color: var(--link); text-decoration: underline; transition: color 140ms ease; }
a:hover, a:focus { color: var(--green); outline-color: var(--green); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  padding: 8px;
  z-index: 10;
}
.skip-link:focus { left: 12px; }

.site-shell {
  width: min(1375px, calc(100% - 36px));
  margin: 0 auto;
}

.site-header {
  padding: 28px 0 12px;
  background-color: #d9d9d9;
  border-top: 1px solid #4f8a35;
}
.brand-banner {
  display: block;
  width: min(100%, 900px);
  margin: 0 0 12px 8px;
}
.brand-banner img { display: block; width: 100%; height: auto; }
.brand-fallback { position: absolute; left: -9999px; }

.top-menu {
  display: none;
  border: 1px solid #aaa;
  background: linear-gradient(#ffffff, #eeeeee, #d9d9d9);
  box-shadow: 3px 4px 0 var(--shadow);
}
.primary-links { min-height: 26px; flex-wrap: wrap; }
.primary-links > li > a {
  min-height: 26px;
  padding: 0 12px;
  color: #111;
  font-family: Arial, sans-serif;
  font-size: 13px;
  text-transform: none;
  text-decoration: none;
}

.portal-grid {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 190px;
  gap: 18px;
  align-items: start;
}

.portal-box,
.content-box {
  background: var(--panel);
  border: 1px solid #aaa;
  box-shadow: 3px 4px 0 var(--shadow);
}

.portal-box + .portal-box { margin-top: 16px; }

.box-title,
.section-title {
  margin: 0;
  padding: 5px 10px;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  color: #111;
  background-color: #f6f7cf;
  background-image: linear-gradient(#ffffff, var(--soft-yellow) 55%, #cfcfcf);
  border-bottom: 1px solid #777;
  box-shadow: 0 3px 0 #999;
}

.section-title {
  font-size: 18px;
}

.box-body {
  padding: 14px 10px 12px;
}
.box-body h3 {
  margin: 6px 0 10px;
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
}
.box-body ul {
  margin: 0 0 14px 20px;
  padding: 0;
}
.box-body li { margin: 2px 0; }
.compact-links a { display: block; margin: 2px 0; }

.form-field {
  display: block;
  width: 100%;
  height: 22px;
  margin: 4px 0;
  border: 1px solid #999;
  background: #fff;
}
.classic-button {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 10px;
  color: #111;
  border: 1px solid #555555;
  background: #efefef;
  font-family: Arial, sans-serif;
  font-size: 13px;
}

.content-body {
  padding: 24px 18px 28px;
  overflow-wrap: anywhere;
}

.content-body h1,
.content-body h2,
.content-body h3,
.content-heading {
  font-family: Georgia, "Times New Roman", serif;
  color: #111;
  font-weight: 700;
}
.content-body h1 { font-size: 34px; line-height: 1.1; }
.content-body h2 { font-size: 25px; line-height: 1.2; }
.content-body h3 { font-size: 18px; line-height: 1.25; }
.content-body p { margin: 0 0 16px; }

.content-image,
.content-gallery figure {
  margin: 12px 0;
  padding: 0;
  background: #fff;
}
.content-image img,
.content-gallery img,
.story-media img {
  max-width: 100%;
  height: auto;
  border: 1px solid #999;
}
.content-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 10px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 12px 0;
}
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
.table-wrap th,
.table-wrap td {
  border: 1px solid #bdbdbd;
  padding: 6px 8px;
  vertical-align: top;
}

.story-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #ccc;
}
.story-card h2 { margin: 0 0 6px; font-size: 22px; }
.story-media img { width: 100%; object-fit: cover; }

.member-box { text-align: center; }

.site-footer {
  margin: 30px 0 36px;
  font-size: 13px;
  text-align: center;
  background-color: #f6f7cf;
  border-top: 1px solid #4f8a35;
}
.footer-inner {
  border-top: 1px solid #aaa;
  padding-top: 12px;
}
.footer-inner ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.writer-article,
.writer-category {
  max-width: 980px;
}
.article-summary {
  font-size: 18px;
  font-weight: 700;
}
.table-of-contents {
  padding: 12px 16px;
  margin: 14px 0;
  border: 1px solid #aaa;
  background: #fafafa;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

@media (max-width: 980px) {
  .site-shell { width: min(100% - 24px, 760px); }
  .site-header { padding-top: 12px; }
  .brand-banner { margin-left: 0; }
  .portal-grid { grid-template-columns: 1fr; }
  .center-panel { order: 1; }
  .left-rail { order: 2; }
  .right-rail { order: 3; }
  .top-menu { display: block; }
  .story-card { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body.site-page { font-size: 15px; }
  .content-body { padding: 18px 12px 22px; }
  .content-body h1 { font-size: 28px; }
  .content-body h2 { font-size: 22px; }
}
