/* Trinket Pockets header: paper bar, outlined pills, round icon buttons, hanging "Look inside" tag */
.tp-header{--tp-navy:#1b2a52;--tp-yellow:#ffed00;--tp-pink:#f7bfd3;position:sticky;top:0;z-index:100;display:flex;align-items:center;gap:clamp(16px,2.4vw,40px);height:112px;padding:0 clamp(20px,5vw,72px);color:var(--tp-navy);background-color:#fff;border-bottom:1px solid #000;box-shadow:0 10px 24px -8px rgba(27,42,82,.28),0 3px 8px -3px rgba(27,42,82,.14);font-family:"Plus Jakarta Sans","Inter",sans-serif}
.tp-header+.diary-shell{margin-top:0}
.tp-brand{flex:0 0 auto;display:block;width:clamp(128px,13vw,188px);line-height:0}
.tp-brand img{display:block;width:100%;height:auto}
.tp-nav{display:flex;align-items:center;gap:10px;margin-left:clamp(8px,4vw,64px)}
.tp-pill{display:inline-flex;align-items:center;justify-content:center;height:36px;padding:0 20px;border:1.5px solid var(--tp-navy);border-radius:999px;background:transparent;color:var(--tp-navy);font:700 12px/1 "Plus Jakarta Sans","Inter",sans-serif;letter-spacing:.15em;text-transform:uppercase;white-space:nowrap;cursor:pointer;transition:background-color .15s,transform .12s}
.tp-pill:hover{background:var(--tp-pink)}
.tp-pill:active{transform:translateY(1px)}
.tp-pill-shop{background:var(--tp-yellow)}
.tp-pill-shop:hover{background:#fff35c}
.tp-pill-mobile{display:none}
.tp-actions{display:flex;align-items:center;gap:12px;margin-left:auto;margin-right:clamp(84px,7.4vw,112px)}
.tp-icon{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;padding:0;border:1.5px solid var(--tp-navy);border-radius:50%;background:transparent;color:var(--tp-navy);cursor:pointer;transition:background-color .15s,transform .12s}
.tp-icon:hover{background:var(--tp-pink)}
.tp-icon:active{transform:translateY(1px)}
.tp-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tp-burger{display:none;position:relative;width:44px;height:44px;padding:0;border:1.5px solid var(--tp-navy);border-radius:50%;background:transparent;color:var(--tp-navy);cursor:pointer}
.tp-burger span,.tp-burger span::before,.tp-burger span::after{position:absolute;left:50%;width:18px;height:2px;margin-left:-9px;border-radius:2px;background:currentColor;transition:transform .2s ease,top .2s ease,background-color .2s}
.tp-burger span{top:50%;margin-top:-1px}
.tp-burger span::before,.tp-burger span::after{content:"";left:0;margin:0}
.tp-burger span::before{top:-6px}
.tp-burger span::after{top:6px}
.tp-burger[aria-expanded=true] span{background:transparent}
.tp-burger[aria-expanded=true] span::before{top:0;transform:rotate(45deg)}
.tp-burger[aria-expanded=true] span::after{top:0;transform:rotate(-45deg)}
.tp-header :focus-visible{outline:2px solid #2150c0;outline-offset:3px}
/* hanging tag */
.tp-tag{position:absolute;top:20px;right:clamp(16px,3.4vw,56px);display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:5px;width:76px;height:98px;padding:0 6px 11px;border:2.5px solid #1a1a2a;border-radius:7px;background:#f68fc3;color:#1a1a2a;font:800 12px/1.15 "Plus Jakarta Sans","Inter",sans-serif;letter-spacing:.04em;text-align:center;text-transform:uppercase;transform:rotate(-3deg);transform-origin:50% -20px;box-shadow:2px 3px 0 rgba(0,0,0,.25)}
.tp-tag::before{content:"";position:absolute;top:9px;left:50%;width:13px;height:13px;margin-left:-6.5px;border:2px solid #1a1a2a;border-radius:50%;background:#fff}
.tp-tag::after{content:"";position:absolute;bottom:100%;left:50%;width:2px;height:60px;margin-left:-1px;background:#1a1a2a}
.tp-tag svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.tp-tag:hover{animation:tpSwing .7s ease-in-out}
@keyframes tpSwing{0%{transform:rotate(-3deg)}25%{transform:rotate(5deg)}55%{transform:rotate(-6deg)}80%{transform:rotate(2deg)}100%{transform:rotate(-3deg)}}
/* dialogs (search, workshops, account) */
.tp-dialog h2{margin:0 0 12px}
.tp-search-input{display:block;width:100%;height:48px;margin:6px 0 14px;padding:0 16px;border:1.5px solid #1b2a52;border-radius:999px;background:#fff;font:500 16px "Inter",sans-serif;color:#24201f}
.tp-results{list-style:none;margin:0;padding:0;max-height:260px;overflow:auto}
.tp-results a{display:flex;justify-content:space-between;gap:12px;padding:12px 14px;border-radius:8px;font:600 15px "Inter",sans-serif;color:#24201f}
.tp-results a small{font-weight:500;color:#6b6460}
.tp-results a:hover,.tp-results a:focus-visible{background:#f7bfd3;outline:none}
.tp-empty{margin:0;color:#6b6460}
@media(max-width:1100px){.tp-pill{padding:0 15px;font-size:11px;letter-spacing:.12em}.tp-nav{gap:7px}.tp-icon{width:38px;height:38px}.tp-actions{gap:8px}}
@media(max-width:900px){
.tp-header{height:84px;gap:12px;padding:0 16px}
.tp-brand{width:128px}
.tp-actions{margin-right:0}
.tp-icon{width:42px;height:42px}.tp-icon svg{width:20px;height:20px}
.tp-burger{display:block}
.tp-tag{display:none}
.tp-nav{display:none;position:absolute;top:100%;left:0;right:0;margin:0;flex-direction:column;align-items:stretch;gap:10px;padding:16px 16px 22px;background-color:#fff;border-bottom:2px solid var(--tp-navy);box-shadow:0 18px 30px -16px rgba(0,0,0,.4)}
.tp-nav.is-open{display:flex}
.tp-pill{height:42px;font-size:12px}
.tp-pill-mobile{display:inline-flex;background:var(--tp-pink)}
}
@media(prefers-reduced-motion:reduce){.tp-tag:hover{animation:none}.tp-pill,.tp-icon,.tp-burger span,.tp-burger span::before,.tp-burger span::after{transition:none}}
/* dialogs opened from the header (search, workshops, account); the homepage has its own base dialog styles, other pages do not */
.tp-dialog{width:min(440px,calc(100% - 40px));padding:35px;border:1px solid #24201f;background:#fff;color:#24201f;font-family:"Inter",sans-serif}
.tp-dialog::backdrop{background:rgba(0,0,0,.33)}
.tp-dialog h2{font:600 28px "Plus Jakarta Sans",sans-serif;letter-spacing:-.04em}
.tp-dialog p{font-size:15px;line-height:1.6}
.tp-dialog .close{float:right;background:none;border:0;font-size:24px;cursor:pointer}
/* pills sit lower in the bar on desktop */
@media(min-width:901px){.tp-nav,.tp-actions{transform:translateY(16px)}}
/* header shrinks once the page is scrolled */
.tp-header{transition:height .25s ease,padding .25s ease}
.tp-brand{transition:width .25s ease}
.tp-nav,.tp-actions{transition:transform .25s ease}
.tp-tag{transition:top .25s ease,scale .25s ease}
.tp-header.is-compact{height:72px}
.tp-header.is-compact .tp-brand{width:clamp(96px,9.5vw,132px)}
.tp-header.is-compact .tp-pill{height:32px}
.tp-header.is-compact .tp-icon{width:38px;height:38px}
.tp-header.is-compact .tp-tag{top:5px;scale:.62}
@media(min-width:901px){.tp-header.is-compact .tp-nav,.tp-header.is-compact .tp-actions{transform:none}}
@media(max-width:900px){.tp-header.is-compact{height:62px}.tp-header.is-compact .tp-brand{width:100px}.tp-header.is-compact .tp-icon{width:38px;height:38px}.tp-header.is-compact .tp-burger{width:40px;height:40px}}
@media(prefers-reduced-motion:reduce){.tp-header,.tp-brand,.tp-nav,.tp-actions,.tp-tag{transition:none}}
/* search opens inside the header */
.tp-search{display:none}
.tp-header.is-searching .tp-search{display:block}
.tp-header.is-searching .tp-nav{display:none}
.tp-search .tp-search-input{display:block;width:100%;height:40px;margin:0;padding:0 20px;border:1.5px solid var(--tp-navy);border-radius:999px;background:#fff;color:#24201f;font:500 15px "Inter",sans-serif}
.tp-search .tp-search-input:focus{outline:2px solid #2150c0;outline-offset:2px}
.tp-search .tp-results{position:absolute;top:100%;margin:0;padding:6px;background:#fff;border:1px solid #000;border-top:0;box-shadow:0 14px 26px -12px rgba(0,0,0,.35);max-height:320px;overflow:auto;z-index:5}
.tp-search .tp-empty{padding:12px 14px;font:500 15px "Inter",sans-serif}
.tp-icon.is-open{background:var(--tp-pink)}
@media(min-width:901px){.tp-search{flex:1;max-width:620px;margin-left:clamp(8px,4vw,64px);transform:translateY(16px);transition:transform .25s ease}.tp-header.is-compact .tp-search{transform:none}.tp-header.is-compact .tp-search .tp-search-input{height:34px}}
@media(max-width:900px){.tp-header.is-searching .tp-search{position:absolute;top:100%;left:0;right:0;padding:12px 16px 14px;background:#fff;border-bottom:1px solid #000;box-shadow:0 18px 30px -16px rgba(0,0,0,.4)}.tp-search .tp-results{position:static;margin-top:8px;border:0;box-shadow:none}}

.tp-tag{display:none !important}

/* phones: the menu button is a hanging pink tag */
@media(max-width:900px){
html body .tp-burger{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:3px;box-sizing:border-box;width:60px;height:74px;margin:14px 0 0;align-self:flex-start;padding:0 4px 8px;border:2.5px solid #1a1a2a;border-radius:7px;background:#f68fc3;color:#1a1a2a;transform:rotate(-3deg);transform-origin:50% -14px;box-shadow:2px 3px 0 rgba(0,0,0,.25);position:relative;z-index:1}
html body .tp-burger::before{content:"";position:absolute;top:8px;left:50%;width:11px;height:11px;margin-left:-5.5px;border:2px solid #1a1a2a;border-radius:50%;background:#fff}
html body .tp-burger::after{content:"";position:absolute;bottom:100%;left:50%;width:2px;height:14px;margin-left:-1px;background:#1a1a2a}
html body .tp-burger span,html body .tp-burger span::before,html body .tp-burger span::after{position:static;display:block;left:auto;top:auto;width:auto;height:auto;margin:0;border-radius:0;background:none;transform:none;transition:none}
html body .tp-burger span::before{content:"Menu";font:800 11px/1 "Plus Jakarta Sans","Inter",sans-serif;letter-spacing:.06em;text-transform:uppercase;color:#1a1a2a}
html body .tp-burger span::after{content:"";width:16px;height:16px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a2a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v15M6 13.500l6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat}
html body .tp-burger[aria-expanded=true] span{background:none}
html body .tp-burger[aria-expanded=true] span::before{top:auto;transform:none}
html body .tp-burger[aria-expanded=true] span::after{top:auto;transform:rotate(180deg)}
html body .tp-burger:active{animation:tpSwing .7s ease-in-out}
html body .tp-header.is-compact .tp-burger{width:60px;height:74px;margin-top:6px;scale:.8}
}
@media(prefers-reduced-motion:reduce){html body .tp-burger:active{animation:none}}

/* smaller menu tag */
@media(max-width:900px){
html body .tp-burger{width:50px;height:62px;margin-top:12px;padding:0 3px 6px;gap:2px;border-width:2px;transform-origin:50% -12px}
html body .tp-burger::before{top:6px;width:9px;height:9px;margin-left:-4.5px;border-width:1.5px}
html body .tp-burger::after{height:12px}
html body .tp-burger span::before{font-size:9.5px}
html body .tp-burger span::after{width:13px;height:13px}
html body .tp-header.is-compact .tp-burger{width:50px;height:62px;margin-top:5px;scale:.85}
}

@media(max-width:350px){html body .tp-header{gap:6px;padding:0 10px}html body .tp-brand{width:96px}html body .tp-actions{gap:5px}html body .tp-icon{width:36px;height:36px}}

/* Instagram icon, far right of the header */
.tp-insta{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
@media(min-width:901px){.tp-actions{margin-right:0}}
@media(max-width:600px){.tp-insta{display:none}}

/* Instagram: the circular logo itself, same size as the other round buttons */
html body .tp-insta{border:0;background:none;padding:0;color:#000;overflow:hidden}
html body .tp-insta svg{display:block;width:100%;height:100%;fill:#000;stroke:none}
html body .tp-insta:hover{opacity:.75}
@media(min-width:901px){html body .tp-insta{margin-left:20px;margin-right:-34px}}



/* header icons: solid navy circles with white symbols */
html body .tp-header .tp-icon:not(.tp-insta){background:#1b2a52;border-color:#1b2a52;color:#fff}
html body .tp-header .tp-icon:not(.tp-insta):hover{background:#2150c0;border-color:#2150c0;color:#fff}
html body .tp-header .tp-icon.is-on:not(.tp-insta),html body .tp-header .tp-icon[aria-expanded=true]:not(.tp-insta){background:#2150c0;border-color:#2150c0;color:#fff}
html body .tp-insta svg{fill:#1b2a52}
html body .tp-insta:hover svg{fill:#2150c0}
html body .tp-insta:hover{opacity:1}

html body .tp-header .tp-icon.is-open:not(.tp-insta){background:#2150c0;border-color:#2150c0;color:#fff}

/* new logo has no sticker outline */
.tp-brand img{filter:none}




/* header buttons: 1px borders */
html body .tp-header .tp-pill,html body .tp-header .tp-icon:not(.tp-insta){border-width:1px}


/* light round buttons: search, account, cart */
html body .tp-header .tp-icon:not(.tp-insta){background:#f9d3e4;border-color:#1b2a52;color:#1b2a52}
html body .tp-header .tp-icon:not(.tp-insta):hover{background:#f7bfd3;border-color:#1b2a52;color:#1b2a52}
html body .tp-header .tp-icon.is-open:not(.tp-insta),html body .tp-header .tp-icon.is-on:not(.tp-insta),html body .tp-header .tp-icon[aria-expanded=true]:not(.tp-insta){background:#ffed00;border-color:#1b2a52;color:#1b2a52}

/* Instagram button: black circle, white symbol */
html body .tp-insta{background:#fff;border-radius:50%}
html body .tp-insta svg{fill:#000}
html body .tp-insta:hover svg{fill:#333}

/* logo image carries its own outline and glow; the extra margin it has is pulled back so the logo keeps its size */
html body .tp-brand{padding:0}
html body .tp-brand img{filter:none;width:106%;max-width:none;margin:-2.9% 0 -2.9% -2.9%}

/* logo in the centre of the header */
html body .tp-header{position:sticky}
html body .tp-header .tp-brand{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);margin:0;z-index:2}
@media(min-width:1101px){html body .tp-header .tp-pill{padding:0 14px;letter-spacing:.1em}html body .tp-header .tp-nav{gap:8px}}
@media(max-width:1100px) and (min-width:901px){html body .tp-header .tp-brand{width:116px}html body .tp-header .tp-pill{padding:0 9px;font-size:10px;letter-spacing:.06em}html body .tp-header .tp-nav{gap:5px}}
@media(max-width:900px){html body .tp-header .tp-brand{width:112px}html body .tp-header .tp-actions{flex:1;margin-left:0}html body .tp-header .tp-burger{margin-left:auto}}

@media(max-width:600px){html body .tp-header .tp-actions{gap:6px}html body .tp-header .tp-icon{width:34px;height:34px}html body .tp-header .tp-icon svg{width:17px;height:17px}html body .tp-header .tp-brand{width:104px}}

/* menu buttons flush to the left edge of the header */
@media(min-width:901px){html body .tp-header .tp-nav{margin-left:0}}

/* smaller header buttons (desktop and tablet) */
@media(min-width:901px){
html body .tp-header .tp-pill{height:30px;padding:0 12px;font-size:10.5px;letter-spacing:.09em}
html body .tp-header .tp-nav{gap:6px}
html body .tp-header .tp-icon{width:34px;height:34px}
html body .tp-header .tp-icon svg{width:16px;height:16px}
html body .tp-header .tp-actions{gap:8px}
html body .tp-header.is-compact .tp-pill{height:28px}
html body .tp-header.is-compact .tp-icon{width:32px;height:32px}
}

html body .tp-header .tp-insta svg{width:100%;height:100%}

/* smaller buttons in the phone menu list */
@media(max-width:900px){
html body .tp-header .tp-nav{gap:7px;padding:12px 16px 16px}
html body .tp-header .tp-nav .tp-pill{height:34px;font-size:10.5px;letter-spacing:.1em;padding:0 14px}
}

html body .tp-header,html body header.tp-header{background:#fff9f0 !important;background-color:#fff9f0 !important}

/* cherry red round buttons */
html body .tp-header button.tp-icon,html body .tp-header .tp-icon:not(.tp-insta){background:#d6203a !important;background-color:#d6203a !important;border-color:#d6203a !important;color:#fff9f0 !important}
html body .tp-header button.tp-icon svg,html body .tp-header .tp-icon:not(.tp-insta) svg{color:#fff9f0 !important;stroke:#fff9f0 !important}
html body .tp-header button.tp-icon:hover,html body .tp-header .tp-icon:not(.tp-insta):hover{background:#b8182f !important;border-color:#b8182f !important}

html body .tp-header button.tp-icon,html body .tp-header .tp-icon:not(.tp-insta){border:1px solid #a8dcf0 !important;border-color:#a8dcf0 !important}
html body .tp-header button.tp-icon:hover,html body .tp-header .tp-icon:not(.tp-insta):hover{border-color:#a8dcf0 !important}

/* cherry red line under the black header line */
html body .tp-header::after{content:"";position:absolute;left:0;right:0;bottom:-2px;height:1px;background:#d6203a;pointer-events:none;z-index:1}


/* true 0.5px black header line (scaled), red line directly beneath */
html body .tp-header{border-bottom:0 !important}
html body .tp-header::before{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:#000;transform:scaleY(.5);transform-origin:50% 100%;pointer-events:none;z-index:1}
html body .tp-header::after{bottom:-1px !important}

html body .tp-header,html body header.tp-header{background:#fff !important;background-color:#fff !important}



/* logo at the far left (desktop), menu pills after it */
@media(min-width:901px){
html body .tp-header{padding-left:14px !important}
html body .tp-header .tp-brand{position:relative !important;left:auto !important;top:auto !important;transform:none !important;flex:0 0 auto}
html body .tp-header .tp-nav{margin-left:clamp(20px,3vw,44px) !important}
}
@media(min-width:901px) and (max-width:1099px){
html body .tp-header .tp-nav{gap:6px}
}
@media(min-width:1100px){
html body .tp-header .tp-nav .tp-pill{font-size:13.5px !important;height:40px !important;min-height:40px !important;padding:0 22px !important;letter-spacing:.12em !important;line-height:1 !important}
html body .tp-header .tp-nav{gap:10px}
}
@media(max-width:900px){html body .tp-header .tp-nav .tp-pill{font-size:14px !important}}

/* larger round header buttons (desktop) */
@media(min-width:901px){
html body .tp-header .tp-icon{width:46px !important;height:46px !important;min-width:46px !important;min-height:46px !important}
html body .tp-header button.tp-icon svg{width:22px !important;height:22px !important}
html body .tp-header .tp-actions{gap:12px}
}
