.tile-case {
  background: var(--surface);
}

.tile-case figure {
  margin: 0;
}

.tile-case img {
  width: 100%;
  height: auto;
}

.tile-case figcaption {
  margin-top: .65rem;
  color: var(--muted);
  font-size: .87rem;
  line-height: 1.65;
}

.tile-case h1,
.tile-case h2,
.tile-case h3 {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  color: var(--green);
  overflow-wrap: anywhere;
}

.tile-intro {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 0 clamp(2rem, 5vw, 4.25rem);
}

.tile-breadcrumb {
  display: flex;
  gap: .65rem;
  align-items: center;
  color: var(--muted);
  font-size: .85rem;
  margin-bottom: 1.1rem;
}

.tile-breadcrumb a,
.tile-text-link {
  text-decoration: underline;
  text-underline-offset: .25em;
}

.tile-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: center;
}

.tile-category {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--green-mid);
  font-size: .84rem;
  font-weight: 700;
  margin: 0 0 1.2rem;
}

.tile-category::before {
  content: "";
  width: 2rem;
  height: 2px;
  background: var(--gold);
}

.tile-hero h1 {
  font-size: clamp(2rem, 3.7vw, 3.15rem);
  line-height: 1.42;
  font-weight: 600;
}

.tile-separator {
  position: absolute;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.tile-subtitle {
  display: block;
  margin-top: .25em;
  font-size: .70em;
}

.tile-lead {
  max-width: 32em;
  margin: 1.6rem 0 0;
  line-height: 2;
}

.tile-hero img {
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center top;
}

.tile-body {
  width: min(880px, calc(100% - 40px));
  margin-inline: auto;
}

.tile-body section {
  padding: 0;
  margin-block: clamp(2.7rem, 6.5vw, 5rem);
}

.tile-case h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.55;
  margin: 0 0 1rem;
}

.tile-body section > p,
.tile-end-contact p {
  max-width: 46em;
  margin: 0 0 1.5rem;
  line-height: 1.95;
}

.tile-overview dl {
  margin: 0;
  border-top: 1px solid var(--line);
}

.tile-overview dl div {
  display: grid;
  grid-template-columns: minmax(5.5em, 25%) 1fr;
  gap: 1ch;
  padding: .85rem .15rem;
  border-bottom: 1px solid var(--line);
}

.tile-overview dt {
  color: var(--green);
  font-weight: 700;
}

.tile-overview dd {
  margin: 0;
}

.tile-detail {
  display: grid;
  grid-template-columns: minmax(140px, 275px) 1fr;
  align-items: center;
  gap: clamp(1rem, 5vw, 3rem);
  margin-top: 1.8rem;
}

.tile-detail p {
  margin: 0;
  line-height: 1.95;
}

.tile-case img[src$="/underlayment-battens.webp"] {
  max-width: 756px;
}

.tile-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
}

.tile-steps h3 {
  font-size: 1.2rem;
  margin: 0 0 .8rem;
}

.tile-steps img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.tile-case .tile-mid-contact {
  padding: 1.35rem clamp(1rem, 4vw, 2rem);
  border-left: 3px solid var(--gold);
  border-radius: 0;
  color: var(--ink);
  background: var(--paper);
  box-shadow: none;
}

.tile-mid-contact::after {
  display: none;
}

.tile-case .tile-mid-contact > p {
  color: var(--ink);
  font-weight: 500;
  font-size: 1rem;
}

.tile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.15rem;
}

.tile-actions .button {
  padding: .85rem 1.25rem;
  min-height: 48px;
  border: 1px solid var(--green);
  border-radius: 4px;
  line-height: 1.35;
}

.tile-phone { background: var(--surface); color: var(--green); }
.tile-line { background: var(--green); color: var(--white); }
.tile-actions .button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.tile-related ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.tile-related a {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  padding: .85rem 0;
  color: var(--green);
  border-bottom: 1px solid var(--line);
}

.tile-related a:hover { text-decoration: underline; }
.tile-end-contact { padding: clamp(2.5rem, 5vw, 4.25rem) 0; background: var(--paper-deep); }

@media (max-width: 760px) {
  .tile-hero { grid-template-columns: 1fr; }
  .tile-breadcrumb { margin-bottom: 1.4rem; }
  .tile-category { margin-bottom: .6rem; }
  .tile-lead { margin-top: .85rem; }
}

@media (max-width: 690px) {
  .tile-steps { grid-template-columns: 1fr; }
  .tile-actions { flex-direction: column; }
  .tile-steps img { aspect-ratio: auto; }
}

@media (max-width: 620px) {
  .tile-detail { grid-template-columns: 1fr; }
  .tile-detail figure { max-width: min(76vw, 330px); }
}
