/* Solar panel page (/products/jinko-tiger-neo). Page-level patterns built from the shared
   tokens: paper product wells, hairline rows, Rust numerals, square photos, one orange line. */

/* Hero: both finishes in one cut-out, given room inside the well. */
.panel-hero-visual img{padding:clamp(28px,4.5vw,64px)}
.panel-finishes{list-style:none;margin:24px 0 6px;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.panel-finish-visual{height:210px;background:var(--paper);display:flex;align-items:center;justify-content:center;margin-bottom:16px;overflow:hidden}
.panel-finish-visual img{height:84%;width:auto;mix-blend-mode:multiply}
.panel-finishes h3{font-size:1.375rem;letter-spacing:-.03em;line-height:1.2;margin-bottom:8px}
.panel-finishes p{margin-bottom:10px}
.panel-model{display:block;font-size:var(--type-small);line-height:1.6;letter-spacing:.06em;color:#59675d}
.panel-approved{display:grid;grid-template-columns:22px minmax(0,1fr);gap:14px;margin-top:30px;padding-block:20px;border-block:1px solid var(--line)}
.panel-approved svg{width:22px;height:22px;margin-top:3px;fill:none;stroke:#a44822;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.panel-approved strong{color:var(--ink);font-weight:600}

/* Six reasons: a numbered sequence on paper. */
.panel-reasons{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:44px 36px}
.panel-reasons li{border-top:1px solid #c9cfc4;padding-top:22px}
.panel-reasons span{font-size:.875rem;color:#a44822;font-variant-numeric:tabular-nums}
.panel-reasons h3{margin:16px 0 12px;font-size:1.375rem;letter-spacing:-.03em;line-height:1.2}
.panel-reasons p{max-width:42ch;color:var(--muted);font-size:var(--type-reading);line-height:1.75}

/* Warranty: copy and figures beside the chart. */
.panel-warranty,.panel-company,.panel-faq,.panel-specs-grid{display:grid;gap:48px clamp(40px,6vw,100px);align-items:start}
.panel-warranty>*,.panel-company>*,.panel-faq>*,.panel-specs-grid>*{min-width:0}
.panel-warranty{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr)}
.panel-warranty-copy>p:not(.note),.panel-company-copy>p:not(.source-note){max-width:50ch;margin-top:24px;color:var(--muted);font-size:var(--type-reading);line-height:1.75}
.panel-figures{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:30px 0 8px;border-top:1px solid var(--line)}
.panel-figures div{display:flex;flex-direction:column-reverse;justify-content:flex-end;gap:6px;padding:20px 16px 20px 0;border-bottom:1px solid var(--line)}
.panel-figures dd{margin:0;font-size:clamp(1.75rem,2.6vw,2.375rem);font-weight:500;line-height:1.1;letter-spacing:-.045em}
.panel-figures dt{font-size:var(--type-label);line-height:1.5;color:var(--muted)}

/* Chart: SVG strokes stretch with the plot; dots and text are HTML so they stay round and legible. */
.panel-chart{margin:0;min-width:0}
.panel-chart figcaption{display:grid;gap:4px;margin-bottom:24px}
.panel-chart figcaption strong{font-size:1.375rem;font-weight:500;line-height:1.2;letter-spacing:-.03em}
.panel-chart figcaption span{max-width:52ch;font-size:var(--type-label);line-height:1.6;color:var(--muted)}
.panel-chart-frame{display:grid;grid-template-columns:44px minmax(0,1fr) 96px}
.panel-chart-y{grid-column:1;grid-row:1;position:relative}
.panel-chart-y span,.panel-chart-x span{position:absolute;font-size:var(--type-small);line-height:1;color:#59675d;font-variant-numeric:tabular-nums}
.panel-chart-y span{right:10px;top:var(--y);transform:translateY(-50%)}
.panel-chart-plot{grid-column:2;grid-row:1;position:relative;height:clamp(240px,24vw,340px);touch-action:pan-y;cursor:crosshair}
.panel-chart-plot:focus-visible{outline:3px solid var(--accent);outline-offset:8px}
.panel-chart-plot svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.panel-chart-grid line{stroke:#dce0d8;stroke-width:1;vector-effect:non-scaling-stroke}
.panel-chart-grid .panel-chart-ref{stroke:#a3aba1}
.panel-chart-area{fill:#ea642c;fill-opacity:.1}
.panel-chart-line{fill:none;stroke:#ea642c;stroke-width:2;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
.panel-chart-dot,.panel-chart-cursor-dot{position:absolute;left:var(--x);top:var(--y);width:10px;height:10px;margin:-5px 0 0 -5px;border-radius:50%;background:#ea642c;box-shadow:0 0 0 2px #fff}
/* Year-one label sits under the line, clear of its slope, with the end label's value-over-caption form. */
.panel-chart-note{position:absolute;left:var(--x);top:var(--y);transform:translate(6px,26px);display:grid;gap:2px;white-space:nowrap}
.panel-chart-note strong,.panel-chart-end strong{font-size:1.375rem;font-weight:500;line-height:1.1;letter-spacing:-.03em}
.panel-chart-note span{font-size:var(--type-small);line-height:1.4;color:#59675d}
.panel-chart-ref-label{position:absolute;left:var(--x);bottom:8px;transform:translateX(calc(-100% - 8px));font-size:var(--type-small);line-height:1.4;color:#59675d;white-space:nowrap}
.panel-chart-end{grid-column:3;grid-row:1;position:relative}
.panel-chart-end>div{position:absolute;left:14px;top:var(--y);transform:translateY(-50%);display:grid;gap:2px}
.panel-chart-end span{font-size:var(--type-small);line-height:1.4;color:#59675d;white-space:nowrap}
.panel-chart-x{grid-column:2;grid-row:2;position:relative;height:30px}
.panel-chart-x span{left:var(--x);top:10px;transform:translateX(-50%)}
.panel-chart-axis{grid-column:2;grid-row:3;margin-top:6px;text-align:center;font-size:var(--type-small);color:#59675d}
.panel-chart-cursor{position:absolute;inset:0;pointer-events:none}
.panel-chart-cursor-line{position:absolute;left:var(--x);top:0;bottom:0;width:1px;margin-left:-.5px;background:var(--ink);opacity:.3}
.panel-chart-tip{position:absolute;z-index:2;left:var(--x);top:var(--y);transform:translate(16px,-50%);display:grid;gap:2px;padding:9px 12px;background:#fff;border:1px solid var(--line);box-shadow:0 10px 35px #182d231c;white-space:nowrap}
.panel-chart-cursor.is-flipped .panel-chart-tip{transform:translate(calc(-100% - 16px),-50%)}
.panel-chart-tip strong{font-size:1rem;font-weight:600;line-height:1.3}
.panel-chart-tip span{font-size:var(--type-small);line-height:1.4;color:#59675d}
.panel-chart-table{margin-top:26px;border-top:1px solid var(--line)}
.panel-chart-table .table-wrap{margin-block:16px 0}
.panel-chart-table table{min-width:0}
.panel-chart-table th,.panel-chart-table td{padding:9px 12px}
.panel-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* Solar with storage: battery tiles, then the rebate line. */
.panel-rebate-line{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:12px 32px;margin-top:44px;padding-top:22px;border-top:1px solid #c9cfc4;color:var(--muted);font-size:var(--type-reading);line-height:1.7}
.panel-rebate-line .text-link{color:var(--ink);border-color:#c9cfc4}

/* Company and questions: real photos beside copy. */
.panel-company{grid-template-columns:minmax(0,.8fr) minmax(0,1fr);align-items:center}
.panel-photo{margin:0;min-width:0}
.panel-photo img{width:100%;height:auto;aspect-ratio:var(--ratio,4/3);object-fit:cover;background:#e6e8e1}
.panel-photo figcaption{padding-top:10px;max-width:44ch;font-size:var(--type-small);line-height:1.6;color:#59675d}
.panel-faq{grid-template-columns:minmax(0,.85fr) minmax(0,1fr)}
.panel-faq-head{position:sticky;top:calc(var(--header-height,87px) + 40px);display:grid;gap:36px}
.panel-faq .faq-list,.panel-faq details{border-color:#c9cfc4}
.panel-faq details p{max-width:60ch;color:var(--muted)}
.panel-faq details a{color:var(--ink);text-decoration:underline;text-underline-offset:4px}

/* Installer detail: specification table and list beside the downloads. */
.panel-specs-grid{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr)}
.panel-spec-table{min-width:0}
.panel-spec-table .note{text-align:left}
.panel-spec-list{margin-top:14px}
.panel-spec-list div{padding:17px 12px 17px 0}
.panel-spec-list dt{margin-bottom:6px}
.panel-spec-list dd{font-size:1.0625rem;line-height:1.5;letter-spacing:-.01em}
.panel-downloads{position:sticky;top:calc(var(--header-height,87px) + 40px)}
.panel-downloads h3{margin:0 0 14px;font-size:1.375rem;letter-spacing:-.03em;line-height:1.2}
.panel-downloads h3:not(:first-child){margin-top:40px}
.panel-downloads p{max-width:52ch;margin-bottom:14px;color:var(--muted);font-size:var(--type-reading);line-height:1.75}
.panel-downloads .link-list{border-top:1px solid var(--line)}
.panel-downloads .link-list a{display:flex;justify-content:space-between;align-items:baseline;gap:16px;width:100%}
.panel-downloads .link-list a:hover{color:#a44822}
.panel-downloads .link-list span{flex-shrink:0;font-size:var(--type-label);color:#59675d}
#specifications>.source-note{max-width:90ch;margin-top:36px}

/* The line draws in once the chart is on screen; motion.js only adds .motion-reveal when motion is allowed. */
.motion-enabled .panel-chart.motion-reveal .panel-chart-data{clip-path:inset(0 100% 0 0);transition:clip-path 1.5s var(--motion-ease) .25s}
.motion-enabled .panel-chart.motion-reveal.is-visible .panel-chart-data{clip-path:inset(0 0 0 0)}
.motion-enabled .panel-chart.motion-reveal .panel-chart-dot,.motion-enabled .panel-chart.motion-reveal .panel-chart-note,.motion-enabled .panel-chart.motion-reveal .panel-chart-end{opacity:0;transition:opacity .6s var(--motion-ease) 1.2s}
.motion-enabled .panel-chart.motion-reveal.is-visible .panel-chart-dot,.motion-enabled .panel-chart.motion-reveal.is-visible .panel-chart-note,.motion-enabled .panel-chart.motion-reveal.is-visible .panel-chart-end{opacity:1}
.motion-paused .panel-chart-data{clip-path:none!important}
.motion-paused .panel-chart *{transition:none!important}
@media (prefers-reduced-motion:reduce){.panel-chart *{transition:none!important}.panel-chart-data{clip-path:none!important}}

@media (max-width:1100px){
  .panel-reasons{gap:36px 28px}
  .panel-finish-visual{height:180px}
}
@media (max-width:900px){
  .panel-reasons{grid-template-columns:repeat(2,minmax(0,1fr))}
  .panel-warranty,.panel-company,.panel-faq,.panel-specs-grid{grid-template-columns:minmax(0,1fr)}
  .panel-faq-head,.panel-downloads{position:static}
  .panel-company .panel-photo{max-width:560px}
  .panel-chart-frame{grid-template-columns:40px minmax(0,1fr) 84px}
}
@media (max-width:640px){
  .panel-reasons{grid-template-columns:1fr;gap:28px}
  .panel-finishes{gap:14px}
  .panel-finish-visual{height:150px}
  .panel-figures dd{font-size:1.75rem}
  .panel-chart-plot{height:220px}
  .panel-chart-frame{grid-template-columns:36px minmax(0,1fr) 72px}
  .panel-chart-end>div{left:10px}
  .panel-chart-note{transform:translate(4px,30px)}
  .panel-chart-note strong,.panel-chart-end strong{font-size:1.125rem}
  .panel-rebate-line{margin-top:34px}
  .panel-spec-table th,.panel-spec-table td{padding:12px 8px;white-space:normal;overflow-wrap:anywhere}
  .panel-spec-list{grid-template-columns:1fr}
  .panel-spec-list div{padding:14px 0}
}
