/* v0.2.22: shared presentation for guides, listings and reading pages.
   Loaded after torque.css on pages other than the front page. */

/* Clear titles and compact introductions. */
.mec-site .mec-page-hero {
  padding-top: 24px;
  margin-bottom: 36px;
}
.mec-site .mec-page-hero .mec-breadcrumbs {
  margin-bottom: 20px;
}
.mec-site .mec-mechanism-heading,
.mec-site .mec-system-hero {
  align-items: center;
  gap: 48px;
  padding-top: 12px;
  padding-bottom: 40px;
}
.mec-site .mec-mechanism-heading > *,
.mec-site .mec-system-hero > * {
  min-width: 0;
}
.mec-site .mec-mechanism-heading h1,
.mec-site .mec-system-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.6;
  letter-spacing: .025em;
  text-wrap: balance;
}
.mec-site .mec-mechanism-lead,
.mec-site .mec-system-lead {
  margin: 0;
  color: #c3c9cb;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.95;
}
.mec-site .mec-system-intro {
  margin: 16px 0 20px;
  font-size: 13px;
  line-height: 2;
}
.mec-site .mec-mechanism-search {
  padding: 24px;
}
.mec-site .mec-mechanism-search > p {
  margin-bottom: 12px;
  font-size: 13px;
  letter-spacing: .02em;
}
.mec-site .mec-search {
  border-radius: 0;
}
.mec-site .mec-guide-intro {
  margin-bottom: 30px;
  font-size: 14px;
  line-height: 1.95;
}
.mec-site .mec-guide-intro > p:last-child {
  margin-bottom: 0;
}

/* Guide navigation uses the same white panels and fine rules as the home. */
.mec-site .mec-mechanism-nav {
  margin-bottom: 30px;
}
.mec-site .mec-mechanism-nav > a {
  min-height: 100px;
}
.mec-site .mec-directory-jumps,
.mec-site .mec-system-jumps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 28px;
  padding: 0;
  margin-bottom: 36px;
}
.mec-site .mec-directory-jumps a,
.mec-site .mec-system-jumps a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 58px;
  padding: 14px 4px;
  border: 0;
  border-bottom: 1px solid #dce2e3;
  background: #fff;
  color: #20272b;
  font-size: 13px;
  line-height: 1.8;
}
.mec-site .mec-directory-jumps a:hover,
.mec-site .mec-system-jumps a:hover {
  background: #f3f7f6;
  color: #247980;
  border-color: #247980;
}
.mec-site .mec-directory-jumps span {
  flex: 0 0 auto;
  margin: 0 2px 0 0;
  color: #247980;
  font-size: 11px;
}
.mec-site .mec-system-jumps span {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 11px;
}
.mec-site .mec-guide-start,
.mec-site .mec-system-start {
  padding: 25px 28px;
  border: 1px solid #dce2e3;
  border-left: 3px solid #247980;
  background: #f3f7f6;
}
.mec-site .mec-guide-start .mec-guide-start-title,
.mec-site .mec-guide-start > h2,
.mec-site .mec-system-start h2 {
  margin: 0 0 16px;
  font-size: 23px;
  line-height: 1.6;
}
.mec-site .mec-system-start .mec-section-heading {
  margin-bottom: 16px;
}
.mec-site .mec-system-start .mec-section-heading h2 {
  margin-bottom: 0;
}
.mec-site .mec-system-step {
  flex-basis: 28px;
  color: #247980;
  font-size: 18px;
}
.mec-site .mec-guide-system {
  gap: 6%;
  padding: 54px 0;
  border-color: #dce2e3;
}
.mec-site .mec-guide-system-copy > p.mec-guide-number {
  display: table;
  margin: 0 0 14px;
  padding-bottom: 4px;
  border-bottom: 2px solid #eb8a2c;
  color: #247980;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .06em;
}
.mec-site .mec-guide-system h2,
.mec-site .mec-system-group h2 {
  margin: 0 0 18px;
  font-size: clamp(23px, 2.35vw, 30px);
  line-height: 1.6;
}
.mec-site .mec-guide-system h3 {
  margin-bottom: 14px;
  font-size: 17px;
}
.mec-site .mec-guide-system-copy > p:not(.mec-guide-number),
.mec-site .mec-system-group .mec-section-heading p {
  color: #586368;
  font-size: 13px;
  line-height: 1.95;
}
.mec-site .mec-guide-system-image,
.mec-site .mec-hub-system .mec-directory-image {
  padding: 16px;
  background: #fff;
  border-color: #e6ecea;
}
.mec-site .mec-directory-links h3 {
  margin: 24px 0 8px;
  color: #586368;
  font-size: 12px;
  font-weight: 700;
}
.mec-site .mec-directory-links a {
  align-items: center;
  min-height: 54px;
  padding: 13px 0;
  background: transparent;
  color: #20272b;
  border-color: #dce2e3;
  font-size: 14px;
  line-height: 1.85;
}
.mec-site .mec-directory-links a:hover {
  color: #247980;
}
.mec-site .mec-directory-links a > span {
  flex: 0 0 auto;
  color: #247980;
}
.mec-site .mec-directory-notice,
.mec-site .mec-directory-summary {
  padding: 25px 28px;
}
.mec-site .mec-directory-notice h2,
.mec-site .mec-directory-summary h2 {
  font-size: 22px;
  line-height: 1.65;
}
.mec-site .mec-guide-next h2,
.mec-site .mec-directory-related h2,
.mec-site .mec-system-next h2,
.mec-site .mec-system-search h2 {
  margin-bottom: 24px;
  font-size: 25px;
  line-height: 1.6;
}
.mec-site .mec-guide-next-grid,
.mec-site .mec-directory-related > div,
.mec-site .mec-system-next > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.mec-site .mec-guide-next-grid > a,
.mec-site .mec-directory-related > div > a,
.mec-site .mec-system-next > div > a {
  min-width: 0;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid #dce2e3;
  color: #247980;
  line-height: 1.85;
}
.mec-site .mec-guide-next-grid > a:hover,
.mec-site .mec-directory-related > div > a:hover,
.mec-site .mec-system-next > div > a:hover {
  background: #f3f7f6;
  border-color: #247980;
}
.mec-site .mec-guide-next-grid h3 {
  color: #20272b;
  font-size: 17px;
}
.mec-site .mec-guide-next-grid p {
  color: #586368;
  font-size: 13px;
}

/* Consistent article cards in categories, search results and related content. */
.mec-site .mec-listing-page .mec-page-header {
  padding-bottom: 26px;
  border-bottom: 1px solid #dce2e3;
  margin-bottom: 28px;
}
.mec-site .mec-listing-page .mec-page-header h1,
.mec-site .mec-standard-page .mec-page-header h1 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.65;
}
.mec-site .mec-listing-page > .mec-search {
  max-width: 760px;
}
.mec-site .mec-listing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 38px 28px;
}
.mec-site .mec-listing-grid > .mec-card {
  min-width: 0;
}
.mec-site .mec-listing-grid .mec-card-image {
  background: #fff;
  border: 1px solid #e6ecea;
  border-radius: 0;
}
.mec-site .mec-listing-grid .mec-card-image img {
  object-fit: contain;
}
.mec-site .mec-listing-grid .mec-card-body {
  padding-top: 16px;
}
.mec-site .mec-listing-grid .mec-card h3 {
  margin: 0 0 10px;
  color: #20272b;
  font-size: 18px;
  line-height: 1.8;
}
.mec-site .mec-listing-grid .mec-label {
  color: #247980;
}
.mec-site .mec-listing-grid .mec-card-body > p {
  color: #586368;
  font-size: 13px;
  line-height: 1.9;
}
.mec-site .mec-listing-grid .mec-card time {
  color: #586368;
  font-size: 11px;
}

/* Reading pages: ordinary text headings, a centered contents box and clear links. */
.mec-site .mec-article-header {
  padding-bottom: 24px;
  border-bottom: 1px solid #dce2e3;
  margin-bottom: 28px;
}
.mec-site .mec-article-header h1 {
  margin-bottom: 20px;
  font-size: clamp(26px, 2.7vw, 36px);
  line-height: 1.65;
}
.mec-site .mec-article-meta {
  font-size: 12px;
}
.mec-site .mec-prose h2 {
  margin: 2.4em 0 1em;
  padding: 0 0 14px;
  border: 0;
  border-bottom: 1px solid #dce2e3;
  background: transparent;
  color: #20272b;
  font-size: clamp(23px, 2.1vw, 28px);
  line-height: 1.65;
}
.mec-site .mec-prose h3 {
  margin: 1.8em 0 .8em;
  padding: 0;
  border: 0;
  background: transparent;
  color: #20272b;
  font-size: 21px;
  line-height: 1.75;
}
.mec-site .mec-prose > p,
.mec-site .mec-prose strong {
  color: #20272b;
}
.mec-site .mec-prose a {
  color: #247980;
  text-underline-offset: 4px;
}
.mec-site .mec-prose .toc {
  margin: 28px auto 36px;
  padding: 24px 28px;
  background: #f3f7f6;
  border: 1px solid #dce2e3;
  border-radius: 0;
  color: #20272b;
}
.mec-site .mec-prose .toc a {
  color: #20272b;
  text-decoration: none;
}
.mec-site .mec-prose .toc a:hover {
  color: #247980;
  text-decoration: underline;
}
.mec-site .mec-aside-sticky > h2 {
  margin-bottom: 18px;
  font-size: 21px;
}
.mec-site .mec-aside-sticky > h3 {
  margin: 28px 0 0;
  font-size: 14px;
}
.mec-site .mec-aside-links {
  margin-top: 8px;
}
.mec-site .mec-aside-links > a {
  min-height: 52px;
  padding: 14px 0;
  font-size: 13px;
}
.mec-site .mec-related > h2 {
  font-size: 25px;
}
.mec-site .mec-related .mec-card h3 {
  font-size: 16px;
}
.mec-site .mec-author {
  padding: 24px;
  border-top: 1px solid #dce2e3;
}

@media (max-width: 980px) {
  .mec-site .mec-mechanism-heading,
  .mec-site .mec-system-hero {
    gap: 28px;
  }
  .mec-site .mec-listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mec-site .mec-directory-jumps,
  .mec-site .mec-system-jumps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 22px;
  }
  .mec-site .mec-mechanism-nav > a {
    min-height: 90px;
  }
}
@media (max-width: 760px) {
  .mec-site .mec-guide-next-grid,
  .mec-site .mec-directory-related > div,
  .mec-site .mec-system-next > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
}
@media (max-width: 640px) {
  .mec-site .mec-page-hero {
    padding-top: 18px;
    margin-bottom: 28px;
  }
  .mec-site .mec-mechanism-heading,
  .mec-site .mec-system-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 8px;
    padding-bottom: 28px;
  }
  .mec-site .mec-mechanism-heading h1,
  .mec-site .mec-system-hero h1 {
    margin-bottom: 14px;
    font-size: 29px;
  }
  .mec-site .mec-mechanism-lead,
  .mec-site .mec-system-lead {
    font-size: 14px;
  }
  .mec-site .mec-mechanism-search {
    padding: 19px;
  }
  .mec-site .mec-search input[type=search] {
    font-size: 16px;
  }
  .mec-site .mec-guide-intro {
    font-size: 13px;
  }
  .mec-site .mec-directory-jumps,
  .mec-site .mec-system-jumps {
    gap: 0 16px;
    margin-bottom: 28px;
  }
  .mec-site .mec-directory-jumps a,
  .mec-site .mec-system-jumps a {
    gap: 7px;
    min-height: 56px;
    padding: 12px 0;
    font-size: 12px;
  }
  .mec-site .mec-system-jumps span {
    font-size: 10px;
  }
  .mec-site .mec-guide-start,
  .mec-site .mec-system-start,
  .mec-site .mec-directory-notice,
  .mec-site .mec-directory-summary {
    padding: 22px;
  }
  .mec-site .mec-guide-start .mec-guide-start-title,
  .mec-site .mec-guide-start > h2,
  .mec-site .mec-system-start h2 {
    font-size: 21px;
  }
  .mec-site .mec-guide-system {
    grid-template-columns: minmax(0, 1fr);
    padding: 36px 0;
    gap: 24px;
  }
  .mec-site .mec-guide-system h2,
  .mec-site .mec-system-group h2 {
    font-size: 23px;
    margin-bottom: 14px;
  }
  .mec-site .mec-guide-system-image,
  .mec-site .mec-hub-system .mec-directory-image {
    padding: 12px;
  }
  .mec-site .mec-directory-links a {
    font-size: 13px;
  }
  .mec-site .mec-guide-next h2,
  .mec-site .mec-directory-related h2,
  .mec-site .mec-system-next h2,
  .mec-site .mec-system-search h2,
  .mec-site .mec-directory-notice h2,
  .mec-site .mec-directory-summary h2 {
    font-size: 22px;
  }
  .mec-site .mec-listing-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .mec-site .mec-listing-grid > .mec-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 17px;
    align-items: start;
    padding-bottom: 22px;
    border-bottom: 1px solid #dce2e3;
  }
  .mec-site .mec-listing-grid > .mec-card:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }
  .mec-site .mec-listing-grid .mec-card-image {
    aspect-ratio: 1;
  }
  .mec-site .mec-listing-grid .mec-card-body {
    padding: 0;
  }
  .mec-site .mec-listing-grid .mec-card h3 {
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.75;
  }
  .mec-site .mec-listing-grid .mec-card-body > p {
    display: none;
  }
  .mec-site .mec-article-header {
    padding-bottom: 20px;
    margin-bottom: 24px;
  }
  .mec-site .mec-article-header h1 {
    font-size: 26px;
  }
  .mec-site .mec-article-meta {
    font-size: 11px;
  }
  .mec-site .mec-prose h3 {
    font-size: 19px;
  }
  .mec-site .mec-prose .toc {
    width: 100%;
    min-width: 0;
    padding: 20px;
    margin: 24px auto 30px;
    font-size: 13px;
  }
}
@media (max-width: 374px) {
  .mec-site .mec-listing-grid > .mec-card {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
  }
  .mec-site .mec-directory-jumps,
  .mec-site .mec-system-jumps {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* Symptoms and repair costs: tables stay readable within the existing guide. */
.mec-site .mec-hub-system { row-gap: 28px; }
.mec-site .mec-hub-detail {
  grid-column: 1 / -1;
  min-width: 0;
  padding-top: 24px;
  border-top: 1px solid #dce2e3;
  color: #374449;
  font-size: 15px;
  line-height: 1.95;
}
.mec-site .mec-hub-detail h3 { margin: 1.6em 0 .8em; color: #20272b; font-size: 20px; }
.mec-site .mec-hub-detail > h3:first-child { margin-top: 0; }
.mec-site .mec-hub-detail p { margin: 0 0 1.3em; }
.mec-site .mec-hub-detail a, .mec-site .mec-guide-supplement a { color: #176a73; text-decoration: underline; text-underline-offset: 3px; }
.mec-site .mec-table-scroll { max-width: 100%; overflow-x: auto; margin: 24px 0; border: 1px solid #dce2e3; }
.mec-site .mec-table-scroll:focus-visible { outline: 2px solid #247980; outline-offset: 3px; }
.mec-site .mec-table-scroll table { width: 100%; min-width: 660px; margin: 0; border-collapse: collapse; font-size: 14px; line-height: 1.85; }
.mec-site .mec-table-scroll th, .mec-site .mec-table-scroll td { padding: 14px; border: 1px solid #dce2e3; text-align: left; vertical-align: top; }
.mec-site .mec-table-scroll th { background: #edf4f1; color: #20272b; }
.mec-site .mec-table-scroll tbody th { width: 23%; }
.mec-site .mec-source-note { color: #586368; font-size: 12px; line-height: 1.85; }
.mec-site .mec-cost-content { max-width: 1080px; margin: 0 auto 48px; }
.mec-site .mec-cost-content .mec-guide-section { scroll-margin-top: 24px; margin-bottom: 48px; }
.mec-site .mec-cost-content .mec-guide-section:first-child > h2 { margin-top: 0; }
.mec-site .mec-cost-content .mec-guide-section > p { max-width: 900px; margin-bottom: 1.4em; }
.mec-site .mec-cost-routes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 36px; }
.mec-site .mec-cost-routes > section { min-width: 0; padding: 4px 0 18px; border-bottom: 1px solid #dce2e3; }
.mec-site .mec-cost-routes h3 { font-size: 19px; margin: 1.2em 0 .8em; }
.mec-site .mec-cost-routes p { margin: 0 0 1em; font-size: 14px; line-height: 1.95; }
.mec-site .mec-cost-checks dt { margin: 22px 0 7px; font-weight: 700; color: #20272b; }
.mec-site .mec-cost-checks dd { margin: 0; padding: 0 0 18px; border-bottom: 1px solid #dce2e3; }
.mec-site .mec-guide-supplement { margin-bottom: 36px; }
@media (max-width: 640px) {
  .mec-site .mec-cost-routes { grid-template-columns: minmax(0, 1fr); }
  .mec-site .mec-hub-detail { padding-top: 20px; font-size: 15px; }
  .mec-site .mec-hub-detail h3 { font-size: 19px; }
  .mec-site .mec-table-scroll th, .mec-site .mec-table-scroll td { padding: 11px; }
}

/* 0.2.32: author identity – quiet, text-led editorial layout. */
.mec-site .mec-author-card {
  margin: 42px 0;
  border: 1px solid #dce2e3;
  border-top: 3px solid #42a3ab;
  border-radius: 0;
  background: #fff;
  padding: 26px 30px 28px;
}
.mec-site .mec-author-card .mec-label { margin-bottom: 12px; }
.mec-site .mec-author-card-content { display: grid; grid-template-columns: 96px minmax(0,1fr); gap: 22px; align-items: start; }
.mec-site .mec-author-card-avatar { display: block; width: 96px; height: 96px; border: 1px solid #e1e8e8; background: #f7f9f8; overflow: hidden; }
.mec-site .mec-author-avatar-image { display: block; width: 100%; height: 100%; object-fit: contain; }
.mec-site .mec-author-card h2 { margin: 0 0 3px; font-size: 21px; line-height: 1.5; }
.mec-site .mec-author-position { font-size: 12px; color: #586368; margin: 0 0 14px; line-height: 1.7; }
.mec-site .mec-author-summary { font-size: 13px; color: #465256; line-height: 1.95; margin: 0 0 12px; }
.mec-site .mec-author-summary p { margin: 0 0 0.85em; font-size: inherit; line-height: inherit; color: inherit; }
.mec-site .mec-author-summary p:last-child { margin-bottom: 0; }
.mec-site a.mec-author-more { display: inline-block; color: #176a73; text-decoration: underline; text-underline-offset: 3px; font-size: 12px; font-weight: 700; }
.mec-site a.mec-author-more:hover { color: #0c555e; }
.mec-site .mec-author-archive { max-width: 1140px; }
.mec-site .mec-author-profile { border-bottom: 1px solid #dce2e3; padding: 14px 0 34px; }
.mec-site .mec-author-profile-top { display: flex; gap: 25px; align-items: center; margin: 7px 0 23px; }
.mec-site .mec-author-profile-avatar { width: 120px; height: 120px; flex: 0 0 120px; border: 1px solid #e1e8e8; background: #f7f9f8; overflow: hidden; }
.mec-site .mec-author-profile h1 { font-size: clamp(28px, 3.2vw, 40px); margin: 0 0 5px; }
.mec-site .mec-author-profile .mec-author-position { margin-bottom: 0; }
.mec-site .mec-author-profile-bio { max-width: 780px; font-size: 15px; line-height: 2; color: #354246; }
.mec-site .mec-author-profile-bio p { margin: 0 0 12px; }
.mec-site .mec-author-illustration-note { margin: 16px 0 0; font-size: 11px; color: #6f787b; }
.mec-site .mec-author-posts { padding-top: 40px; }
.mec-site .mec-author-posts > h2 { font-size: clamp(22px, 2.3vw, 28px); margin: 0 0 26px; }
.mec-site .mec-author-posts .mec-archive-grid { margin-top: 0; }
.mec-site .mec-author-empty { padding: 25px 0; color: #586368; }
@media(max-width:600px) {
  .mec-site .mec-author-card { padding: 18px 16px 21px; }
  .mec-site .mec-author-card-content { grid-template-columns: 72px minmax(0,1fr); gap: 14px; }
  .mec-site .mec-author-card-avatar { width: 72px; height: 72px; }
  .mec-site .mec-author-card h2 { font-size: 19px; }
  .mec-site .mec-author-summary { font-size: 12px; }
  .mec-site .mec-author-profile-top { align-items: center; gap: 16px; }
  .mec-site .mec-author-profile-avatar { flex-basis: 86px; width: 86px; height: 86px; }
  .mec-site .mec-author-profile-bio { font-size: 14px; }
  .mec-site .mec-author-posts { padding-top: 28px; }
}
