.approved-tree * { box-sizing: border-box; }
.approved-tree { margin:0; background:#fcfcfd; color:var(--arc-copy); font-family:"Roboto Condensed", sans-serif; }
.approved-tree .tree-preview { padding:43px 30px 57px; }
.approved-tree section { width:min(100%,1116px); margin:auto; }
.approved-tree h2 { color:var(--arc-heading); margin:0 0 34px; text-align:center; font-size:clamp(29px,3.1vw,39px); text-transform:uppercase; line-height:1.12; letter-spacing:-.015em; }
.approved-tree h2 span,
.approved-tree .story h3 { color:var(--arc-accent); }
.approved-tree .tree-card { position:relative; border-radius:22px; padding:0 42px; }
.approved-tree .story {
    /* The artwork occupies part of the right grid column. */
    --tree-figure-width: calc(100cqi / 2.18);
    --tree-art-max: 410px;
    --tree-art-share: .84;
    --tree-art-width: min(var(--tree-art-max), calc(var(--tree-figure-width) * var(--tree-art-share)));
    container-type: inline-size;
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
    align-items: center;
    width: 100%;
    padding-block: clamp(20px, 2vw, 30px);
}
.approved-tree .tree-intro {
    display: grid;
    grid-template-rows: 1fr auto 1fr;
    align-items: center;
    gap: clamp(12px, 1.4vw, 20px);
    min-width: 0;
}
.approved-tree h3 {
    align-self: end;
    margin: 0;
    font-size: clamp(25px, 3.45vw, 48px);
    font-weight: 500;
    letter-spacing: -.025em;
    line-height: 1.1;
}
.approved-tree .tree-note {
    position: relative;
    padding: clamp(14px, 1.45vw, 22px) clamp(16px, 1.8vw, 26px);
    border: 1px solid var(--arc-line);
    border-radius: 16px;
    background: linear-gradient(120deg, var(--arc-tint), #fff 90%);
    color: var(--arc-copy);
}
.approved-tree .tree-note p {
    margin: 0;
    font-size: clamp(17px, 1.4vw, 21px);
    line-height: 1.4;
    text-wrap: pretty;
}
.approved-tree .tree-note strong { color: var(--arc-heading); font-weight: 700; }
.approved-tree .tree-figure {
    position: relative;
    display: grid;
    grid-template-columns: minmax(16px, 1fr) minmax(0, min(calc(100% * var(--tree-art-share)), var(--tree-art-max)));
    min-width: 0;
}
.approved-tree .tree-figure::before {
    content: "";
    box-sizing: border-box;
    pointer-events: none;
    border-bottom: 2px solid #484441; /* Trunk fill in both family tree illustrations. */
}
.approved-tree picture, .approved-tree picture img { display: block; width: 100%; height: auto; }
.approved-tree .tree-figure picture { grid-column: 2; }

@media (width > 700px) {
    /* The first grid items set a shared baseline at the note's centre and the trunk's centre (y=374). */
    .approved-tree .story { align-items: baseline; }
    .approved-tree .tree-intro { grid-template-columns: 0 minmax(0, 1fr); column-gap: 0; }
    .approved-tree .tree-intro > * { grid-column: 2; }
    .approved-tree .tree-intro::before {
        content: "";
        grid-area: 1 / 1 / 4 / 2;
        align-self: center;
        height: 0;
    }
    .approved-tree .tree-figure::before {
        grid-area: 1 / 1;
        align-self: start;
        height: calc(var(--tree-art-width) * 374 / 685);
        transform: translateY(1px);
    }
    .approved-tree .tree-figure picture { grid-row: 1; }
}

.approved-tree .actions { display: flex; flex-wrap: wrap; align-self: start; gap: 12px; }
.approved-tree .btn { display:inline-flex; align-items:center; min-height:44px; padding:10px 22px; border:1px solid transparent; border-radius:50px; font-size:16px; font-weight:500; text-transform:uppercase; line-height:1.15; }

.approved-tree .features { list-style:none; margin:0; padding:20px 0 21px; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border-top:1px solid var(--am-card-divider); }
.approved-tree .features li { min-height:45px; padding:3px 17px; display:flex; align-items:center; justify-content:center; gap:12px; font-size:18px; font-weight:500; line-height:1.22; }
.approved-tree .features li+li { border-left:1px solid var(--am-card-divider); }
.approved-tree .features img { width:33px; height:33px; object-fit:contain; flex:none; }
@media(min-width:701px) {
.approved-tree .features li:first-child { justify-content:flex-start; padding-inline-start:0; }
.approved-tree .features li:last-child { justify-content:flex-end; padding-inline-end:0; }
}
@media(max-width:1000px) {
.approved-tree .tree-card { padding:0 26px; }
.approved-tree .features li { padding:2px 10px; gap:7px; }
.approved-tree .actions { gap:7px; }
.approved-tree .btn { padding:10px 15px; }
}
@media(max-width:700px) {
.approved-tree .tree-preview { padding:26px 15px 28px; }
.approved-tree h2 { font-size:clamp(25px,6.6vw,32px); margin-bottom:20px; }
.approved-tree .tree-card { padding:0 20px; border-radius:19px; }
.approved-tree .story {
    --tree-art-width: min(100cqi, clamp(190px, 54vw, 252px));
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "heading" "image" "note" "actions";
    padding-block: 20px;
}
.approved-tree .tree-intro { display: contents; }
.approved-tree h3 {
    grid-area: heading;
    margin-bottom: 8px;
    text-align: start;
    font-size: clamp(23px, 5.4vw, 31px);
    letter-spacing: -.025em;
}
.approved-tree .tree-figure { grid-area: image; display: block; width: var(--tree-art-width); justify-self: center; }
/* In the stacked 340 × 329 artwork the trunk is at (28, 197) and the note meets (170, 329). */
.approved-tree .tree-figure::before {
    position: absolute;
    right: 50%;
    bottom: -1px;
    width: calc(100% * 142 / 340);
    transform-origin: right center;
    transform: skewY(43deg);
}
.approved-tree .tree-note { grid-area: note; }
.approved-tree .actions { grid-area: actions; margin-top: 16px; justify-content: flex-start; }
.approved-tree .btn { padding:10px 12px; min-height:44px; font-size:14px; justify-content:center; }
.approved-tree .features { grid-template-columns:1fr 1fr; row-gap:12px; padding:15px 0; }
.approved-tree .features li { font-size:15px; gap:8px; padding:3px 5px; justify-content:flex-start; }
.approved-tree .features img { width:25px; height:25px; }
.approved-tree .features li:nth-child(odd) { border-left:0; padding-inline-start:0; }
.approved-tree .features li:nth-child(even) { padding-left:11px; }
}
@media(max-width:389px) {
.approved-tree .btn { padding-inline:clamp(5px,calc(2vw - 1px),7px); }
}
@media(max-width:360px) {
.approved-tree .tree-preview { padding-inline:11px; }
.approved-tree .tree-card { padding-inline:14px; }
.approved-tree .features li { font-size:14px; }
}

.approved-tree .btn { text-decoration:none; }

@property --arc-tree-glint {
  syntax:"<angle>";
  inherits:false;
  initial-value:0deg;
}
@keyframes arc-tree-glint-lap { to { --arc-tree-glint:360deg; } }
@media (prefers-reduced-motion:no-preference) and (forced-colors:none) {
  @supports ((mask-composite:exclude) or (-webkit-mask-composite:xor)) {
    .am-example-action::after {
      content:"";
      position:absolute;
      inset:-1px;
      padding:1.5px;
      border-radius:inherit;
      pointer-events:none;
      background:conic-gradient(from var(--arc-tree-glint), transparent 74%, rgba(55,136,190,.12) 85%, rgba(87,159,207,.72) 94%, rgba(140,199,233,.40) 97%, transparent);
      -webkit-mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
      -webkit-mask-composite:xor;
      mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
      mask-composite:exclude;
      animation:arc-tree-glint-lap 7s linear infinite;
    }
  }
}
