/* Result-page specifications transcribed from the original ResultPage/Analyze,
   Face, Slider, SectionTitle and Conclusion components. Data stays in flow.mjs. */
.report-title{font-size:2.25em;line-height:1.4}
.report-page .section-title{font-size:1.75em;line-height:1.35;padding:16px 12px}
.report-subtitle{font-size:1.125em;line-height:1.75;border-radius:.5em}
.report-section{padding-top:1.5em;scroll-margin-top:104px}

/* AllEmotion: face diameter = container width × .3 × sqrt(count / sum). */
.original-emotion-intro{margin:1em 0;font-size:.875em;line-height:1.75;color:#000}
.original-emotion-intro small{font-size:.75em}
.original-overall-emotion{position:relative;margin:1em 0 1.5em}
.overall-emotion-baseline{position:absolute;top:50%;left:0;right:0;height:.375em;transform:translateY(-50%);background:linear-gradient(to right,#000 50%,transparent 0) left bottom/7px 100% repeat-x}
.overall-emotion-track{position:relative;display:flex;justify-content:space-between;align-items:stretch}
.overall-emotion-stat{position:relative;flex:0 0 auto;min-width:0;text-align:center}
.overall-emotion-space{padding-top:175%}
.overall-emotion-disc{position:absolute;top:50%;left:0;width:100%;height:auto;min-height:0;aspect-ratio:1/1;transform:translateY(-50%);box-sizing:border-box;border:.25em solid #000;border-radius:50%;background:#fff;overflow:hidden}
/* A replaced image in normal flow can supply an intrinsic minimum height to
   this auto-height box. Keep it out of flow so only the disc's ratio sets height. */
.overall-emotion-disc img{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;margin:0;object-fit:contain}
.overall-emotion-stat.is-active .overall-emotion-disc{background:#f8e300}
.overall-emotion-disc.is-zero{visibility:hidden}
.overall-emotion-percent{position:absolute;top:-.375em;left:50%;transform:translateX(-50%);font-size:1.5em;line-height:1.5;font-weight:400;white-space:nowrap}
.overall-emotion-name{position:absolute;bottom:-.375em;left:50%;transform:translateX(-50%);font-size:1.25em;line-height:1.5;white-space:nowrap}

/* CategoryEmotion: one original face per domain, small percentage/domain
   labels and light dotted connectors. Original tie priority selects only the
   display glyph; the table retains every count. Grey markers are unclassified. */
.original-sentiment{margin-top:1em}
.sentiment-bubble-legend{display:flex;align-items:center;flex-wrap:wrap;gap:0;font-size:1em}
.sentiment-legend-item{display:flex;align-items:center;gap:.25em;margin-right:.5em}
.sentiment-legend-item>span:last-child{font-size:.875em;margin-top:.25em;white-space:nowrap}
.sentiment-legend-face{display:block;flex:0 0 1.75em;width:1.75em;aspect-ratio:1;border:.25em solid #000;border-radius:50%;background:#fff;overflow:hidden}
.sentiment-legend-face img{display:block;width:100%;height:100%}
.sentiment-legend-divider{padding-right:.25em;font-size:1em}
.original-sentiment-svg{display:block;width:100%;height:auto;overflow:visible}
.original-sentiment-svg .sentiment-label{font-weight:400}
.original-sentiment-svg .sentiment-unclassified-face{filter:grayscale(1)}
.original-sentiment-svg .sentiment-pair:focus .sentiment-circle{stroke-width:5}
.sentiment-excluded,.sentiment-tie-note{font-size:.875em;line-height:1.75}
.sentiment-data table th,.sentiment-data table td{padding:.5em .25em;border-bottom:1px solid #ddd}
.sentiment-data table th{font-weight:700}
.sentiment-table-scroll{max-width:100%;overflow-x:auto}
.sentiment-data table{width:100%;border-collapse:collapse;font-size:14px;text-align:left;line-height:1.75}
.sentiment-data table caption{padding:.5em 0;text-align:left;font-size:14px}
.sentiment-data table td[data-emotion-count]{text-align:center;font-variant-numeric:tabular-nums}

/* The original Slider keeps arrows beside the slide, with navigation dots
   below it. Only the track clips horizontally; the outer control box does not. */
.report-page .answer-carousel{position:relative;overflow:visible;contain:none}
.report-page .question-carousel{overflow-x:auto;overflow-y:hidden;scrollbar-width:none;margin:1em 0;scroll-snap-type:x mandatory;overscroll-behavior-x:contain}
.report-page .question-carousel::-webkit-scrollbar{display:none}
.report-page .question-carousel>article{padding:1em 0;flex:0 0 100%;min-width:0}
.report-page .question-carousel .carousel-question{align-items:center;font-size:1.125em;line-height:1.5}
.carousel-arrow{position:absolute;top:50%;z-index:2;display:flex;align-items:center;justify-content:center;width:48px;height:48px;min-width:48px;min-height:48px;padding:0;border:2px solid #000;border-radius:50%;background:#f8e300;color:#000;font-size:24px;line-height:1;transform:translateY(-50%);cursor:pointer}
.carousel-arrow[data-action="carousel-prev"]{left:-52px}
.carousel-arrow[data-action="carousel-next"]{right:-52px}
.carousel-arrow svg{display:block;width:1em;height:1em;fill:currentColor}
.carousel-arrow:hover,.carousel-arrow:focus-visible{background:#f4db00}
.carousel-arrow:focus-visible{outline:2px solid #000;outline-offset:3px}
.carousel-dots{display:flex;justify-content:center;align-items:center;gap:0;min-height:20px;margin:0;padding:0;list-style:none}
.carousel-dots button{position:relative;width:20px;height:20px;min-width:20px;min-height:20px;margin:0 5px;padding:0;border:0;border-radius:0;background:transparent;cursor:pointer}
.carousel-dots button::before{content:"";position:absolute;top:7px;left:7px;width:6px;height:6px;border-radius:50%;background:#000;opacity:.25}
.carousel-dots button[aria-current="true"]::before,.carousel-dots button[aria-selected="true"]::before,.carousel-dots button.is-active::before{opacity:.75}
.carousel-dots button:focus-visible{outline:2px solid #000;outline-offset:0}

/* Conclusion keeps the original statement and stacked sponsor/share actions. */
.report-conclusion{padding:1.5em 0;text-align:left}
.report-conclusion h1,.report-conclusion h2{margin:.5em 0 0;font-size:2.25em;line-height:1.4;text-align:center}
.report-conclusion hr{border:0;border-top:4px solid #000;margin:1em 0}
.report-conclusion .conclusion-main{margin:1em 0;font-size:1.125em;line-height:1.5;font-weight:700}
.report-conclusion .conclusion-support,.report-conclusion>p:not(.conclusion-main){font-size:.875em;line-height:1.5}
.report-conclusion .result-actions{display:flex;flex-direction:column;gap:1em;margin:1em 0}
.report-conclusion .result-actions .button{height:auto;min-height:0;width:100%;padding:.5em 1em;border:3px solid #000;border-radius:0;font-size:1.3755em;font-weight:400;line-height:1.5;text-decoration:none}
.report-conclusion .result-actions .primary{background:#FFEB00}
.report-conclusion .result-actions .secondary{background:#fff}

@media(max-width:991px){
  .report-page .section-title{font-size:1.375em}
  .report-page .report-title{font-size:2.25em}
  .report-page .question-carousel>article{font-size:.875em}
  .report-page .question-carousel .carousel-question{font-size:1em}
  .carousel-arrow{font-size:24px;width:48px;height:48px}
  .report-page .answer-carousel .original-chart-layout{margin-inline:20px}
  .city-gallery .city-gallery-frame{padding-inline:20px}
  .carousel-arrow[data-action="carousel-prev"]{left:-32px}
  .carousel-arrow[data-action="carousel-next"]{right:-32px}
}

@media(prefers-reduced-motion:reduce){
  .original-sentiment-svg .sentiment-pair{transition:none}
}

/* html already reserves the fixed header and report tabs for anchor targets. */
.report-body>.report-section,.report-body #report-city{scroll-margin-top:0}

/* Native scrolling keeps all slides; only the active article sets track height.
   Arrows follow its plot rather than the height of explanation/source details. */
.report-page .question-carousel{align-items:flex-start}
.report-page .question-carousel>article{align-self:flex-start;height:auto}
.report-page .answer-carousel .carousel-arrow{top:var(--carousel-arrow-top,50%)}
