/* Quiet Editorial Results v2
   Material redesign for the decision, completed-result and archive surfaces.
   This file intentionally loads after quiet-editorial-product.css so the
   functional DOM and JavaScript contracts remain untouched. */

:where(.qe-result-page,.qe-paid-result-page,.qe-my-results-page){
  --qe-result-wide:min(1320px,calc(100% - 2 * var(--qe-gutter)));
  --qe-result-reading:var(--qe-reading,"Noto Serif JP Variable","Noto Serif JP","Yu Mincho",serif);
  background-color:var(--qe-canvas);
}

:is(.qe-result-page,.qe-paid-result-page,.qe-my-results-page) :is(p,li,dd){
  font-size:max(13px,1em)!important;
}

:is(.qe-result-page,.qe-paid-result-page,.qe-my-results-page) :is(button,a,summary,dt,small,label){
  font-size:max(12px,1em)!important;
}

:is(.qe-result-page,.qe-paid-result-page,.qe-my-results-page) .mm-site-footer-brand p{
  font-size:13px!important;
}

:is(.qe-result-page,.qe-paid-result-page,.qe-my-results-page) .mm-site-footer-legal :where(a,span){
  font-size:12px!important;
}

/* ---------------------------------------------------------------------
   Result: one editorial decision stage, not three equal cards. */

.qe-result-page .phase1-result-head{
  width:var(--qe-result-wide);
  max-width:none;
  height:clamp(480px,39vw,560px);
  grid-template-columns:minmax(360px,.72fr) minmax(520px,1.28fr);
  gap:clamp(54px,7vw,108px);
  border-bottom:0;
}

.qe-result-page .phase1-result-head>div{
  max-width:610px;
  padding:64px 0 58px;
}

.qe-result-page .phase1-result-head h1,
.qe-paid-result-page .mm-paid-intro h1{
  font-family:var(--qe-display)!important;
  font-size:clamp(46px,4.6vw,68px)!important;
  font-weight:400!important;
  line-height:1.48!important;
  letter-spacing:.018em;
}

.qe-result-page #analysis-copy,
.qe-paid-result-page .mm-paid-intro>p:last-child{
  max-width:570px;
  margin-top:28px;
  color:var(--qe-ink-muted);
  font-family:var(--qe-result-reading)!important;
  font-size:15px!important;
  line-height:2!important;
  letter-spacing:.012em;
}

.qe-result-page .qe-result-source{
  background:var(--qe-paper-muted);
}

.qe-result-page .qe-result-source img{
  object-position:center 20%;
}

.qe-result-page .phase1-direction-grid{
  width:var(--qe-result-wide);
  max-width:none;
  min-height:760px;
  margin:34px auto 0;
  padding:0;
  border:0;
  border-top:1px solid var(--qe-rule);
  border-bottom:1px solid var(--qe-rule);
  display:grid;
  grid-template-columns:minmax(0,1.52fr) minmax(310px,.48fr);
  grid-template-rows:repeat(2,minmax(0,1fr));
  grid-auto-flow:row;
  gap:0;
  background:transparent;
}

.qe-result-page .phase1-direction-card{
  grid-column:2;
  min-width:0;
  min-height:0;
  margin:0;
  padding:42px 0 38px clamp(34px,4vw,58px);
  border:0;
  border-left:1px solid var(--qe-rule);
  background:transparent;
  box-shadow:none!important;
  display:grid;
  grid-template-rows:auto 46px;
  gap:26px;
  align-content:center;
  position:relative;
}

.qe-result-page .phase1-direction-card+.phase1-direction-card:not(.is-selected){
  border-top:1px solid var(--qe-rule);
}

.qe-result-page .phase1-direction-card::before{
  position:static;
  width:auto;
  height:auto;
  margin:0 0 18px;
  color:var(--qe-wine);
  font:400 38px/1 var(--qe-display);
}

.qe-result-page .phase1-direction-card[data-rank="1"]::before{content:"A"}
.qe-result-page .phase1-direction-card[data-rank="2"]::before{content:"B"}
.qe-result-page .phase1-direction-card[data-rank="3"]::before{content:"C"}

.qe-result-page .qe-direction-copy{
  min-width:0;
  padding:0;
}

.qe-result-page .qe-direction-copy>small{
  display:block;
  margin-bottom:8px;
  color:var(--qe-wine);
  font:600 12px/1.55 var(--qe-ui)!important;
  letter-spacing:.08em;
}

.qe-result-page .phase1-direction-card h2{
  margin:0 0 10px;
  font:400 clamp(25px,2.25vw,34px)/1.5 var(--qe-display)!important;
}

.qe-result-page .qe-direction-copy>strong{
  display:block;
  min-height:0;
  overflow:visible;
  color:var(--qe-ink);
  font:400 16px/1.75 var(--qe-result-reading)!important;
  -webkit-line-clamp:unset;
  -webkit-box-orient:initial;
}

.qe-result-page .qe-direction-copy>p{
  display:block;
  min-height:0;
  margin:13px 0 0;
  overflow:visible;
  color:var(--qe-ink-muted);
  font:400 13px/1.9 var(--qe-ui)!important;
  -webkit-line-clamp:unset;
  -webkit-box-orient:initial;
}

.qe-result-page .phase1-decision-note{
  margin-top:22px;
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
}

.qe-result-page .phase1-decision-note span{
  padding:0;
  border:0;
  background:transparent;
  color:var(--qe-ink-muted);
  font:400 13px/1.8 var(--qe-ui)!important;
}

.qe-result-page .phase1-decision-note b{
  display:block;
  margin:0 0 5px;
  color:var(--qe-wine);
  font:600 12px/1.5 var(--qe-ui)!important;
  letter-spacing:.07em;
}

.qe-result-page .qe-direction-visual{
  display:none;
}

.qe-result-page .phase1-direction-card>.mm-button{
  width:100%;
  min-height:46px;
  margin:0;
  padding:10px 0 8px;
  border:0!important;
  border-bottom:1px solid var(--qe-wine)!important;
  background:transparent!important;
  color:var(--qe-wine)!important;
  font:600 13px/1.5 var(--qe-ui)!important;
  text-align:left;
}

.qe-result-page .phase1-direction-card>.mm-button::after{
  content:"→";
  font:400 18px/1 var(--qe-result-reading);
}

.qe-result-page .phase1-direction-card.is-selected{
  grid-column:1;
  grid-row:1 / span 2;
  padding:0 clamp(46px,5vw,74px) 46px 0;
  border-left:0;
  border-top:0;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(210px,.62fr);
  grid-template-rows:minmax(430px,1fr) auto;
  grid-template-areas:
    "visual visual"
    "copy action";
  gap:36px clamp(36px,5vw,72px);
  align-content:stretch;
}

.qe-result-page .phase1-direction-card.is-selected::before{
  content:none;
}

.qe-result-page .phase1-direction-card.is-selected .qe-direction-visual{
  grid-area:visual;
  width:100%;
  height:clamp(430px,36vw,520px);
  margin:0;
  display:block;
  position:relative;
  overflow:hidden;
  background:var(--qe-paper-muted);
}

.qe-result-page .phase1-direction-card.is-selected .qe-direction-visual img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center 23%;
}

.qe-result-page .phase1-direction-card.is-selected .qe-direction-visual figcaption{
  right:18px;
  bottom:14px;
  color:#fff;
  font:600 12px/1.5 var(--qe-ui);
  letter-spacing:.08em;
}

.qe-result-page .phase1-direction-card.is-selected .qe-direction-copy{
  grid-area:copy;
}

.qe-result-page .phase1-direction-card.is-selected .qe-direction-copy>small{
  margin-bottom:12px;
}

.qe-result-page .phase1-direction-card.is-selected h2{
  margin-bottom:14px;
  font-size:clamp(34px,3.4vw,50px)!important;
}

.qe-result-page .phase1-direction-card.is-selected .qe-direction-copy>strong{
  font-size:18px!important;
  line-height:1.85!important;
}

.qe-result-page .phase1-direction-card.is-selected .qe-direction-copy>p{
  max-width:650px;
  margin-top:16px;
  font-family:var(--qe-result-reading)!important;
  font-size:15px!important;
  line-height:2!important;
}

.qe-result-page .phase1-direction-card.is-selected .phase1-decision-note{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:24px 34px;
}

.qe-result-page .phase1-direction-card.is-selected>.mm-button{
  grid-area:action;
  align-self:end;
}

.qe-result-page .phase1-free-result{
  margin-top:96px;
  padding:80px max(var(--qe-gutter),calc((100% - 1320px)/2));
  grid-template-columns:minmax(320px,.68fr) minmax(560px,1.32fr);
  gap:clamp(64px,8vw,124px);
  align-items:start;
  border-top:1px solid var(--qe-rule);
  border-bottom:1px solid var(--qe-rule);
  background-color:rgba(255,254,253,.56);
}

.qe-result-page .phase1-free-result>div:first-child h2{
  font:400 clamp(36px,3.7vw,54px)/1.58 var(--qe-display)!important;
}

.qe-result-page #preview-rationale{
  margin:24px 0 0;
  color:var(--qe-ink-muted);
  font:400 15px/2 var(--qe-result-reading)!important;
}

.qe-result-page .phase1-plan-a-spec{
  margin:40px 0 0;
  border:0;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:28px 34px;
}

.qe-result-page .phase1-plan-a-spec>div{
  min-width:0;
  padding:0;
  border:0;
  display:block;
}

.qe-result-page .phase1-plan-a-spec dt{
  margin-bottom:7px;
  color:var(--qe-wine);
  font:600 12px/1.5 var(--qe-ui)!important;
  letter-spacing:.08em;
}

.qe-result-page .phase1-plan-a-spec dd{
  margin:0;
  color:var(--qe-ink);
  font:400 15px/1.8 var(--qe-result-reading)!important;
}

.qe-result-page .mm-comparison-shell,
.qe-result-page .phase1-generation-gate{
  min-height:600px;
}

.qe-result-page .phase1-generation-gate{
  grid-template-columns:minmax(0,1.25fr) minmax(260px,.75fr);
}

.qe-result-page .qe-generation-source{
  min-height:600px;
}

.qe-result-page .phase1-generation-gate strong{
  font:400 24px/1.7 var(--qe-display)!important;
}

.qe-result-page .phase1-generation-gate .mm-status,
.qe-result-page .generation-consent{
  font-size:13px!important;
}

.qe-result-page .phase1-choice-reassurance,
.qe-result-page .phase1-entitlements,
.qe-result-page .phase1-evidence,
.qe-result-page>.mm-purchase-note{
  width:var(--qe-result-wide);
  max-width:none;
}

.qe-result-page .phase1-choice-reassurance{
  margin-top:72px;
  padding:28px 0;
  border-top:1px solid var(--qe-rule);
  border-bottom:0;
  font-size:14px!important;
}

.qe-result-page .phase1-entitlements{
  padding-top:38px;
  gap:clamp(42px,6vw,88px);
}

.qe-result-page .phase1-entitlements p,
.qe-result-page .phase1-summary li,
.qe-result-page .phase1-summary>p{
  font-size:13px!important;
}

.qe-result-page .phase1-entitlements b{
  margin-bottom:9px;
  font:400 20px/1.55 var(--qe-display);
}

.qe-result-page .phase1-evidence{
  margin-top:88px;
}

.qe-result-page .phase1-summary{
  padding-top:44px;
  padding-bottom:44px;
}

/* ---------------------------------------------------------------------
   Completed result: selected image is the stage, other directions are type. */

.qe-paid-result-page .mm-paid{
  width:var(--qe-result-wide);
  max-width:none;
  padding-top:84px;
}

.qe-paid-result-page .mm-paid-intro{
  max-width:880px;
  margin-bottom:68px;
}

.qe-paid-result-page .mm-top3{
  min-height:780px;
  border:0;
  border-top:1px solid var(--qe-rule);
  border-bottom:1px solid var(--qe-rule);
  display:grid;
  grid-template-columns:minmax(0,1.52fr) minmax(310px,.48fr);
  grid-template-rows:repeat(2,minmax(0,1fr));
  gap:0;
}

.qe-paid-result-page .mm-top3-card{
  grid-column:2;
  min-width:0;
  min-height:0;
  padding:48px 0 42px clamp(34px,4vw,58px);
  border:0;
  border-left:1px solid var(--qe-rule);
  border-radius:0;
  background:transparent;
  box-shadow:none!important;
  display:block;
  text-align:left;
}

.qe-paid-result-page .mm-top3-card+.mm-top3-card:not(.selected){
  border-top:1px solid var(--qe-rule);
}

.qe-paid-result-page .mm-top3-card img{
  display:none;
}

.qe-paid-result-page .mm-top3-meta{
  padding:0;
  display:block;
}

.qe-paid-result-page .mm-top3-meta small{
  color:var(--qe-wine);
  font:400 38px/1 var(--qe-display)!important;
}

.qe-paid-result-page .mm-top3-meta strong{
  margin-top:16px;
  font:400 clamp(26px,2.3vw,34px)/1.55 var(--qe-display)!important;
}

.qe-paid-result-page .mm-top3-meta em{
  margin-top:13px;
  color:var(--qe-ink-muted);
  font:400 14px/1.9 var(--qe-result-reading)!important;
}

.qe-paid-result-page .mm-top3-card.selected{
  grid-column:1;
  grid-row:1 / span 2;
  padding:0 clamp(46px,5vw,74px) 48px 0;
  border:0;
  display:grid;
  grid-template-rows:minmax(610px,1fr) auto;
  grid-template-areas:"image" "meta";
  gap:34px;
}

.qe-paid-result-page .mm-top3-card.selected img{
  grid-area:image;
  width:100%;
  height:clamp(610px,53vw,720px);
  display:block;
  object-fit:cover;
  object-position:center 20%;
  background:var(--qe-paper-muted);
}

.qe-paid-result-page .mm-top3-card.selected .mm-top3-meta{
  grid-area:meta;
  display:grid;
  grid-template-columns:84px minmax(220px,.62fr) minmax(0,1fr);
  gap:22px 32px;
  align-items:start;
}

.qe-paid-result-page .mm-top3-card.selected .mm-top3-meta strong,
.qe-paid-result-page .mm-top3-card.selected .mm-top3-meta em{
  margin-top:0;
}

.qe-paid-result-page .mm-top3-card.selected .mm-top3-meta strong{
  font-size:clamp(32px,3.2vw,46px)!important;
}

.qe-paid-result-page .mm-top3-card.selected .mm-top3-meta em{
  font-size:15px!important;
  line-height:2!important;
}

.qe-paid-result-page .phase1-tradeoff,
.qe-paid-result-page .mm-paid-detail,
.qe-paid-result-page .mm-order{
  margin-top:104px;
  padding-top:58px;
  border-top:1px solid var(--qe-rule);
}

.qe-paid-result-page .phase1-tradeoff h2,
.qe-paid-result-page .mm-paid-detail h2,
.qe-paid-result-page .mm-order h2{
  margin-bottom:30px;
  font:400 clamp(32px,3.4vw,48px)/1.55 var(--qe-display)!important;
}

.qe-paid-result-page .tradeoff-scroll-hint{
  display:none;
}

.qe-paid-result-page .phase1-tradeoff-table{
  margin-top:46px;
  border:0;
  overflow:visible;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:48px clamp(48px,7vw,104px);
}

.qe-paid-result-page .phase1-tradeoff-table .tradeoff-head{
  display:none;
}

.qe-paid-result-page .phase1-tradeoff-table .tradeoff-row{
  min-width:0;
  padding:0;
  border:0;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px 24px;
}

.qe-paid-result-page .phase1-tradeoff-table .tradeoff-row>strong{
  grid-column:1/-1;
  padding:0 0 13px;
  border:0;
  color:var(--qe-ink);
  font:400 21px/1.6 var(--qe-display)!important;
}

.qe-paid-result-page .phase1-tradeoff-table .tradeoff-row>span{
  min-width:0;
  padding:0;
  border:0;
  color:var(--qe-ink-muted);
  font:400 13px/1.8 var(--qe-ui)!important;
}

.qe-paid-result-page .phase1-tradeoff-table .tradeoff-row>span::before{
  display:block;
  margin-bottom:7px;
  color:var(--qe-wine);
  font:600 12px/1.5 var(--qe-ui);
  letter-spacing:.08em;
}

.qe-paid-result-page .phase1-tradeoff-table .tradeoff-row>span:nth-child(2)::before{content:"方向 A"}
.qe-paid-result-page .phase1-tradeoff-table .tradeoff-row>span:nth-child(3)::before{content:"方向 B"}
.qe-paid-result-page .phase1-tradeoff-table .tradeoff-row>span:nth-child(4)::before{content:"方向 C"}

.qe-paid-result-page .consultation-warning{
  max-width:820px;
  font-family:var(--qe-result-reading)!important;
  font-size:14px!important;
  line-height:1.95!important;
}

.qe-paid-result-page .mm-spec{
  margin-top:48px;
  border:0;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:38px clamp(42px,5vw,72px);
}

.qe-paid-result-page .mm-spec>div,
.qe-paid-result-page .mm-spec>div:nth-child(odd),
.qe-paid-result-page .mm-spec>div:nth-child(even){
  min-width:0;
  padding:0;
  border:0;
  display:block;
}

.qe-paid-result-page .mm-spec dt{
  margin-bottom:8px;
  color:var(--qe-wine);
  font:600 12px/1.5 var(--qe-ui)!important;
  letter-spacing:.08em;
}

.qe-paid-result-page .mm-spec dd{
  margin:0;
  color:var(--qe-ink);
  font:400 15px/1.85 var(--qe-result-reading)!important;
}

.qe-paid-result-page .mm-stylist-copy{
  margin-top:62px;
  padding:38px 0;
  border-top:1px solid var(--qe-wine);
  border-bottom:0;
  font:400 18px/2 var(--qe-display)!important;
}

.qe-paid-result-page .mm-stylist-copy b{
  margin-bottom:12px;
  font-size:12px!important;
}

/* ---------------------------------------------------------------------
   My results: a personal archive / journal, never an account ledger. */

.qe-my-results-page .mm-my-results{
  width:var(--qe-result-wide);
  max-width:none;
  margin:0 auto;
  padding:clamp(72px,8vw,116px) 0 var(--qe-section);
  display:block;
}

.qe-my-results-page .mm-my-results-head{
  max-width:none;
  display:grid;
  grid-template-columns:minmax(220px,.32fr) minmax(460px,.68fr);
  grid-template-areas:
    "title statement"
    ". intro";
  gap:18px clamp(58px,8vw,124px);
  align-items:start;
}

.qe-my-results-page .mm-my-results-head h1{
  grid-area:title;
  font:400 clamp(38px,4vw,58px)/1.45 var(--qe-display)!important;
}

.qe-my-results-page .mm-my-results-head .qe-my-results-statement{
  grid-area:statement;
  margin:0;
  white-space:normal;
  font:400 clamp(42px,4.6vw,68px)/1.58 var(--qe-display)!important;
}

.qe-my-results-page .mm-my-results-head>p:not(.qe-my-results-statement){
  grid-area:intro;
  max-width:620px;
  margin:10px 0 0;
  color:var(--qe-ink-muted);
  font:400 15px/2 var(--qe-result-reading)!important;
}

.qe-my-results-page .mm-my-results>.mm-status{
  margin:54px 0 0;
  padding:22px 0 0;
  border-top:1px solid var(--qe-rule);
  color:var(--qe-ink-muted);
  font:400 13px/1.8 var(--qe-ui)!important;
}

.qe-my-results-page .mm-results-auth-prompt{
  margin:22px 0 0;
  padding:24px 0;
  border-block:1px solid var(--qe-rule);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.qe-my-results-page .mm-results-auth-prompt p{margin:0;color:var(--qe-ink-muted);font-size:13px!important;line-height:1.8}
.qe-my-results-page .mm-results-auth-prompt a{min-height:44px;display:inline-flex;align-items:center;gap:24px;color:var(--qe-wine);font-weight:600;text-decoration:none;white-space:nowrap}

.qe-my-results-page .mm-my-results-grid{
  margin:72px 0 0;
  padding:0;
  border:0;
  border-top:1px solid var(--qe-rule);
  border-bottom:1px solid var(--qe-rule);
  background:transparent;
  display:block;
  counter-reset:qe-result-row;
}

.qe-my-results-page .mm-my-result-card{
  counter-increment:qe-result-row;
  min-height:0;
  margin:0;
  padding:68px 0 72px;
  border:0;
  background:transparent;
  display:grid;
  grid-template-columns:82px minmax(220px,.62fr) minmax(300px,1.12fr) minmax(190px,.46fr);
  grid-template-areas:
    "index kicker copy action"
    "index title details action"
    ". results results results";
  gap:12px clamp(30px,4vw,62px);
  align-items:start;
}

.qe-my-results-page .mm-my-result-card+.mm-my-result-card{
  border-top:1px solid var(--qe-rule);
}

.qe-my-results-page .mm-my-result-card::before{
  content:counter(qe-result-row,decimal-leading-zero);
  grid-area:index;
  color:var(--qe-wine);
  font:400 42px/1.2 var(--qe-display);
}

.qe-my-results-page .mm-my-result-card>.mm-kicker{
  grid-area:kicker;
  margin:7px 0 0;
  font-size:12px!important;
}

.qe-my-results-page .mm-my-result-card h2{
  grid-area:title;
  margin:0;
  font:400 clamp(30px,3.2vw,46px)/1.55 var(--qe-display)!important;
}

.qe-my-results-page .mm-my-result-copy{
  grid-area:copy;
  max-width:620px;
  margin:4px 0 0;
  color:var(--qe-ink-muted);
  font:400 15px/2 var(--qe-result-reading)!important;
}

.qe-my-results-page .mm-my-result-details{
  grid-area:details;
  margin:24px 0 0;
  display:grid;
  grid-template-columns:minmax(110px,.34fr) minmax(0,1fr);
  gap:12px 26px;
  color:var(--qe-ink-muted);
  font:400 13px/1.85 var(--qe-ui)!important;
}

.qe-my-results-page .mm-my-result-details dt{
  color:var(--qe-wine);
  font-weight:600;
  letter-spacing:.04em;
}

.qe-my-results-page .mm-my-result-details dd{
  margin:0;
}

.qe-my-results-page .mm-my-result-card>.mm-button,
.qe-my-results-page .mm-my-result-card>.mm-my-result-secondary{
  width:100%;
  min-height:48px;
  margin:0;
  padding:11px 0 8px;
  border:0!important;
  border-bottom:1px solid var(--qe-wine)!important;
  background:transparent!important;
  color:var(--qe-wine)!important;
  font:600 13px/1.5 var(--qe-ui)!important;
  text-decoration:none;
}

.qe-my-results-page .mm-my-result-card>.mm-button{
  grid-area:action;
}

.qe-my-results-page .mm-my-result-card>.mm-my-result-secondary{
  grid-area:action;
  align-self:end;
  margin-top:64px;
}

.qe-my-results-page #my-fringe-result:not(.has-fringe-visual){
  grid-template-columns:82px minmax(220px,.62fr) minmax(320px,1.12fr);
  grid-template-areas:
    "index kicker copy"
    "index title details"
    ". action action";
}

.qe-my-results-page #my-fringe-result.has-fringe-visual{
  padding:72px 0 84px;
  grid-template-columns:minmax(0,1.34fr) minmax(310px,.66fr);
  grid-template-areas:
    "visual kicker"
    "visual title"
    "visual copy"
    "visual details"
    "visual open"
    "visual compare"
    "visual download";
  grid-template-rows:auto auto auto auto 48px 48px 48px;
  gap:12px clamp(48px,7vw,104px);
  align-items:start;
}

.qe-my-results-page #my-fringe-result.has-fringe-visual::before{
  content:"01";
  grid-area:visual;
  justify-self:start;
  align-self:start;
  margin:24px;
  position:relative;
  z-index:2;
  color:#fff;
  text-shadow:0 1px 8px rgba(0,0,0,.36);
}

.qe-my-results-page #my-fringe-result.has-fringe-visual>.mm-kicker{grid-area:kicker}
.qe-my-results-page #my-fringe-result.has-fringe-visual h2{grid-area:title}
.qe-my-results-page #my-fringe-result.has-fringe-visual .mm-my-result-copy{grid-area:copy}
.qe-my-results-page #my-fringe-result.has-fringe-visual .mm-my-result-details{grid-area:details}

.qe-my-results-page .mm-fringe-result-visual{
  grid-area:visual;
  width:100%;
  height:100%;
  min-height:650px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:2px;
  background:var(--qe-paper-muted);
  overflow:hidden;
}

.qe-my-results-page .mm-fringe-result-visual figcaption{
  left:16px;
  bottom:14px;
  font:600 12px/1.5 var(--qe-ui);
}

.qe-my-results-page #my-fringe-result.has-fringe-visual>.mm-button{grid-area:open}
.qe-my-results-page #my-fringe-result.has-fringe-visual>[data-compare]{grid-area:compare}
.qe-my-results-page #my-fringe-result.has-fringe-visual>[data-fringe-download]{grid-area:download}

.qe-my-results-page #my-fringe-result.has-fringe-visual>:where(.mm-button,.mm-my-result-secondary){
  width:100%;
  min-height:48px;
  margin:0;
  padding:11px 0 8px;
  font-size:13px!important;
}

.qe-my-results-page .mm-account-results{
  grid-area:results;
  margin:52px 0 0;
  padding:42px 0 0;
  border-top:1px solid var(--qe-rule);
}

.qe-my-results-page .mm-account-result{
  margin:0;
  padding:22px 0 30px;
  border:0;
  background:transparent;
  display:grid;
  grid-template-columns:minmax(220px,.7fr) minmax(300px,1fr) auto;
  gap:16px 36px;
  align-items:start;
}

.qe-my-results-page .mm-account-result+.mm-account-result{
  margin-top:20px;
}

.qe-my-results-page .mm-account-result>strong{
  font:400 22px/1.6 var(--qe-display);
}

.qe-my-results-page .mm-account-result>span{
  color:var(--qe-ink-muted);
  font:400 13px/1.85 var(--qe-ui);
}

.qe-my-results-page .mm-account-result-actions{
  gap:14px 20px;
}

.qe-my-results-page .mm-fineprint{
  margin-top:34px;
  text-align:right;
  font-size:12px;
}

/* ---------------------------------------------------------------------
   Tablet: a full selected spread, with two editorial alternatives below. */

@media (min-width:701px) and (max-width:1100px){
  :where(.qe-result-page,.qe-paid-result-page,.qe-my-results-page){
    --qe-result-wide:calc(100% - 64px);
  }

  :is(.qe-result-page,.qe-paid-result-page,.qe-my-results-page) .mm-site-footer{
    grid-template-columns:1fr!important;
    gap:34px!important;
  }

  :is(.qe-result-page,.qe-paid-result-page,.qe-my-results-page) .mm-site-footer nav{
    justify-content:flex-start!important;
    flex-wrap:wrap!important;
    gap:14px 24px!important;
  }

  :is(.qe-result-page,.qe-paid-result-page,.qe-my-results-page) .mm-site-footer-legal span{
    width:100%!important;
    margin:8px 0 0!important;
  }

  .qe-result-page .phase1-result-head{
    width:var(--qe-result-wide);
    height:420px;
    grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
    gap:38px;
  }

  .qe-result-page .phase1-result-head h1,
  .qe-paid-result-page .mm-paid-intro h1{
    font-size:42px!important;
  }

  .qe-result-page #analysis-copy,
  .qe-paid-result-page .mm-paid-intro>p:last-child{
    font-size:14px!important;
  }

  .qe-result-page .phase1-direction-grid,
  .qe-paid-result-page .mm-top3{
    min-height:0;
    grid-template-columns:repeat(2,minmax(0,1fr));
    grid-template-rows:auto auto;
  }

  .qe-result-page .phase1-direction-card,
  .qe-paid-result-page .mm-top3-card{
    grid-column:auto;
    min-height:360px;
    padding:38px 28px 36px;
    border-top:1px solid var(--qe-rule);
    border-left:0;
  }

  .qe-result-page .phase1-direction-card:nth-child(3),
  .qe-paid-result-page .mm-top3-card:nth-child(3){
    border-left:1px solid var(--qe-rule);
  }

  .qe-result-page .phase1-direction-card.is-selected,
  .qe-paid-result-page .mm-top3-card.selected{
    grid-column:1/-1;
    grid-row:1;
    min-height:0;
    padding:0 0 48px;
    border:0;
  }

  .qe-result-page .phase1-direction-card.is-selected{
    grid-template-columns:minmax(0,1.12fr) minmax(300px,.88fr);
    grid-template-rows:minmax(430px,1fr) auto;
  }

  .qe-result-page .phase1-direction-card.is-selected .qe-direction-visual{
    height:480px;
  }

  .qe-paid-result-page .mm-top3-card.selected img{
    height:560px;
  }

  .qe-paid-result-page .mm-top3-card.selected .mm-top3-meta{
    grid-template-columns:72px minmax(180px,.7fr) minmax(0,1fr);
  }

  .qe-result-page .phase1-free-result{
    padding:64px 32px;
    grid-template-columns:minmax(260px,.78fr) minmax(400px,1.22fr);
    gap:42px;
  }

  .qe-result-page .phase1-plan-a-spec{
    grid-template-columns:1fr;
  }

  .qe-result-page .phase1-generation-gate{
    grid-template-columns:1fr;
  }

  .qe-result-page .qe-generation-source{
    height:460px;
    min-height:460px;
  }

  .qe-paid-result-page .phase1-tradeoff-table,
  .qe-paid-result-page .mm-spec{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .qe-my-results-page .mm-my-results-head{
    grid-template-columns:minmax(180px,.32fr) minmax(0,.68fr);
    gap:16px 54px;
  }

  .qe-my-results-page .mm-my-results-head .qe-my-results-statement{
    font-size:45px!important;
  }

  .qe-my-results-page .mm-my-result-card{
    grid-template-columns:64px minmax(190px,.58fr) minmax(0,1fr);
    grid-template-areas:
      "index kicker copy"
      "index title details"
      ". action action"
      ". results results";
  }

  .qe-my-results-page .mm-my-result-card>.mm-button{
    width:min(280px,100%);
    margin-top:18px;
  }

  .qe-my-results-page .mm-my-result-card>.mm-my-result-secondary{
    grid-area:action;
    width:min(280px,100%);
    justify-self:end;
    align-self:start;
    margin-top:18px;
  }

  .qe-my-results-page #my-fringe-result.has-fringe-visual{
    grid-template-columns:minmax(0,1.12fr) minmax(260px,.88fr);
    gap:12px 46px;
  }

  .qe-my-results-page .mm-fringe-result-visual{
    min-height:520px;
  }
}

/* ---------------------------------------------------------------------
   Mobile: each direction is a complete section; nothing becomes a thumb. */

@media (max-width:700px){
  :where(.qe-result-page,.qe-paid-result-page,.qe-my-results-page){
    --qe-result-wide:calc(100% - 40px);
  }

  .qe-result-page .phase1-result-head{
    width:100%;
    height:auto;
    padding:38px 20px 42px;
    display:block;
  }

  .qe-result-page .phase1-result-head h1,
  .qe-paid-result-page .mm-paid-intro h1{
    font-size:32px!important;
    line-height:1.55!important;
  }

  .qe-result-page #analysis-copy,
  .qe-paid-result-page .mm-paid-intro>p:last-child{
    display:block;
    margin-top:18px;
    overflow:visible;
    font-size:14px!important;
    line-height:1.95!important;
    -webkit-line-clamp:unset;
    -webkit-box-orient:initial;
  }

  .qe-result-page .phase1-direction-grid,
  .qe-paid-result-page .mm-top3{
    width:100%;
    min-height:0;
    margin-top:0;
    border-top:1px solid var(--qe-rule);
    border-bottom:1px solid var(--qe-rule);
    display:block;
  }

  .qe-result-page .phase1-direction-card,
  .qe-result-page .phase1-direction-card.is-selected{
    min-height:0;
    padding:42px 20px 48px;
    border:0;
    border-bottom:1px solid var(--qe-rule);
    display:flex;
    flex-direction:column;
    gap:0;
  }

  .qe-result-page .phase1-direction-card:last-child{
    border-bottom:0;
  }

  .qe-result-page .phase1-direction-card::before,
  .qe-result-page .phase1-direction-card.is-selected::before{
    content:attr(data-rank);
    order:-3;
    margin:0 0 18px;
    color:var(--qe-wine);
    font:400 38px/1 var(--qe-display);
  }

  .qe-result-page .phase1-direction-card[data-rank="1"]::before{content:"A"}
  .qe-result-page .phase1-direction-card[data-rank="2"]::before{content:"B"}
  .qe-result-page .phase1-direction-card[data-rank="3"]::before{content:"C"}

  .qe-result-page .qe-direction-visual,
  .qe-result-page .phase1-direction-card.is-selected .qe-direction-visual{
    order:-2;
    width:calc(100% + 40px);
    height:auto;
    aspect-ratio:4/5;
    margin:0 -20px 34px;
    display:block;
    position:relative;
    overflow:hidden;
  }

  .qe-result-page .qe-direction-visual img,
  .qe-result-page .phase1-direction-card.is-selected .qe-direction-visual img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    object-position:center 22%;
  }

  .qe-result-page .qe-direction-visual figcaption,
  .qe-result-page .phase1-direction-card.is-selected .qe-direction-visual figcaption{
    right:14px;
    bottom:12px;
    font-size:12px!important;
  }

  .qe-result-page .phase1-direction-card h2,
  .qe-result-page .phase1-direction-card.is-selected h2{
    font-size:30px!important;
  }

  .qe-result-page .qe-direction-copy>strong,
  .qe-result-page .phase1-direction-card.is-selected .qe-direction-copy>strong{
    font-size:16px!important;
    line-height:1.85!important;
  }

  .qe-result-page .qe-direction-copy>p,
  .qe-result-page .phase1-direction-card.is-selected .qe-direction-copy>p{
    display:block;
    margin-top:14px;
    overflow:visible;
    font-family:var(--qe-result-reading)!important;
    font-size:14px!important;
    line-height:1.95!important;
    -webkit-line-clamp:unset;
  }

  .qe-result-page .phase1-decision-note,
  .qe-result-page .phase1-direction-card.is-selected .phase1-decision-note{
    margin-top:25px;
    display:grid;
    grid-template-columns:1fr;
    gap:18px;
  }

  .qe-result-page .phase1-decision-note span{
    font-size:13px!important;
  }

  .qe-result-page .phase1-direction-card>.mm-button,
  .qe-result-page .phase1-direction-card.is-selected>.mm-button{
    width:100%;
    margin-top:28px;
  }

  .qe-result-page .phase1-free-result{
    margin-top:64px;
    padding:54px 20px 64px;
    display:block;
  }

  .qe-result-page .phase1-free-result>div:first-child h2{
    font-size:32px!important;
  }

  .qe-result-page #preview-rationale{
    font-size:14px!important;
    line-height:1.95!important;
  }

  .qe-result-page .phase1-plan-a-spec{
    margin:34px 0 42px;
    grid-template-columns:1fr;
    gap:24px;
  }

  .qe-result-page .phase1-plan-a-spec dd{
    font-size:14px!important;
  }

  .qe-result-page .mm-comparison-shell,
  .qe-result-page .phase1-generation-gate{
    min-height:0;
  }

  .qe-result-page .phase1-generation-gate{
    display:block;
  }

  .qe-result-page .qe-generation-source{
    width:calc(100% + 40px);
    height:auto;
    min-height:0;
    aspect-ratio:4/5;
    margin:0 -20px;
  }

  .qe-result-page .phase1-generation-gate>div{
    padding:34px 0 0;
  }

  .qe-result-page .phase1-choice-reassurance,
  .qe-result-page .phase1-entitlements,
  .qe-result-page .phase1-evidence,
  .qe-result-page>.mm-purchase-note{
    width:var(--qe-result-wide);
  }

  .qe-result-page .phase1-choice-reassurance{
    margin-top:54px;
    font-size:13px!important;
  }

  .qe-result-page .phase1-entitlements{
    display:block;
  }

  .qe-result-page .phase1-entitlements p{
    padding:18px 0;
    border:0;
  }

  .qe-result-page .phase1-evidence{
    margin-top:62px;
  }

  .qe-paid-result-page .mm-paid{
    width:var(--qe-result-wide);
    padding:48px 0 76px;
  }

  .qe-paid-result-page .mm-paid-intro{
    margin-bottom:42px;
  }

  .qe-paid-result-page .mm-top3-card,
  .qe-paid-result-page .mm-top3-card.selected{
    min-height:0;
    padding:0 0 48px;
    border:0;
    border-bottom:1px solid var(--qe-rule);
    display:flex;
    flex-direction:column;
  }

  .qe-paid-result-page .mm-top3-card+.mm-top3-card{
    padding-top:48px;
  }

  .qe-paid-result-page .mm-top3-card:last-child{
    border-bottom:0;
  }

  .qe-paid-result-page .mm-top3-card img,
  .qe-paid-result-page .mm-top3-card.selected img{
    order:-1;
    width:100%;
    height:auto;
    aspect-ratio:4/5;
    display:block;
    object-fit:cover;
    object-position:center 20%;
  }

  .qe-paid-result-page .mm-top3-meta,
  .qe-paid-result-page .mm-top3-card.selected .mm-top3-meta{
    padding:28px 0 0;
    display:block;
  }

  .qe-paid-result-page .mm-top3-meta small{
    font-size:38px!important;
  }

  .qe-paid-result-page .mm-top3-meta strong,
  .qe-paid-result-page .mm-top3-card.selected .mm-top3-meta strong{
    margin-top:14px;
    font-size:30px!important;
  }

  .qe-paid-result-page .mm-top3-meta em,
  .qe-paid-result-page .mm-top3-card.selected .mm-top3-meta em{
    margin-top:13px;
    font-size:14px!important;
    line-height:1.95!important;
  }

  .qe-paid-result-page .phase1-tradeoff,
  .qe-paid-result-page .mm-paid-detail,
  .qe-paid-result-page .mm-order{
    margin-top:72px;
    padding-top:42px;
  }

  .qe-paid-result-page .phase1-tradeoff h2,
  .qe-paid-result-page .mm-paid-detail h2,
  .qe-paid-result-page .mm-order h2{
    font-size:30px!important;
  }

  .qe-paid-result-page .phase1-tradeoff-table{
    display:block;
    margin-top:38px;
    overflow:visible;
  }

  .qe-paid-result-page .phase1-tradeoff-table .tradeoff-row{
    width:100%;
    min-width:0;
    margin:0 0 42px;
    display:block;
  }

  .qe-paid-result-page .phase1-tradeoff-table .tradeoff-row>strong,
  .qe-paid-result-page .phase1-tradeoff-table .tradeoff-row>span{
    width:100%;
    min-width:0;
    display:block;
    padding:0;
    border:0;
    font-size:13px!important;
    line-height:1.85!important;
  }

  .qe-paid-result-page .phase1-tradeoff-table .tradeoff-row>strong{
    margin-bottom:18px;
    font-size:20px!important;
  }

  .qe-paid-result-page .phase1-tradeoff-table .tradeoff-row>span+span{
    margin-top:16px;
  }

  .qe-paid-result-page .mm-spec{
    grid-template-columns:1fr;
    gap:28px;
  }

  .qe-paid-result-page .mm-spec dd{
    font-size:14px!important;
  }

  .qe-paid-result-page .mm-stylist-copy{
    margin-top:48px;
    font-size:17px!important;
  }

  .qe-my-results-page .mm-my-results{
    width:var(--qe-result-wide);
    padding:44px 0 74px;
  }

  .qe-my-results-page .mm-my-results-head{
    display:block;
  }

  .qe-my-results-page .mm-my-results-head h1{
    font-size:30px!important;
  }

  .qe-my-results-page .mm-my-results-head .qe-my-results-statement{
    margin-top:18px;
    font-size:34px!important;
    line-height:1.62!important;
  }

  .qe-my-results-page .mm-my-results-head>p:not(.qe-my-results-statement){
    margin-top:18px;
    font-size:14px!important;
    line-height:1.95!important;
  }

  .qe-my-results-page .mm-my-results>.mm-status{
    margin-top:36px;
    padding-top:18px;
    font-size:13px!important;
  }

  .qe-my-results-page .mm-results-auth-prompt{display:grid;gap:12px;padding:20px 0}
  .qe-my-results-page .mm-results-auth-prompt a{justify-content:space-between;white-space:normal}

  .qe-my-results-page .mm-my-results-grid{
    margin-top:48px;
  }

  .qe-my-results-page .mm-my-result-card,
  .qe-my-results-page #my-fringe-result:not(.has-fringe-visual){
    padding:46px 0 52px;
    display:grid;
    grid-template-columns:50px minmax(0,1fr);
    grid-template-areas:
      "index kicker"
      "index title"
      "copy copy"
      "details details"
      "action action"
      "results results";
    gap:8px 14px;
  }

  .qe-my-results-page .mm-my-result-card::before{
    font-size:30px;
  }

  .qe-my-results-page .mm-my-result-card h2{
    min-width:0;
    font-size:28px!important;
    word-break:normal;
    overflow-wrap:anywhere;
  }

  .qe-my-results-page .mm-my-result-copy{
    margin-top:18px;
    font-size:14px!important;
    line-height:1.95!important;
  }

  .qe-my-results-page .mm-my-result-details{
    margin-top:20px;
    grid-template-columns:100px minmax(0,1fr);
    font-size:13px!important;
  }

  .qe-my-results-page .mm-my-result-card>.mm-button,
  .qe-my-results-page .mm-my-result-card>.mm-my-result-secondary{
    grid-area:action;
    width:100%;
    margin-top:26px;
  }

  .qe-my-results-page .mm-my-result-card>.mm-my-result-secondary{
    justify-self:stretch;
    align-self:start;
    margin-top:84px;
  }

  .qe-my-results-page #my-fringe-result.has-fringe-visual{
    padding:46px 0 58px;
    display:grid;
    grid-template-columns:50px minmax(0,1fr);
    grid-template-areas:
      "index kicker"
      "index title"
      "copy copy"
      "visual visual"
      "details details"
      "open open"
      "compare compare"
      "download download";
    grid-template-rows:auto;
    gap:8px 14px;
  }

  .qe-my-results-page #my-fringe-result.has-fringe-visual::before{
    grid-area:index;
    margin:0;
    color:var(--qe-wine);
    text-shadow:none;
  }

  .qe-my-results-page #my-fringe-result.has-fringe-visual>.mm-kicker{grid-area:kicker}
  .qe-my-results-page #my-fringe-result.has-fringe-visual h2{grid-area:title}
  .qe-my-results-page #my-fringe-result.has-fringe-visual .mm-my-result-copy{grid-area:copy}
  .qe-my-results-page #my-fringe-result.has-fringe-visual .mm-my-result-details{grid-area:details}

  .qe-my-results-page .mm-fringe-result-visual{
    margin:28px 0 12px;
    height:auto;
    min-height:0;
    aspect-ratio:1/1.18;
  }

  .qe-my-results-page #my-fringe-result.has-fringe-visual>:where(.mm-button,.mm-my-result-secondary){
    margin-top:0;
  }

  .qe-my-results-page .mm-account-results{
    margin-top:40px;
    padding-top:34px;
  }

  .qe-my-results-page .mm-account-result{
    display:block;
  }

  .qe-my-results-page .mm-account-result>span{
    display:block;
    margin-top:8px;
  }

  .qe-my-results-page .mm-account-result-actions{
    margin-top:20px;
    justify-content:flex-start;
  }

  .qe-my-results-page .mm-fineprint{
    margin-top:28px;
    text-align:left;
  }
}

@media print{
  .qe-paid-result-page .mm-top3{
    min-height:0;
    display:grid;
    grid-template-columns:repeat(3,1fr);
  }

  .qe-paid-result-page .mm-top3-card,
  .qe-paid-result-page .mm-top3-card.selected{
    grid-column:auto;
    grid-row:auto;
    padding:0 10px 20px;
    border:0;
    display:block;
  }

  .qe-paid-result-page .mm-top3-card img,
  .qe-paid-result-page .mm-top3-card.selected img{
    display:block;
    width:100%;
    height:auto;
    aspect-ratio:4/5;
  }
}

/* Core-flow P1: show all three decisions before the personalised preview. */

@media(min-width:1101px){
  .qe-result-page .phase1-result-head{height:300px;grid-template-columns:minmax(360px,.78fr) minmax(520px,1.22fr);gap:clamp(42px,5vw,76px)}
  .qe-result-page .phase1-result-head>div{padding:34px 0 28px}
  .qe-result-page .phase1-result-head h1{font-size:clamp(40px,3.7vw,54px)!important;line-height:1.4!important}
  .qe-result-page #analysis-copy{margin-top:16px;font-size:13px!important;line-height:1.78!important}
  .qe-result-page .qe-result-source img{object-position:center 18%}
  .qe-result-page .phase1-direction-grid{min-height:0;height:252px;margin-top:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:1fr}
  .qe-result-page .phase1-direction-card,
  .qe-result-page .phase1-direction-card.is-selected{
    grid-column:auto;grid-row:auto;min-height:0;padding:24px clamp(18px,2.2vw,34px);border:0;border-left:1px solid var(--qe-rule);
    display:grid;grid-template-columns:38px minmax(0,1fr) 116px;grid-template-rows:auto 44px;grid-template-areas:"letter copy visual" "letter action visual";
    gap:8px 18px;align-content:center;background:transparent;
  }
  .qe-result-page .phase1-direction-card:first-child{border-left:0}
  .qe-result-page .phase1-direction-card+.phase1-direction-card:not(.is-selected){border-top:0}
  .qe-result-page .phase1-direction-card.is-selected{box-shadow:inset 0 -2px var(--qe-wine)!important}
  .qe-result-page .phase1-direction-card::before,
  .qe-result-page .phase1-direction-card.is-selected::before{grid-area:letter;display:block;margin:2px 0 0;color:var(--qe-wine);font-size:32px}
  .qe-result-page .phase1-direction-card.is-selected[data-rank="1"]::before{content:"A"}
  .qe-result-page .phase1-direction-card.is-selected[data-rank="2"]::before{content:"B"}
  .qe-result-page .phase1-direction-card.is-selected[data-rank="3"]::before{content:"C"}
  .qe-result-page .qe-direction-copy,
  .qe-result-page .phase1-direction-card.is-selected .qe-direction-copy{grid-area:copy}
  .qe-result-page .qe-direction-copy>small,
  .qe-result-page .phase1-direction-card.is-selected .qe-direction-copy>small{display:none}
  .qe-result-page .phase1-direction-card h2,
  .qe-result-page .phase1-direction-card.is-selected h2{margin:0 0 6px;font-size:24px!important;line-height:1.4!important}
  .qe-result-page .qe-direction-copy>strong,
  .qe-result-page .phase1-direction-card.is-selected .qe-direction-copy>strong{font-size:13px!important;line-height:1.65!important}
  .qe-result-page .qe-direction-copy>p,
  .qe-result-page .phase1-direction-card.is-selected .qe-direction-copy>p,
  .qe-result-page .phase1-decision-note,
  .qe-result-page .phase1-direction-card.is-selected .phase1-decision-note{display:none}
  .qe-result-page .qe-direction-visual,
  .qe-result-page .phase1-direction-card.is-selected .qe-direction-visual{grid-area:visual;width:116px;height:154px;margin:0;display:block;overflow:hidden;background:var(--qe-paper-muted)}
  .qe-result-page .qe-direction-visual img,
  .qe-result-page .phase1-direction-card.is-selected .qe-direction-visual img{width:100%;height:100%;object-fit:cover;object-position:center 22%}
  .qe-result-page .qe-direction-visual figcaption,
  .qe-result-page .phase1-direction-card.is-selected .qe-direction-visual figcaption{display:none}
  .qe-result-page .phase1-direction-card>.mm-button,
  .qe-result-page .phase1-direction-card.is-selected>.mm-button{grid-area:action;width:min(150px,100%);min-height:44px;margin:0;align-self:end}
  .qe-result-page .phase1-free-result{margin-top:44px}
}

@media(min-width:701px) and (max-width:1100px){
  .qe-result-page .phase1-result-head{height:300px}
  .qe-result-page .phase1-result-head>div{padding:28px 0}
  .qe-result-page .phase1-result-head h1{font-size:36px!important}
  .qe-result-page #analysis-copy{margin-top:14px;font-size:13px!important;line-height:1.75!important}
  .qe-result-page .phase1-direction-grid{min-height:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:1fr}
  .qe-result-page .phase1-direction-card,
  .qe-result-page .phase1-direction-card.is-selected{grid-column:auto;grid-row:auto;min-height:250px;padding:24px 20px;border:0;border-left:1px solid var(--qe-rule);display:flex;flex-direction:column;gap:0}
  .qe-result-page .phase1-direction-card:first-child{border-left:0}
  .qe-result-page .phase1-direction-card.is-selected{box-shadow:inset 0 -2px var(--qe-wine)!important}
  .qe-result-page .phase1-direction-card::before,
  .qe-result-page .phase1-direction-card.is-selected::before{display:block;order:-3;margin:0 0 10px;font-size:30px}
  .qe-result-page .phase1-direction-card.is-selected[data-rank="1"]::before{content:"A"}
  .qe-result-page .phase1-direction-card.is-selected[data-rank="2"]::before{content:"B"}
  .qe-result-page .phase1-direction-card.is-selected[data-rank="3"]::before{content:"C"}
  .qe-result-page .qe-direction-visual,
  .qe-result-page .phase1-direction-card.is-selected .qe-direction-visual{display:none}
  .qe-result-page .qe-direction-copy>small,
  .qe-result-page .phase1-direction-card.is-selected .qe-direction-copy>small{display:none}
  .qe-result-page .phase1-direction-card h2,
  .qe-result-page .phase1-direction-card.is-selected h2{font-size:23px!important}
  .qe-result-page .qe-direction-copy>p,
  .qe-result-page .phase1-direction-card.is-selected .qe-direction-copy>p,
  .qe-result-page .phase1-decision-note,
  .qe-result-page .phase1-direction-card.is-selected .phase1-decision-note{display:none}
  .qe-result-page .qe-direction-copy>strong,
  .qe-result-page .phase1-direction-card.is-selected .qe-direction-copy>strong{font-size:13px!important;line-height:1.7!important}
  .qe-result-page .phase1-direction-card>.mm-button,
  .qe-result-page .phase1-direction-card.is-selected>.mm-button{width:100%;min-height:44px;margin-top:auto}
  .qe-result-page .phase1-free-result{margin-top:44px}
}

@media(max-width:700px){
  .qe-result-page .phase1-result-head{min-height:0;padding:24px 20px 22px}
  .qe-result-page .phase1-result-head>div{padding:0}
  .qe-result-page .phase1-result-head h1{font-size:28px!important;line-height:1.42!important}
  .qe-result-page #analysis-copy{margin-top:10px;font-size:12px!important;line-height:1.7!important}
  .qe-result-page .qe-result-source{display:none}
  .qe-result-page .phase1-direction-grid{display:block}
  .qe-result-page .phase1-direction-card,
  .qe-result-page .phase1-direction-card.is-selected{
    min-height:0;height:150px;padding:14px 20px;border:0;border-bottom:1px solid var(--qe-rule);display:grid;
    grid-template-columns:30px minmax(0,1fr) 96px;grid-template-rows:1fr 40px;grid-template-areas:"letter copy visual" "letter action visual";gap:4px 12px;align-items:center;
  }
  .qe-result-page .phase1-direction-card:last-child{border-bottom:0}
  .qe-result-page .phase1-direction-card.is-selected{box-shadow:inset 3px 0 var(--qe-wine)!important}
  .qe-result-page .phase1-direction-card::before,
  .qe-result-page .phase1-direction-card.is-selected::before{grid-area:letter;order:initial;align-self:start;margin:4px 0 0;font-size:28px}
  .qe-result-page .phase1-direction-card.is-selected[data-rank="1"]::before{content:"A"}
  .qe-result-page .phase1-direction-card.is-selected[data-rank="2"]::before{content:"B"}
  .qe-result-page .phase1-direction-card.is-selected[data-rank="3"]::before{content:"C"}
  .qe-result-page .qe-direction-copy,
  .qe-result-page .phase1-direction-card.is-selected .qe-direction-copy{grid-area:copy;align-self:start}
  .qe-result-page .qe-direction-copy>small,
  .qe-result-page .phase1-direction-card.is-selected .qe-direction-copy>small{display:none}
  .qe-result-page .phase1-direction-card h2,
  .qe-result-page .phase1-direction-card.is-selected h2{margin:0 0 3px;font-size:20px!important;line-height:1.35!important}
  .qe-result-page .qe-direction-copy>strong,
  .qe-result-page .phase1-direction-card.is-selected .qe-direction-copy>strong{font-size:12px!important;line-height:1.55!important}
  .qe-result-page .qe-direction-copy>p,
  .qe-result-page .phase1-direction-card.is-selected .qe-direction-copy>p,
  .qe-result-page .phase1-decision-note,
  .qe-result-page .phase1-direction-card.is-selected .phase1-decision-note{display:none}
  .qe-result-page .qe-direction-visual,
  .qe-result-page .phase1-direction-card.is-selected .qe-direction-visual{grid-area:visual;order:initial;width:96px;height:120px;aspect-ratio:auto;margin:0;display:block}
  .qe-result-page .qe-direction-visual figcaption,
  .qe-result-page .phase1-direction-card.is-selected .qe-direction-visual figcaption{display:none}
  .qe-result-page .phase1-direction-card>.mm-button,
  .qe-result-page .phase1-direction-card.is-selected>.mm-button{grid-area:action;width:100%;min-height:40px;margin:0;padding:7px 0;align-self:end;font-size:12px!important}
  .qe-result-page .phase1-free-result{margin-top:34px}
}
