/* ProAI Expert — Selected Thinking / Editorial Decision Desk R1.1
   Mobile-only hierarchy correction. R1 desktop remains authoritative. */

@media (max-width: 620px) {
  #selected-thinking-r1.selected-thinking-r1 {
    padding-top: 48px;
    padding-bottom: 42px;
  }

  .selected-thinking-r1__shell {
    width: calc(100% - 30px);
  }

  .selected-thinking-r1__eyebrow {
    margin-bottom: 9px;
  }

  .selected-thinking-r1__header-grid {
    gap: 11px;
  }

  .selected-thinking-r1__header h2 {
    max-width: 13.5ch;
    font-size: clamp(34px, 10.4vw, 42px);
    line-height: .99;
  }

  .selected-thinking-r1__philosophy {
    margin-bottom: 3px;
    font-size: 12.5px;
  }

  .selected-thinking-r1__support {
    max-width: 43ch;
    font-size: 11.8px;
    line-height: 1.44;
  }

  .selected-thinking-r1__header-rule {
    margin-top: 18px;
  }

  /* 01 = flagship editorial feature */
  .selected-thinking-r1__lead {
    padding: 22px 0 28px;
    border-bottom-color: var(--st-line-strong);
  }

  .selected-thinking-r1__lead::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 34px;
    height: 1px;
    background: var(--st-accent);
    opacity: .72;
  }

  .selected-thinking-r1__lead .selected-thinking-r1__number {
    color: var(--st-pearl);
    font-size: 10px;
  }

  .selected-thinking-r1__lead .selected-thinking-r1__meta {
    color: rgba(235,233,228,.66);
  }

  .selected-thinking-r1__lead h3 {
    max-width: 16.7ch;
    margin-top: 15px;
    font-size: clamp(32px, 9.2vw, 38px);
    line-height: .99;
    letter-spacing: -.05em;
  }

  .selected-thinking-r1__lead h3 span {
    margin-top: .12em;
    font-size: .59em;
    line-height: 1.1;
  }

  .selected-thinking-r1__lead .selected-thinking-r1__summary {
    max-width: 46ch;
    margin-top: 10px;
    font-size: 11.8px;
    line-height: 1.43;
    color: rgba(235,233,228,.61);
  }

  /* Signature decision rail: same content, authored mobile treatment. */
  .selected-thinking-r1__framework--lead {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    max-width: none;
    margin-top: 17px;
    padding: 13px 0 0;
    border-top: 0;
    font-size: 7.4px;
    letter-spacing: .055em;
  }

  .selected-thinking-r1__framework--lead::before {
    content: "";
    position: absolute;
    left: 3px;
    right: 3px;
    top: 3px;
    height: 1px;
    background: linear-gradient(90deg, rgba(156,150,190,.6), rgba(235,233,228,.24));
    transform-origin: left center;
  }

  .selected-thinking-r1__framework--lead span {
    position: relative;
    min-width: 0;
    padding-right: 5px;
    white-space: nowrap;
  }

  .selected-thinking-r1__framework--lead span::before {
    content: "";
    position: absolute;
    top: -13px;
    left: 1px;
    width: 5px;
    height: 5px;
    border: 1px solid rgba(217,215,209,.6);
    border-radius: 50%;
    background: var(--st-bg);
  }

  .selected-thinking-r1__framework--lead span:first-of-type::before {
    border-color: var(--st-accent);
    background: var(--st-accent);
  }

  .selected-thinking-r1__framework--lead i {
    display: none;
  }

  .selected-thinking-r1__lead .selected-thinking-r1__read {
    margin-top: 13px;
    min-height: 44px;
    align-items: center;
    color: rgba(235,233,228,.48);
  }

  /* 02 / 03 = compact decision index */
  .selected-thinking-r1__supports {
    position: relative;
    padding-top: 9px;
  }

  .selected-thinking-r1__supports::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 1px;
    background: rgba(235,233,228,.08);
  }

  .selected-thinking-r1__support-record,
  .selected-thinking-r1__support-record + .selected-thinking-r1__support-record {
    padding: 14px 0 13px;
    border-bottom: 1px solid rgba(235,233,228,.1);
  }

  .selected-thinking-r1__support-record .selected-thinking-r1__record-head {
    gap: 9px;
  }

  .selected-thinking-r1__support-record .selected-thinking-r1__number {
    font-size: 8px;
    color: rgba(235,233,228,.38);
  }

  .selected-thinking-r1__support-record .selected-thinking-r1__meta {
    font-size: 7.7px;
    letter-spacing: .07em;
    color: rgba(235,233,228,.48);
  }

  .selected-thinking-r1__support-record h3,
  .selected-thinking-r1--ru .selected-thinking-r1__support-record h3 {
    max-width: 31ch;
    margin-top: 7px;
    font-size: 16px;
    line-height: 1.08;
    letter-spacing: -.027em;
  }

  .selected-thinking-r1__support-record h3 span {
    color: rgba(241,240,236,.68);
  }

  .selected-thinking-r1__support-record .selected-thinking-r1__summary {
    max-width: 55ch;
    margin-top: 5px;
    font-size: 10.6px;
    line-height: 1.36;
    color: rgba(235,233,228,.43);
  }

  .selected-thinking-r1__support-record .selected-thinking-r1__choice,
  .selected-thinking-r1__support-record .selected-thinking-r1__framework--compact {
    margin-top: 7px;
    padding-top: 7px;
    border-top-color: rgba(235,233,228,.08);
  }

  .selected-thinking-r1__support-record .selected-thinking-r1__choice {
    gap: 4px;
    font-size: 6.8px;
    letter-spacing: .035em;
  }

  .selected-thinking-r1__support-record .selected-thinking-r1__choice > div {
    gap: 5px;
  }

  .selected-thinking-r1__support-record .selected-thinking-r1__framework--compact {
    font-size: 6.9px;
    letter-spacing: .035em;
  }

  .selected-thinking-r1__support-record .selected-thinking-r1__framework--compact i {
    min-width: 5px;
    margin-inline: 3px;
    opacity: .72;
  }

  .selected-thinking-r1__support-record .selected-thinking-r1__read,
  .selected-thinking-r1__support-record + .selected-thinking-r1__support-record .selected-thinking-r1__read {
    display: inline-flex;
    min-height: 44px;
    margin-top: 4px;
    align-items: center;
    font-size: 7.6px;
    color: rgba(235,233,228,.38);
  }

  .selected-thinking-r1__archive {
    padding-top: 8px;
  }

  .selected-thinking-r1__archive a {
    min-height: 44px;
    font-size: 8.2px;
  }

  /* Keep 01 reveal slightly more deliberate; resolve 02/03 as index entries. */
  .st-r1-js .selected-thinking-r1.st-r1-visible .selected-thinking-r1__lead {
    animation-duration: 720ms;
    animation-delay: 145ms;
  }

  .st-r1-js .selected-thinking-r1.st-r1-visible .selected-thinking-r1__support-record:first-child {
    animation-duration: 480ms;
    animation-delay: 285ms;
  }

  .st-r1-js .selected-thinking-r1.st-r1-visible .selected-thinking-r1__support-record:last-child {
    animation-duration: 480ms;
    animation-delay: 330ms;
  }

  .selected-thinking-r1--ru .selected-thinking-r1__header h2 {
    font-size: clamp(30px, 9.1vw, 38px);
  }

  .selected-thinking-r1--ru .selected-thinking-r1__lead h3 {
    max-width: 17.5ch;
    font-size: clamp(28px, 8.15vw, 34px);
  }

  .selected-thinking-r1--ru .selected-thinking-r1__framework--lead {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    font-size: 6.2px;
    letter-spacing: .01em;
  }
}

@media (max-width: 350px) {
  #selected-thinking-r1.selected-thinking-r1 {
    padding-top: 40px;
    padding-bottom: 34px;
  }

  .selected-thinking-r1__shell {
    width: calc(100% - 24px);
  }

  .selected-thinking-r1__header h2 {
    font-size: 31px;
  }

  .selected-thinking-r1--ru .selected-thinking-r1__header h2 {
    font-size: 28px;
  }

  .selected-thinking-r1__support {
    font-size: 10.9px;
    line-height: 1.38;
  }

  .selected-thinking-r1__header-rule {
    margin-top: 14px;
  }

  .selected-thinking-r1__lead {
    padding-top: 18px;
    padding-bottom: 22px;
  }

  .selected-thinking-r1__lead h3 {
    margin-top: 12px;
    font-size: 30px;
  }

  .selected-thinking-r1--ru .selected-thinking-r1__lead h3 {
    font-size: 26px;
  }

  .selected-thinking-r1__lead .selected-thinking-r1__summary {
    font-size: 11.2px;
    line-height: 1.38;
  }

  .selected-thinking-r1__framework--lead {
    margin-top: 13px;
    font-size: 6.4px;
  }

  .selected-thinking-r1--ru .selected-thinking-r1__framework--lead {
    font-size: 5.65px;
  }

  .selected-thinking-r1__support-record,
  .selected-thinking-r1__support-record + .selected-thinking-r1__support-record {
    padding-top: 11px;
    padding-bottom: 10px;
  }

  .selected-thinking-r1__support-record h3,
  .selected-thinking-r1--ru .selected-thinking-r1__support-record h3 {
    font-size: 14.8px;
  }

  .selected-thinking-r1__support-record .selected-thinking-r1__summary {
    font-size: 10px;
    line-height: 1.31;
  }

  .selected-thinking-r1__support-record .selected-thinking-r1__choice,
  .selected-thinking-r1__support-record .selected-thinking-r1__framework--compact {
    font-size: 6.2px;
  }
}

/* Mobile landscape: stop forcing portrait geometry into a short viewport. */
@media (min-width: 621px) and (max-width: 932px) and (max-height: 500px) {
  #selected-thinking-r1.selected-thinking-r1 {
    padding: 30px 0 28px;
  }

  .selected-thinking-r1__shell {
    width: calc(100% - 44px);
  }

  .selected-thinking-r1__eyebrow {
    margin-bottom: 8px;
    font-size: 8px;
  }

  .selected-thinking-r1__header-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
    gap: 34px;
    align-items: end;
  }

  .selected-thinking-r1__header h2 {
    max-width: 13ch;
    font-size: clamp(31px, 4.5vw, 40px);
    line-height: .98;
  }

  .selected-thinking-r1__intro {
    padding-bottom: 0;
  }

  .selected-thinking-r1__philosophy {
    margin-bottom: 3px;
    font-size: 11px;
  }

  .selected-thinking-r1__support {
    font-size: 10.5px;
    line-height: 1.34;
  }

  .selected-thinking-r1__header-rule {
    margin-top: 14px;
  }

  .selected-thinking-r1__desk {
    display: grid;
    grid-template-columns: minmax(0, 1.38fr) minmax(300px, .92fr);
    align-items: stretch;
  }

  .selected-thinking-r1__lead {
    min-height: 0;
    padding: 18px 30px 18px 0;
    border-right: 1px solid var(--st-line);
    border-bottom: 0;
  }

  .selected-thinking-r1__lead h3 {
    max-width: 17ch;
    margin-top: 12px;
    font-size: clamp(27px, 3.5vw, 34px);
  }

  .selected-thinking-r1__lead h3 span {
    font-size: .56em;
  }

  .selected-thinking-r1__lead .selected-thinking-r1__summary {
    margin-top: 8px;
    font-size: 10.8px;
    line-height: 1.35;
  }

  .selected-thinking-r1__framework--lead {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 12px;
    padding-top: 11px;
    border-top: 1px solid rgba(235,233,228,.12);
    font-size: 6.6px;
    letter-spacing: .035em;
  }

  .selected-thinking-r1__framework--lead i {
    display: none;
  }

  .selected-thinking-r1__framework--lead span {
    white-space: nowrap;
  }

  .selected-thinking-r1__lead .selected-thinking-r1__read {
    position: static;
    min-height: 44px;
    margin-top: 5px;
    align-items: center;
    font-size: 7px;
  }

  .selected-thinking-r1__supports {
    display: grid;
    grid-template-columns: 1fr;
  }

  .selected-thinking-r1__support-record,
  .selected-thinking-r1__support-record + .selected-thinking-r1__support-record {
    min-height: 0;
    padding: 15px 0 12px 24px;
    border-left: 0;
    border-bottom: 1px solid var(--st-line);
  }

  .selected-thinking-r1__support-record:last-child {
    border-bottom: 0;
  }

  .selected-thinking-r1__support-record h3,
  .selected-thinking-r1--ru .selected-thinking-r1__support-record h3 {
    max-width: 28ch;
    margin-top: 6px;
    font-size: 15px;
    line-height: 1.07;
  }

  .selected-thinking-r1__record-head {
    gap: 8px;
  }

  .selected-thinking-r1__support-record .selected-thinking-r1__meta {
    font-size: 7px;
  }

  .selected-thinking-r1__support-record .selected-thinking-r1__summary {
    margin-top: 4px;
    font-size: 9.6px;
    line-height: 1.28;
    color: rgba(235,233,228,.42);
  }

  .selected-thinking-r1__support-record .selected-thinking-r1__choice,
  .selected-thinking-r1__support-record .selected-thinking-r1__framework--compact {
    margin-top: 5px;
    padding-top: 5px;
    font-size: 6px;
  }

  .selected-thinking-r1__support-record .selected-thinking-r1__read,
  .selected-thinking-r1__support-record + .selected-thinking-r1__support-record .selected-thinking-r1__read {
    display: none;
  }

  .selected-thinking-r1__archive {
    padding-top: 5px;
  }

  .selected-thinking-r1__archive a {
    min-height: 44px;
    font-size: 7.5px;
  }

  .selected-thinking-r1--ru .selected-thinking-r1__header h2 {
    font-size: clamp(28px, 4vw, 36px);
  }

  .selected-thinking-r1--ru .selected-thinking-r1__lead h3 {
    font-size: clamp(24px, 3vw, 30px);
  }

  .selected-thinking-r1--ru .selected-thinking-r1__framework--lead {
    font-size: 5.5px;
    letter-spacing: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .selected-thinking-r1__framework--lead::before {
    transform: none !important;
    animation: none !important;
  }
}
