/* EQUINOCCIO · home as a portal (stage 08b). Home only, loaded after ui.css.
   Selectors start with .coe-prose .coe-pt to beat .coe-prose a / ul > li / img / table of the skin.
   Six hubs, six compositions: front page, payment table, stamps, bento, timeline, phone. */
.coe-prose .coe-pt{clear:both;margin:30px 0 40px;max-width:100%}
.coe-prose .coe-pt-kicker{display:flex;align-items:center;gap:12px;margin:0 0 16px;font:700 14px/1.2 var(--label);
  letter-spacing:.12em;text-transform:uppercase;color:var(--pacific-deep)}
.coe-prose .coe-pt-kicker::before{content:"";flex:none;width:14px;height:14px;background:var(--sun);border:2px solid var(--ink)}
.coe-prose .coe-pt-kicker::after{content:"";flex:1;border-top:1px dashed var(--rule)}
.coe-prose .coe-pt ul,.coe-prose .coe-pt ol{margin:0;padding:0;list-style:none}
.coe-prose .coe-pt ul > li,.coe-prose .coe-pt ol > li{margin:0;padding:0}
.coe-prose .coe-pt ul > li::before,.coe-prose .coe-pt ol > li::before{content:none}
.coe-prose .coe-pt a{color:var(--ink);text-decoration:none}
.coe-prose .coe-pt img{display:block;margin:0;max-width:100%;height:auto;border:0;border-radius:0;box-shadow:none}
.coe-prose .coe-pt b{display:block}
.coe-pt .coe-pt-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.coe-prose a.coe-pt-more{display:inline-flex;align-items:center;gap:8px;margin-top:16px;padding:9px 16px;
  font:700 15px/1.2 var(--ui);color:var(--ink);background:var(--sun);border:2px solid var(--ink);text-decoration:none}
.coe-prose a.coe-pt-more:hover{background:var(--ink);color:var(--sun)}
.coe-pt-arrow{width:16px;height:16px;flex:none;color:currentColor}

/* theme tile: glyph + figure from the destination page (no photo on topic) */
.coe-pt-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:100%;height:100%;
  padding:10px;text-align:center;color:#fff;background:var(--pacific)}
.coe-pt-tile.is-sun{background:var(--sun);color:var(--ink)}
.coe-pt-tile.is-flame{background:var(--flame)}
.coe-pt-tile.is-leaf{background:var(--leaf)}
.coe-pt-tile.is-ink{background:var(--ink)}
.coe-pt-tile.is-felt{background:radial-gradient(circle at 50% 40%,#2B7A55,#145236)}
.coe-pt-tile-ico{width:30px;height:30px;color:currentColor;opacity:.9}
.coe-pt-tile em{font:700 26px/1.05 var(--display);font-style:normal}
.coe-pt-tile small{font:600 12px/1.2 var(--label);letter-spacing:.06em;text-transform:uppercase;opacity:.9}

/* 1 · front page: lead story with photo + four briefs in a column */
.coe-pt-front-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:0 24px;
  border-top:4px double var(--ink);border-bottom:1px solid var(--ink);padding:16px 0}
.coe-prose a.coe-pt-front-lead{display:block;padding-right:24px;border-right:1px solid var(--rule)}
.coe-pt-front-img{display:block;aspect-ratio:4/3;overflow:hidden;background:var(--ink)}
.coe-prose .coe-pt-front-img img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.coe-pt-front-lead:hover img{transform:scale(1.03)}
.coe-pt-front-tag{display:inline-block;margin:14px 0 6px;padding:3px 8px;background:var(--flame);color:#fff;
  font:700 12px/1.2 var(--label);letter-spacing:.1em;text-transform:uppercase}
.coe-prose .coe-pt-front-lead b{font:700 28px/1.15 var(--display)}
.coe-pt-front-lead:hover b{color:var(--pacific)}
.coe-pt-front-dek{display:block;margin-top:8px;font:400 16px/1.5 var(--copy);color:var(--muted)}
.coe-pt-front-grid ul{display:flex;flex-direction:column}
.coe-pt-front-grid li + li{border-top:1px solid var(--rule)}
.coe-prose a.coe-pt-front-brief{display:grid;grid-template-columns:96px minmax(0,1fr);gap:14px;align-items:center;padding:12px 0}
.coe-pt-front-brief .coe-pt-tile{height:96px;padding:6px}
.coe-pt-front-brief .coe-pt-tile-ico{width:22px;height:22px}
.coe-pt-front-brief .coe-pt-tile em{font-size:21px}
.coe-pt-front-brief .coe-pt-tile small{font-size:10.5px}
.coe-prose .coe-pt-front-brief b{font:700 18px/1.25 var(--display)}
.coe-pt-front-brief:hover b{color:var(--pacific)}
.coe-pt-front-brief b + span{display:block;margin-top:4px;font:500 14px/1.4 var(--ui);color:var(--muted)}

/* 2 · payments: comparison table with logos, ruled like a markets page */
.coe-pt-pay-frame{overflow-x:auto;border:1px solid var(--rule);background:var(--paper)}
.coe-prose .coe-pt-pay table{width:100%;margin:0;border:0;border-collapse:collapse;font:400 15px/1.45 var(--copy)}
.coe-prose .coe-pt-pay th{padding:10px 14px;background:var(--pacific-deep);color:#fff;text-align:left;
  font:700 13px/1.2 var(--label);letter-spacing:.08em;text-transform:uppercase}
.coe-prose .coe-pt-pay td{padding:10px 14px;vertical-align:middle;border-top:1px dotted var(--rule)}
.coe-prose .coe-pt-pay tbody tr:nth-child(odd) td{background:#FBFAF6}
.coe-prose .coe-pt-pay tbody tr:hover td{background:var(--sun-mist)}
.coe-prose .coe-pt-pay td.coe-pt-pay-logo{width:132px;padding:6px 12px}
.coe-pt-pay-logo img{width:112px;height:56px;object-fit:contain}
.coe-pt-pay-logo .coe-pt-tile{width:112px;height:56px;flex-direction:row;gap:6px;padding:4px 8px}
.coe-pt-pay-logo .coe-pt-tile-ico{width:20px;height:20px}
.coe-pt-pay-logo .coe-pt-tile em{font-size:18px}
.coe-pt-pay-logo .coe-pt-tile small{font-size:10.5px}
.coe-prose a.coe-pt-pay-a{display:block;font:700 16.5px/1.3 var(--display);color:var(--ink)}
.coe-prose a.coe-pt-pay-a:hover{color:var(--pacific);text-decoration:underline}
.coe-pt-pay-kind{display:block;font:600 12.5px/1.3 var(--label);letter-spacing:.05em;text-transform:uppercase;color:var(--sun-text)}

/* 3 · bonuses: stamps with a perforated edge */
.coe-pt-bonus ul{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.coe-prose a.coe-pt-stamp{position:relative;display:flex;flex-direction:column;height:100%;padding:14px 14px 16px;
  background:var(--paper);border:2px dashed var(--ink);outline:6px solid var(--paper);
  box-shadow:0 0 0 7px var(--rule-soft);transition:transform .15s}
.coe-prose a.coe-pt-stamp:hover{transform:rotate(-1.5deg)}
.coe-pt-stamp-top{display:flex;justify-content:flex-end;height:24px;margin:-14px -14px 10px;padding:4px 8px;background:var(--pacific)}
.coe-pt-stamp.is-sun .coe-pt-stamp-top{background:var(--sun)}
.coe-pt-stamp.is-flame .coe-pt-stamp-top{background:var(--flame)}
.coe-pt-stamp.is-ink .coe-pt-stamp-top{background:var(--ink)}
.coe-pt-stamp-ico{width:16px;height:16px;color:#fff}
.coe-pt-stamp.is-sun .coe-pt-stamp-ico{color:var(--ink)}
.coe-pt-stamp-val{display:flex;flex-direction:column;justify-content:center;min-height:78px}
.coe-pt-stamp-val em{font:700 38px/1 var(--display);font-style:normal;color:var(--pacific-deep)}
.coe-pt-stamp.is-flame .coe-pt-stamp-val em{color:var(--flame)}
.coe-pt-stamp-val small{margin-top:4px;font:600 12px/1.25 var(--label);letter-spacing:.06em;text-transform:uppercase;color:var(--sun-text)}
.coe-pt-stamp-big{width:52px;height:52px;color:var(--pacific)}
.coe-pt-stamp.is-ink .coe-pt-stamp-big{color:var(--ink)}
.coe-prose .coe-pt-stamp b{margin-top:8px;padding-top:10px;border-top:1px solid var(--rule);font:700 18px/1.25 var(--display)}
.coe-pt-stamp-txt{margin-top:4px;font:500 14px/1.4 var(--ui);color:var(--muted)}

/* 4 · games: bento mosaic, caption below the frame */
.coe-pt-bento ul{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.coe-pt-bento li:first-child{grid-column:span 2;grid-row:span 2}
.coe-prose a.coe-pt-bento-a{display:flex;flex-direction:column;height:100%;background:var(--paper);border:1px solid var(--rule)}
.coe-prose a.coe-pt-bento-a:hover{border-color:var(--ink)}
.coe-pt-bento-img{display:block;flex:1;min-height:0;aspect-ratio:4/3;overflow:hidden;background:var(--ink)}
.coe-pt-bento li:first-child .coe-pt-bento-img{aspect-ratio:auto}
/* 8 cards = 2x2 lead + 7: the last one spans two columns so no row is left with a hole (4 and 2 columns alike) */
.coe-pt-bento li:last-child:nth-child(8){grid-column:span 2}
.coe-pt-bento li:last-child:nth-child(8) .coe-pt-bento-img{aspect-ratio:8/3}
.coe-prose .coe-pt-bento-img img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.coe-pt-bento-a:hover img{transform:scale(1.04)}
.coe-pt-bento-cap{display:block;padding:10px 12px 12px;border-top:4px solid var(--sun)}
.coe-prose .coe-pt-bento-cap b{font:700 18px/1.2 var(--display)}
.coe-pt-bento li:first-child .coe-pt-bento-cap b{font-size:24px}
.coe-pt-bento-cap span{display:block;margin-top:3px;font:500 13.5px/1.4 var(--ui);color:var(--muted)}

/* 5 · studios: timeline by founding year */
.coe-prose .coe-pt-line ol{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;padding-top:26px}
.coe-pt-line ol::before{content:"";position:absolute;left:0;right:0;top:44px;height:4px;
  background:repeating-linear-gradient(90deg,var(--ink) 0 18px,transparent 18px 26px)}
.coe-prose a.coe-pt-line-a{position:relative;display:flex;flex-direction:column;align-items:flex-start;height:100%}
.coe-pt-line-year{position:relative;z-index:1;padding:4px 12px;margin-bottom:16px;background:var(--sun);border:2px solid var(--ink);
  font:700 22px/1 var(--display)}
.coe-pt-line-logo{display:grid;place-items:center;width:100%;height:92px;margin-bottom:12px;background:var(--paper);
  border:1px solid var(--rule);border-top:3px solid var(--pacific)}
.coe-prose .coe-pt-line-logo img{width:auto;max-width:72%;max-height:64px;object-fit:contain}
.coe-prose .coe-pt-line-a b{font:700 18px/1.25 var(--display)}
.coe-pt-line-a:hover b{color:var(--pacific)}
.coe-pt-line-txt{margin-top:4px;font:500 14px/1.45 var(--ui);color:var(--muted)}

/* 6 · mobile: one phone frame with app rows + a side note */
.coe-pt-phone-grid{display:grid;grid-template-columns:minmax(0,360px) minmax(0,1fr);gap:28px;align-items:center}
.coe-pt-phone-dev{padding:10px 12px 18px;background:var(--ink);border-radius:34px;box-shadow:0 12px 30px rgba(19,35,63,.22)}
.coe-pt-phone-bar{display:flex;justify-content:center;padding:4px 0 10px}
.coe-pt-phone-bar i{width:70px;height:6px;border-radius:3px;background:#3A4A66}
.coe-prose .coe-pt-phone-app{display:flex;align-items:center;gap:8px;margin:0;padding:10px 14px;border-radius:18px 18px 0 0;
  background:var(--sun);font:700 15px/1.2 var(--label);letter-spacing:.06em;text-transform:uppercase;color:var(--ink)}
.coe-pt-phone-ico{width:18px;height:18px;color:var(--ink)}
.coe-pt-phone-dev ul{background:var(--canvas);border-radius:0 0 18px 18px;padding:6px 10px 10px}
.coe-pt-phone-dev li + li{border-top:1px solid var(--rule)}
.coe-prose a.coe-pt-phone-a{display:grid;grid-template-columns:84px minmax(0,1fr);gap:12px;align-items:center;padding:10px 2px}
.coe-pt-phone-img{display:block;width:84px;height:84px;overflow:hidden;border-radius:16px;background:var(--ink)}
.coe-prose .coe-pt-phone-img img{width:100%;height:100%;object-fit:cover}
.coe-pt-phone-img .coe-pt-tile{padding:4px}
.coe-pt-phone-img .coe-pt-tile-ico{width:18px;height:18px}
.coe-pt-phone-img .coe-pt-tile em{font-size:15px}
.coe-pt-phone-img .coe-pt-tile small{font-size:9.5px}
.coe-prose .coe-pt-phone-a b{font:700 16.5px/1.25 var(--display)}
.coe-pt-phone-a:hover b{color:var(--pacific)}
.coe-pt-phone-a b + span{display:block;margin-top:3px;font:500 13px/1.4 var(--ui);color:var(--muted)}
.coe-prose .coe-pt-phone-os{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.coe-pt-phone-os span{padding:5px 12px;border:2px solid var(--ink);font:700 13px/1.2 var(--label);letter-spacing:.08em;text-transform:uppercase}
.coe-pt-phone-os span:first-child{background:var(--sun)}
.coe-prose .coe-pt-phone-side p + p{margin:0;font:400 17px/1.55 var(--display);color:var(--ink)}

/* 7 · beyond Ecuador + the newsroom: two ruled columns, round medallions instead of tiles */
.coe-pt-dir-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0;border:1px solid var(--ink);background:var(--paper)}
.coe-pt-dir-col{padding:16px 20px 8px}
.coe-pt-dir-col + .coe-pt-dir-col{border-left:1px solid var(--ink);background:var(--pacific-mist)}
.coe-prose .coe-pt-dir-h{margin:0 0 6px;padding-bottom:8px;border-bottom:3px solid var(--sun);
  font:700 19px/1.2 var(--display);color:var(--ink)}
.coe-pt-dir-col li + li{border-top:1px dotted var(--rule)}
.coe-prose a.coe-pt-dir-a{display:grid;grid-template-columns:52px minmax(0,1fr);gap:14px;align-items:start;padding:12px 0}
.coe-pt-dir-ico{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:var(--ink);color:var(--sun);
  box-shadow:inset 0 0 0 3px var(--ink),inset 0 0 0 5px var(--sun)}
.coe-pt-dir-col + .coe-pt-dir-col .coe-pt-dir-ico{background:var(--pacific);color:#fff;box-shadow:inset 0 0 0 3px var(--pacific),inset 0 0 0 5px #fff}
.coe-pt-dir-svg{width:24px;height:24px;color:currentColor}
.coe-pt-dir-a small{display:block;font:700 12px/1.2 var(--label);letter-spacing:.1em;text-transform:uppercase;color:var(--flame)}
.coe-prose .coe-pt-dir-a b{margin-top:2px;font:700 17px/1.25 var(--display)}
.coe-pt-dir-a:hover b{color:var(--pacific);text-decoration:underline}
.coe-pt-dir-a b + span{display:block;margin-top:3px;font:500 14px/1.4 var(--ui);color:var(--muted)}

@media (max-width:880px){
  .coe-pt-dir-grid{grid-template-columns:minmax(0,1fr)}
  .coe-pt-dir-col + .coe-pt-dir-col{border-left:0;border-top:1px solid var(--ink)}
  .coe-pt-front-grid{grid-template-columns:minmax(0,1fr)}
  .coe-prose a.coe-pt-front-lead{padding:0 0 14px;border-right:0;border-bottom:1px solid var(--rule)}
  .coe-pt-bonus ul{grid-template-columns:repeat(2,minmax(0,1fr))}
  .coe-pt-bento ul{grid-template-columns:repeat(2,minmax(0,1fr))}
  .coe-pt-bento li:first-child{grid-row:auto}
  .coe-pt-bento li:first-child .coe-pt-bento-img{aspect-ratio:16/9}
  .coe-pt-phone-grid{grid-template-columns:minmax(0,1fr);gap:18px}
  .coe-pt-phone-dev{max-width:380px;width:100%;margin:0 auto}
  .coe-pt-phone-side{order:-1}
}
@media (max-width:600px){
  .coe-prose .coe-pt-front-lead b{font-size:23px}
  .coe-prose a.coe-pt-front-brief{grid-template-columns:76px minmax(0,1fr);gap:12px}
  .coe-pt-front-brief .coe-pt-tile{height:76px}
  .coe-pt-front-brief .coe-pt-tile em{font-size:17px}
  .coe-prose .coe-pt-pay thead{display:none}
  .coe-prose .coe-pt-pay tr{display:grid;grid-template-columns:96px minmax(0,1fr);column-gap:12px;align-items:center;
    padding:10px 12px;border-top:1px dotted var(--rule)}
  .coe-prose .coe-pt-pay tbody tr:nth-child(odd){background:#FBFAF6}
  .coe-prose .coe-pt-pay td{display:block;padding:0;border:0;background:transparent !important}
  .coe-prose .coe-pt-pay td.coe-pt-pay-logo{grid-row:span 2;width:auto;padding:0}
  .coe-pt-pay-logo img,.coe-pt-pay-logo .coe-pt-tile{width:96px;height:48px}
  .coe-prose .coe-pt-pay td:last-child{font-size:14px;color:var(--muted)}
  .coe-pt-bonus ul{gap:14px}
  .coe-prose a.coe-pt-stamp{padding:12px 10px 14px}
  .coe-pt-stamp-top{margin:-12px -10px 8px}
  .coe-pt-stamp-val em{font-size:30px}
  .coe-prose .coe-pt-stamp b{font-size:16px}
  .coe-pt-stamp-txt{font-size:13px}
  .coe-pt-bento ul{gap:10px}
  .coe-pt-bento-cap span{font-size:12.5px}
  .coe-prose .coe-pt-line ol{grid-template-columns:minmax(0,1fr);gap:18px;padding:0 0 0 26px}
  .coe-pt-line ol::before{left:6px;right:auto;top:0;bottom:0;width:4px;height:auto;
    background:repeating-linear-gradient(180deg,var(--ink) 0 18px,transparent 18px 26px)}
  .coe-prose a.coe-pt-line-a{display:grid;grid-template-columns:110px minmax(0,1fr);column-gap:14px;align-items:start}
  .coe-pt-line-year{grid-column:1/-1;justify-self:start;margin:0 0 10px -26px}
  .coe-pt-line-logo{grid-row:span 2;height:64px;margin:0}
  .coe-prose .coe-pt-line-logo img{max-height:44px}
}
