/* Hadrien.ai v260 — implementation of the supplied visual, scoped to the 126-code article */
/* Layout and artwork are separate; categories, search and prompts remain functional. */
:root{--v260-orange:#ff620a;--v260-cream:#fff8ee;}
body{background:var(--v260-cream)}
header{background:#fffaf2;border-bottom:0;box-shadow:0 1px 4px #120b070a}
header>.container{max-width:1250px;width:calc(100% - 36px);min-height:64px;display:flex;align-items:center;justify-content:space-between;gap:30px}
header .masthead{display:block;padding:0;flex:none}
header .masthead-meta{display:none}
header .brand{font-family:'Fraunces',Georgia,serif;font-size:30px;font-weight:850;letter-spacing:-.055em;white-space:nowrap;line-height:1}
header .brand em{font-weight:850;font-style:normal;color:#ff540c}
header .nav-row{display:flex;padding:0;border:0;gap:18px;align-items:center;justify-content:flex-end;overflow:visible}
header .nav-row>a{font:800 13px/1 'Manrope',sans-serif;color:#1c1b1b;padding:9px 11px;border-radius:20px;white-space:nowrap}
header .nav-row>a.active{background:var(--v260-orange);color:white;border:0}
header .nav-row>a:hover{color:var(--v260-orange)}
header .nav-row>a.active:hover{color:white;background:#ed4e02}
header .search-trigger{margin-left:3px}
.c126-main{background:var(--v260-cream);padding-top:0}
.c126-shell{width:min(100% - 32px,1250px)}
.c126-hero{position:relative;isolation:isolate;margin:0;border:0;border-radius:0;min-height:452px;height:452px;overflow:hidden;color:#fffaf4;box-shadow:none;background:#07141e}
.c126-reference-art{position:absolute;inset:0 0 0 auto;width:61%;height:100%;z-index:-1;overflow:hidden}
.c126-reference-art img{width:100%;height:100%;object-fit:cover;object-position:center center;display:block}
.c126-hero:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#06121c 0%,#06121cfc 30%,#06121cb8 43%,#06121c24 58%,transparent 79%),linear-gradient(0deg,#070a0f59,transparent 19%)}
.c126-hero .c126-crumb{position:absolute;top:17px;left:53px;z-index:2;max-width:calc(100% - 80px);font:500 12px/1.3 'Manrope',sans-serif;color:#e8e7e7}
.c126-hero .c126-crumb span{margin:0 5px}
.c126-hero-inner{position:relative;z-index:2;width:57%;max-width:740px;padding:75px 0 35px 53px}
.c126-kicker{display:inline-flex;background:#fe5e0b;color:white;padding:7px 15px;border-radius:17px;font:850 13px/1.1 'Manrope',sans-serif;letter-spacing:.015em;margin:0 0 13px;box-shadow:0 0 8px #fc650a55}
.c126-hero h1{font:800 clamp(40px,4.15vw,59px)/.96 'Fraunces',Georgia,serif;max-width:640px;letter-spacing:-.048em;margin:0 0 14px;text-wrap:initial}
.c126-hero h1 em{color:var(--v260-orange);font-weight:800;font-style:normal}
.c126-hero-deck{font:550 13.5px/1.35 'Manrope',sans-serif;max-width:510px;color:#f3f1f0;margin-bottom:12px}
.c126-stats{display:flex;gap:10px 35px;align-items:center;flex-wrap:wrap;margin:12px 0 0}
.c126-stat{display:inline-flex;align-items:center;gap:7px;font:650 12px/1.1 'Manrope',sans-serif;color:#f6f6f6;padding:0;border:0;background:none;white-space:nowrap}
.c126-stat-icon{display:inline-block;font:700 23px/1 'Manrope',sans-serif;color:#ff8a17;text-shadow:0 0 6px #ff581c5e}
.c126-primary{display:none}
.c126-hero-note{display:none}
#univers{max-width:1200px;margin:0 auto;scroll-margin-top:75px}
#univers .c126-section-heading{margin:18px 0 21px;text-align:center;display:block}
#univers .c126-section-heading .c126-eyebrow{font:800 13px/1.15 'JetBrains Mono',monospace;letter-spacing:.13em;color:#f35c13;margin:0 0 7px}
#univers .c126-section-heading p:last-child{font:600 12px/1.3 'Manrope',sans-serif;color:#333131;margin:0}
.c126-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.c126-category-tile{position:relative;display:block;min-height:0;height:127px;border:1px solid #5c6268;border-radius:10px;background:#061622;overflow:hidden;box-shadow:none;transform:none}
.c126-category-tile:hover{transform:translateY(-1px);box-shadow:0 3px 14px #1116}
.c126-category-tile img{position:absolute;left:0;top:0;width:61%;height:100%;object-fit:cover;object-position:center;display:block;filter:saturate(1.08)}
.c126-category-tile:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,transparent 0%,#07182312 36%,#07151ce6 56%,#08151cfa 74%);pointer-events:none;z-index:1}
.c126-category-info{position:absolute;z-index:2;inset:0 0 0 54%;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:8px;padding:12px 17px 12px 0;min-width:0}
.c126-category-info b{display:block;order:2;color:white;font:750 clamp(17px,1.68vw,23px)/1.03 'Fraunces',Georgia,serif;letter-spacing:-.03em;text-shadow:0 2px 6px #050a11;font-variation-settings:normal;overflow-wrap:normal}
.c126-count{display:inline-block;order:1;background:#fc620b;color:#fff;padding:5px 10px;border-radius:14px;font:850 11px/1 'Manrope',sans-serif;white-space:nowrap;box-shadow:0 1px 6px #f54a0659}
.c126-category-arrow{position:absolute;order:3;right:10px;bottom:10px;display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#fff;color:#161b20;font:900 16px/1 'Manrope',sans-serif;box-shadow:0 0 4px #fff3}
.c126-explore{margin-top:13px;scroll-margin-top:80px}
.c126-visually-quiet-heading{display:none}
.c126-toolbar{padding:0;margin:0}
.c126-search-wrap{width:min(82%,1000px);max-width:1000px;height:48px;margin:0 auto;border:1.5px solid #b9b8b8;border-radius:30px;background:#fff;box-shadow:none}
.c126-search-wrap svg{stroke:#6a7779}
#c126-search{font:500 14px 'Manrope',sans-serif;color:#2b2b2b}
.c126-search-wrap input::placeholder{color:#777}
.c126-how{position:relative;display:grid;grid-template-columns:70px minmax(0,1fr);grid-template-areas:'icon head' 'icon steps' 'note note';align-items:center;column-gap:18px;row-gap:0;background:#ffe7d8;border:0;border-radius:25px;padding:16px 25px 13px;margin:17px 0 16px;box-shadow:none}
.c126-how:before{display:none}
.c126-how-icon{grid-area:icon;width:61px;height:61px;object-fit:cover;border-radius:15px}
.c126-how h3{grid-area:head;font:800 22px/1.1 'Manrope',sans-serif;margin:0 0 1px;color:#101014}
.c126-how ol{grid-area:steps;display:flex;flex-wrap:wrap;column-gap:13px;row-gap:3px;counter-reset:step;padding:0;margin:0}
.c126-how li{counter-increment:step;display:inline;white-space:normal;font:550 12px/1.4 'Manrope',sans-serif;color:#201a18}
.c126-how li:before{content:counter(step) '.';display:inline;width:auto;height:auto;background:none;border:0;color:#292020;font:750 12px/1 'Manrope',sans-serif;margin-right:3px}
.c126-how li strong{font:550 12px/1.4 'Manrope',sans-serif;color:#201a18}
.c126-how .c126-disclaimer{grid-area:note;display:none}
.c126-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.c126-filter-wrap{display:none!important}
.c126-result-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.c126-group-stack{display:grid;gap:14px}
.c126-group{border-radius:14px;border:1px solid #e2d6c5;background:#fff8f0;overflow:hidden;scroll-margin-top:76px;box-shadow:none}
.c126-group-summary{min-height:91px;padding:11px 21px;gap:16px;background:linear-gradient(110deg,#262628,#27292a,#2c2c2e);color:white}
.c126-group-cover{width:67px;height:67px;object-fit:cover;object-position:center;border-radius:50%;border:none;flex:none}
.c126-group-label{flex:1;min-width:0}
.c126-group-num{display:none}
.c126-group-title{font:750 31px/1.06 'Fraunces',Georgia,serif;letter-spacing:-.035em;color:white;margin:0 0 4px}
.c126-group-sub{display:block;font:550 13px/1.2 'Manrope',sans-serif;color:#eee8e2}
.c126-group-controls{margin-left:auto;display:flex;align-items:center;gap:22px}
.c126-group-count{display:inline-block;padding:8px 16px;border-radius:17px;background:#ff610b;color:white;font:800 11px/1 'Manrope',sans-serif}
.c126-chevron{display:grid;place-items:center;width:24px;height:24px;line-height:1;background:none;color:white;font-size:23px}
.c126-group[open] .c126-chevron{transform:rotate(180deg)}
.c126-group-body{border:0;background:#fff8f0;padding:16px 16px 18px}
.c126-code-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
.c126-code-card{border:1px solid #ede2d5;border-radius:10px;background:#fff8ef;box-shadow:none;min-width:0;padding:8px 9px 10px;display:flex;flex-direction:column;gap:5px}
.c126-code-card:hover{box-shadow:none;border-color:#f6cda8}
.c126-card-image{aspect-ratio:1.76;width:100%;height:auto;object-fit:cover;border-radius:9px}
.c126-code-name{font:800 15px/1.18 'Manrope',sans-serif;color:#141415;letter-spacing:-.025em;margin:3px 0 0}
.c126-code-desc{font:540 12px/1.3 'Manrope',sans-serif;color:#282321;margin:0;min-height:34px;flex:1}
.c126-copy{display:flex;align-items:center;justify-content:center;gap:5px;min-height:33px;padding:7px 5px;background:#f7dbc4;border:0;border-radius:6px;color:#211914;font:800 11px/1.2 'Manrope',sans-serif;margin-top:2px}
.c126-copy svg{width:13px;height:13px;flex:none}
.c126-more-wrap{padding-top:14px}
.c126-more{min-height:35px;padding:8px 17px;border:1.3px solid #fa681c;border-radius:20px;background:#fff9f0;color:#f15a0e;font:800 12px/1.2 'Manrope',sans-serif}
.c126-more:hover{background:#ffeddf;color:#c74705}
.c126-ending{margin:22px 0 30px}
/* Compact layout mirrors the same reference on small screens without clipping text. */
@media(max-width:1100px){header .nav-row{gap:6px}.c126-hero-inner{width:62%}.c126-hero h1{font-size:clamp(36px,4.7vw,53px)}.c126-category-info b{font-size:clamp(16px,2.1vw,21px)}}
@media(max-width:775px){
 header>.container{width:calc(100% - 22px);min-height:54px;gap:7px}
 header .brand{font-size:24px}
 header .nav-row{gap:2px}
 header .nav-row>a{font-size:10px;padding:6px 7px}
 .c126-shell{width:100%}
 .c126-hero{min-height:0;height:auto;border-radius:0}
 .c126-hero .c126-crumb{position:relative;top:auto;left:auto;max-width:none;padding:12px 16px 0;font-size:10px;line-height:1.2}
 .c126-hero-inner{width:100%;max-width:none;padding:29px 17px 190px;min-height:520px}
 .c126-reference-art{width:100%;height:58%;bottom:0;top:auto}
 .c126-reference-art img{width:100%;height:100%;object-fit:cover;object-position:center 46%}
 .c126-hero:after{background:linear-gradient(180deg,#06121c 0%,#06121cfe 31%,#06121cd6 52%,#06121c24 90%)}
 .c126-hero h1{font-size:clamp(33px,6.9vw,48px);max-width:590px}
 .c126-kicker{font-size:10px;padding:6px 11px}
 .c126-hero-deck{font-size:11px;max-width:440px}
 .c126-stats{gap:9px 18px}
 .c126-stat{font-size:10px}
 .c126-stat-icon{font-size:19px}
 #univers{max-width:none;width:calc(100% - 20px)}
 #univers .c126-section-heading{margin:17px 0 14px}
 #univers .c126-section-heading .c126-eyebrow{font-size:11px}
 #univers .c126-section-heading p:last-child{font-size:10px}
 .c126-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .c126-category-tile{height:107px}
 .c126-category-tile img{width:62%}
 .c126-category-info{left:49%;gap:6px;padding-right:10px}
 .c126-category-info b{font-size:clamp(13px,2.6vw,18px)}
 .c126-count{font-size:9px;padding:4px 7px}
 .c126-category-arrow{width:19px;height:19px;font-size:13px;right:6px;bottom:6px}
 .c126-explore{padding:0 10px}
 .c126-search-wrap{width:100%;height:42px}
 #c126-search{font-size:11px}
 .c126-how{grid-template-columns:46px minmax(0,1fr);gap:3px 12px;padding:13px 14px;border-radius:18px}
 .c126-how-icon{width:43px;height:43px;border-radius:11px}
 .c126-how h3{font-size:16px}
 .c126-how ol{gap:4px 9px}
 .c126-how li,.c126-how li strong,.c126-how li:before{font-size:10px}
 .c126-group-summary{min-height:67px;padding:9px 11px;gap:8px}
 .c126-group-cover{width:43px;height:43px}
 .c126-group-title{font-size:22px}
 .c126-group-sub{font-size:10px}
 .c126-group-controls{gap:4px}
 .c126-group-count{font-size:9px;padding:6px 9px}
 .c126-code-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .c126-group-body{padding:10px}
 .c126-code-card{padding:6px 6px 8px;gap:5px}
 .c126-code-name{font-size:12px}
 .c126-code-desc{font-size:10px;min-height:28px}
 .c126-copy{font-size:10px;min-height:34px}
 .c126-more{font-size:10px}
}
@media(max-width:465px){
 header .nav-row>a:nth-child(4),header .nav-row>a:nth-child(5){display:none}
 header .brand{font-size:21px}
 header .nav-row>a{font-size:9px;padding:5px 6px}
 header .search-trigger{padding:4px}
 .c126-hero-inner{padding:24px 15px 189px;min-height:490px}
 .c126-hero h1{font-size:clamp(31px,8.1vw,37px)}
 .c126-hero-deck{font-size:11px}
 .c126-stat{font-size:9px}
 .c126-category-grid{gap:6px}
 .c126-category-tile{height:92px}
 .c126-category-info{left:48%;gap:4px}
 .c126-category-info b{font-size:clamp(12px,3.5vw,15px)}
 .c126-count{font-size:8px;padding:3px 6px}
 .c126-how h3{font-size:15px}
 .c126-how ol{display:block}
 .c126-how li{display:inline;margin-right:8px}
 .c126-group-title{font-size:20px}
 .c126-group-count{font-size:8px;padding:5px 6px}
 .c126-group-sub{font-size:9px}
 .c126-code-desc{min-height:42px}
}
@media(max-width:340px){header .nav-row>a:nth-child(3){display:none}.c126-category-info b{font-size:11px}.c126-category-info{left:45%}.c126-category-tile{height:85px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* Last-mile screenshot matching and complete navigation on mobile. */
.c126-category-info{margin-left:0!important;width:auto!important;max-width:none;transform:none}
.c126-category-info b{max-width:140px;word-break:normal;overflow-wrap:normal}
.c126-category-tile .c126-category-arrow{flex:0 0 auto}
.c126-mobile-menu{display:none}
.c126-reference-art{-webkit-mask-image:linear-gradient(90deg,transparent 0%,#000a 11%,#000 24%);mask-image:linear-gradient(90deg,transparent 0%,#000a 11%,#000 24%)}
@media(min-width:900px){.c126-how ol{display:flex;flex-wrap:nowrap;gap:10px}.c126-how li{white-space:nowrap}}
@media(max-width:465px){
 header .nav-row>a:not(.active){display:none!important}
 .c126-mobile-menu{display:block;position:relative;z-index:60;flex:none}
 .c126-mobile-menu summary{display:grid;place-items:center;width:32px;height:34px;cursor:pointer;list-style:none;font-size:23px;color:#171717}
 .c126-mobile-menu summary::-webkit-details-marker{display:none}
 .c126-mobile-menu nav{position:absolute;top:calc(100% + 9px);right:0;display:grid;min-width:190px;max-width:calc(100vw - 30px);padding:9px;background:#fffaf4;border:1px solid #edd7c6;border-radius:12px;box-shadow:0 12px 35px #0002}
 .c126-mobile-menu nav a{display:block;padding:10px 12px;font:750 12px 'Manrope',sans-serif;border-radius:6px}
 .c126-mobile-menu nav a:hover,.c126-mobile-menu nav a:focus-visible{background:#ffeadc;color:#ee4f0a}
}
