/*==========================================================
   css/source-attribution.css — the Source Attribution Policy page
   Load order: home.css, scroll.css, platform.css, privacy.css, source-attribution.css
   The policy layout itself (hero, seal, "at a glance", contents, the numbered sections,
   copy-link buttons, print, and every phone rule) is shared with the Privacy Policy and
   Terms of Service pages and lives in privacy.css.
   This file only adds what is specific to this policy: the sample story card, the
   "We do / We never" boxes, and the placeholders.
==========================================================*/

/* ---------- placeholders that are still to be finalised stay visible, as on the old page ---------- */
.pv-sec .placeholder{
    display:inline-block; padding:0 9px; border-radius:8px;
    background:rgba(255,176,85,.12); border:1px dashed rgba(255,176,85,.6);
    color:var(--accent); font-weight:700;
}

/*==========================================================
   THE SAMPLE STORY CARD (section 2) — styled like the cards in the feed
==========================================================*/
.pv-sec .sample-card{
    position:relative; isolation:isolate; overflow:hidden;
    max-width:440px; margin:8px 0 20px; padding:16px 18px 18px;
    border-radius:24px;
    background:linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
    border:1px solid var(--border-strong);
    box-shadow:0 24px 54px -28px rgba(0,0,0,.95);
    transition:transform .3s cubic-bezier(.2,.8,.2,1), border-color .3s;
}
/* the animated ring of the feed cards, turning up when the card is looked at */
.pv-sec .sample-card::before{
    content:""; position:absolute; inset:0; z-index:-1; border-radius:inherit; padding:1.5px; pointer-events:none;
    background:conic-gradient(from var(--ang), var(--accent), rgba(255,176,85,0) 30%, rgba(255,176,85,0) 58%, #ff6b6b 80%, var(--accent));
    -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite:xor; mask-composite:exclude;
    animation:ringSpin 8s linear infinite;
    opacity:0; transition:opacity .35s;
}
.pv-sec .sample-card:hover, .pv-sec .sample-card[data-hl]{ transform:translateY(-3px); border-color:rgba(255,176,85,.5); }
.pv-sec .sample-card:hover::before, .pv-sec .sample-card[data-hl]::before{ opacity:1; }
/* one pass of light when the section first comes into view */
.pv-sec .sample-card::after{
    content:""; position:absolute; top:0; bottom:0; left:-40%; width:40%; pointer-events:none;
    background:linear-gradient(100deg, transparent, rgba(255,255,255,.14), transparent); transform:skewX(-18deg); opacity:0;
}
.pv-sec.in .sample-card::after{ animation:attrSheen 1.4s ease .5s 1 both; }
@keyframes attrSheen{ 0%{ left:-40%; opacity:1; } 100%{ left:120%; opacity:1; } }

.sample-card .row{
    display:flex; align-items:center; justify-content:space-between; gap:10px;
    padding:3px; margin:-3px; border-radius:16px;
    font-size:12px; font-weight:600; color:var(--text-muted);
    transition:background .3s, opacity .3s;
}
.sample-card .src{
    display:inline-flex; align-items:center; gap:8px; padding:5px 12px 5px 6px; border-radius:14px;
    background:rgba(255,255,255,.09); color:var(--text-primary); font-size:12px; font-weight:800;
}
.sample-card .src::before{ content:""; width:18px; height:18px; border-radius:50%; background:linear-gradient(135deg, var(--accent), var(--accent-strong)); box-shadow:0 0 10px rgba(255,176,85,.6); }
.sample-card h4{
    margin:14px 0 16px; padding:2px 4px; border-radius:10px;
    font-size:16.5px; line-height:1.42; font-weight:700; letter-spacing:-.01em; color:var(--text-primary);
    transition:background .3s, box-shadow .3s, opacity .3s;
}
.sample-card .link{
    display:inline-flex; align-items:center; padding:8px 15px; border-radius:15px;
    background:rgba(255,176,85,.14); border:1px solid rgba(255,176,85,.42);
    color:var(--accent); font-size:12.5px; font-weight:800;
    animation:attrNudge 3s ease-in-out infinite;
    transition:background .3s, color .3s, opacity .3s;
}
@keyframes attrNudge{ 0%, 70%, 100%{ transform:none; } 82%{ transform:translateX(5px); } }

/* the part of the card that the list item under the pointer / finger refers to */
.sample-card[data-hl] > *:not(.hl){ opacity:.42; }
.sample-card .row.hl{ background:rgba(255,176,85,.14); }
.sample-card h4.hl{ background:rgba(255,176,85,.16); box-shadow:inset 0 -2px 0 var(--accent); }
.sample-card .link.hl{ background:var(--accent); color:var(--accent-contrast); animation:none; }

/* list items in section 2 that point at a part of the card */
.pv-sec li.has-part{ cursor:pointer; border-radius:12px; transition:background .2s, color .2s; }
.pv-sec li.has-part::after{
    content:"\f06e"; font-family:"Font Awesome 6 Free"; font-weight:900;
    position:absolute; right:8px; top:50%; margin-top:-8px; font-size:12px; color:var(--text-muted); opacity:.55; transition:color .2s, opacity .2s;
}
.pv-sec li.has-part:hover, .pv-sec li.has-part:focus-visible, .pv-sec li.has-part.pick{ background:rgba(255,176,85,.08); color:var(--text-primary); outline:none; }
.pv-sec li.has-part:hover::after, .pv-sec li.has-part:focus-visible::after, .pv-sec li.has-part.pick::after{ color:var(--accent); opacity:1; }
.pv-sec li.has-part{ padding-right:34px; }

/*==========================================================
   "WE DO / WE NEVER" (section 4)
==========================================================*/
.pv-sec .do-dont{ display:grid; grid-template-columns:1fr 1fr; gap:14px; margin:8px 0 20px; max-width:780px; }
.do-dont .col{
    position:relative; overflow:hidden; padding:20px 20px 10px; border-radius:24px;
    border:1px solid var(--border-subtle); background:rgba(255,255,255,.035);
    transition:transform .25s cubic-bezier(.2,.8,.2,1), border-color .25s, background .25s;
}
.do-dont .col::before{
    content:""; position:absolute; left:14%; right:14%; top:0; height:2px; border-radius:2px; opacity:.9;
    background:linear-gradient(90deg, transparent, var(--c), transparent);
}
.do-dont .col.yes{ --c:var(--accent); border-color:rgba(255,176,85,.42); background:linear-gradient(180deg, rgba(255,176,85,.09), rgba(255,176,85,.02)); }
.do-dont .col.no{ --c:#ff6b74; border-color:rgba(255,90,100,.36); background:linear-gradient(180deg, rgba(255,90,100,.08), rgba(255,90,100,.015)); }
.do-dont .col:hover{ transform:translateY(-3px); }
.do-dont .col h4{ margin:0 0 6px; font-size:12px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; color:var(--c); }
.pv-sec .do-dont ul{ margin:0; max-width:none; }
.pv-sec .do-dont li{ padding:11px 0 11px 36px; font-size:14px; line-height:1.55; border-bottom:1px solid rgba(255,255,255,.07); color:var(--text-secondary); }
.pv-sec .do-dont li:last-child{ border-bottom:0; }
.pv-sec .do-dont li::before{
    content:"\f00c"; font-family:"Font Awesome 6 Free"; font-weight:900;
    left:0; top:50%; width:24px; height:24px; margin-top:-12px;
    display:grid; place-items:center; font-size:10px;
    background:rgba(255,176,85,.18); color:var(--accent); box-shadow:0 0 0 4px rgba(255,176,85,.07);
}
.pv-sec .do-dont .col.no li::before{ content:"\f00d"; background:rgba(255,90,100,.18); color:#ff8a92; box-shadow:0 0 0 4px rgba(255,90,100,.07); }
/* each side arrives in turn, item by item */
.pv-sec.in .do-dont .col li{ animation:attrItem .55s cubic-bezier(.2,.8,.2,1) backwards; }
.pv-sec.in .do-dont .col.yes li:nth-child(1){ animation-delay:.2s; }  .pv-sec.in .do-dont .col.yes li:nth-child(2){ animation-delay:.32s; }
.pv-sec.in .do-dont .col.yes li:nth-child(3){ animation-delay:.44s; }  .pv-sec.in .do-dont .col.yes li:nth-child(4){ animation-delay:.56s; }
.pv-sec.in .do-dont .col.no li:nth-child(1){ animation-delay:.5s; }   .pv-sec.in .do-dont .col.no li:nth-child(2){ animation-delay:.62s; }
.pv-sec.in .do-dont .col.no li:nth-child(3){ animation-delay:.74s; }  .pv-sec.in .do-dont .col.no li:nth-child(4){ animation-delay:.86s; }
@keyframes attrItem{ from{ opacity:0; transform:translateX(-16px); } }

/*==========================================================
   READ ALONGSIDE (end of page)
==========================================================*/
.attr-next{
    display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap;
    padding:clamp(22px, 3vw, 34px);
}
.attr-next .glow{
    position:absolute; z-index:-1; right:-10%; top:-90%; width:55%; aspect-ratio:1; border-radius:50%;
    background:radial-gradient(circle, rgba(255,176,85,.26), rgba(255,176,85,0) 62%);
    animation:plBreath 8s ease-in-out infinite;
}
.attr-next h2{ margin:0 0 6px; font-size:clamp(18px, 2.2vw, 24px); line-height:1.25; font-weight:800; letter-spacing:-.02em; }
.attr-next p{ margin:0; max-width:56ch; font-size:14px; line-height:1.7; font-weight:500; color:var(--text-secondary); }
.attr-next .btns{ display:flex; flex-wrap:wrap; gap:10px; }

/*==========================================================
   PHONES
==========================================================*/
@media (max-width:640px){
    .pv-sec .sample-card{ max-width:none; padding:15px 15px 16px; border-radius:22px; }
    .sample-card h4{ font-size:16px; }
    .pv-sec .do-dont{ grid-template-columns:1fr; gap:12px; }
    .do-dont .col{ padding:18px 16px 8px; }
    .pv-sec li.has-part{ padding-right:32px; }
    .attr-next{ flex-direction:column; align-items:stretch; text-align:center; }
    .attr-next .btns{ flex-direction:column; }
    .attr-next .pl-btn{ width:100%; }
}

@media print{
    .attr-next{ display:none !important; }
    .pv-sec .placeholder{ border:0 !important; background:none !important; }
    .pv-sec .sample-card, .do-dont .col{ border:1px solid #999 !important; border-radius:8px !important; padding:8px 10px !important; background:none !important; }
    .pv-sec li.has-part::after{ display:none !important; }
    .pv-sec .do-dont li::before{ display:none !important; }
    .pv-sec .do-dont li{ padding-left:0 !important; }
}
@media (prefers-reduced-motion:reduce){
    .sample-card .link, .pv-sec .sample-card::before, .attr-next .glow{ animation:none !important; }
    .pv-sec.in .sample-card::after, .pv-sec.in .do-dont .col li{ animation:none !important; }
}
