.subnav-line{
  max-width:var(--max);
  margin:0 auto;
  padding:0 clamp(20px,4vw,40px) 26px;
  color:var(--muted);
  font-size:13px;
}
.subnav-line a{border-bottom:1px solid currentColor}

.detail-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:22px;
}
.schedule-table{
  width:100%;
  border-collapse:collapse;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:18px;
  background:rgba(255,255,255,.58);
}
.schedule-table th,.schedule-table td{
  border-bottom:1px solid var(--line);
  padding:16px 18px;
  text-align:left;
  vertical-align:top;
}
.schedule-table th{
  color:var(--muted);
  font-size:13px;
  font-weight:400;
  letter-spacing:.1em;
}
.schedule-table tr:last-child td{border-bottom:0}

/* Keep the fellowship title on one line across screen widths. */
#fellowship .section-head h2{
  white-space:nowrap;
}

/* Shared column tracks: the second column begins at the same position
   for every visit schedule table, independent of its number of columns. */
#schedule .schedule-table,
#fellowship .schedule-table,
#religious-education .schedule-table{
  width:100%;
  table-layout:fixed;
  box-sizing:border-box;
}
@media (min-width:601px){
  #schedule .schedule-table col.visit-col-label,
  #fellowship .schedule-table col.visit-col-label,
  #religious-education .schedule-table col.visit-col-label{
    width:25%;
  }
  #fellowship .schedule-table col.visit-col-time,
  #religious-education .schedule-table col.visit-col-time{
    width:30%;
  }
}
#schedule .schedule-table th,
#schedule .schedule-table td,
#fellowship .schedule-table th,
#fellowship .schedule-table td,
#religious-education .schedule-table th,
#religious-education .schedule-table td{
  box-sizing:border-box;
  overflow-wrap:anywhere;
}

.blog-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}
.blog-card{
  display:flex;
  flex-direction:column;
  min-height:300px;
  padding:28px;
  background:rgba(255,255,255,.58);
  border:1px solid var(--line);
  border-radius:var(--radius);
}
.blog-card .card-image{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  border:1px solid var(--line);
  border-radius:12px;
  margin-bottom:22px;
  background:var(--soft);
}
.blog-card .meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:26px;
  color:var(--accent);
  font-size:13px;
  letter-spacing:.1em;
}
.blog-card h3{font-size:30px}
.blog-card p{color:var(--muted)}
.blog-card .content{
  margin-top:18px;
  padding-top:18px;
  border-top:1px solid var(--line);
}
.blog-card .card-link{margin-top:auto;align-self:flex-start}

.content-toolbar{
  display:flex;
  justify-content:flex-end;
  margin:0 0 22px;
}
.search-field{
  display:grid;
  gap:8px;
  width:min(100%,420px);
  color:var(--muted);
  font-size:13px;
}
.search-field input{
  width:100%;
  border:1px solid var(--line);
  border-radius:999px;
  padding:13px 18px;
  background:rgba(255,255,255,.72);
  color:var(--ink);
  font:inherit;
}
.search-field input:focus{
  outline:2px solid rgba(154,143,123,.28);
  outline-offset:2px;
}

.testimony-titles{
  max-width:56rem;
  margin:0 auto;
  padding:0;
  list-style:none;
}
.testimony-titles li{border-bottom:1px solid var(--line)}
.testimony-titles a{
  display:block;
  padding:14px 6px;
  color:var(--ink);
  font-size:clamp(17px,2vw,21px);
  line-height:1.6;
  overflow-wrap:anywhere;
}
.testimony-titles a:hover,.testimony-titles a:focus-visible{text-decoration:underline}
.testimony-articles{
  max-width:56rem;
  margin-inline:auto;
}
.testimony-articles .detail-article{
  scroll-margin-top:100px;
  padding:clamp(20px,4vw,40px);
  overflow-wrap:anywhere;
}
.testimony-articles h2{
  margin:0 0 8px;
  font-size:clamp(24px,3.2vw,36px);
}

.blog-detail{
  margin:0 0 24px;
  scroll-margin-top:100px;
}
.detail-article{
  padding:32px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:rgba(255,255,255,.7);
}
.detail-back-link{
  display:inline-block;
  margin-bottom:24px;
  color:var(--accent);
  font-size:14px;
  border-bottom:1px solid currentColor;
}
.detail-article h3{
  margin:10px 0 18px;
  font-size:clamp(30px,4vw,48px);
}
.detail-article .lead{
  max-width:760px;
  color:var(--ink);
  font-size:18px;
}
.detail-article .content{
  max-width:820px;
  margin-top:24px;
}
.detail-article .content p{
  color:var(--muted);
}
.testimony-articles .content p{
  color:var(--ink);
  line-height:1.95;
}
.blog-figure{
  margin:0 0 22px;
}
.blog-figure img{
  display:block;
  width:min(100%,760px);
  max-height:620px;
  object-fit:cover;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--soft);
}
.source-note{
  color:var(--muted);
  font-size:13px;
}

.notice-panel{
  background:rgba(255,255,255,.58);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:26px;
  color:var(--muted);
}
.admin-note code{
  background:var(--soft);
  border-radius:8px;
  padding:2px 6px;
}

@media (max-width:880px){
  .detail-grid,.blog-grid{grid-template-columns:1fr}
  .schedule-table{display:block;overflow-x:auto}
}

/* Tablet tables retain their full width instead of clipping a native table. */
@media (min-width:601px) and (max-width:880px){
  #schedule .schedule-table,
  #fellowship .schedule-table,
  #religious-education .schedule-table{
    display:table;
    overflow:visible;
  }
}

/* On phones all three tables use the same two-column grid.
   Extra information is shown under the time, never offscreen. */
@media (max-width:600px){
  #schedule .schedule-table,
  #fellowship .schedule-table,
  #religious-education .schedule-table{
    display:block;
    width:100%;
    max-width:100%;
    overflow:hidden;
    table-layout:auto;
    border:1px solid var(--line);
    border-radius:18px;
  }
  #schedule .schedule-table colgroup,
  #fellowship .schedule-table colgroup,
  #religious-education .schedule-table colgroup{
    display:none;
  }
  #schedule .schedule-table thead,
  #schedule .schedule-table tbody,
  #fellowship .schedule-table thead,
  #fellowship .schedule-table tbody,
  #religious-education .schedule-table thead,
  #religious-education .schedule-table tbody{
    display:block;
    width:100%;
  }
  #schedule .schedule-table tr,
  #fellowship .schedule-table tr,
  #religious-education .schedule-table tr{
    display:grid;
    grid-template-columns:minmax(0,40%) minmax(0,60%);
    width:100%;
  }
  #schedule .schedule-table th,
  #schedule .schedule-table td,
  #fellowship .schedule-table th,
  #fellowship .schedule-table td,
  #religious-education .schedule-table th,
  #religious-education .schedule-table td{
    display:block;
    box-sizing:border-box;
    width:auto;
    min-width:0;
    padding:12px 12px;
    border-bottom:0;
    overflow-wrap:anywhere;
    word-break:normal;
  }
  #fellowship .schedule-table thead th:nth-child(3),
  #religious-education .schedule-table thead th:nth-child(3){
    display:none;
  }
  #schedule .schedule-table thead tr,
  #schedule .schedule-table tbody tr,
  #fellowship .schedule-table thead tr,
  #fellowship .schedule-table tbody tr,
  #religious-education .schedule-table thead tr,
  #religious-education .schedule-table tbody tr{
    border-bottom:1px solid var(--line);
  }
  #schedule .schedule-table tbody tr:last-child,
  #fellowship .schedule-table tbody tr:last-child,
  #religious-education .schedule-table tbody tr:last-child{
    border-bottom:0;
  }
  /* Show long introductions after the two aligned primary fields. */
  #fellowship .schedule-table tbody td:nth-child(3),
  #religious-education .schedule-table tbody td:nth-child(3){
    grid-column:1 / -1;
    padding:9px 12px 12px;
    border-top:1px solid var(--line);
    color:var(--muted);
    font-size:.92em;
    line-height:1.65;
  }
}
