:root {
  --ink: #243033;
  --muted: #617074;
  --paper: #f6f2ea;
  --surface: #fff;
  --green: #0d766f;
  --green-dark: #07534f;
  --sun: #e4a64f;
  --line: #dce4e1;
}

html { scroll-behavior: smooth; }
body { color: var(--ink); background: var(--paper); }
a { color: var(--green-dark); }

.detail-header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  max-width: none;
  padding: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 242, 234, .96);
}

.detail-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 40px));
  min-height: 78px;
  margin: auto;
}

.detail-brand {
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}

.detail-links { display: flex; align-items: center; gap: 20px; }
.detail-links a { color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.detail-links .detail-call { padding: 9px 14px; color: #fff; border-radius: 5px; background: var(--green); }

main {
  width: min(960px, calc(100% - 40px));
  padding: 50px 0 72px;
}

main > nav { color: var(--muted); font-size: 14px; }
h1 { max-width: 760px; font-size: clamp(34px, 5vw, 54px); line-height: 1.35; }
h2 { color: var(--green-dark); }
main > p { max-width: 780px; font-size: 17px; }

figure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

figure img { min-height: 300px; }
figcaption { padding: 0 18px 14px; }

main section {
  margin-top: 12px;
  padding: 34px 0;
}

main section:nth-of-type(even) {
  margin-right: -20px;
  margin-left: -20px;
  padding-right: 20px;
  padding-left: 20px;
  background: rgba(255,255,255,.56);
}

li::marker { color: var(--green); font-weight: 800; }
.actions a { color: #fff; background: var(--green); font-weight: 800; }
.actions a:last-child { background: #0b9b61; }

.detail-footer {
  width: 100%;
  max-width: none;
  padding: 28px 20px 90px;
  color: #fff;
  text-align: center;
  background: var(--green-dark);
}
.detail-footer a { color: #fff; }

.detail-mobile-actions { display: none; }

@media (max-width: 760px) {
  .detail-nav { min-height: 66px; }
  .detail-brand { font-size: 17px; }
  .detail-links a:not(.detail-call) { display: none; }
  main { padding-top: 32px; }
  h1 { font-size: 34px; }
  figure img { min-height: 220px; }
  .detail-mobile-actions {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #fff;
    box-shadow: 0 -4px 20px rgba(31,55,59,.16);
  }
  .detail-mobile-actions a {
    min-width: 0;
    padding: 13px 4px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    background: var(--green);
  }
  .detail-mobile-actions a:nth-child(2) { background: #0b9b61; }
  .detail-mobile-actions a:nth-child(3) { background: var(--sun); color: var(--ink); }
}
