
/* Cleveland Tenants Organization legacy styling layer.
   Designed for GeneratePress Free. */

:root {
  --cto-red: #8c140f;
  --cto-dark: #111111;
  --cto-link: #8c140f;
  --cto-text: #000000;
  --cto-content-width: 960px;
}

html, body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--cto-text);
}

body {
  font-size: 14px;
  line-height: 1.5;
  background: #ffffff;
}

a,
.entry-content a,
.site-content a {
  color: var(--cto-link);
}

a:hover,
a:focus,
.entry-content a:hover,
.site-content a:hover {
  color: #5f0d0a;
}

h1, h2, h3, h4, h5, h6,
.entry-content h1, .entry-content h2, .entry-content h3,
.entry-content h4, .entry-content h5, .entry-content h6 {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  line-height: 1.25;
  margin-top: 1.15em;
  margin-bottom: .55em;
}

h1, .entry-content h1 {
  color: #000;
  font-size: 24px;
}

h2, .entry-content h2,
h3, .entry-content h3 {
  color: var(--cto-red);
  font-size: 16px;
}

h4, .entry-content h4 {
  color: var(--cto-red);
  font-size: 15px;
}

p {
  margin-top: 0;
  margin-bottom: 1em;
}

ul, ol {
  margin-bottom: 1em;
}

.site-header {
  background: var(--cto-red);
  color: #fff;
}

.site-header .inside-header {
  max-width: var(--cto-content-width);
  margin: 0 auto;
  padding: 12px 10px;
  display: block;
}

.site-branding,
.site-logo {
  display: none !important;
}

.cto-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  width: 100%;
}

.cto-header-logo img {
  display: block;
  width: 312px;
  max-width: 100%;
  height: auto;
}

.cto-header-contact {
  color: #fff;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  min-width: 280px;
}

.cto-header-phone {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 5px;
}

.cto-header-phone a,
.cto-header-contact a {
  color: #fff;
  text-decoration: none;
}

.cto-header-address {
  font-size: 13px;
  line-height: 1.35;
}

/* Main navigation */
.main-navigation {
  background: var(--cto-red);
}

.main-navigation .inside-navigation {
  max-width: var(--cto-content-width);
  margin: 0 auto;
}

.main-navigation .main-nav > ul {
  justify-content: center;
}

.main-navigation .main-nav > ul > li > a {
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding-left: 14px;
  padding-right: 14px;
  line-height: 45px;
}

.main-navigation .main-nav > ul > li:hover > a,
.main-navigation .main-nav > ul > li:focus-within > a,
.main-navigation .main-nav > ul > li.current-menu-item > a,
.main-navigation .main-nav > ul > li.current-menu-ancestor > a {
  background: #000;
  color: #fff;
}

.main-navigation ul ul {
  background: #275668;
}

.main-navigation .main-nav ul ul li a {
  color: #fff;
  font-weight: 400;
  padding: 10px 14px;
}

.main-navigation .main-nav ul ul li:hover > a,
.main-navigation .main-nav ul ul li:focus-within > a {
  background: #183b49;
  color: #fff;
}

/* Legacy-style hero */
.cto-hero-wrap {
  background: #fff;
}

.cto-hero {
  width: min(var(--cto-content-width), 100%);
  margin: 0 auto;
}

.cto-hero img {
  display: block;
  width: 100%;
  height: auto;
}

/* Main white content area */
.site-content {
  max-width: var(--cto-content-width);
  margin: 0 auto;
  padding: 38px 5px 45px;
}

.content-area,
.site-main {
  width: 100%;
}

.inside-article,
.separate-containers .inside-article {
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.separate-containers .site-main {
  margin: 0;
}

.entry-header {
  margin-bottom: 20px;
}

.entry-title {
  color: #000;
  font-size: 24px;
  font-weight: 700;
}

.entry-content {
  margin-top: 0;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
}

.entry-content img {
  max-width: 100%;
  height: auto;
}

/* Footer */
.site-footer,
.site-info {
  background: var(--cto-red);
  color: #fff;
}

.site-info {
  padding: 18px 10px 22px;
}

.site-info .inside-site-info {
  max-width: var(--cto-content-width);
  margin: 0 auto;
  display: block;
}

.cto-footer {
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
}

.cto-footer-nav {
  text-align: center;
  margin-bottom: 16px;
}

.cto-footer-nav a {
  color: #fff;
  text-decoration: underline;
  margin: 0 4px;
}

.cto-footer-details {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.cto-footer-details strong {
  display: block;
}

.cto-footer-phone {
  text-align: right;
}

.cto-footer a {
  color: #fff;
}

/* Optional helper blocks for old-site images */
.cto-center {
  text-align: center;
}

.cto-donate-image {
  width: 217px;
  max-width: 100%;
  height: auto;
}

.cto-content-image {
  float: right;
  margin: 0 0 18px 24px;
  max-width: 42%;
  height: auto;
}

/* Remove GeneratePress defaults that visually conflict */
.widget-area {
  display: none;
}

.no-sidebar .content-area,
.one-container .content-area {
  width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  .site-header .inside-header {
    padding: 14px 18px;
  }

  .cto-header {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .cto-header-logo img {
    width: 280px;
  }

  .cto-header-contact {
    min-width: 0;
  }

  .cto-header-phone {
    font-size: 21px;
  }

  .site-content {
    padding: 28px 18px 38px;
  }

  .main-navigation .main-nav > ul > li > a {
    line-height: 42px;
  }

  .cto-footer-details {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .cto-footer-phone {
    text-align: center;
  }

  .cto-content-image {
    float: none;
    display: block;
    margin: 0 auto 18px;
    max-width: 100%;
  }
}


/* Homepage legacy layout */
.cto-home-legacy {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.45;
}

.cto-home-legacy h1 {
  font-size: 25px;
  margin: 0 0 18px;
  color: #000;
}

.cto-home-legacy h2,
.cto-home-legacy h3 {
  color: #8c140f;
  font-size: 16px;
  margin: 20px 0 4px;
}

.cto-home-legacy h2:first-child {
  margin-top: 0;
}

.cto-home-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 95px;
  gap: 18px;
  align-items: start;
}

.cto-home-maincopy p {
  margin: 0 0 22px;
}

.cto-home-sideimage {
  padding-top: 3px;
}

.cto-missing-home-image {
  width: 90px;
  min-height: 150px;
  font-size: 13px;
  line-height: 1.45;
  color: #000;
  overflow-wrap: anywhere;
}

.cto-broken-icon {
  display: inline-block;
  margin-right: 3px;
  color: #6f8790;
}

.cto-hours {
  background: #8c140f;
  color: #fff;
  text-align: center;
  padding: 6px 10px;
  margin: 0 -5px 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
}

.cto-donation-block {
  text-align: center;
  padding: 2px 0 28px;
}

.cto-generosity {
  font-family: "Book Antiqua", Georgia, "Times New Roman", serif;
  font-size: 19px;
  margin: 4px 0 20px;
}

.cto-donation-block img {
  width: 217px;
  height: auto;
}

.cto-home-centered-links {
  text-align: center;
}

.cto-home-centered-links p {
  margin: 16px 0;
}

.cto-unitedway-placeholder {
  display: inline-block;
  margin: 22px auto 26px;
  min-height: 46px;
  font-size: 13px;
  text-align: left;
}

.cto-contact-callout {
  text-align: center;
  margin: 10px 0 25px !important;
}

@media (max-width: 768px) {
  .cto-home-top {
    grid-template-columns: 1fr;
  }

  .cto-home-sideimage {
    display: none;
  }

  .cto-hours {
    margin-left: 0;
    margin-right: 0;
  }

  .cto-generosity {
    font-size: 18px;
  }
}


/* Landlord Resources legacy two-column layout */
.cto-landlord-resources {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10pt;
  line-height: 1.35;
  color: #000;
}

.cto-landlord-resources > table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 5px;
}

.cto-landlord-resources td {
  vertical-align: top;
  padding: 5px;
}

.cto-landlord-resources tr:first-child td {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  padding-bottom: 8px;
}

.cto-landlord-resources tr:nth-child(2) td,
.cto-landlord-resources tr:nth-child(3) td {
  padding-top: 3px;
  padding-bottom: 5px;
}

.cto-landlord-resources tr:nth-child(n+5) td:first-child {
  width: 145px;
  max-width: 145px;
  font-weight: 700;
}

.cto-landlord-resources tr:nth-child(n+5) td:nth-child(2) {
  width: auto;
}

.cto-landlord-resources p {
  margin: 0 0 10px;
}

.cto-landlord-resources a {
  color: #8c140f;
  text-decoration: underline;
}

.cto-landlord-resources strong {
  font-weight: 700;
}

@media (max-width: 768px) {
  .cto-landlord-resources > table,
  .cto-landlord-resources tbody,
  .cto-landlord-resources tr,
  .cto-landlord-resources td {
    display: block;
    width: 100% !important;
    max-width: none !important;
  }

  .cto-landlord-resources tr {
    margin-bottom: 18px;
  }

  .cto-landlord-resources tr:nth-child(n+5) td:first-child {
    margin-bottom: 4px;
  }
}


/* Tenant FAQ: separate each Q&A group with a horizontal rule */
.cto-tenant-faq-page .entry-content p:has(> strong) {
  border-top: 1px solid #9a9a9a;
  padding-top: 14px;
  margin-top: 18px;
}

.cto-tenant-faq-page .entry-content p:first-child:has(> strong) {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}


/* Evictions: separate each question-and-answer group with a horizontal rule */
.cto-evictions-page .entry-content p:has(> strong) {
  border-top: 1px solid #9a9a9a;
  padding-top: 14px;
  margin-top: 18px;
}

.cto-evictions-page .entry-content p:first-child:has(> strong) {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}


/* Landlord FAQ: separate each question-and-answer group with a horizontal rule */
.cto-landlord-faq-page .entry-content p:has(> strong) {
  border-top: 1px solid #9a9a9a;
  padding-top: 14px;
  margin-top: 18px;
}

.cto-landlord-faq-page .entry-content p:first-child:has(> strong) {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}


/* Information page mission bullets */
.cto-mission-bullets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 4px 0 18px;
}

.cto-mission-bullets ul {
  margin: 0;
  padding-left: 18px;
}

.cto-mission-bullets li {
  margin-bottom: 3px;
}

@media (max-width: 768px) {
  .cto-mission-bullets {
    grid-template-columns: 1fr;
    gap: 0;
  }
}


/* Home page: hide GeneratePress' automatic page title because the legacy layout
   already contains the correct H1. */
body.home .entry-header,
body.page .page .entry-header:has(.entry-title) {
}

/* Target only the page titled Home via WordPress body class/page slug. */
body.page-home .entry-header,
body.home .entry-header {
  display: none;
}

/* Ensure the homepage custom layout uses the full legacy content width. */
body.page-home .site-content,
body.home .site-content {
  max-width: 960px;
}

body.page-home .entry-content,
body.home .entry-content {
  margin-top: 0;
}


/* Dedicated legacy Information page */
body.page-information .entry-header {
  display: none;
}

.cto-information-legacy {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.45;
}

.cto-information-legacy h1 {
  color: #000;
  font-size: 20px;
  margin: 0 0 18px;
}

.cto-information-legacy h2 {
  color: #8c140f;
  font-size: 15px;
  margin: 18px 0 4px;
}

.cto-information-photo {
  float: right;
  width: 160px;
  max-width: 28%;
  height: auto;
  margin: 0 75px 18px 28px;
}

.cto-information-legacy .cto-mission-bullets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  margin: 3px 0 14px;
  clear: both;
}

.cto-information-legacy .cto-mission-bullets ul {
  margin: 0;
  padding-left: 16px;
}

.cto-information-legacy .cto-mission-bullets li {
  margin: 0 0 2px;
}

.cto-information-contact {
  text-align: center;
  margin-top: 16px !important;
}

@media (max-width: 768px) {
  .cto-information-photo {
    float: none;
    display: block;
    max-width: 100%;
    width: 214px;
    margin: 0 auto 18px;
  }

  .cto-information-legacy .cto-mission-bullets {
    grid-template-columns: 1fr;
    gap: 0;
  }
}


/* v1.9 homepage corrections: no broken right-side image column */
.cto-home-legacy {
  width: 100%;
  max-width: 100%;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.42;
}

.cto-home-legacy h1 {
  margin: 0 0 18px;
  font-size: 24px;
  line-height: 1.2;
}

.cto-home-legacy h2,
.cto-home-legacy h3 {
  margin: 20px 0 4px;
  color: #8c140f;
  font-size: 16px;
  line-height: 1.2;
}

.cto-home-legacy h2:first-of-type {
  margin-top: 0;
}

.cto-home-legacy > p {
  margin: 0 0 18px;
}

.cto-home-legacy .cto-hours {
  width: 100%;
  box-sizing: border-box;
  margin: 4px 0 10px;
  padding: 6px 10px;
  background: #8c140f;
  color: #fff;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.2;
}

.cto-home-legacy .cto-donation-block {
  text-align: center;
  padding: 0 0 26px;
}

.cto-home-legacy .cto-generosity {
  margin: 10px 0 18px;
  font-family: "Book Antiqua", Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.3;
}

.cto-home-legacy .cto-donation-block img {
  display: inline-block;
  width: 217px;
  height: auto;
}

.cto-home-legacy .cto-home-centered-links {
  text-align: center;
}

.cto-home-legacy .cto-home-centered-links p {
  margin: 16px 0;
}

.cto-home-legacy .cto-unitedway-placeholder {
  display: inline-block;
  margin: 22px auto 24px;
  font-size: 13px;
  text-align: center;
}

.cto-home-legacy .cto-contact-callout {
  text-align: center;
  margin: 4px 0 24px !important;
}

body.page-home .site-content,
body.home .site-content {
  max-width: 960px;
  padding-left: 16px;
  padding-right: 16px;
}

body.page-home .entry-header,
body.home .entry-header {
  display: none !important;
}


/* v2.0: United Way broken image/placeholder intentionally removed */
.cto-unitedway-placeholder {
  display: none !important;
}
