.content-layout,
.ti-guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 260px);
  gap: 2rem 2.5rem;
  align-items: start;
  width: 100%;
}

body:not(.home-page) .content-layout > .content-main,
body:not(.home-page) .ti-guide > .content-main {
  max-width: none;
  width: 100%;
}

.ti-directory {
  width: 100%;
  max-width: none;
  margin: 0 0 2.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-sizing: border-box;
}

.ti-directory h2 {
  margin: 0 0 0.4rem;
  color: #061b3d;
  font-size: clamp(1.45rem, 2vw, 1.8rem);
  line-height: 1.2;
}

.ti-lead {
  margin: 0 0 1.15rem;
  max-width: 68ch;
  color: #24344a;
  line-height: 1.5;
}

.ti-controls {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.ti-controls label {
  display: grid;
  gap: 0.3rem;
  font-weight: 700;
  color: #061b3d;
}

.ti-controls input[type="search"] {
  width: 100%;
  min-height: 46px;
  padding: 0.55rem 0.8rem;
  border: 1px solid #d5deea;
  border-radius: 10px;
  font: inherit;
  background: #fff;
}

.ti-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ti-filters button {
  min-height: 40px;
  padding: 0.35rem 0.75rem;
  border: 1px solid #d5deea;
  border-radius: 999px;
  background: #fff;
  color: #24344a;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.ti-filters button[aria-pressed="true"] {
  border-color: #002b5f;
  background: #002b5f;
  color: #fff;
}

.ti-count {
  margin: 0 0 0.75rem;
  color: #5c6b80;
  font-size: 0.92rem;
  font-weight: 600;
}

.ti-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.ti-firm {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 0;
  padding: 1.05rem 1.1rem 0.95rem;
  border: 1px solid #e3eaf2;
  border-radius: 14px;
  background: #fff;
}

.ti-firm h3 {
  margin: 0;
  color: #061b3d;
  font-size: 1.12rem;
  line-height: 1.25;
}

.ti-listed {
  display: none;
}

.ti-fnd {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.28rem 0 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}

.ti-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  font-size: 0.82rem;
  line-height: 1;
  flex: 0 0 auto;
}

.ti-fnd.is-yes { color: #0b6b3a; }
.ti-fnd.is-yes .ti-mark { background: #e5f6ec; }
.ti-fnd.is-no { color: #5c6b80; font-weight: 600; }
.ti-fnd.is-no .ti-mark { background: #f3f5f8; color: #5c6b80; }

.ti-hours,
.ti-now {
  margin: 0.35rem 0 0;
  color: #5c6b80;
  font-size: 0.88rem;
  line-height: 1.4;
}

.ti-now {
  color: #0b6b3a;
  font-weight: 700;
}

.ti-now.is-closed {
  color: #5c6b80;
  font-weight: 600;
}

.ti-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0.45rem 0 0;
  padding: 0;
  list-style: none;
}

.ti-badges li {
  margin: 0;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: #f4f7fb;
  color: #24344a;
  font-size: 0.78rem;
  font-weight: 600;
}

.ti-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid #eef2f6;
}

.ti-actions a {
  overflow-wrap: anywhere;
  color: #1a4f8b;
  font-size: 0.92rem;
}

.ti-actions a.ti-call,
.ti-actions a.ti-call:hover,
.ti-actions a.ti-call:focus,
.ti-actions a.ti-call:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-bottom: 0.2rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9px;
  background: #002b5f;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.ti-empty,
.ti-script,
.ti-note {
  margin: 0.85rem 0 0;
}

.ti-empty,
.ti-script {
  padding: 0.9rem 1rem;
  border: 1px solid #e3eaf2;
  border-radius: 14px;
  background: #fff;
}

.ti-script h3 {
  margin: 0;
  color: #061b3d;
  font-size: 1rem;
}

.ti-script p {
  margin: 0.4rem 0 0;
}

.ti-note {
  max-width: 68ch;
  color: #5c6b80;
  font-size: 0.92rem;
  line-height: 1.5;
}

@media (min-width: 800px) {
  .ti-list {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

@media (max-width: 799px) {
  .ti-call {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .content-layout,
  .ti-guide {
    grid-template-columns: 1fr;
  }
}
