/* Home visual */
.yks-r3-home-visual {
  width: min(100%, 720px);
  margin: 1.25rem auto 2rem;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(25, 48, 54, .10);
}
.yks-r3-home-visual img {
  display: block;
  width: 100%;
  height: auto;
}

/* Calculator form: scope styles narrowly to avoid interaction with the active theme. */
.yc-tool,
.yc-tool *,
.yc-tool *::before,
.yc-tool *::after { box-sizing: border-box; }

.yc-tool .yc-form .yc-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: start !important;
  gap: 1rem !important;
}
.yc-tool .yc-form .yc-field {
  display: grid !important;
  min-width: 0 !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: .35rem !important;
  align-content: start !important;
}
.yc-tool .yc-form .yc-field > label {
  display: block !important;
  min-height: 1.5em;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.5;
}
.yc-tool .yc-form .yc-field > select,
.yc-tool .yc-form .yc-field > input {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 48px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

/* Image-led category cards */
.yks-r3-archive-main { min-height: 58vh; }
.yks-r3-archive-header { padding: clamp(2.5rem, 6vw, 5.5rem) 0; background: #eaf6f2; }
.yks-r3-container { width: min(calc(100% - 2rem), 1120px); margin-inline: auto; }
.yks-r3-breadcrumb { margin-bottom: 1rem; color: #52666c; font-size: .85rem; }
.yks-r3-breadcrumb a { color: inherit; }
.yks-r3-archive-header h1 { margin: 0; color: #193036; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.4; }
.yks-r3-archive-lead { margin: .8rem 0 0; color: #52666c; }
.yks-r3-archive-content { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.yks-r3-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.35rem; }
.yks-r3-post-card { display: flex; flex-direction: column; overflow: hidden; min-height: 315px; border: 1px solid #d9e3e0; border-radius: 18px; background: #fff; box-shadow: 0 4px 14px rgba(25,48,54,.035); transition: transform .2s, box-shadow .2s; }
.yks-r3-post-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(25, 48, 54, .08); }
.yks-r3-post-card__image { display: block; aspect-ratio: 1.6 / 1; overflow: hidden; background: #eaf6f2; }
.yks-r3-post-card__image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.yks-r3-post-card:hover .yks-r3-post-card__image img { transform: scale(1.035); }
.yks-r3-post-card__body { display: flex; flex: 1; flex-direction: column; padding: 1.25rem 1.35rem 1.4rem; }
.yks-r3-post-card__category { margin-bottom: .65rem; color: #125249; font-size: .78rem; font-weight: 700; }
.yks-r3-post-card__category a { color: inherit; text-decoration: none; }
.yks-r3-post-card__title { margin: 0 0 .65rem; color: #193036; font-size: 1.06rem; line-height: 1.55; }
.yks-r3-post-card__title a { color: inherit; text-decoration: none; }
.yks-r3-post-card__title a:hover { color: #1e6b62; }
.yks-r3-post-card__excerpt { color: #52666c; font-size: .9rem; line-height: 1.7; }
.yks-r3-post-card__excerpt p { margin: 0; }
.yks-r3-post-card__link { display: inline-block; margin-top: auto; padding-top: 1rem; color: #125249; font-size: .88rem; font-weight: 700; text-decoration: none; }
.yks-r3-pagination { margin-top: 2rem; }
.yks-r3-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; }
.yks-r3-pagination a, .yks-r3-pagination .current { display: inline-flex; align-items: center; justify-content: center; min-width: 2.35rem; min-height: 2.35rem; padding: .25rem .6rem; border: 1px solid #d9e3e0; border-radius: 50%; text-decoration: none; }
.yks-r3-pagination .current { color: #fff; border-color: #1e6b62; background: #1e6b62; }
.yks-r3-empty { padding: 3rem; border-radius: 18px; background: #fff; text-align: center; }

@media (max-width: 940px) { .yks-r3-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .yc-tool .yc-form .yc-grid, .yc-tool .yc-form .yc-grid--children { grid-template-columns: minmax(0, 1fr) !important; } }
@media (max-width: 620px) { .yks-r3-card-grid { grid-template-columns: 1fr; } }
