/* OurHometown.ca - archived story template */
* { box-sizing: border-box; }
body { margin: 0; background: #e6dff1; color: #222; font-family: Verdana, Geneva, Tahoma, sans-serif; line-height: 1.6; }

/* Banner + menu sit at the same width as the content (1068px = 1100 minus 16px padding each side),
   on the plain page background. */
.oh-header { padding: 18px 16px 0; background: #1b0b31; }
.oh-banner { display: block; max-width: 1068px; margin: 0 auto; }
.oh-banner img { display: block; width: 100%; height: auto; }

.oh-nav { position: sticky; top: 0; z-index: 10; padding: 0 16px; background: #1b0b31; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.oh-nav-inner { max-width: 1068px; margin: 0 auto; background: #3b207d; display: flex; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.oh-nav-inner::-webkit-scrollbar { display: none; }
.oh-nav a { color: #e6defa; text-decoration: none; font: bold 14px Verdana, Geneva, sans-serif; padding: 11px 14px; text-transform: uppercase; letter-spacing: .5px; }
.oh-nav a:hover { background: #2a1760; color: #fff; }
.oh-nav a.active { color: #fff; box-shadow: inset 0 -3px 0 #c9b8f0; }

.oh-article { max-width: 820px; margin: 0 auto; background: #fff; padding: 24px 28px 40px; }
.oh-section { margin: 0; color: #3b207d; font: bold 13px Verdana, Geneva, sans-serif; text-transform: uppercase; letter-spacing: 1px; }
.oh-title { margin: 8px 0 14px; font-size: 34px; font-weight: bold; line-height: 1.25; color: #111; }
.oh-byline { font: 14px Verdana, Geneva, sans-serif; color: #555; margin-bottom: 18px; }

.oh-photo { margin: 0 0 20px; }
.oh-photo img { width: 100%; height: auto; display: block; }
.oh-photo figcaption { background: #e9e6f0; padding: 8px 12px; font: 13px Verdana, Geneva, sans-serif; color: #444; }
.oh-credit { display: block; text-align: right; font-weight: bold; margin-top: 4px; }
.oh-credit a { color: #3b207d; }

.oh-content { font-size: 16px; line-height: 1.7; overflow-wrap: break-word; }
.oh-content a { color: #3b207d; }

/* Old hand-made HTML inside stories: keep it inside the column */
.oh-content img, .oh-content iframe, .oh-content embed, .oh-content object { max-width: 100% !important; height: auto; }
.oh-content iframe { aspect-ratio: 16 / 9; width: 100%; height: auto; }
.oh-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.oh-content [width] { max-width: 100%; }
.oh-content center { text-align: center; }

/* Footer: full-width dark band (same as header sides), content lined up with the menu */
.oh-footer { background: #1b0b31; padding: 0 16px 14px; margin-top: 14px; border-top: 3px solid #3b207d; }
.oh-footer-inner { max-width: 1068px; margin: 0 auto; color: #e6defa; font: 13px Verdana, Geneva, sans-serif; padding: 14px 0 2px; }
.oh-footer a { color: #fff; text-decoration: none; }
.oh-footer a:hover { text-decoration: underline; }
.oh-footer-network { display: flex; align-items: center; gap: 16px; }
.oh-footer-network img { width: 96px; height: auto; flex: none; }
.oh-footer-network p { margin: 0; }
.oh-footer-strong { font-size: 16px; font-weight: bold; color: #fff; }
.oh-footer-links { margin-top: 4px !important; }
.oh-footer-links span { margin: 0 6px; color: #c9b8f0; }
.oh-footer-bottom { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 12px; color: #c9b8f0; }
.oh-footer-tmi { display: inline-flex; align-items: center; gap: 8px; }
.oh-footer-tmi img { height: 22px; width: auto; }

@media (max-width: 600px) {
  .oh-header, .oh-nav { padding-left: 0; padding-right: 0; }
  .oh-header { padding-top: 0; }
  .oh-footer { padding: 0 16px 16px; }
  .oh-footer-bottom { justify-content: center; text-align: center; }
  .oh-article { padding: 16px 16px 30px; }
  .oh-title { font-size: 26px; }
  .oh-content { font-size: 16px; }
}

/* Front page: lead story + 3 beside it */
.oh-top { display: grid; grid-template-columns: 3fr 2fr; gap: 18px; margin-bottom: 26px; }
.oh-lead { background: #fff; padding: 16px; border-top: 5px solid #3b207d; }
.oh-lead-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; margin-bottom: 12px; background: #e9e6f0; }
.oh-lead h2 { margin: 6px 0 8px; font-size: 30px; line-height: 1.2; }
.oh-lead h2 a, .oh-side-item h3 a { color: #111; text-decoration: none; }
.oh-lead h2 a:hover, .oh-side-item h3 a:hover { color: #3b207d; text-decoration: underline; }
.oh-lead-teaser { margin: 0; font-size: 15px; line-height: 1.6; color: #333; }
.oh-side { display: flex; flex-direction: column; gap: 14px; }
.oh-side-item { background: #fff; padding: 12px; border-left: 4px solid #3b207d; flex: 1; display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: start; }
.oh-side-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #e9e6f0; }
.oh-side-item h3 { margin: 4px 0 4px; font-size: 17px; line-height: 1.3; }
.oh-side-teaser { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: #444; }
@media (max-width: 860px) { .oh-top { grid-template-columns: 1fr; } }
.oh-more-title { color: #3b207d; font-size: 20px; margin: 0 0 14px; padding-bottom: 6px; border-bottom: 2px solid #3b207d; }

/* Front page list */
.oh-list { max-width: 1100px; margin: 0 auto; padding: 20px 16px 16px; }
.oh-list-title { color: #3b207d; font-size: 24px; margin: 0 0 16px; }
.oh-card { display: flex; gap: 16px; background: #fff; padding: 14px; margin-bottom: 14px; border-left: 4px solid #3b207d; }
.oh-card-img { flex: 0 0 200px; }
.oh-card-img img { width: 100%; height: 130px; object-fit: cover; display: block; background: #e9e6f0; }
.oh-card-body { flex: 1; min-width: 0; }
.oh-card h2 { margin: 4px 0 6px; font-size: 22px; line-height: 1.3; }
.oh-card h2 a { color: #111; text-decoration: none; }
.oh-card h2 a:hover { color: #3b207d; text-decoration: underline; }
.oh-card-meta { margin: 0 0 6px; font: 13px Verdana, Geneva, sans-serif; color: #666; }
.oh-card-teaser { margin: 0; font-size: 14px; line-height: 1.6; color: #333; }
.oh-pager { display: flex; justify-content: space-between; align-items: center; font: 15px Verdana, Geneva, sans-serif; padding: 10px 0; }
.oh-pager a { color: #3b207d; font-weight: bold; }

@media (max-width: 600px) {
  .oh-card { flex-direction: column; }
  .oh-card-img { flex: none; }
  .oh-card-img img { height: 190px; }
  .oh-card h2 { font-size: 20px; }
  .oh-lead h2 { font-size: 24px; }
  .oh-side-item { grid-template-columns: 110px 1fr; }
}

/* Aggregated links (includes/aggregate.inc.php): headline + teaser + link out. --agg = box colour */
.oh-agg { --agg: #3b207d; background: #fff; border-top: 5px solid var(--agg); margin-bottom: 26px; }
.oh-agg-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; background: var(--agg); color: #fff; padding: 8px 16px; }
.oh-agg-head h2 { margin: 0; font-size: 18px; text-transform: uppercase; letter-spacing: 1px; }
.oh-agg-head span { font-size: 12px; opacity: .85; }
.oh-agg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.oh-agg-item { display: flex; gap: 12px; padding: 12px 14px; border-bottom: 1px solid #e9e6f0; border-right: 1px solid #e9e6f0; min-width: 0; }
.oh-agg-item:nth-child(3n) { border-right: 0; }
.oh-agg-pic { position: relative; flex: 0 0 46px; width: 46px; height: 68px; }
.oh-agg-pic img { width: 46px; height: 68px; object-fit: cover; display: block; }
.oh-agg-pic img.oh-agg-logo-only { height: 46px; margin-top: 11px; object-fit: contain; }
.oh-agg-pic .oh-agg-badge { position: absolute; right: -7px; bottom: -1px; width: 25px; height: 25px; object-fit: contain; filter: drop-shadow(0 0 2px rgba(0,0,0,.55)); }
.oh-agg-body { flex: 1; min-width: 0; }
.oh-agg-body h3 { margin: 0 0 3px; font-size: 15px; line-height: 1.3; }
.oh-agg-body h3 a { color: #111; text-decoration: none; }
.oh-agg-body h3 a:hover { color: var(--agg); text-decoration: underline; }
.oh-agg-teaser { margin: 0 0 6px; font-size: 12px; line-height: 1.5; color: #444; }
.oh-agg-source { display: block; width: 180px; max-width: 100%; height: auto; }
.oh-agg-source-txt { font-size: 11px; font-weight: bold; color: var(--agg); text-transform: uppercase; letter-spacing: .5px; }
.oh-agg-more { margin: 0; padding: 10px 16px; text-align: right; font-size: 13px; }
.oh-agg-more a { color: var(--agg); font-weight: bold; text-decoration: none; }
.oh-agg-more a:hover { text-decoration: underline; }
@media (max-width: 860px) {
  .oh-agg-grid { grid-template-columns: repeat(2, 1fr); }
  .oh-agg-item:nth-child(3n) { border-right: 1px solid #e9e6f0; }
  .oh-agg-item:nth-child(2n) { border-right: 0; }
}
@media (max-width: 600px) {
  .oh-agg-grid { grid-template-columns: 1fr; }
  .oh-agg-item { border-right: 0 !important; }
}
