/*──────────────────────────────────────────────────────────────────────────────
  bias.css — Combined Typography, Colors & Layout for Mobile‐First Bottom Sheet
──────────────────────────────────────────────────────────────────────────────*/

/*──────────────────────────────────────────────────────────────────────────────
  1) DESIGN TOKENS: COLORS, FONTS, SIZES, SPACING, RADII
──────────────────────────────────────────────────────────────────────────────*/
:root {
    /* COLORS */
    --col-bg-sheet:       #e5e5e5;
    --col-bg-risk-card:   #dcdcdc;
    --col-bg-response:    #c4c4c4;
    --col-handle:         #aaa;
    --col-text-primary:   #111;
    --col-text-secondary: #222;
    --col-text-tertiary:  #333;
    --col-link:           #007aff;
    --col-divider:        rgba(0,0,0,0.1);

    /* FONT STACK */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* TYPOGRAPHY */
    --fs-title:    32px;  /* “It looks smart…” */
    --lh-title:    40px;
    --fs-body:     22px;  /* main paragraph */
    --lh-body:     24px;
    --fs-subhead:  16px;  /* section headings */
    --lh-subhead:  24px;
    --fs-small:    14px;  /* lists, fine text */
    --lh-small:    20px;

    /* SPACING SCALE */
    --space-xs:    8px;
    --space-sm:    16px;
    --space-md:    32px;
    --space-lg:    40px;

    /* RADII */
    --radius-sheet:   16px;
    --radius-card:     8px;
  }

  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  body {
    font-family: var(--font-sans);
    background: #f2f2f2;
    height: 100vh;
    /* overflow: hidden; */
    color: var(--col-text-secondary);
  }

  .bottom-sheet {
    position: fixed;
    bottom: 0; left: 0;
    width: 100%;
    max-height: 100%;
    background: var(--col-bg-sheet);
    border-top-left-radius: var(--radius-sheet);
    border-top-right-radius: var(--radius-sheet);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
    padding: var(--space-sm);
    overflow-y: auto;
    overscroll-behavior: contain;/* stop body from rubber-banding */
   -webkit-overflow-scrolling: touch;  /* smooth momentum scroll on iOS */
  }
  .sheet-content {
    padding-bottom: 152px;
  }

  .handle {
    width: 40px;
    height: 4px;
    background: var(--col-handle);
    border-radius: 2px;
    margin: var(--space-xs) auto var(--space-sm);
  }

  .content {
    padding-bottom: var(--space-lg);
  }

  .title {
    font-size: var(--fs-title);
    line-height: var(--lh-title);
    font-weight: 600;
    color: var(--col-text-primary);
    font-size: 40px;
    line-height: 40px;
  }

  #section1 {
    margin-top: var(--space-lg);
    margin-top: 40px;
    margin-bottom: 60px;
  }

  .section + .section {
    margin-top: var(--space-md);
  }

  #section1 .text {
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--col-text-secondary);
    transition: max-height 0.3s ease;
    font-size: 22px;
    line-height: 24px;
  }

  #section1 .text.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .toggle-btn {
    display: inline-flex;
    align-items: center;
    margin-top: var(--space-xs);
    background: none;
    border: none;
    padding: 0;
    font-size: var(--fs-body);
    color: var(--col-text-primary);
    cursor: pointer;
    display: inline-block;
    margin-top: 8px;
  }

  .toggle-btn img {
    width: 16px;
    height: 16px;
  }

  .toggle-btn .icon {
    margin-left: 4px;
    transition: transform 0.3s;
  }

  span#toggleLabel{
    padding-right: 8px;
  }

  #section1.expanded .icon {
    transform: rotate(180deg);
  }

  .more-info {
      display: block;
      margin-top: 16px;
  }
  .more-info-highlight {color: #FF0000;}

  .subheading {
    font-size: medium;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--col-text-tertiary);
    margin-bottom: var(--space-xs);
  }

  .body-text {
    font-size: var(--fs-small);
    line-height: var(--lh-small);
    color: var(--col-text-secondary);
  }

  .body-list,
  .risk-list {
    list-style-position: inside;
    margin-left: var(--space-sm);
  }
  .body-list li,
  .risk-list li {
    margin-bottom: var(--space-xs);
  }

  .consequence {
    font-style: italic;
  }

  .hmw {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
  }

  .footer {
    font-size: var(--fs-small);
    line-height: var(--lh-small);
    text-align: center;
  }

  .section.risks {
    background: var(--col-bg-risk-card);
    border-radius: var(--radius-card);
    padding: var(--space-sm);
  }

  .section.responses > * {
    background: var(--col-bg-response);
    border-radius: var(--radius-card);
    padding: var(--space-sm);
    margin-bottom: var(--space-sm);
  }
  .section.responses > *:last-child {
    margin-bottom: 0;
  }

  .content > .section:nth-of-type(8)::before {
    content: "";
    display: block;
    height: 1px;
    background: var(--col-divider);
    margin-bottom: var(--space-sm);
  }

  /* ────────── Section 1 “It looks smart…” ────────── */
  .title {
    font-size: 40px;
    line-height: 40px;
  }

  #section1 {
    margin-top: 40px;
    margin-bottom: 100px;
  }

  #section1 .text {
    font-size: 22px;
    line-height: 24px;
  }

  #section1 .toggle-btn {
    margin-top: 8px;
  }

  .toggle-btn {
    display: inline-block;
    background: none;
    border: none;
    padding: 0;
    margin-top: 8px;
    cursor: pointer;
  }

  .toggle-btn img {
    width: 16px;
    height: 16px;
  }

  .more-info {
      display: block;
      margin-top: 16px;
  }
  .more-info-highlight {color: #FF0000;}

  /*──────────────────────────────────────────────────────────────────────────────
  Section 2 “keep hearing” — inline 3-column layout
──────────────────────────────────────────────────────────────────────────────*/
  h3.subheading{font-size: medium;}
  .section2 {
    margin-top: var(--space-md);
    margin-bottom: 100px;
  }

  .section2 .subheading {
    font-size: medium;
    font-weight: 600;
    margin-bottom: var(--space-sm);
  }

  .section2 p {
    font-size: 40px;
    line-height: 40px;
    color: var(--col-text-primary);
  }

  .section2 .keep-hearing .avatar {
    width: 56px;
    height: 36px;
    border-radius: 12px;
    object-fit:cover;
    flex-shrink: 0;
  }

  .section2 .keep-hearing .quote-icon {
    display: inline-block;
    height: 24px;
    width: 24px;
    text-align: center;
    font-size: 32px;
    line-height: 38px;
    margin: 4px 8px 0 8px;
    flex-shrink: 0;
    border-radius: 100%;
    background-color:#B4B4B4;
  }

  .section-matters p {
    font-size: 22px;
    line-height: 24px;
    font-weight: 400;
  }

  .section4 {
    margin-top: var(--space-md);
  }

  .section4 .subheading {
    font-size: var(--fs-subhead);
    line-height: var(--lh-subhead);
    font-weight: 600;
    color: var(--col-text-primary);
    margin: 0;
    margin-bottom: 28px;
  }

  span.means-list {
    font-size: 0;
  }

  span.means-counter {
    display: inline-block;
    width: 24px; height: 24px;
    line-height: 24px;
    border-radius: 50%;
    background-color: #B4B4B4;
    color: #000;
    font-size: 16px;
    vertical-align: top;
    text-align: center;
    margin-right: 4px;
  }

  span.means-item {
    display: inline;
    vertical-align: top;
    font-size: 22px;
    line-height: 24px;
    font-weight: 400;
    color: var(--col-text-secondary);
    margin-right: 8px;
  }

  .section4 .means-item:last-of-type {
    margin-right: 0;
  }

  .risks-consequence-card {
    display: flex;
    flex-direction: column;
    background-color: #91888F;
    border-radius: 16px;
    padding: 16px;
  }

  .risks-consequence-card .card-title {
    font-size: 18px;
    line-height: 20px;
    font-weight: 400;
    color: #000;
    margin: 0;
  }
  .risks-consequence-card .consequence-title {
    margin-top: 29px;
    margin-bottom: 16px;
  }
  .risks-consequence-card .item-divider {
    height: 1px;
    background-color: #000;
    margin: 0;
  }
  .risks-consequence-card .risk-grid {
    display: flex;
    gap: 16px;
    margin: 16px 0;
  }
  .risks-consequence-card .risk-item {
    flex: 1;
  }
  .risks-consequence-card .item-text {
    font-size: 18px;
    line-height: 20px;
    font-weight: 400;
    color: #000;
    margin: 8px 0 0;
  }
  .risks-consequence-card .consequence-text {
    font-size: 18px;
    line-height: 20px;
    font-weight: 400;
    color: #000;
    margin: 16px 0 16px;
  }

  .section.responses {
    margin-top: var(--space-md);
  }
  .section.responses .response-card {
    position: relative;
    background-color: #8B9188;
    border-radius: 16px;
    padding: 24px;
  }
  .section.responses .response-card + .response-card {
    margin-top: 32px;
  }
  .section.responses .response-card .divider {
    position: absolute;
    top: 24px;
    left: 24px;
    right: 24px;
    height: 1px;
    background-color: #000;
  }
  .section.responses .card-heading {
    font-size: 18px;
    line-height: 22px;
    font-weight: 400;
    color: #000;
    margin: 8px 0;
  }
  .section.responses .card-body {
    font-size: 40px;
    line-height: 40px;
    color: #000;
    margin: 0;
  }


  .section.openquestions {
    margin-top: var(--space-md);
  }
  .section.openquestions .openquestion-card {
    position: relative;
    background-color: #8B9188;
    border-radius: 16px;
    padding: 24px;
  }
  .section.openquestions .openquestion-card + .openquestion-card {
    margin-top: 32px;
  }
  .section.openquestions .openquestion-card .divider {
    position: absolute;
    top: 24px;
    left: 24px;
    right: 24px;
    height: 1px;
    background-color: #000;
  }
  .section.openquestions .card-heading {
    font-size: 18px;
    line-height: 22px;
    font-weight: 400;
    color: #000;
    margin: 8px 0;
  }
  .section.openquestions .card-body {
    font-size: 28px;
    line-height: 1.1;
    color: #000;
    margin: 0;
  }

  .section.not-to-do {
    background-color: #91888F;
    border-radius: 16px;
    padding: 16px;
    margin-top: var(--space-md);
  }
  .section.not-to-do .subheading {
    font-size: 18px;
    line-height: 22px;
    font-weight: 400;
    color: #000;
    text-transform: none;
  }
  .section.not-to-do .body-list {
    display: flex;
    gap: 16px;
    list-style: none;
    margin: 16px 0;
    padding: 0;
  }
  .section.not-to-do .body-list li {
    flex: 1;
    position: relative;
    padding: 8px 0 0;
    font-size: 18px;
    line-height: 22px;
    font-weight: 400;
    color: #000;
  }
  .section.not-to-do .body-list li::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 16px;
    height: 1px;
    background-color: #000;
  }

  .hmw {
    font-size: 40px;
    line-height: 40px;
    color: var(--col-text-primary);
    margin-bottom: var(--space-md);
  }

  .section.use-this-if {
    background-color: #888D91;
    border-radius: 16px;
    padding: 16px;
    margin-top: var(--space-md);
  }
  .section.use-this-if .subheading {
    font-size: 18px;
    line-height: 22px;
    font-weight: 400;
    color: #000;
    margin: 0 0 0 0;
    text-transform: none;
  }
  .section.use-this-if .use-grid {
    display: flex;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 16px 0 0 0;
  }
  .section.use-this-if .use-grid li {
    flex: 1;
    position: relative;
    padding: 8px 0 0;
    font-size: 18px;
    line-height: 22px;
    font-weight: 400;
    color: #000;
  }
  .section.use-this-if .use-grid li::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 16px;
    height: 1px;
    background-color: #000;
  }
  .section.use-this-if .tagline {
    font-size: 40px;
    line-height: 40px;
    color: #000;
    margin: 40px 0 16px;
  }


  .section.contact-card {
    background-color: #888D91;
    border-radius: 16px;
    padding: 16px;
    margin-top: var(--space-md);
  }
  .section.contact-card .subheading {
    font-size: 18px;
    line-height: 22px;
    font-weight: 400;
    color: #000;
    margin: 0 0 0 0;
    text-transform: none;
  }
  .section.contact-card .use-grid {
    display: flex;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 16px 0 0 0;
  }
  .section.contact-card .use-grid li {
    flex: 1;
    position: relative;
    padding: 8px 0 0;
    font-size: 18px;
    line-height: 22px;
    font-weight: 400;
    color: #000;
  }
  .section.contact-card .use-grid li::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 16px;
    height: 1px;
    background-color: #000;
  }
  .section.contact-card .cta {
    font-size: 18px;
    line-height: 22px;
    font-weight: 400;
    color: #000;
    margin: 40px 0 16px;
    text-transform: none;
  }
  .section.contact-card .mail {
    font-size: calc(20 * (100vw / 393));
    line-height: 40px;
    color: #000;
    margin: 10px 0 16px;
  }


  #section1 {
    margin-top: var(--space-lg);
    margin-top: 40px;
    margin-bottom: 60px;
  }



  /* Put this near the bottom of bias.css */
.risks-consequence-card .risk-item{
  flex:1 1 0;
  min-width:0;
}
.risks-consequence-card .item-text{
  overflow-wrap:break-word;
  word-break:break-word;
  hyphens:auto;
}


@media (max-width: 1000px) {
  .section.contact-card .mail {
    font-size: 24px;
  }
}
