/* Toriva Digit - popular search topics portal */
/* Palette sampled from images/logo.png: sage #98ab6d, navy #1f3456, root brown #5b3012.
   Derived: navy-dark #172841, sage-dark #55673a (6.20:1 on white), sage tints #f3f6ee / #e8eedd / #d9e3c8. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 16px;
  color: rgba(49, 49, 49, 0.78);
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-weight: 400;
  background-color: #FAFAFA;
  overflow-x: hidden;
  line-height: 1.6;
}
main { flex: 1 0 auto; display: block; }
a { color: rgba(49, 49, 49, 0.8); text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { color: rgba(7, 7, 7, 0.9); line-height: 1.25; }

.container {
  width: 100%;
  max-width: 1140px;
  padding: 0 15px;
  margin: 0 auto;
}

/* ---------- Header (centered logo on light sage wash, navy-to-sage accent bar) ---------- */
header.site-header {
  background-color: #fff;
  background-image: linear-gradient(135deg, #ffffff 0, #f3f6ee 100%);
  border-bottom: 4px solid #1F3456;
  border-image: linear-gradient(90deg, #1F3456 0, #98AB6D 100%) 1;
}
header.site-header nav { display: flex; justify-content: center; }
#logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1F3456;
  font-size: 24px;
  font-weight: 700;
  padding: 12px 0;
}
#logo img { width: auto; height: 48px; }
#logo:focus-visible { outline: 3px solid #1F3456; outline-offset: 3px; border-radius: 4px; }

/* ---------- Section heading ---------- */
.page-intro { padding: 26px 0 6px; text-align: center; }
.page-intro h1 { font-size: 26px; margin: 0 0 6px; }
.page-intro p { margin: 0 auto; max-width: 640px; font-size: 15px; }
.related_search_topics {
  font-size: 14px;
  text-align: right;
  color: #575757;
  padding: 10px 0 4px;
}

/* ---------- Topic card grid ---------- */
.top-search-sec { padding: 16px 0 24px; }
.row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.col-4 { flex: 0 0 25%; max-width: 25%; padding: 0 15px; margin-bottom: 30px; }
.search-bx {
  position: relative;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  height: 100%;
}
.bx-link { position: absolute; inset: 0; z-index: 1; border-radius: 8px; }
.bx-link:focus-visible { outline: 3px solid #1F3456; outline-offset: 2px; }
.search-img-bx { overflow: hidden; border-radius: 8px 8px 0 0; aspect-ratio: 3 / 2; }
.search-bx img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 8px 8px 0 0;
  transition: transform 0.35s ease-in-out;
}
.search-bx:hover img { transform: scale(1.5); }
.search-bx figure { margin: 0; }
.search-bx figcaption {
  padding: 15px;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  color: rgba(7, 7, 7, 0.9);
}

/* ---------- Topic / text pages ---------- */
.content-wrap { max-width: 860px; margin: 0 auto; padding: 26px 15px 40px; }
.crumbs { font-size: 13px; margin-bottom: 12px; }
.crumbs a { text-decoration: underline; }
.content-wrap h1 { font-size: 30px; margin: 0 0 12px; }
.content-wrap h2 { font-size: 21px; margin: 28px 0 8px; }
.content-wrap h3 { font-size: 17px; margin: 20px 0 6px; }
.content-wrap p, .content-wrap li { font-size: 16px; }
.content-wrap ul { padding-left: 22px; }
.content-wrap a { color: #1F3456; text-decoration: underline; text-decoration-color: #98AB6D; text-underline-offset: 2px; }
.content-wrap a:hover { color: #55673A; }
.lead { font-size: 18px !important; color: rgba(49, 49, 49, 0.9); }
.topic-figure { margin: 18px 0 20px; }
.topic-figure img { width: 100%; height: auto; border-radius: 8px; aspect-ratio: 3 / 2; object-fit: cover; }
.topic-figure figcaption { font-size: 12px; margin-top: 6px; color: #777; }
.card-box {
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  padding: 18px 20px;
  margin: 20px 0;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0 !important; margin: 10px 0 0; }
.chips a {
  display: inline-block;
  background: #E8EEDD;
  color: #1F3456 !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 38px;
}
.chips a:hover { background: #D9E3C8; }
.note { font-size: 13px !important; color: #666; border-top: 1px solid #e3e3e3; padding-top: 12px; margin-top: 30px; }
address { font-style: normal; line-height: 1.8; }
.more-title { font-size: 20px; margin: 10px 0 16px; text-align: center; }
.search-summary { font-size: 15px; margin: 0 0 10px; text-align: center; }

/* ---------- Footer (search box + links) ---------- */
footer.site-footer {
  flex-shrink: 0;
  display: flex;
  flex-flow: column;
  align-items: center;
  padding: 1rem 1rem 2rem;
  background-color: #EDF1E5;
  border-top: 4px solid #98AB6D;
}
form.search { display: flex; align-items: flex-start; max-width: 100%; margin: 0; }
#search_input {
  outline: 0;
  margin: 0 0 10px;
  padding: 9px 5px;
  color: #000;
  font-family: inherit;
  font-size: 25px;
  border: 2px inset gray;
  border-radius: .2rem;
  width: 270px;
  max-width: calc(100vw - 90px);
  min-width: 100px;
}
#search_input::placeholder { font-weight: 100; font-style: italic; opacity: 1; }
.search-btn {
  background-color: #1F3456;
  border: none;
  outline: 0;
  width: 48px;
  height: 49px;
  padding: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.search-btn:hover, .search-btn:focus { background-color: #55673A; }
.search-btn svg { width: 20px; height: 20px; }
footer .links {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-evenly;
  gap: 6px 18px;
  width: 100%;
  max-width: 34rem;
  list-style: none;
  padding: 0;
  margin: 16px 0;
  font-weight: 700;
  font-size: 14px;
}
footer .links a { color: #1F3456; }
footer .links a:hover { text-decoration: underline; }
footer .copyright { font-size: 14px; margin: 5px 0; font-weight: 700; text-align: center; }
footer .company-line { font-size: 12px; margin: 4px 0 0; text-align: center; color: #555; }

/* ---------- Responsive ---------- */
@media (max-width: 1139px) {
  .col-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
  .search-bx figcaption { font-size: 16px; }
  body { font-size: 15px; }
}
@media (max-width: 767px) {
  .row { margin: 0 -7.5px; }
  .col-4 { flex: 0 0 50%; max-width: 50%; padding: 0 7.5px; margin-bottom: 15px; }
  .search-bx figcaption { font-size: 14px; padding: 12px; }
  .content-wrap h1 { font-size: 24px; }
  .page-intro h1 { font-size: 22px; }
  #logo { font-size: 20px; }
  #logo img { height: 40px; }
}
@media (max-width: 450px) {
  .col-4 { flex: 0 0 100%; max-width: 100%; }
  .search-bx figcaption { font-size: 18px; }
  #search_input { font-size: 20px; }
}
