PageSourceSearch

https://internationalhealthjournal.com/_next/static/chunks/pages/articles-5bd3fb4f0257061e.js

js internationalhealthjournal.com collected 2026-10-08 14:40:04 UTC 108,240 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2977],{29955:(e,s,a)=>{"use strict";a.r(s),a.d(s,{__N_SSP:()=>e$,default:()=>eV});var t=a(6029),l=a(55729),r=a(20148),n=a(81278),i=a(65801);a(77118);var o=a(77698),c=a(85645),d=a(35987),m=a(87294);function x(){return(0,t.jsxs)("div",{className:"min-h-screen bg-background",children:[(0,t.jsx)("header",{className:"bg-gradient-to-br from-primary/5 via-background to-background border-b",children:(0,t.jsxs)("div",{className:"container mx-auto px-4 py-12 md:py-16",children:[(0,t.jsxs)("div",{className:"max-w-3xl",children:[(0,t.jsx)(m.E,{className:"h-5 w-32 mb-4"}),(0,t.jsx)(m.E,{className:"h-12 w-80 mb-4"}),(0,t.jsx)(m.E,{className:"h-6 w-full max-w-2xl mb-2"}),(0,t.jsx)(m.E,{className:"h-6 w-3/4 max-w-xl"})]}),(0,t.jsx)("div",{className:"mt-8 max-w-xl",children:(0,t.jsx)(m.E,{className:"h-12 w-full rounded-xl"})})]})}),(0,t.jsx)("div",{className:"container mx-auto px-4 py-8 md:py-12",children:(0,t.jsxs)("div",{className:"flex flex-col lg:flex-row gap-8 lg:gap-12",children:[(0,t.jsxs)("main",{className:"flex-1 min-w-0",children:[(0,t.jsx)("div",{className:"mb-12 rounded-xl overflow-hidden border",children:(0,t.jsxs)("div",{className:"grid md:grid-cols-2",children:[(0,t.jsx)(m.E,{className:"aspect-[16/10] md:aspect-auto md:h-full"}),(0,t.jsxs)("div",{className:"p-6 md:p-8 space-y-4",children:[(0,t.jsxs)("div",{className:"flex gap-3",children:[(0,t.jsx)(m.E,{className:"h-6 w-20"}),(0,t.jsx)(m.E,{className:"h-6 w-24"})]}),(0,t.jsx)(m.E,{className:"h-8 w-full"}),(0,t.jsx)(m.E,{className:"h-8 w-3/4"}),(0,t.jsx)(m.E,{className:"h-5 w-full"}),(0,t.jsx)(m.E,{className:"h-5 w-full"}),(0,t.jsx)(m.E,{className:"h-5 w-2/3"}),(0,t.jsxs)("div",{className:"flex items-center gap-4 pt-4",children:[(0,t.jsx)(m.E,{className:"h-5 w-24"}),(0,t.jsx)(m.E,{className:"h-5 w-32"})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between pt-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(m.E,{className:"h-10 w-10 rounded-full"}),(0,t.jsxs)("div",{children:[(0,t.jsx)(m.E,{className:"h-4 w-24 mb-1"}),(0,t.jsx)(m.E,{className:"h-3 w-16"})]})]}),(0,t.jsx)(m.E,{className:"h-10 w-32"})]})]})]})}),(0,t.jsxs)("div",{className:"flex items-center justify-between mb-8",children:[(0,t.jsx)(m.E,{className:"h-8 w-40"}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(m.E,{className:"h-9 w-20"}),(0,t.jsx)(m.E,{className:"h-9 w-20"})]})]}),(0,t.jsx)("div",{className:"grid sm:grid-cols-2 xl:grid-cols-3 gap-6",children:[...Array(6)].map((e,s)=>(0,t.jsx)(h,{},s))})]}),(0,t.jsxs)("aside",{className:"lg:w-80 xl:w-96 space-y-8",children:[(0,t.jsxs)("div",{className:"bg-card rounded-xl border p-6",children:[(0,t.jsx)(m.E,{className:"h-6 w-32 mb-4"}),(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:[...Array(6)].map((e,s)=>(0,t.jsx)(m.E,{className:"h-8 w-20 rounded-full"},s))})]}),(0,t.jsxs)("div",{className:"bg-card rounded-xl border p-6",children:[(0,t.jsx)(m.E,{className:"h-6 w-40 mb-4"}),(0,t.jsx)("div",{className:"space-y-4",children:[void 0,void 0,void 0,void 0].map((e,s)=>(0,t.jsxs)("div",{className:"flex gap-4",children:[(0,t.jsx)(m.E,{className:"h-10 w-10 rounded-lg flex-shrink-0"}),(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)(m.E,{className:"h-4 w-full mb-2"}),(0,t.jsx)(m.E,{className:"h-3 w-16"})]})]},s))})]}),(0,t.jsxs)("div",{className:"bg-card rounded-xl border p-6",children:[(0,t.jsx)(m.E,{className:"h-6 w-32 mb-4"}),(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:[...Array(8)].map((e,s)=>(0,t.jsx)(m.E,{className:"h-7 w-16 rounded-full"},s))})]})]})]})})]})}function h(){return(0,t.jsxs)("div",{className:"bg-card rounded-xl border overflow-hidden",children:[(0,t.jsx)(m.E,{className:"aspect-[16/10]"}),(0,t.jsxs)("div",{className:"p-5 space-y-3",children:[(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(m.E,{className:"h-5 w-16 rounded-full"}),(0,t.jsx)(m.E,{className:"h-5 w-20 rounded-full"})]}),(0,t.jsx)(m.E,{className:"h-6 w-full"}),(0,t.jsx)(m.E,{className:"h-6 w-3/4"}),(0,t.jsx)(m.E,{className:"h-4 w-full"}),(0,t.jsx)(m.E,{className:"h-4 w-5/6"}),(0,t.jsxs)("div",{className:"flex items-center gap-3 pt-2",children:[(0,t.jsx)(m.E,{className:"h-8 w-8 rounded-full"}),(0,t.jsxs)("div",{children:[(0,t.jsx)(m.E,{className:"h-4 w-24 mb-1"}),(0,t.jsx)(m.E,{className:"h-3 w-16"})]})]})]})]})}var p=a(36980),u=a(86370),g=a(51383),f=a(92797),y=a(97227),b=a(95155),N=a(14615),j=a(19565),v=a(48723),w=a(53662),k=a(55259),A=a(70473),E=a(82038),S=a(83112),I=a(46781),C=a(583
109);let L=(0,C.A)("smile",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]]);var T=a(77795),R=a(57924),P=a(56475),M=a(78356),G=a(29561),U=a(39477),F=a(58455),D=a(82026),z=a(28345),O=a(62603);let K=(0,C.A)("funnel",[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]]);var _=a(32366),B=a(56465),H=a(8588),W=a.n(H),Y=a(5390),Q=a(53909),V=a(30490);let $=new Set(["news","press releases","press-releases","press"]),q={display:{fontFamily:'var(--font-display, "Spectral"), Georgia, serif'},body:{fontFamily:'var(--font-body, "Source Serif 4"), Georgia, serif'},sc:{fontFamily:'var(--font-body, "Source Serif 4"), Georgia, serif',fontVariant:"small-caps",letterSpacing:"0.04em"}},X={backgroundImage:"radial-gradient(hsl(28 18% 14% / 0.022) 0.5px, transparent 0.6px), radial-gradient(hsl(28 18% 14% / 0.018) 0.5px, transparent 0.6px)",backgroundSize:"13px 13px, 27px 27px",backgroundPosition:"0 0, 7px 11px"};function J(e){let{n:s}=e;return(0,t.jsx)("span",{"aria-hidden":"true",className:"shrink-0 select-none tabular-nums",style:{...q.display,fontVariantNumeric:"lining-nums tabular-nums",color:"hsl(var(--accent))",fontSize:"1.55rem",lineHeight:1,fontWeight:600,minWidth:"2.6rem"},children:String(s).padStart(2,"0")})}function Z(e){let{kicker:s,title:a,standfirst:l,children:r}=e;return(0,t.jsxs)("header",{className:"relative border-b",style:{borderColor:"hsl(var(--border))",background:"hsl(var(--background))"},children:[(0,t.jsx)("div",{"aria-hidden":"true",className:"absolute inset-0",style:X}),(0,t.jsx)("div",{"aria-hidden":"true",className:"absolute inset-x-0 top-0 h-px",style:{background:"hsl(var(--accent) / 0.55)"}}),(0,t.jsxs)("div",{className:"container relative mx-auto px-4 py-12 md:py-16 max-w-5xl",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 mb-6",children:[(0,t.jsx)("span",{className:"h-px w-8",style:{background:"hsl(var(--accent))"}}),(0,t.jsx)("span",{className:"text-[0.72rem] font-semibold uppercase",style:{...q.sc,color:"hsl(var(--primary))",letterSpacing:"0.18em"},children:s})]}),(0,t.jsx)("h1",{className:"font-bold tracking-tight",style:{...q.display,color:"hsl(var(--foreground))",fontSize:"clamp(2.4rem, 5.2vw, 3.6rem)",lineHeight:1.04},children:a}),l&&(0,t.jsx)("p",{className:"mt-5 max-w-2xl text-lg leading-relaxed",style:{...q.body,color:"hsl(var(--muted-foreground))"},children:l}),r]})]})}let ee={display:{fontFamily:'var(--font-display, "Archivo"), "Helvetica Neue", Arial, sans-serif'},GREEN:"hsl(var(--brand-primary, 158 42% 28%))",GREEN_DEEP:"hsl(158 44% 17%)",ORANGE:"hsl(var(--brand-secondary, 28 84% 56%))",ORANGE_SOFT:"hsl(var(--brand-secondary, 28 84% 56%) / 0.14)",ORANGE_INK:"hsl(28 78% 38%)",PAPER:"#FBFAF6",INK:"#16241d",MUTE:"#54635c",LINE:"rgba(22,36,29,0.16)",LINE_SOFT:"rgba(22,36,29,0.09)"};function es(e){let{height:s=8}=e;return(0,t.jsx)("div",{"aria-hidden":"true",style:{height:s,backgroundImage:"repeating-linear-gradient(45deg, ".concat(ee.ORANGE," 0 14px, transparent 14px 28px)"),backgroundColor:"rgba(255,255,255,0.85)"}})}function ea(e){let{stroke:s="rgba(255,255,255,0.5)",accent:a=ee.ORANGE,fill:l="rgba(255,255,255,0.06)"}=e;return(0,t.jsxs)("svg",{viewBox:"0 0 380 200",className:"h-full w-full",preserveAspectRatio:"xMidYMax meet","aria-hidden":"true",children:[[[12,120,26,80],[44,86,22,114],[70,134,30,66],[104,70,24,130],[132,110,28,90],[164,48,22,152],[190,100,30,100],[224,78,24,122],[252,128,26,72],[282,92,28,108],[314,60,22,140],[340,116,26,84]].map((e,r)=>
1{let[n,i,o,c]=e;return(0,t.jsxs)("g",{children:[(0,t.jsx)("rect",{x:n,y:i,width:o,height:c,fill:r%4==1?a:l,opacity:r%4==1?.9:1,stroke:s,strokeWidth:"1.5",rx:"2"}),r%4!=1&&Array.from({length:Math.max(2,Math.floor(c/22))}).map((e,a)=>(0,t.jsx)("line",{x1:n+5,y1:i+12+18*a,x2:n+o-5,y2:i+12+18*a,stroke:s,strokeWidth:"1",opacity:"0.5"},a))]},r)}),(0,t.jsx)("line",{x1:"0",y1:"199",x2:"380",y2:"199",stroke:s,strokeWidth:"2"})]})}function et(e){let{children:s,onDark:a}=e;return s?(0,t.jsxs)("span",{className:"inline-flex items-center gap-2.5 text-[0.7rem] font-extrabold uppercase tracking-[0.24em]",style:{color:a?"rgba(255,255,255,0.85)":ee.INK},children:[(0,t.jsx)("span",{"aria-hidden":"true",className:"inline-block h-3.5 w-3.5 rounded-[3px]",style:{background:ee.ORANGE}}),s]}):null}function el(e){let{eyebrow:s,title:a,standfirst:l,directoryLabel:r,children:n}=e;return(0,t.jsxs)("header",{className:"relative overflow-hidden",style:{background:ee.GREEN_DEEP},children:[(0,t.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 opacity-[0.5]",style:{backgroundImage:"linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px)",backgroundSize:"52px 52px"}}),(0,t.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0",style:{background:"radial-gradient(120% 90% at 92% 110%, ".concat(ee.ORANGE,"33 0%, transparent 55%)")}}),(0,t.jsxs)("div",{className:"relative container mx-auto px-6",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3 py-4 text-[0.68rem] font-bold uppercase tracking-[0.22em]",style:{borderBottom:"1px solid rgba(255,255,255,0.14)"},children:[(0,t.jsxs)("span",{className:"inline-flex items-center gap-2 text-white/80",children:[(0,t.jsx)(y.A,{className:"h-3.5 w-3.5",style:{color:ee.ORANGE}})," ",r||"The Urban Exchange \xb7 City Directory"]}),(0,t.jsx)("span",{className:"hidden text-white/45 sm:inline",children:"Outfitting compact city living & care spaces"})]}),(0,t.jsxs)("div",{className:"py-14 md:py-20 max-w-3xl",children:[(0,t.jsx)(et,{onDark:!0,children:s}),(0,t.jsx)("h1",{className:"mt-6 font-extrabold text-white",style:{...ee.display,fontSize:"clamp(2.6rem, 5.6vw, 4.4rem)",lineHeight:.96,letterSpacing:"-0.03em"},children:a}),l&&(0,t.jsx)("p",{className:"mt-6 max-w-2xl text-[1.12rem] leading-relaxed text-white/75",children:l}),n]})]}),(0,t.jsx)(es,{height:10})]})}function er(e){let{title:s,body:a,action:l}=e;return(0,t.jsxs)("div",{className:"mx-auto max-w-xl overflow-hidden rounded-2xl",style:{background:"#fff",border:"1.5px solid ".concat(ee.LINE)},children:[(0,t.jsx)(es,{height:9}),(0,t.jsxs)("div",{className:"px-8 py-12 text-center",children:[(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-md px-3 py-1.5 text-[0.66rem] font-extrabold uppercase tracking-[0.14em]",style:{background:ee.ORANGE_SOFT,color:ee.ORANGE_INK},children:[(0,t.jsx)(b.A,{className:"h-3.5 w-3.5"})," Notice board"]}),(0,t.jsx)("h3",{className:"mt-5",style:{...ee.display,color:ee.INK,fontSize:"1.6rem",fontWeight:800,letterSpacing:"-0.01em"},children:s}),(0,t.jsx)("p",{className:"mt-3 text-[1rem] leading-relaxed",style:{color:ee.MUTE},children:a}),l]})]})}function en(e){var s,a;let{post:l,sectionName:r,tagLabel:n,excerpt:i,metaLine:o,index:c}=e;return(0,t.jsxs)(B.A,{href:l.uri,className:"group relative flex flex-col overflow-hidden rounded-xl transition-all duration-300 hover:-translate-y-1",style:{background:"#fff",border:"1.5px solid ".concat(ee.LINE),boxShadow:"0 1px 0 rgba(22,36,29,0.04)"},children:[(0,t.jsxs)("div",{className:"relative aspect-[16/10] overflow-hidden",style:{background:ee.GREEN_DEEP},children:[(null==(a=l.featuredImage)||null==(s=a.node)?void 0:s.sourceUrl)?(0,t.jsx)(W(),{src:l.featuredImage.node.sourceUrl,alt:l.featuredImage.node.altText||l.title,fill:!0,className:"object-cover transition-transform duration-500 group-hover:scale-105",sizes:"(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 33vw"}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{"aria-hidden":"true",className:"absolute inset-0 opacity-60",children:(0,t.jsx)(ea,{})}),(0,t.jsx)("div",{"aria-hidden":"true",className:"absolute inset-0",style:{background:"radial-gradient(120% 90% at 90% 110%, ".concat(ee.ORANGE,"33 0%, transparent 55%)")}
1})]}),(0,t.jsx)("div",{className:"absolute left-3 top-3 flex items-center gap-2",children:(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-md px-2.5 py-1 text-[0.64rem] font-extrabold uppercase tracking-[0.12em] backdrop-blur",style:{background:"rgba(251,250,246,0.92)",color:ee.ORANGE_INK},children:[(0,t.jsx)(b.A,{className:"h-3 w-3"})," ",n]})}),(0,t.jsx)("span",{className:"absolute bottom-2 right-3 tabular-nums text-[1.1rem] font-extrabold",style:{...ee.display,color:"rgba(255,255,255,0.55)"},children:String(c).padStart(2,"0")})]}),(0,t.jsxs)("div",{className:"flex flex-1 flex-col p-6",children:[r&&(0,t.jsx)("span",{className:"mb-2 text-[0.66rem] font-extrabold uppercase tracking-[0.14em]",style:{color:ee.GREEN},children:r}),(0,t.jsx)("h3",{style:{...ee.display,color:ee.INK,fontSize:"1.28rem",fontWeight:800,lineHeight:1.14,letterSpacing:"-0.01em"},children:l.title}),i&&(0,t.jsx)("p",{className:"mt-3 flex-1 text-[0.95rem] leading-relaxed",style:{color:ee.MUTE},children:i}),(0,t.jsxs)("div",{className:"mt-5 flex items-center justify-between pt-4 text-[0.74rem] font-bold uppercase tracking-[0.1em]",style:{borderTop:"1px solid ".concat(ee.LINE_SOFT),color:ee.MUTE},children:[(0,t.jsx)("span",{children:o}),(0,t.jsx)(N.A,{className:"h-4 w-4 transition-transform duration-300 group-hover:translate-x-0.5 group-hover:-translate-y-0.5",style:{color:ee.ORANGE}})]})]})]})}function ei(e){let{siteName:s,siteTagline:a,t:l,regularPosts:r,featuredPost:n,hasActiveFilters:i,filteredAndSortedPosts:o,categories:c,selectedCategory:d,setSelectedCategory:m,allLabel:x,searchQuery:h,setSearchQuery:p,sortBy:u,setSortBy:g,totalPages:f,currentPage:y,goToPage:b,formatDate:N,truncateText:A,calculateReadingTime:E,startIndex:S}=e,I=n&&!i?[n,...r]:r;return(0,t.jsxs)("div",{className:"min-h-screen",style:{background:ee.PAPER},children:[(0,t.jsx)(el,{eyebrow:l("knowledgeHub")||"City living, well-equipped",title:l("cityLivingGuides")||"City Living Guides",standfirst:"".concat(a," ").concat(l("exploreCollectionInsights")||"Practical guides for outfitting compact, healthy homes and care spaces."),directoryLabel:"".concat(s," \xb7 City Directory"),children:(0,t.jsx)("div",{className:"mt-9 max-w-xl",children:(0,t.jsxs)("div",{className:"flex items-center gap-3 rounded-xl px-4 py-3",style:{background:"rgba(255,255,255,0.1)",border:"1px solid rgba(255,255,255,0.2)"},children:[(0,t.jsx)(j.A,{className:"h-5 w-5 shrink-0",style:{color:ee.ORANGE}}),(0,t.jsx)("input",{placeholder:l("searchArticlesPlaceholder")||"Search the directory…",value:h,onChange:e=>p(e.target.value),className:"w-full bg-transparent text-base text-white outline-none placeholder:text-white/55"}),h&&(0,t.jsx)("button",{onClick:()=>p(""),"aria-label":"Clear search",className:"shrink-0 text-white/70 hover:text-white",children:(0,t.jsx)(v.A,{className:"h-4 w-4"})})]})})}),(0,t.jsxs)("div",{className:"container mx-auto px-6 py-12 md:py-16",children:[(0,t.jsxs)("div",{className:"mb-10 flex flex-wrap items-center gap-2.5",children:[(0,t.jsx)("button",{onClick:()=>m(null),className:"rounded-lg px-4 py-2 text-[0.82rem] font-extrabold uppercase tracking-[0.08em] transition-colors",style:null===d?{background:ee.GREEN,color:"#fff"}:{background:"#fff",color:ee.INK,border:"1.5px solid ".concat(ee.LINE)},children:x}),c.map(e=>{let s=d===e.name;return(0,t.jsx)("button",{onClick:()=>m(e.name),className:"rounded-lg px-4 py-2 text-[0.82rem] font-extrabold uppercase tracking-[0.08em] transition-colors",style:s?{background:ee.GREEN,color:"#fff"}:{background:"#fff",color:ee.INK,border:"1.5px solid ".concat(ee.LINE)},children:e.name},e.id||e.name)})]}),(0,t.jsxs)("div",{className:"mb-8 flex flex-wrap items-baseline justify-between gap-4",children:[(0,t.jsxs)("div",{className:"flex items-baseline gap-3",children:[(0,t.jsx)("span",{"aria-hidden":"true",className:"inline-block h-5 w-1.5 rounded-full",style:{background:ee.ORANGE}}),(0,t.jsx)("h2",{style:{...ee.display,color:ee.INK,fontSize:"clamp(1.6rem, 3vw, 2.2rem)",fontWeight:800,letterSpacing:"-0.02em"},children:i?l("searchResults")||"Search results":l("latestGuides")||"Latest guides"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsxs)("span",{className:"text-[0.72rem] font-extrabold uppercase tracking-[0.12em]",style:{color:ee.MUTE},children:[o.length," ",l("listings")||"listings"]}),(0,t.jsx)("button",{onClick:()=>
1g("latest"===u?"oldest":"latest"),className:"inline-flex items-center gap-1.5 rounded-md px-3 py-1.5 text-[0.72rem] font-extrabold uppercase tracking-[0.1em]",style:{background:ee.ORANGE_SOFT,color:ee.ORANGE_INK},children:"latest"===u?l("newestFirst")||"Newest first":l("oldestFirst")||"Oldest first"})]})]}),I.length>0?(0,t.jsx)("div",{className:"grid gap-6 sm:grid-cols-2 lg:grid-cols-3",children:I.map((e,s)=>{var a,r;let n=null==(r=e.categories)||null==(a=r.nodes)?void 0:a.find(e=>!$.has((e.name||"").toLowerCase())&&"uncategorized"!==(e.name||"").toLowerCase());return(0,t.jsx)(en,{post:e,sectionName:null==n?void 0:n.name,tagLabel:(null==n?void 0:n.name)||l("guide")||"Guide",excerpt:A(e.excerpt,140),metaLine:"".concat(N(e.date)," \xb7 ").concat(E(e.excerpt)," ").concat(l("min")||"min"),index:S+s+1},e.id)})}):(0,t.jsx)(er,{title:i?l("noListingsMatch")||"No listings match that search.":l("noArticlesFound")||"No guides on the board yet",body:i?l("tryAdjustingFilters")||"Try a different term or clear the filter to see everything on the board.":l("checkBackSoon")||"New guides are posted to the board regularly — check back soon.",action:i?(0,t.jsx)("button",{onClick:()=>{m(null),p("")},className:"mt-6 inline-flex items-center gap-2 rounded-lg px-6 py-3 text-[0.85rem] font-bold",style:{background:ee.ORANGE,color:"#241300"},children:l("clearFilters")||"Clear filters"}):null}),f>1&&!i&&(0,t.jsxs)("nav",{className:"mt-14 flex items-center justify-between border-t pt-6",style:{borderColor:ee.LINE},"aria-label":"Pagination",children:[(0,t.jsxs)("button",{onClick:()=>b(y-1),disabled:1===y,className:"inline-flex items-center gap-2 rounded-lg px-5 py-2.5 text-[0.78rem] font-extrabold uppercase tracking-[0.1em] disabled:opacity-30",style:{background:"#fff",color:ee.INK,border:"1.5px solid ".concat(ee.LINE)},children:[(0,t.jsx)(w.A,{className:"h-4 w-4"})," ",l("previous")||"Previous"]}),(0,t.jsxs)("span",{className:"text-[0.78rem] font-extrabold uppercase tracking-[0.12em]",style:{color:ee.MUTE},children:[y," / ",f]}),(0,t.jsxs)("button",{onClick:()=>b(y+1),disabled:y===f,className:"inline-flex items-center gap-2 rounded-lg px-5 py-2.5 text-[0.78rem] font-extrabold uppercase tracking-[0.1em] disabled:opacity-30",style:{background:ee.GREEN,color:"#fff"},children:[l("next")||"Next"," ",(0,t.jsx)(k.A,{className:"h-4 w-4"})]})]})]})]})}let eo={display:{fontFamily:'var(--font-display, "Spectral"), Georgia, serif'},SAGE:"hsl(var(--brand-primary, 158 32% 30%))",SAGE_D:"hsl(158 34% 22%)",CLAY:"hsl(var(--brand-secondary, 18 58% 60%))",CLAY_INK:"hsl(18 52% 34%)",PAPER:"hsl(40 34% 97%)",PAPER_D:"hsl(60 20% 94%)",MIST:"hsl(150 22% 93%)",INK:"hsl(160 14% 18%)",MUT:"hsl(160 8% 36%)",LINE:"hsl(150 16% 86%)"};function ec(e){let{className:s,style:a}=e;return(0,t.jsxs)("svg",{viewBox:"0 0 120 160",className:s,style:a,fill:"none","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M60 158 C60 110 60 70 60 8",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round"}),[0,1,2,3].map(e=>{let s=40+30*e;return(0,t.jsxs)("g",{children:[(0,t.jsx)("path",{d:"M60 ".concat(s," C40 ").concat(s-16," 22 ").concat(s-12," 14 ").concat(s+4," C30 ").concat(s+12," 48 ").concat(s+6," 60 ").concat(s-2),stroke:"currentColor",strokeWidth:"1.8"}),(0,t.jsx)("path",{d:"M60 ".concat(s+14," C80 ").concat(s-2," 98 ").concat(s+2," 106 ").concat(s+18," C90 ").concat(s+26," 72 ").concat(s+20," 60 ").concat(s+12),stroke:"currentColor",strokeWidth:"1.8"})]},e)})]})}function ed(e){let{children:s}=e;return s?(0,t.jsxs)("span",{className:"inline-flex items-center gap-2 text-[0.72rem] font-bold uppercase tracking-[0.2em]",style:{color:eo.SAGE},children:[(0,t.jsx)(A.A,{className:"h-3.5 w-3.5",style:{color:eo.CLAY}}),s]}):null}function em(e){let{eyebrow:s,title:a,standfirst:l,children:r}=e;return(0,t.jsxs)("header",{className:"relative overflow-hidden",style:{background:"linear-gradient(158deg, ".concat(eo.PAPER," 0%, ").concat(eo.MIST," 100%)")},children:[(0,t.jsx)(ec,{className:"pointer-events-none absolute -left-6 -top-4 h-64 w-48 opacity-[0.12]",style:{color:eo.SAGE}}),(0,t.jsx)(ec,{className:"pointer-events-none absolute right-6 -bottom-10 h-72 w-52 rotate-12 opacity-[0.09]",style:{color:eo.SAGE}}),(0,t.jsxs)("div",{className:"relative container mx-auto px-6 py-16 md:py-20 max-w-5xl",children:[(0,t.jsx)(ed,{children:s}),(0,t.jsx)("h1",{className:"mt-6 font-semibold",style:{...eo.display,color:eo.SAGE,fontSize:"clamp(2.5rem, 5.4vw, 4rem)",lineHeight:1.02,letterSpacing:"-0.02em"},children:a}),l&&(0,t.jsx)("p",{className:"mt-5 max-w-2xl text-[1.12rem] leading-relaxed",style:{color:eo.MUT},children:l}),r]})]})}function ex(e){let{title:s,body:a,action:l}=e;return(0,t.jsx)("div",{className:"mx-auto max-w-xl overflow-hidden rounded-[2rem] text-center",style:{background:"#fff",border:"1px solid ".concat(eo.LINE),boxShadow:"0 20px 50px -34px rgba(40,60,48,0.5)"},children:(0,t.jsxs)("div",{className:"px-8 py-14",children:[(0,t.jsx)("span",{className:"mx-auto flex h-14 w-14 items-center justify-center rounded-full",style:{background:eo.MIST,color:eo.SAGE},children:(0,t.jsx)(A.A,{className:"h-7 w-7"})}),(0,t.jsx)("h3",{className:"mt-6",style:{...eo.display,color:eo.SAGE,fontSize:"1.6rem",fontWeight:600},children:s}),(0,t.jsx)("p",{className:"mt-3 text-[1rem] leading-relaxed",style:{color:eo.MUT},children:a}),l]})})}function eh(e){var s,a;
1let{post:l,sectionName:r,excerpt:n,metaLine:i}=e;return(0,t.jsxs)(B.A,{href:l.uri,className:"group flex flex-col overflow-hidden rounded-3xl bg-white transition-all duration-300 hover:-translate-y-1",style:{border:"1px solid ".concat(eo.LINE),boxShadow:"0 14px 30px -22px rgba(40,60,48,0.4)"},children:[(0,t.jsxs)("div",{className:"relative aspect-[16/10] overflow-hidden",style:{background:"linear-gradient(150deg, ".concat(eo.MIST,", ").concat(eo.PAPER_D,")")},children:[(null==(a=l.featuredImage)||null==(s=a.node)?void 0:s.sourceUrl)?(0,t.jsx)(W(),{src:l.featuredImage.node.sourceUrl,alt:l.featuredImage.node.altText||l.title,fill:!0,className:"object-cover transition-transform duration-500 group-hover:scale-105",sizes:"(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 33vw"}):(0,t.jsx)(ec,{className:"absolute left-1/2 top-1/2 h-40 w-28 -translate-x-1/2 -translate-y-1/2 opacity-30",style:{color:eo.SAGE}}),r&&(0,t.jsxs)("span",{className:"absolute left-4 top-4 inline-flex items-center gap-1.5 rounded-full px-3 py-1 text-[0.66rem] font-bold uppercase tracking-[0.12em] backdrop-blur",style:{background:"rgba(255,255,255,0.9)",color:eo.CLAY_INK},children:[(0,t.jsx)(A.A,{className:"h-3 w-3"})," ",r]})]}),(0,t.jsxs)("div",{className:"flex flex-1 flex-col p-7",children:[(0,t.jsx)("h3",{style:{...eo.display,color:eo.INK,fontSize:"1.32rem",fontWeight:600,lineHeight:1.16},children:l.title}),n&&(0,t.jsx)("p",{className:"mt-3 flex-1 text-[0.96rem] leading-relaxed",style:{color:eo.MUT},children:n}),(0,t.jsxs)("div",{className:"mt-6 flex items-center justify-between pt-4 text-[0.78rem]",style:{borderTop:"1px solid ".concat(eo.LINE),color:eo.MUT},children:[(0,t.jsx)("span",{children:i}),(0,t.jsx)(N.A,{className:"h-4 w-4 transition-transform duration-300 group-hover:translate-x-0.5 group-hover:-translate-y-0.5",style:{color:eo.SAGE}})]})]})]})}function ep(e){let{siteName:s,siteTagline:a,t:l,regularPosts:r,featuredPost:n,hasActiveFilters:i,filteredAndSortedPosts:o,categories:c,selectedCategory:d,setSelectedCategory:m,allLabel:x,searchQuery:h,setSearchQuery:p,sortBy:u,setSortBy:g,totalPages:f,currentPage:y,goToPage:b,formatDate:N,truncateText:A,calculateReadingTime:E,startIndex:S}=e,I=n&&!i?[n,...r]:r;return(0,t.jsxs)("div",{className:"min-h-screen",style:{background:eo.PAPER},children:[(0,t.jsx)(em,{eyebrow:l("knowledgeHub")||"Notes & guides",title:l("drMiloNotes")||"Dr. Milo's Notes",standfirst:"".concat(a," ").concat(l("exploreCollectionInsights")||"Evidence-informed reading on stress, sleep, aromatherapy, and the sensory tools that support them."),children:(0,t.jsx)("div",{className:"mt-9 max-w-xl",children:(0,t.jsxs)("div",{className:"flex items-center gap-3 rounded-full bg-white px-5 py-3.5",style:{border:"1px solid ".concat(eo.LINE),boxShadow:"0 10px 26px -20px rgba(40,60,48,0.45)"},children:[(0,t.jsx)(j.A,{className:"h-5 w-5 shrink-0",style:{color:eo.SAGE}}),(0,t.jsx)("input",{placeholder:l("searchArticlesPlaceholder")||"Search the notes…",value:h,onChange:e=>p(e.target.value),className:"w-full bg-transparent text-base outline-none",style:{color:eo.INK}}),h&&(0,t.jsx)("button",{onClick:()=>p(""),"aria-label":"Clear search",className:"shrink-0 opacity-60 hover:opacity-100",style:{color:eo.MUT},children:(0,t.jsx)(v.A,{className:"h-4 w-4"})})]})})}),(0,t.jsxs)("div",{className:"container mx-auto px-6 py-14 md:py-16 max-w-6xl",children:[(0,t.jsxs)("div",{className:"mb-10 flex flex-wrap items-center gap-2.5",children:[(0,t.jsx)("button",{onClick:()=>m(null),className:"rounded-full px-4 py-2 text-[0.82rem] font-semibold transition-colors",style:null===d?{background:eo.SAGE,color:"#fff"}:{background:"#fff",color:eo.INK,border:"1px solid ".concat(eo.LINE)},children:x}),c.map(e=>{let s=d===e.name;return(0,t.jsx)("button",{onClick:()=>m(e.name),className:"rounded-full px-4 py-2 text-[0.82rem] font-semibold transition-colors",style:s?{background:eo.SAGE,color:"#fff"}:{background:"#fff",color:eo.INK,border:"1px solid ".concat(eo.LINE)},children:e.name},e.id||e.name)})]}),(0,t.jsxs)("div",{className:"mb-8 flex flex-wrap items-baseline justify-between gap-4",children:[(0,t.jsxs)("div",{className:"flex items-baseline gap-3",children:[(0,t.jsx)("span",{"aria-hidden":"true",className:"inline-block h-5 w-1.5 rounded-full",style:{background:eo.CLAY}}),(0,t.jsx)("h2",{style:{...eo.display,color:eo.SAGE,fontSize:"clamp(1.6rem, 3vw, 2.2rem)",fontWeight:600,letterSpacing:"-0.01em"},children:i?l("searchResults")||"Search results":l("latestNotes")||"Latest notes"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsxs)("span",{className:"text-[0.82rem]",style:{color:eo.MUT},children:[o.length," ",l("notes")||"notes"]}),(0,t.jsx)("button",{onClick:()=>
1g("latest"===u?"oldest":"latest"),className:"inline-flex items-center gap-1.5 rounded-full px-4 py-1.5 text-[0.78rem] font-semibold",style:{background:eo.MIST,color:eo.SAGE_D},children:"latest"===u?l("newestFirst")||"Newest first":l("oldestFirst")||"Oldest first"})]})]}),I.length>0?(0,t.jsx)("div",{className:"grid gap-6 sm:grid-cols-2 lg:grid-cols-3",children:I.map(e=>{var s,a;let r=null==(a=e.categories)||null==(s=a.nodes)?void 0:s.find(e=>!$.has((e.name||"").toLowerCase())&&"uncategorized"!==(e.name||"").toLowerCase());return(0,t.jsx)(eh,{post:e,sectionName:null==r?void 0:r.name,excerpt:A(e.excerpt,140),metaLine:"".concat(N(e.date)," \xb7 ").concat(E(e.excerpt)," ").concat(l("min")||"min")},e.id)})}):(0,t.jsx)(ex,{title:i?l("noNotesMatch")||"No notes match that search.":l("noArticlesFound")||"No notes here yet",body:i?l("tryAdjustingFilters")||"Try a gentler term, or clear the filter to see every note.":l("checkBackSoon")||"New notes are added regularly — please check back soon.",action:i?(0,t.jsx)("button",{onClick:()=>{m(null),p("")},className:"mt-6 inline-flex items-center gap-2 rounded-full px-6 py-3 text-[0.9rem] font-semibold",style:{background:eo.CLAY,color:"#3a1f12"},children:l("clearFilters")||"Clear filters"}):null}),f>1&&!i&&(0,t.jsxs)("nav",{className:"mt-14 flex items-center justify-between border-t pt-6",style:{borderColor:eo.LINE},"aria-label":"Pagination",children:[(0,t.jsxs)("button",{onClick:()=>b(y-1),disabled:1===y,className:"inline-flex items-center gap-2 rounded-full px-5 py-2.5 text-[0.82rem] font-semibold disabled:opacity-30",style:{background:"#fff",color:eo.SAGE,border:"1px solid ".concat(eo.LINE)},children:[(0,t.jsx)(w.A,{className:"h-4 w-4"})," ",l("previous")||"Previous"]}),(0,t.jsxs)("span",{className:"text-[0.82rem]",style:{color:eo.MUT},children:[y," / ",f]}),(0,t.jsxs)("button",{onClick:()=>b(y+1),disabled:y===f,className:"inline-flex items-center gap-2 rounded-full px-5 py-2.5 text-[0.82rem] font-semibold disabled:opacity-30",style:{background:eo.SAGE,color:"#fff"},children:[l("next")||"Next"," ",(0,t.jsx)(k.A,{className:"h-4 w-4"})]})]})]})]})}let eu={display:{fontFamily:'var(--font-display, "Newsreader"), Georgia, serif'},body:{fontFamily:'var(--font-body, "Public Sans"), ui-sans-serif, system-ui, sans-serif'},TEAL:"hsl(var(--brand-primary, 174 58% 26%))",TEAL_SOFT:"hsl(var(--brand-primary, 174 58% 26%) / 0.08)",CLAY:"hsl(var(--brand-secondary, 18 64% 56%))",CLAY_INK:"hsl(18 58% 40%)",PAPER:"hsl(48 30% 99%)",INK:"hsl(186 30% 12%)",MUT:"hsl(186 12% 38%)",LINE:"hsl(180 14% 88%)",LINE_SOFT:"hsl(180 14% 92%)"};function eg(e){let{className:s,style:a}=e;return(0,t.jsxs)("svg",{viewBox:"0 0 24 24",className:s,style:a,fill:"none","aria-hidden":"true",children:[(0,t.jsx)("rect",{x:"9.5",y:"2.5",width:"5",height:"19",rx:"0.6",fill:"currentColor"}),(0,t.jsx)("rect",{x:"2.5",y:"9.5",width:"19",height:"5",rx:"0.6",fill:"currentColor"})]})}function ef(e){let{kicker:s,title:a,standfirst:l,children:r}=e;return(0,t.jsxs)("header",{className:"relative",style:{background:eu.PAPER,borderBottom:"1px solid ".concat(eu.LINE)},children:[(0,t.jsx)("div",{"aria-hidden":"true",style:{height:4,background:eu.TEAL}}),(0,t.jsx)("div",{"aria-hidden":"true",style:{height:1,background:eu.TEAL,opacity:.4,marginTop:2}}),(0,t.jsxs)("div",{className:"container relative mx-auto px-4 py-12 md:py-16 max-w-5xl",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2.5 mb-5",children:[(0,t.jsx)("span",{className:"inline-flex items-center justify-center",style:{background:eu.TEAL,padding:"3px"},children:(0,t.jsx)(eg,{className:"h-3 w-3",style:{color:"#fff"}})}),(0,t.jsx)("span",{className:"text-[0.7rem] font-bold uppercase",style:{...eu.body,color:eu.TEAL,letterSpacing:"0.18em"},children:s})]}),(0,t.jsx)("h1",{className:"font-semibold tracking-tight",style:{...eu.display,color:eu.INK,fontSize:"clamp(2.4rem, 5.2vw, 3.6rem)",lineHeight:1.04},children:a}),l&&(0,t.jsx)("p",{className:"mt-5 max-w-2xl text-lg leading-relaxed",style:{...eu.body,color:eu.MUT},children:l}),r]})]})}function ey(e){let{title:s,body:a,action:l}=e;return(0,t.jsx)("div",{className:"mx-auto max-w-xl text-center",style:{background:"#fff",border:"1px solid ".concat(eu.LINE),borderTop:"3px solid ".concat(eu.TEAL)},children:(0,t.jsxs)("div",{className:"px-8 py-14",children:[(0,t.jsx)("span",{className:"mx-auto flex h-12 w-12 items-center justify-center",style:{background:eu.TEAL_SOFT},children:(0,t.jsx)(eg,{className:"h-6 w-6",style:{color:eu.TEAL}})}),(0,t.jsx)("h3",{className:"mt-6",style:{...eu.display,color:eu.INK,fontSize:"1.5rem",fontWeight:600},children:s}),(0,t.jsx)("p",{className:"mt-3 text-[1rem] leading-relaxed",style:{...eu.body,color:eu.MUT},children:a}),l]})})}function eb(e){let{siteName:s,siteTagline:a,t:l,regularPosts:r,featuredPost:n,hasActiveFilters:i,filteredAndSortedPosts:o,categories:c,selectedCategory:d,setSelectedCategory:m,allLabel:x,searchQuery:h,setSearchQuery:p,sortBy:u,setSortBy:g,totalPages:f,currentPage:y,goToPage:b,formatDate:N,truncateText:A,calculateReadingTime:E,startIndex:S}=e,I=n&&!i?[n,...r]:r;return(0,t.jsxs)("div",{className:"min-h-screen",style:{background:eu.PAPER},children:[(0,t.jsx)(ef,{kicker:"".concat(l("knowledgeHub")||"Clinical knowledge base"," \xb7 ").concat(s),title:l("clinicalLibrary")||"Clinical Library",standfirst:"".concat(a," ").concat(l("exploreCollectionInsights")||"A practitioner-maintained index of clinical guides, protocols, and field-tested know-how."),children:(0,t.jsx)("div",{className:"mt-8 max-w-xl",children:(0,t.jsxs)("label",{className:"flex items-end gap-3 pb-2",style:{borderBottom:"2px s
1olid ".concat(eu.TEAL)},children:[(0,t.jsx)(j.A,{className:"h-4 w-4 mb-1 shrink-0",style:{color:eu.TEAL}}),(0,t.jsx)("input",{placeholder:l("searchArticlesPlaceholder")||"Search the library…",value:h,onChange:e=>p(e.target.value),className:"w-full bg-transparent py-1 text-base outline-none placeholder:opacity-55",style:{...eu.body,color:eu.INK}}),h&&(0,t.jsx)("button",{onClick:()=>p(""),"aria-label":"Clear search",className:"mb-1 shrink-0 opacity-60 hover:opacity-100",style:{color:eu.MUT},children:(0,t.jsx)(v.A,{className:"h-4 w-4"})})]})})}),(0,t.jsxs)("div",{className:"container mx-auto px-4 py-10 md:py-14 max-w-5xl",children:[(0,t.jsxs)("div",{className:"mb-8 flex flex-wrap items-center gap-2 border-b pb-5",style:{borderColor:eu.LINE},children:[(0,t.jsx)("span",{className:"mr-1 text-[0.7rem] font-bold uppercase",style:{...eu.body,color:eu.MUT,letterSpacing:"0.14em"},children:l("filedUnder")||"Filed under"}),(0,t.jsx)("button",{onClick:()=>m(null),className:"px-3 py-1.5 text-[0.8rem] font-semibold transition-colors",style:null===d?{...eu.body,background:eu.TEAL,color:"#fff"}:{...eu.body,background:"#fff",color:eu.INK,border:"1px solid ".concat(eu.LINE)},children:x}),c.map(e=>{let s=d===e.name;return(0,t.jsx)("button",{onClick:()=>m(e.name),className:"px-3 py-1.5 text-[0.8rem] font-semibold transition-colors",style:s?{...eu.body,background:eu.TEAL,color:"#fff"}:{...eu.body,background:"#fff",color:eu.INK,border:"1px solid ".concat(eu.LINE)},children:e.name},e.id||e.name)})]}),(0,t.jsxs)("div",{className:"mb-2 flex flex-wrap items-baseline justify-between gap-4",children:[(0,t.jsxs)("div",{className:"flex items-baseline gap-3",children:[(0,t.jsx)("span",{"aria-hidden":"true",className:"inline-block h-5 w-1",style:{background:eu.CLAY}}),(0,t.jsx)("h2",{style:{...eu.display,color:eu.INK,fontSize:"clamp(1.5rem, 3vw, 2rem)",fontWeight:600,letterSpacing:"-0.01em"},children:i?l("searchResults")||"Search results":l("inTheLibrary")||"In the library"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsxs)("span",{className:"text-[0.74rem] font-bold uppercase tracking-[0.1em]",style:{...eu.body,color:eu.MUT},children:[o.length," ",l("records")||"records"]}),(0,t.jsx)("button",{onClick:()=>g("latest"===u?"oldest":"latest"),className:"text-[0.74rem] font-bold uppercase tracking-[0.08em]",style:{...eu.body,color:eu.TEAL},children:"latest"===u?l("newestFirst")||"Newest first":l("oldestFirst")||"Oldest first"})]})]}),I.length>0?(0,t.jsx)("ol",{className:"border-t",style:{borderColor:eu.LINE},children:I.map((e,s)=>{var a,r,n,i,o,c;let d=null==(c=e.categories)||null==(o=c.nodes)?void 0:o.find(e=>!$.has((e.name||"").toLowerCase())&&"uncategorized"!==(e.name||"").toLowerCase());return(0,t.jsx)("li",{className:"border-b",style:{borderColor:eu.LINE_SOFT},children:(0,t.jsxs)(B.A,{href:e.uri,className:"group grid grid-cols-[auto_1fr] gap-x-5 py-6 md:py-7 items-start",children:[(0,t.jsx)("span",{"aria-hidden":"true",className:"shrink-0 select-none tabular-nums",style:{...eu.display,color:eu.CLAY,fontSize:"1.4rem",lineHeight:1,fontWeight:600,minWidth:"2.6rem"},children:String(S+s+1).padStart(2,"0")}),(0,t.jsxs)("div",{className:"min-w-0",children:[d&&(0,t.jsxs)("span",{className:"mb-1.5 inline-flex items-center gap-1.5 text-[0.66rem] font-bold uppercase",style:{...eu.body,color:eu.CLAY_INK,letterSpacing:"0.12em"},children:[(0,t.jsx)(eg,{className:"h-2.5 w-2.5",style:{color:eu.CLAY}})," ",d.name]}),(0,t.jsx)("h3",{className:"font-semibold leading-snug transition-colors",style:{...eu.display,color:eu.INK,fontSize:"clamp(1.2rem, 2.4vw, 1.55rem)"},children:(0,t.jsx)("span",{className:"bg-[length:0%_1px] bg-no-repeat bg-bottom transition-[background-size] duration-300 group-hover:bg-[length:100%_1px]",style:{backgroundImage:"linear-gradient(".concat(eu.TEAL,", ").concat(eu.TEAL,")")},children:e.title})}),(0,t.jsx)("p",{className:"mt-2 max-w-2xl text-[0.95rem] leading-relaxed line-clamp-2",style:{...eu.body,color:eu.MUT},children:A(e.excerpt,220)}),(0,t.jsxs)("div",{className:"mt-3 flex flex-wrap items-center gap-x-3 gap-y-1 text-[0.76rem]",style:{...eu.body,color:eu.MUT}
1,children:[(null==(r=e.author)||null==(a=r.node)?void 0:a.name)&&(0,t.jsx)("span",{className:"font-semibold",style:{color:eu.INK},children:e.author.node.name}),(null==(i=e.author)||null==(n=i.node)?void 0:n.name)&&(0,t.jsx)("span",{"aria-hidden":"true",style:{color:eu.LINE},children:"|"}),(0,t.jsx)("span",{children:N(e.date)}),(0,t.jsx)("span",{"aria-hidden":"true",style:{color:eu.LINE},children:"|"}),(0,t.jsxs)("span",{children:[E(e.excerpt)," ",l("minRead")||"min read"]})]})]})]})},e.id)})}):(0,t.jsx)(ey,{title:i?l("noRecordsMatch")||"No records match that search.":l("noArticlesFound")||"No records in the library yet",body:i?l("tryAdjustingFilters")||"Try a different term, or clear the filter to browse the full index.":l("checkBackSoon")||"New guides and protocols are added regularly — please check back soon.",action:i?(0,t.jsx)("button",{onClick:()=>{m(null),p("")},className:"mt-6 inline-flex items-center gap-2 px-6 py-3 text-[0.85rem] font-semibold",style:{...eu.body,background:eu.TEAL,color:"#fff"},children:l("clearFilters")||"Clear filters"}):null}),f>1&&!i&&(0,t.jsxs)("nav",{className:"mt-12 flex items-center justify-between border-t pt-6",style:{borderColor:eu.LINE},"aria-label":"Pagination",children:[(0,t.jsxs)("button",{onClick:()=>b(y-1),disabled:1===y,className:"inline-flex items-center gap-2 px-5 py-2.5 text-[0.78rem] font-bold uppercase tracking-[0.08em] disabled:opacity-30",style:{...eu.body,background:"#fff",color:eu.INK,border:"1px solid ".concat(eu.LINE)},children:[(0,t.jsx)(w.A,{className:"h-4 w-4"})," ",l("previous")||"Previous"]}),(0,t.jsxs)("span",{className:"text-[0.78rem] font-bold uppercase tracking-[0.1em]",style:{...eu.body,color:eu.MUT},children:[y," / ",f]}),(0,t.jsxs)("button",{onClick:()=>b(y+1),disabled:y===f,className:"inline-flex items-center gap-2 px-5 py-2.5 text-[0.78rem] font-bold uppercase tracking-[0.08em] disabled:opacity-30",style:{...eu.body,background:eu.TEAL,color:"#fff"},children:[l("next")||"Next"," ",(0,t.jsx)(k.A,{className:"h-4 w-4"})]})]})]})]})}let eN={display:{fontFamily:'var(--font-display, "Archivo"), "Helvetica Neue", Arial, sans-serif'},TERRA:"hsl(var(--brand-primary, 14 62% 47%))",TEAL:"hsl(var(--brand-secondary, 184 38% 26%))",SAND:"hsl(38 33% 96%)",INK:"hsl(192 34% 11%)",MUT:"hsl(192 12% 38%)",LINE:"hsl(192 16% 86%)"};function ej(e){let{children:s}=e;return s?(0,t.jsxs)("span",{className:"inline-flex items-center gap-3 text-[0.7rem] font-bold uppercase",style:{...eN.display,color:eN.TEAL,letterSpacing:"0.22em"},children:[(0,t.jsx)("span",{"aria-hidden":"true",className:"inline-block h-px w-7",style:{background:eN.TERRA}}),s]}):null}function ev(e){let{recordStrip:s,eyebrow:a,title:l,standfirst:r,children:n}=e;return(0,t.jsxs)("header",{className:"relative",style:{background:eN.SAND,borderBottom:"1px solid ".concat(eN.LINE)},children:[(0,t.jsx)("div",{style:{background:eN.TEAL},children:(0,t.jsx)("div",{className:"container mx-auto px-4 max-w-5xl",children:(0,t.jsxs)("div",{className:"flex items-center gap-2 py-1.5 text-[0.66rem] font-semibold uppercase",style:{...eN.display,color:eN.SAND,letterSpacing:"0.16em"},children:[(0,t.jsx)(E.A,{className:"h-3.5 w-3.5",style:{color:eN.SAND}}),(0,t.jsx)("span",{children:s})]})})}),(0,t.jsx)("div",{"aria-hidden":"true",style:{height:2,background:eN.TERRA}}),(0,t.jsxs)("div",{className:"container relative mx-auto px-4 py-12 md:py-16 max-w-5xl",children:[(0,t.jsx)(ej,{children:a}),(0,t.jsx)("h1",{className:"mt-5 font-bold uppercase",style:{...eN.display,color:eN.INK,fontSize:"clamp(2.3rem, 5.4vw, 3.7rem)",lineHeight:1,letterSpacing:"-0.015em"},children:l}),r&&(0,t.jsx)("p",{className:"mt-5 max-w-2xl text-[1.06rem] leading-relaxed",style:{color:eN.MUT},children:r}),n]})]})}function ew(e){let{title:s,body:a,action:l}=e;return(0,t.jsx)("div",{className:"mx-auto max-w-xl text-center",style:{background:"#fff",border:"1px solid ".concat(eN.LINE),borderTop:"3px solid ".concat(eN.TERRA)},children:(0,t.jsxs)("div",{className:"px-8 py-14",children:[(0,t.jsx)("span",{className:"mx-auto flex h-12 w-12 items-center justify-center",style:{background:eN.SAND,border:"1px solid ".concat(eN.LINE),color:eN.TEAL},children:(0,t.jsx)(S.A,{className:"h-6 w-6"})}),(0,t.jsx)("h3",{className:"mt-6 uppercase",style:{...eN.display,color:eN.INK,fontSize:"1.4rem",fontWeight:700,letterSpacing:"-0.01em"},children:s}),(0,t.jsx)("p",{className:"mt-3 text-[1rem] leading-relaxed",style:{color:eN.MUT},children:a}),l]})})}function ek(e){var s,a;
1let{post:l,index:r,sectionName:n,excerpt:i,metaLine:o}=e;return(0,t.jsxs)(B.A,{href:l.uri,className:"group flex flex-col transition-colors duration-200",style:{background:"#fff",border:"1px solid ".concat(eN.LINE),borderLeft:"2px solid transparent"},onMouseEnter:e=>{e.currentTarget.style.background=eN.SAND,e.currentTarget.style.borderLeftColor=eN.TERRA},onMouseLeave:e=>{e.currentTarget.style.background="#fff",e.currentTarget.style.borderLeftColor="transparent"},children:[(0,t.jsxs)("div",{className:"relative aspect-[16/10] overflow-hidden",style:{background:eN.SAND,borderBottom:"1px solid ".concat(eN.LINE)},children:[(null==(a=l.featuredImage)||null==(s=a.node)?void 0:s.sourceUrl)?(0,t.jsx)(W(),{src:l.featuredImage.node.sourceUrl,alt:l.featuredImage.node.altText||l.title,fill:!0,className:"object-cover",sizes:"(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 33vw"}):(0,t.jsx)("span",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2",style:{color:eN.LINE},children:(0,t.jsx)(E.A,{className:"h-12 w-12"})}),(0,t.jsxs)("span",{className:"absolute left-0 top-0 inline-flex items-center gap-1 px-2.5 py-1 text-[0.7rem] font-bold tabular-nums",style:{...eN.display,background:eN.TERRA,color:"#fff",letterSpacing:"0.04em"},children:[(0,t.jsx)(I.A,{className:"h-3 w-3"}),String(r).padStart(2,"0")]})]}),(0,t.jsxs)("div",{className:"flex flex-1 flex-col p-6",children:[n&&(0,t.jsx)("span",{className:"mb-3 inline-flex w-fit items-center px-2.5 py-1 text-[0.62rem] font-bold uppercase",style:{...eN.display,color:eN.TEAL,border:"1px solid ".concat(eN.LINE),letterSpacing:"0.16em"},children:n}),(0,t.jsx)("h3",{className:"uppercase",style:{...eN.display,color:eN.INK,fontSize:"1.18rem",fontWeight:700,lineHeight:1.12,letterSpacing:"-0.01em"},children:l.title}),i&&(0,t.jsx)("p",{className:"mt-3 flex-1 text-[0.94rem] leading-relaxed",style:{color:eN.MUT},children:i}),(0,t.jsx)("div",{className:"mt-6 pt-3 text-[0.72rem] font-semibold uppercase",style:{borderTop:"1px solid ".concat(eN.LINE),color:eN.MUT,letterSpacing:"0.08em"},children:o})]})]})}function eA(e){let{siteName:s,siteTagline:a,t:l,regularPosts:r,featuredPost:n,hasActiveFilters:i,filteredAndSortedPosts:o,categories:c,selectedCategory:d,setSelectedCategory:m,allLabel:x,searchQuery:h,setSearchQuery:p,sortBy:u,setSortBy:g,totalPages:f,currentPage:y,goToPage:b,formatDate:N,truncateText:A,calculateReadingTime:E,startIndex:S}=e,I=n&&!i?[n,...r]:r;return(0,t.jsxs)("div",{className:"min-h-screen",style:{background:eN.SAND},children:[(0,t.jsx)(ev,{recordStrip:"".concat(l("publicResource")||"Public Resource"," \xb7 ").concat(s),eyebrow:l("knowledgeHub")||"Knowledge & Standards",title:l("publicRegister")||"Public Register",standfirst:"".concat(a," ").concat(l("exploreCollectionInsights")||"A maintained record of guidance, standards notes, and interoperability briefings issued by the Council."),children:(0,t.jsx)("div",{className:"mt-8 max-w-xl",children:(0,t.jsxs)("div",{className:"flex items-center gap-3 px-4 py-3",style:{background:"#fff",border:"1px solid ".concat(eN.LINE)},children:[(0,t.jsx)(j.A,{className:"h-4.5 w-4.5 shrink-0",style:{color:eN.TEAL}}),(0,t.jsx)("input",{placeholder:l("searchArticlesPlaceholder")||"Search the register…",value:h,onChange:e=>p(e.target.value),className:"w-full bg-transparent text-base outline-none",style:{...eN.display,color:eN.INK}}),h&&(0,t.jsx)("button",{onClick:()=>p(""),"aria-label":"Clear search",className:"shrink-0 opacity-60 hover:opacity-100",style:{color:eN.MUT},children:(0,t.jsx)(v.A,{className:"h-4 w-4"})})]})})}),(0,t.jsxs)("div",{className:"container mx-auto px-4 py-10 md:py-14 max-w-6xl",children:[(0,t.jsxs)("div",{className:"mb-8 flex flex-wrap items-center gap-2 border-b pb-5",style:{borderColor:eN.LINE},children:[(0,t.jsx)("span",{className:"mr-1 text-[0.66rem] font-bold uppercase",style:{...eN.display,color:eN.MUT,letterSpacing:"0.16em"},children:l("classification")||"Classification"}),(0,t.jsx)("button",{onClick:()=>m(null),className:"px-3.5 py-1.5 text-[0.74rem] font-bold uppercase transition-colors",style:null===d?{...eN.display,background:eN.TERRA,color:"#fff",letterSpacing:"0.08em"}:{...eN.display,background:"#fff",color:eN.INK,border:"1px solid ".concat(eN.LINE),letterSpacing:"0.08em"},children:x}),c.map(e=>{let s=d===e.name;return(0,t.jsx)("button",{onClick:()=>
1m(e.name),className:"px-3.5 py-1.5 text-[0.74rem] font-bold uppercase transition-colors",style:s?{...eN.display,background:eN.TERRA,color:"#fff",letterSpacing:"0.08em"}:{...eN.display,background:"#fff",color:eN.INK,border:"1px solid ".concat(eN.LINE),letterSpacing:"0.08em"},children:e.name},e.id||e.name)})]}),(0,t.jsxs)("div",{className:"mb-7 flex flex-wrap items-baseline justify-between gap-4",children:[(0,t.jsxs)("div",{className:"flex items-baseline gap-3",children:[(0,t.jsx)("span",{"aria-hidden":"true",className:"inline-block h-5 w-1.5",style:{background:eN.TERRA}}),(0,t.jsx)("h2",{className:"uppercase",style:{...eN.display,color:eN.INK,fontSize:"clamp(1.5rem, 3vw, 2rem)",fontWeight:700,letterSpacing:"-0.01em"},children:i?l("searchResults")||"Search results":l("currentEntries")||"Current entries"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsxs)("span",{className:"text-[0.7rem] font-bold uppercase tabular-nums",style:{...eN.display,color:eN.MUT,letterSpacing:"0.1em"},children:[String(o.length).padStart(2,"0")," ",l("entries")||"entries"]}),(0,t.jsx)("button",{onClick:()=>g("latest"===u?"oldest":"latest"),className:"text-[0.7rem] font-bold uppercase",style:{...eN.display,color:eN.TERRA,letterSpacing:"0.08em"},children:"latest"===u?l("newestFirst")||"Newest first":l("oldestFirst")||"Oldest first"})]})]}),I.length>0?(0,t.jsx)("div",{className:"grid gap-px sm:grid-cols-2 lg:grid-cols-3",style:{background:eN.LINE},children:I.map((e,s)=>{var a,r;let n=null==(r=e.categories)||null==(a=r.nodes)?void 0:a.find(e=>!$.has((e.name||"").toLowerCase())&&"uncategorized"!==(e.name||"").toLowerCase());return(0,t.jsx)(ek,{post:e,index:S+s+1,sectionName:null==n?void 0:n.name,excerpt:A(e.excerpt,130),metaLine:"".concat(N(e.date)," \xb7 ").concat(E(e.excerpt)," ").concat(l("min")||"min")},e.id)})}):(0,t.jsx)(ew,{title:i?l("noEntriesMatch")||"No entries match that search.":l("noArticlesFound")||"No entries on the register yet",body:i?l("tryAdjustingFilters")||"Adjust the term, or clear the filter to view the full register.":l("checkBackSoon")||"New guidance is added regularly — please check back soon.",action:i?(0,t.jsx)("button",{onClick:()=>{m(null),p("")},className:"mt-6 inline-flex items-center gap-2 px-6 py-3 text-[0.78rem] font-bold uppercase",style:{...eN.display,background:eN.TERRA,color:"#fff",letterSpacing:"0.08em"},children:l("clearFilters")||"Clear filters"}):null}),f>1&&!i&&(0,t.jsxs)("nav",{className:"mt-12 flex items-center justify-between border-t pt-6",style:{borderColor:eN.LINE},"aria-label":"Pagination",children:[(0,t.jsxs)("button",{onClick:()=>b(y-1),disabled:1===y,className:"inline-flex items-center gap-2 px-5 py-2.5 text-[0.72rem] font-bold uppercase disabled:opacity-30",style:{...eN.display,background:"#fff",color:eN.INK,border:"1px solid ".concat(eN.LINE),letterSpacing:"0.1em"},children:[(0,t.jsx)(w.A,{className:"h-4 w-4"})," ",l("previous")||"Previous"]}),(0,t.jsxs)("span",{className:"text-[0.72rem] font-bold uppercase tabular-nums",style:{...eN.display,color:eN.MUT,letterSpacing:"0.12em"},children:[String(y).padStart(2,"0")," / ",String(f).padStart(2,"0")]}),(0,t.jsxs)("button",{onClick:()=>b(y+1),disabled:y===f,className:"inline-flex items-center gap-2 px-5 py-2.5 text-[0.72rem] font-bold uppercase disabled:opacity-30",style:{...eN.display,background:eN.TERRA,color:"#fff",letterSpacing:"0.1em"},children:[l("next")||"Next"," ",(0,t.jsx)(k.A,{className:"h-4 w-4"})]})]})]})]})}let eE={display:{fontFamily:'var(--font-display, "Newsreader"), Georgia, serif'},SAGE:"hsl(var(--brand-primary, 158 32% 38%))",CLAY:"hsl(var(--brand-secondary, 18 64% 56%))",CREAM:"hsl(40 38% 97%)",MIST:"hsl(150 30% 95%)",INK:"hsl(200 18% 14%)",MUT:"hsl(200 10% 40%)",LINE:"hsl(150 18% 88%)"};function eS(e){let{children:s}=e;return s?(0,t.jsxs)("span",{className:"inline-flex items-center gap-2 text-[0.74rem] font-bold uppercase tracking-[0.16em]",style:{color:eE.SAGE},children:[(0,t.jsx)("span",{"aria-hidden":"true",className:"inline-block h-2 w-2 rounded-full",style:{background:eE.CLAY}}),s]}):null}function eI(e){let{eyebrow:s,title:a,standfirst:l,children:r}=e;return(0,t.jsxs)("header",{className:"relative overflow-hidden",style:{background:"linear-gradient(160deg, ".concat(eE.MIST," 0%, ").concat(eE.CREAM," 100%)")},children:[(0,t.jsx)("span",{"aria-hidden":"true",className:"pointer-events-none absolute -right-16 -top-16 h-72 w-72 rounded-full",style:{background:eE.SAGE,opacity:.07}}),(0,t.jsx)("span",{"aria-hidden":"true",className:"pointer-events-none absolute -left-10 bottom-0 h-56 w-56 rounded-full",style:{background:eE.CLAY,opacity:.06}}),(0,t.jsxs)("div",{className:"relative container mx-auto px-6 py-16 md:py-20 max-w-5xl",children:[(0,t.jsx)(eS,{children:s}),(0,t.jsx)("h1",{className:"mt-6 font-semibold",style:{...eE.display,color:eE.INK,fontSize:"clamp(2.5rem, 5.4vw, 4rem)",lineHeight:1.04,letterSpacing:"-0.02em"},children:a}),l&&(0,t.jsx)("p",{className:"mt-5 max-w-2xl text-[1.14rem] leading-relaxed",style:{color:eE.MUT},children:l}),r]})]})}function eC(e){let{title:s,body:a,action:l}=e;return(0,t.jsx)("div",{className:"mx-auto max-w-xl overflow-hidden rounded-[2rem] text-center",style:{background:"#fff",boxShadow:"0 30px 60px -38px rgba(40,70,55,0.5)"},children:(0,t.jsxs)("div",{className:"px-8 py-14",children:[(0,t.jsx)("span",{className:"mx-auto flex h-16 w-16 items-center justify-center rounded-full",style:{background:eE.MIST,color:eE.SAGE},children:(0,t.jsx)(L,{className:"h-8 w-8"})}),(0,t.jsx)("h3",{className:"mt-6",style:{...eE.display,color:eE.INK,fontSize:"1.7rem",fontWeight:600},children:s}),(0,t.jsx)("p",{className:"mt-3 text-[1.02rem] leading-relaxed",style:{color:eE.MUT},children:a}),l]})})}function eL(e){var s,a;
1let{post:l,sectionName:r,excerpt:n,metaLine:i}=e;return(0,t.jsxs)(B.A,{href:l.uri,className:"group flex flex-col overflow-hidden rounded-3xl bg-white transition-all duration-300 hover:-translate-y-1",style:{boxShadow:"0 18px 40px -28px rgba(40,70,55,0.45)"},children:[(0,t.jsxs)("div",{className:"relative m-3 aspect-[16/10] overflow-hidden rounded-[1.4rem]",style:{background:"linear-gradient(150deg, ".concat(eE.MIST,", ").concat(eE.CREAM,")")},children:[(null==(a=l.featuredImage)||null==(s=a.node)?void 0:s.sourceUrl)?(0,t.jsx)(W(),{src:l.featuredImage.node.sourceUrl,alt:l.featuredImage.node.altText||l.title,fill:!0,className:"object-cover transition-transform duration-500 group-hover:scale-105",sizes:"(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 33vw"}):(0,t.jsx)("span",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2",style:{color:eE.SAGE,opacity:.4},children:(0,t.jsx)(T.A,{className:"h-12 w-12"})}),r&&(0,t.jsx)("span",{className:"absolute left-4 top-4 inline-flex items-center gap-1.5 rounded-full px-3 py-1 text-[0.66rem] font-bold uppercase tracking-[0.1em] text-white",style:{background:eE.CLAY},children:r})]}),(0,t.jsxs)("div",{className:"flex flex-1 flex-col px-6 pb-7 pt-2",children:[(0,t.jsx)("h3",{style:{...eE.display,color:eE.INK,fontSize:"1.4rem",fontWeight:600,lineHeight:1.16},children:l.title}),n&&(0,t.jsx)("p",{className:"mt-3 flex-1 text-[0.98rem] leading-relaxed",style:{color:eE.MUT},children:n}),(0,t.jsxs)("div",{className:"mt-6 flex items-center justify-between text-[0.8rem]",style:{color:eE.MUT},children:[(0,t.jsx)("span",{children:i}),(0,t.jsx)("span",{className:"inline-flex h-8 w-8 items-center justify-center rounded-full transition-transform duration-300 group-hover:translate-x-0.5 group-hover:-translate-y-0.5",style:{background:eE.MIST,color:eE.SAGE},children:(0,t.jsx)(N.A,{className:"h-4 w-4"})})]})]})]})}function eT(e){let{siteName:s,siteTagline:a,t:l,regularPosts:r,featuredPost:n,hasActiveFilters:i,filteredAndSortedPosts:o,categories:c,selectedCategory:d,setSelectedCategory:m,allLabel:x,searchQuery:h,setSearchQuery:p,sortBy:u,setSortBy:g,totalPages:f,currentPage:y,goToPage:b,formatDate:N,truncateText:A,calculateReadingTime:E,startIndex:S}=e,I=n&&!i?[n,...r]:r;return(0,t.jsxs)("div",{className:"min-h-screen",style:{background:eE.CREAM},children:[(0,t.jsx)(eI,{eyebrow:l("knowledgeHub")||"Guides & explainers",title:l("everyPhaseExplained")||"Every phase, explained",standfirst:"".concat(a," ").concat(l("exploreCollectionInsights")||"Friendly, plain-language reading to help you feel confident at every phase of your health."),children:(0,t.jsx)("div",{className:"mt-9 max-w-xl",children:(0,t.jsxs)("div",{className:"flex items-center gap-3 rounded-full bg-white px-6 py-4",style:{boxShadow:"0 14px 34px -24px rgba(40,70,55,0.5)"},children:[(0,t.jsx)(j.A,{className:"h-5 w-5 shrink-0",style:{color:eE.SAGE}}),(0,t.jsx)("input",{placeholder:l("searchArticlesPlaceholder")||"What would you like to learn?",value:h,onChange:e=>p(e.target.value),className:"w-full bg-transparent text-base outline-none",style:{color:eE.INK}}),h&&(0,t.jsx)("button",{onClick:()=>p(""),"aria-label":"Clear search",className:"shrink-0 opacity-60 hover:opacity-100",style:{color:eE.MUT},children:(0,t.jsx)(v.A,{className:"h-4 w-4"})})]})})}),(0,t.jsxs)("div",{className:"container mx-auto px-6 py-14 md:py-16 max-w-6xl",children:[(0,t.jsxs)("div",{className:"mb-10 flex flex-wrap items-center gap-2.5",children:[(0,t.jsx)("button",{onClick:()=>m(null),className:"rounded-full px-5 py-2 text-[0.84rem] font-semibold transition-colors",style:null===d?{background:eE.SAGE,color:"#fff"}:{background:"#fff",color:eE.INK,border:"1px solid ".concat(eE.LINE)},children:x}),c.map(e=>{let s=d===e.name;return(0,t.jsx)("button",{onClick:()=>m(e.name),className:"rounded-full px-5 py-2 text-[0.84rem] font-semibold transition-colors",style:s?{background:eE.SAGE,color:"#fff"}:{background:"#fff",color:eE.INK,border:"1px solid ".concat(eE.LINE)},children:e.name},e.id||e.name)})]}),(0,t.jsxs)("div",{className:"mb-8 flex flex-wrap items-baseline justify-between gap-4",children:[(0,t.jsxs)("div",{className:"flex items-baseline gap-3",children:[(0,t.jsx)("span",{"aria-hidden":"true",className:"inline-block h-3 w-3 rounded-full",style:{background:eE.CLAY}}),(0,t.jsx)("h2",{style:{...eE.display,color:eE.INK,fontSize:"clamp(1.7rem, 3vw, 2.3rem)",fontWeight:600,letterSpacing:"-0.01em"},children:i?l("searchResults")||"Search results":l("latestGuides")||"Latest guides"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsxs)("span",{className:"text-[0.84rem]",style:{color:eE.MUT},children:[o.length," ",l("guides")||"guides"]}),(0,t.jsx)("button",{onClick:()=>
1g("latest"===u?"oldest":"latest"),className:"inline-flex items-center gap-1.5 rounded-full px-4 py-1.5 text-[0.8rem] font-semibold",style:{background:eE.MIST,color:eE.SAGE},children:"latest"===u?l("newestFirst")||"Newest first":l("oldestFirst")||"Oldest first"})]})]}),I.length>0?(0,t.jsx)("div",{className:"grid gap-7 sm:grid-cols-2 lg:grid-cols-3",children:I.map(e=>{var s,a;let r=null==(a=e.categories)||null==(s=a.nodes)?void 0:s.find(e=>!$.has((e.name||"").toLowerCase())&&"uncategorized"!==(e.name||"").toLowerCase());return(0,t.jsx)(eL,{post:e,sectionName:null==r?void 0:r.name,excerpt:A(e.excerpt,140),metaLine:"".concat(N(e.date)," \xb7 ").concat(E(e.excerpt)," ").concat(l("min")||"min")},e.id)})}):(0,t.jsx)(eC,{title:i?l("noGuidesMatch")||"No guides match that search.":l("noArticlesFound")||"No guides here just yet",body:i?l("tryAdjustingFilters")||"Try a different word, or clear the filter to see everything.":l("checkBackSoon")||"New guides are added often — please check back soon!",action:i?(0,t.jsx)("button",{onClick:()=>{m(null),p("")},className:"mt-6 inline-flex items-center gap-2 rounded-full px-6 py-3 text-[0.92rem] font-semibold text-white",style:{background:eE.SAGE},children:l("clearFilters")||"Clear filters"}):null}),f>1&&!i&&(0,t.jsxs)("nav",{className:"mt-14 flex items-center justify-between","aria-label":"Pagination",children:[(0,t.jsxs)("button",{onClick:()=>b(y-1),disabled:1===y,className:"inline-flex items-center gap-2 rounded-full px-6 py-3 text-[0.84rem] font-semibold disabled:opacity-30",style:{background:"#fff",color:eE.SAGE,border:"1px solid ".concat(eE.LINE)},children:[(0,t.jsx)(w.A,{className:"h-4 w-4"})," ",l("previous")||"Previous"]}),(0,t.jsxs)("span",{className:"text-[0.86rem] font-medium",style:{color:eE.MUT},children:[y," / ",f]}),(0,t.jsxs)("button",{onClick:()=>b(y+1),disabled:y===f,className:"inline-flex items-center gap-2 rounded-full px-6 py-3 text-[0.84rem] font-semibold text-white disabled:opacity-30",style:{background:eE.SAGE},children:[l("next")||"Next"," ",(0,t.jsx)(k.A,{className:"h-4 w-4"})]})]})]})]})}let eR={display:{fontFamily:'var(--font-display, "Spectral"), Georgia, "Times New Roman", serif'},TEAL:"hsl(var(--brand-primary, 174 58% 22%))",GOLD:"hsl(var(--brand-secondary, 36 46% 46%))",PAPER:"hsl(38 34% 92%)",CARD:"#fff",INK:"hsl(176 42% 8%)",MUT:"hsl(176 10% 36%)",LINE:"hsl(176 14% 80%)"};function eP(e){let{size:s=40,className:a}=e;return(0,t.jsx)("span",{className:a,style:{...eR.display,display:"inline-flex",alignItems:"center",justifyContent:"center",width:s,height:s,border:"1.5px solid ".concat(eR.TEAL),color:eR.TEAL,fontWeight:600,fontSize:.42*s,lineHeight:1,letterSpacing:"-0.02em"},"aria-hidden":"true",children:"聯新"})}function eM(e){let{locator:s,title:a,standfirst:l,children:r}=e;return(0,t.jsxs)("header",{className:"relative",style:{background:eR.PAPER,borderBottom:"1px solid ".concat(eR.LINE)},children:[(0,t.jsx)("div",{"aria-hidden":"true",style:{height:3,background:eR.TEAL}}),(0,t.jsx)("div",{"aria-hidden":"true",style:{height:1,background:eR.GOLD,marginTop:2}}),(0,t.jsxs)("div",{className:"container relative mx-auto px-4 py-12 md:py-14 max-w-4xl text-center",children:[(0,t.jsxs)("div",{className:"flex items-center justify-center gap-3 text-[0.66rem] font-semibold uppercase",style:{...eR.display,color:eR.MUT,letterSpacing:"0.22em"},children:[(0,t.jsx)("span",{"aria-hidden":"true",className:"hidden sm:inline-block h-px w-10",style:{background:eR.GOLD}}),(0,t.jsx)("span",{children:s}),(0,t.jsx)("span",{"aria-hidden":"true",className:"hidden sm:inline-block h-px w-10",style:{background:eR.GOLD}})]}),(0,t.jsxs)("div",{className:"mt-5 flex items-center justify-center gap-4",children:[(0,t.jsx)(eP,{size:44}),(0,t.jsx)("h1",{className:"font-semibold",style:{...eR.display,color:eR.INK,fontSize:"clamp(2.4rem, 5.6vw, 3.8rem)",lineHeight:1,letterSpacing:"-0.01em"},children:a})]}),l&&(0,t.jsx)("p",{className:"mx-auto mt-5 max-w-2xl text-[1.08rem] italic leading-relaxed",style:{...eR.display,color:eR.MUT},children:l}),r]})]})}function eG(e){let{children:s}=e;return(0,t.jsxs)("div",{className:"mb-8 flex items-center justify-center gap-4",children:[(0,t.jsx)("span",{"aria-hidden":"true",className:"h-px flex-1 max-w-[6rem]",style:{background:eR.GOLD}}),(0,t.jsx)("h2",{className:"text-center uppercase",style:{...eR.display,color:eR.INK,fontSize:"clamp(1.2rem, 2.6vw, 1.6rem)",fontWeight:600,letterSpacing:"0.06em"},children:s}),(0,t.jsx)("span",{"aria-hidden":"true",className:"h-px flex-1 max-w-[6rem]",style:{background:eR.GOLD}})]})}function eU(e){let{title:s,body:a,action:l}=e;return(0,t.jsx)("div",{className:"mx-auto max-w-xl text-center",style:{background:eR.CARD,border:"1px solid ".concat(eR.LINE),borderTop:"3px solid ".concat(eR.GOLD),borderRadius:"0.4rem"},children:(0,t.jsxs)("div",{className:"px-8 py-14",children:[(0,t.jsx)("span",{className:"mx-auto inline-flex",children:(0,t.jsx)(eP,{size:48})}),(0,t.jsx)("h3",{className:"mt-6",style:{...eR.display,color:eR.INK,fontSize:"1.5rem",fontWeight:600},children:s}),(0,t.jsx)("p",{className:"mt-3 text-[1rem] leading-relaxed",style:{...eR.display,color:eR.MUT},children:a}),l]})})}function eF(e){var s,a;
1let{post:l,sectionName:r,excerpt:n,metaLine:i}=e;return(0,t.jsxs)(B.A,{href:l.uri,className:"group flex flex-col overflow-hidden transition-shadow duration-300",style:{background:eR.CARD,border:"1px solid ".concat(eR.LINE),borderTop:"2px solid ".concat(eR.GOLD),borderRadius:"0.5rem"},children:[(0,t.jsx)("div",{className:"relative aspect-[16/10] overflow-hidden",style:{background:eR.PAPER,borderBottom:"1px solid ".concat(eR.LINE)},children:(null==(a=l.featuredImage)||null==(s=a.node)?void 0:s.sourceUrl)?(0,t.jsx)(W(),{src:l.featuredImage.node.sourceUrl,alt:l.featuredImage.node.altText||l.title,fill:!0,className:"object-cover transition-transform duration-500 group-hover:scale-105",sizes:"(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 33vw"}):(0,t.jsx)("span",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2",children:(0,t.jsx)(eP,{size:44})})}),(0,t.jsxs)("div",{className:"flex flex-1 flex-col p-6",children:[r&&(0,t.jsx)("span",{className:"mb-2.5 inline-flex w-fit items-center px-2.5 py-0.5 text-[0.66rem] font-semibold uppercase",style:{...eR.display,color:eR.TEAL,border:"1px solid ".concat(eR.LINE),letterSpacing:"0.1em",fontVariant:"small-caps",borderRadius:"0.2rem"},children:r}),(0,t.jsx)("h3",{className:"font-semibold leading-snug transition-colors group-hover:opacity-80",style:{...eR.display,color:eR.INK,fontSize:"1.34rem",lineHeight:1.15},children:l.title}),n&&(0,t.jsx)("p",{className:"mt-3 flex-1 text-[0.96rem] leading-relaxed",style:{...eR.display,color:eR.MUT},children:n}),(0,t.jsx)("div",{className:"mt-5 pt-3 text-[0.78rem]",style:{...eR.display,borderTop:"1px solid ".concat(eR.LINE),color:eR.MUT},children:i})]})]})}function eD(e){var s,a,l,r;let{siteName:n,siteTagline:i,t:o,regularPosts:c,featuredPost:d,hasActiveFilters:m,filteredAndSortedPosts:x,categories:h,selectedCategory:p,setSelectedCategory:u,allLabel:g,searchQuery:f,setSearchQuery:y,sortBy:b,setSortBy:N,totalPages:A,currentPage:E,goToPage:S,formatDate:I,truncateText:C,calculateReadingTime:L,startIndex:T}=e,P=d&&!m,M=e=>{var s,a;return null==(a=e.categories)||null==(s=a.nodes)?void 0:s.find(e=>!$.has((e.name||"").toLowerCase())&&"uncategorized"!==(e.name||"").toLowerCase())},G=P?M(d):null;return(0,t.jsxs)("div",{className:"min-h-screen",style:{background:eR.PAPER},children:[(0,t.jsx)(eM,{locator:"".concat(n," \xb7 ").concat(o("knowledgeHub")||"Review & Commentary"),title:o("theReview")||"The Review",standfirst:"".concat(i," ").concat(o("exploreCollectionInsights")||"Considered writing on medicine, care, and the practice of health."),children:(0,t.jsx)("div",{className:"mx-auto mt-8 max-w-md",children:(0,t.jsxs)("label",{className:"flex items-end gap-3 pb-2",style:{borderBottom:"2px solid ".concat(eR.TEAL)},children:[(0,t.jsx)(j.A,{className:"h-4 w-4 mb-1 shrink-0",style:{color:eR.TEAL}}),(0,t.jsx)("input",{placeholder:o("searchArticlesPlaceholder")||"Search the review…",value:f,onChange:e=>y(e.target.value),className:"w-full bg-transparent py-1 text-center text-base outline-none placeholder:opacity-55",style:{...eR.display,color:eR.INK}}),f&&(0,t.jsx)("button",{onClick:()=>y(""),"aria-label":"Clear search",className:"mb-1 shrink-0 opacity-60 hover:opacity-100",style:{color:eR.MUT},children:(0,t.jsx)(v.A,{className:"h-4 w-4"})})]})})}),(0,t.jsxs)("div",{className:"container mx-auto px-4 py-10 md:py-14 max-w-5xl",children:[(0,t.jsxs)("div",{className:"mb-9 flex flex-wrap items-center justify-center gap-2 border-y py-4",style:{borderColor:eR.LINE},children:[(0,t.jsx)("button",{onClick:()=>u(null),className:"px-3 py-1 text-[0.82rem] transition-colors",style:null===p?{...eR.display,color:eR.TEAL,border:"1px solid ".concat(eR.TEAL),fontVariant:"small-caps",letterSpacing:"0.04em",borderRadius:"0.2rem"}:{...eR.display,color:eR.MUT,border:"1px solid ".concat(eR.LINE),fontVariant:"small-caps",letterSpacing:"0.04em",borderRadius:"0.2rem"},children:g}),h.map(e=>{let s=p===e.name;return(0,t.jsx)("button",{onClick:()=>u(e.name),className:"px-3 py-1 text-[0.82rem] transition-colors",style:s?{...eR.display,color:eR.TEAL,border:"1px solid ".concat(eR.TEAL),fontVariant:"small-caps",letterSpacing:"0.04em",borderRadius:"0.2rem"}:{...eR.display,color:eR.MUT,border:"1px solid ".concat(eR.LINE),fontVariant:"small-caps",letterSpacing:"0.04em",borderRadius:"0.2rem"},children:e.name},e.id||e.name)})]}),P&&(0,t.jsxs)(B.A,{href:d.uri,className:"group mb-12 grid gap-7 md:grid-cols-2 md:items-center",children:[(0,t.jsx)("div",{className:"relative aspect-[16/10] overflow-hidden",style:{border:"1px solid ".concat(eR.LINE),borderTop:"2px solid ".concat(eR.GOLD),borderRadius:"0.5rem"},children:(null==(a=d.featuredImage)||null==(s=a.node)?void 0:s.sourceUrl)?(0,t.jsx)(W(),{src:d.featuredImage.node.sourceUrl,alt:d.featuredImage.node.altText||d.title,fill:!0,className:"object-cover transition-transform duration-500 group-hover:scale-105",sizes:"(max-width: 768px) 100vw, 50vw"}):(0,t.jsx)("span",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2",children:(0,t.jsx)(eP,{size:56})})}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("span",{className:"inline-flex items-center gap-2 text-[0.7rem] font-semibold uppercase",style:{...eR.display,color:eR.GOLD,letterSpacing:"0.18em"},children:[(0,t.jsx)(R.A,{className:"h-3.5 w-3.5"})," ",o("leadStory")||"Lead story",G&&(0,t.jsxs)("span",{style:{color:eR.MUT},children:["\xb7 ",G.name]})]}),(0,t.jsx)("h2",{className:"mt-3 font-semibold leading-tight transition-colors group-hover:opacity-80",style:{...eR.display,color:eR.INK,fontSize:"clamp(1.8rem, 3.6vw, 2.7rem)",letterSpacing:"-0.01em"},children:d.title}),(0,t.jsx)("p",{className:"mt-4 text-[1.04rem] leading-relaxed",style:{...eR.display,color:eR.MUT},children:C(d.excerpt,260)}),(0,t.jsxs)("div",{className:"mt-4 text-[0.8rem]",style:{...eR.display,color:eR.MUT},children:[(null==(r=d.author)||null==(l=r.node)?void 0:l.name)?"".concat(d.author.node.name," \xb7 "):"",I(d.date)," \xb7 ",L(d.excerpt)," ",o("minRead")||"min read"]})]})]}),(0,t.jsx)(eG,{children:m?o("searchResults")||"Search results":o("moreFromTheReview")||"More from the review"}),(0,t.jsxs)("div",{className:"mb-8 flex flex-wrap items-baseline justify-center gap-3 text-[0.78rem]",style:{...eR.display,color:eR.MUT},children:[(0,t.jsxs)("span",{children:[x.length," ",o("articles")||"articles"]}),(0,t.jsx)("span",{"aria-hidden":"true",children:"\xb7"}),(0,t.jsx)("button",{onClick:()=>N("latest"===b?"oldest":"latest"),className:"font-semibold",style:{color:eR.TEAL},children:"latest"===b?o("newestFirst")||"Newest first":o("oldestFirst")||"Oldest first"})]}),c.length>0?(0,t.jsx)("div",{className:"grid gap-7 sm:grid-cols-2 lg:grid-cols-3",children:c.map(e=>{let s=M(e);return(0,t.jsx)(eF,{post:e,sectionName:null==s?void 0:s.name,excerpt:C(e.excerpt,150),metaLine
1:"".concat(I(e.date)," \xb7 ").concat(L(e.excerpt)," ").concat(o("min")||"min")},e.id)})}):P?null:(0,t.jsx)(eU,{title:m?o("noArticlesMatch")||"No articles match that search.":o("noArticlesFound")||"No articles in the review yet",body:m?o("tryAdjustingFilters")||"Try a different term, or clear the filter to read the full review.":o("checkBackSoon")||"New writing is published regularly — please check back soon.",action:m?(0,t.jsx)("button",{onClick:()=>{u(null),y("")},className:"mt-6 inline-flex items-center gap-2 px-6 py-3 text-[0.85rem] font-semibold text-white",style:{...eR.display,background:eR.TEAL,borderRadius:"0.3rem"},children:o("clearFilters")||"Clear filters"}):null}),A>1&&!m&&(0,t.jsxs)("nav",{className:"mt-12 flex items-center justify-center gap-5 border-t pt-6",style:{borderColor:eR.LINE},"aria-label":"Pagination",children:[(0,t.jsxs)("button",{onClick:()=>S(E-1),disabled:1===E,className:"inline-flex items-center gap-2 text-[0.86rem] font-semibold disabled:opacity-30",style:{...eR.display,color:eR.TEAL},children:[(0,t.jsx)(w.A,{className:"h-4 w-4"})," ",o("previous")||"Previous"]}),(0,t.jsxs)("span",{className:"text-[0.86rem]",style:{...eR.display,color:eR.MUT},children:[E," \xb7 ",A]}),(0,t.jsxs)("button",{onClick:()=>S(E+1),disabled:E===A,className:"inline-flex items-center gap-2 text-[0.86rem] font-semibold disabled:opacity-30",style:{...eR.display,color:eR.TEAL},children:[o("next")||"Next"," ",(0,t.jsx)(k.A,{className:"h-4 w-4"})]})]})]})]})}function ez(){var e,s,a,r;let[n,i]=(0,l.useState)(""),[o,c]=(0,l.useState)("idle"),m=async e=>{if(e.preventDefault(),n){c("loading");try{await (0,Q.ss)(n,{source:"articles_sidebar",current_page:window.location.pathname}),c("success"),i(""),setTimeout(()=>c("idle"),5e3)}catch(e){console.error("Newsletter subscription error:",e),c("error"),setTimeout(()=>c("idle"),3e3)}}},x=(null==(s=d.A.content)||null==(e=s.newsletter)?void 0:e.title)||"Stay Updated",h=(null==(r=d.A.content)||null==(a=r.newsletter)?void 0:a.description)||"Get the latest insights delivered straight to your inbox.";return"success"===o?(0,t.jsx)("div",{className:"bg-white dark:bg-card rounded-xl border shadow-sm p-6",children:(0,t.jsxs)("div",{className:"flex flex-col items-center text-center gap-3",children:[(0,t.jsx)("div",{className:"h-12 w-12 rounded-full bg-green-100 dark:bg-green-900/30 flex items-center justify-center",children:(0,t.jsx)(P.A,{className:"h-6 w-6 text-green-600 dark:text-green-400"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"font-semibold text-lg text-foreground",children:"You're Subscribed!"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground mt-1",children:"Check your inbox for a confirmation email."})]})]})}):(0,t.jsxs)("div",{className:"bg-white dark:bg-card rounded-xl border shadow-sm p-6",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,t.jsx)("div",{className:"h-10 w-10 rounded-lg bg-primary/10 flex items-center justify-center",children:(0,t.jsx)(M.A,{className:"h-5 w-5 text-primary"})}),(0,t.jsx)("h3",{className:"font-semibold text-lg text-foreground",children:x})]}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground mb-4",children:h}),(0,t.jsxs)("form",{onSubmit:m,className:"space-y-3",children:[(0,t.jsx)(f.p,{type:"email",placeholder:"Enter your email",value:n,onChange:e=>i(e.target.value),required:!0,disabled:"loading"===o,className:"h-11 bg-muted/50 border-border"}),(0,t.jsx)(g.$,{type:"submit",disabled:"loading"===o||!n,className:"w-full h-11 bg-gradient-to-r from-orange-500 to-sky-500 hover:from-orange-600 hover:to-sky-600 text-white font-medium",children:"loading"===o?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(G.A,{className:"mr-2 h-4 w-4 animate-spin"}),"Subscribing..."]}):(0,t.jsxs)(t.Fragment,{children:["Subscribe",(0,t.jsx)(U.A,{className:"ml-2 h-4 w-4"})]})}),"error"===o&&(0,t.jsx)("p",{className:"text-sm text-red-500 text-center",children:"Something went wrong. Please try again."})]}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground mt-3 text-center",children:"We respect your privacy. Unsubscribe anytime."})]})}function eO(e){let{siteName:s,siteTagline:a,t:l,regularPosts:r,featuredPost:n,hasActiveFilters:i,filteredAndSortedPosts:o,categories:c,selectedCategory:d,setSelectedCategory:m,allLabel:x,searchQuery:h,setSearchQuery:p,sortBy:u,setSortBy:g,totalPages:f,currentPage:y,goToPage:b,formatDate:N,truncateText:w,calculateReadingTime:k,startIndex:A}=e,E=n&&!i?[n,...r]:r;return(0,t.jsxs)("div",{className:"min-h-screen",style:{background:"hsl(var(--background))"},children:[(0,t.jsx)(Z,{kicker:"".concat(l("articles")||"Articles"," \xb7 ").concat(s),title:l("articles")||"Articles",standfirst:"".concat(a,". ").concat(l("exploreCollectionInsights")||"A standing index of the journal’s long-form explainers and field reporting."),children:(0,t.jsx)("div",{className:"mt-8 max-w-xl",children:(0,t.jsxs)("label",{className:"flex items-end gap-3 border-b pb-2",style:{borderColor:"hsl(var(--primary) / 0.4)"},children:[(0,t.jsx)(j.A,{className:"h-4 w-4 mb-1 shrink-0",style:{color:"hsl(var(--primary))"}}),(0,t.jsx)("input",{placeholder:l("searchArticlesPlaceholder")||"Search the contents…",value:h,onChange:e=>p(e.target.value),className:"w-full bg-transparent py-1 text-base outline-none placeholder:opacity-60",style:{...q.body,color:"hsl(var(--foreground))"}}),h&&(0,t.jsx)("button",{onClick:()=>p(""),"aria-label":"Clear search",className:"mb-1 shrink-0 opacity-70 hover:opacity-100",children:(0,t.jsx)(v.A,{className:"h-4 w-4"})})]})})}),(0,t.jsxs)("div",{className:"container mx-auto px-4 py-10 md:py-14 max-w-5xl",children:[(0,t.jsxs)("div",{className:"mb-8 flex flex-wrap items-center gap-x-5 gap-y-2 border-b pb-4",style:{borderColor:"hsl(var(--border))"},children:[(0,t.jsx)("span",{className:"text-[0.7rem] font-semibold uppercase",style:{...q.sc,color:"hsl(var(--muted-foreground))",letterSpacing:"0.16em"},children:l("sections")||"Sections"}),(0,t.jsx)("button",{onClick:()=>m(null),className:"text-sm transition-colors",style:{...q.body,color:null===d?"hsl(var(--primary))":"hsl(var(--muted-foreground))",fontWeight:null===d?600:400,borderBottom:null===d?"2px solid hsl(var(--accent))":"2px solid transparent",paddingBottom:"2px"},children:x}),c.map(e=>{let s=d===e.name;return(0,t.jsx)("button",{onClick:()=>
1m(e.name),className:"text-sm transition-colors",style:{...q.body,color:s?"hsl(var(--primary))":"hsl(var(--muted-foreground))",fontWeight:s?600:400,borderBottom:s?"2px solid hsl(var(--accent))":"2px solid transparent",paddingBottom:"2px"},children:e.name},e.id||e.name)})]}),(0,t.jsxs)("div",{className:"mb-6 flex items-baseline justify-between gap-4",children:[(0,t.jsx)("h2",{className:"font-bold",style:{...q.display,color:"hsl(var(--foreground))",fontSize:"1.5rem"},children:i?l("searchResults")||"In this search":l("inThisIssue")||"In the current issue"}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsxs)("span",{className:"hidden sm:inline text-[0.7rem] uppercase",style:{...q.sc,color:"hsl(var(--muted-foreground))",letterSpacing:"0.12em"},children:[o.length," ",l("entries")||"entries"]}),(0,t.jsx)("button",{onClick:()=>g("latest"===u?"oldest":"latest"),className:"text-xs uppercase",style:{...q.sc,color:"hsl(var(--primary))",letterSpacing:"0.1em"},children:"latest"===u?l("newestFirst")||"Newest first":l("oldestFirst")||"Oldest first"})]})]}),E.length>0?(0,t.jsx)("ol",{className:"border-t",style:{borderColor:"hsl(var(--border))"},children:E.map((e,s)=>{var a,r,n,i,o,c;let d=null==(r=e.categories)||null==(a=r.nodes)?void 0:a.find(e=>!$.has((e.name||"").toLowerCase())&&"uncategorized"!==(e.name||"").toLowerCase());return(0,t.jsx)("li",{className:"border-b",style:{borderColor:"hsl(var(--border))"},children:(0,t.jsxs)(B.A,{href:e.uri,className:"group grid grid-cols-[auto_1fr] gap-x-5 py-6 md:py-7 items-start",children:[(0,t.jsx)(J,{n:A+s+1}),(0,t.jsxs)("div",{className:"min-w-0",children:[d&&(0,t.jsx)("span",{className:"block mb-1.5 text-[0.68rem] font-semibold uppercase",style:{...q.sc,color:"hsl(var(--accent))",letterSpacing:"0.14em"},children:d.name}),(0,t.jsx)("h3",{className:"font-semibold leading-snug transition-colors",style:{...q.display,color:"hsl(var(--foreground))",fontSize:"clamp(1.2rem, 2.4vw, 1.6rem)"},children:(0,t.jsx)("span",{className:"bg-[length:0%_1px] bg-no-repeat bg-bottom transition-[background-size] duration-300 group-hover:bg-[length:100%_1px]",style:{backgroundImage:"linear-gradient(hsl(var(--primary)), hsl(var(--primary)))"},children:e.title})}),(0,t.jsx)("p",{className:"mt-2 max-w-2xl text-[0.95rem] leading-relaxed line-clamp-2",style:{...q.body,color:"hsl(var(--muted-foreground))"},children:w(e.excerpt,220)}),(0,t.jsxs)("div",{className:"mt-3 flex flex-wrap items-center gap-x-4 gap-y-1 text-[0.78rem]",style:{...q.sc,color:"hsl(var(--muted-foreground))",letterSpacing:"0.03em"},children:[(null==(i=e.author)||null==(n=i.node)?void 0:n.name)&&(0,t.jsx)("span",{children:e.author.node.name}),(null==(c=e.author)||null==(o=c.node)?void 0:o.name)&&(0,t.jsx)("span",{"aria-hidden":"true",style:{color:"hsl(var(--accent))"},children:"\xb7"}),(0,t.jsx)("span",{children:N(e.date)}),(0,t.jsx)("span",{"aria-hidden":"true",style:{color:"hsl(var(--accent))"},children:"\xb7"}),(0,t.jsxs)("span",{children:[k(e.excerpt)," ",l("minRead")||"min read"]})]})]})]})},e.id)})}):(0,t.jsxs)("div",{className:"py-20 text-center",children:[(0,t.jsx)("p",{className:"mx-auto max-w-md text-lg",style:{...q.display,color:"hsl(var(--foreground))"},children:i?l("noEntriesMatch")||"No entries in the current issue match that search.":l("noArticlesIssue")||"No articles are in this section of the current issue yet."}),i&&(0,t.jsx)("button",{onClick:()=>{m(null),p("")},className:"mt-5 text-sm uppercase",style:{...q.sc,color:"hsl(var(--primary))",letterSpacing:"0.1em",borderBottom:"1px solid hsl(var(--accent))"},children:l("clearFilters")||"Clear the filter"})]}),f>1&&!i&&(0,t.jsxs)("nav",{className:"mt-12 flex items-center justify-between border-t pt-6",style:{borderColor:"hsl(var(--border))"},"aria-label":"Pagination",children:[(0,t.jsxs)("button",{onClick:()=>b(y-1),disabled:1===y,className:"text-xs uppercase disabled:opacity-30",style:{...q.sc,color:"hsl(var(--primary))",letterSpacing:"0.12em"},children:["← ",l("previous")||"Previous"]}),(0,t.jsxs)("span",{className:"text-[0.78rem] uppercase",style:{...q.sc,color:"hsl(var(--muted-foreground))",letterSpacing:"0.1em"},children:[l("folio")||"Folio"," ",y," / ",f]}
1),(0,t.jsxs)("button",{onClick:()=>b(y+1),disabled:y===f,className:"text-xs uppercase disabled:opacity-30",style:{...q.sc,color:"hsl(var(--primary))",letterSpacing:"0.12em"},children:[l("next")||"Next"," →"]})]})]})]})}let eK=()=>{var e;return"pango"===((null===d.A||void 0===d.A||null==(e=d.A.theme)?void 0:e.skin)||"editorial")},e_={display:{fontFamily:'var(--font-display, "Newsreader"), Georgia, serif'},mono:{fontFamily:'var(--font-mono, "JetBrains Mono"), ui-monospace, SFMono-Regular, monospace'},INDIGO:"hsl(var(--brand-primary, 244 44% 30%))",EMERALD:"hsl(var(--brand-secondary, 156 60% 36%))",SURFACE:"hsl(var(--surface, 244 30% 97%))",PAPER2:"hsl(var(--paper-2, 244 24% 94.5%))",INK:"hsl(var(--ink, 244 44% 12%))",MUT:"hsl(var(--muted-foreground, 244 12% 42%))",RULE:"hsl(var(--rule, 244 20% 86%))",CHIP_BG:"hsl(244 44% 30% / 0.07)",CHIP_BORDER:"hsl(244 44% 30% / 0.18)"};function eB(e){let{children:s,emerald:a}=e;return s?(0,t.jsx)("span",{className:"inline-block align-middle",style:{...e_.mono,fontSize:"0.72rem",fontWeight:500,lineHeight:1.6,padding:"1px 7px",background:a?"hsl(156 60% 36% / 0.07)":e_.CHIP_BG,color:a?e_.EMERALD:e_.INDIGO,border:"1px solid ".concat(a?"hsl(156 60% 36% / 0.18)":e_.CHIP_BORDER)},children:s}):null}function eH(e){let{children:s,onInk:a}=e;return s?(0,t.jsxs)("span",{className:"inline-flex items-center gap-3 text-[0.7rem] uppercase",style:{...e_.mono,color:a?"rgba(255,255,255,0.78)":e_.INDIGO,letterSpacing:"0.2em"},children:[(0,t.jsx)("span",{"aria-hidden":"true",className:"inline-block h-px",style:{width:28,background:e_.EMERALD}}),s]}):null}function eW(e){let{eyebrow:s,title:a,standfirst:l,children:r}=e;return(0,t.jsxs)("header",{className:"relative overflow-hidden",style:{background:e_.INK},children:[(0,t.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 opacity-[0.06]",style:{backgroundImage:"radial-gradient(hsl(244 44% 30% / 0.9) 0.7px, transparent 0.7px), radial-gradient(hsl(156 60% 36% / 0.9) 0.7px, transparent 0.7px)",backgroundSize:"26px 26px, 26px 26px",backgroundPosition:"0 0, 13px 13px"}}),(0,t.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0",style:{background:"radial-gradient(120% 90% at 92% 8%, hsl(156 60% 36% / 0.14) 0%, transparent 55%)"}}),(0,t.jsxs)("div",{className:"container relative mx-auto px-4 py-12 md:py-16 max-w-5xl",children:[(0,t.jsx)(eH,{onInk:!0,children:s}),(0,t.jsx)("h1",{className:"mt-5 font-semibold tracking-tight text-white",style:{...e_.display,fontSize:"clamp(2.4rem, 5.2vw, 3.6rem)",lineHeight:1.04,letterSpacing:"-0.015em"},children:a}),l&&(0,t.jsx)("p",{className:"mt-5 max-w-2xl text-[1.06rem] leading-relaxed",style:{...e_.mono,color:"rgba(255,255,255,0.72)",fontSize:"0.96rem"},children:l}),r]}),(0,t.jsx)("div",{"aria-hidden":"true",style:{height:2,background:e_.EMERALD}})]})}function eY(e){let{title:s,body:a,action:l}=e;return(0,t.jsx)("div",{className:"mx-auto max-w-xl text-center",style:{background:"#fff",border:"1px solid ".concat(e_.RULE),borderTop:"3px solid ".concat(e_.EMERALD)},children:(0,t.jsxs)("div",{className:"px-8 py-14",children:[(0,t.jsx)("span",{className:"mx-auto flex h-12 w-12 items-center justify-center",style:{background:e_.PAPER2,border:"1px solid ".concat(e_.RULE),color:e_.INDIGO},children:(0,t.jsx)("span",{"aria-hidden":"true",className:"inline-block h-3 w-3 rotate-45",style:{background:e_.EMERALD}})}),(0,t.jsx)("h3",{className:"mt-6",style:{...e_.display,color:e_.INK,fontSize:"1.5rem",fontWeight:600},children:s}),(0,t.jsx)("p",{className:"mt-3 text-[1rem] leading-relaxed",style:{...e_.display,color:e_.MUT},children:a}),l]})})}function eQ(e){let{siteName:s,siteTagline:a,t:l,regularPosts:r,featuredPost:n,hasActiveFilters:i,filteredAndSortedPosts:o,categories:c,selectedCategory:d,setSelectedCategory:m,allLabel:x,searchQuery:h,setSearchQuery:p,sortBy:u,setSortBy:g,totalPages:f,currentPage:y,goToPage:b,formatDate:N,truncateText:A,calculateReadingTime:E,startIndex:S}=e,I=n&&!i?[n,...r]:r;return(0,t.jsxs)("div",{className:"min-h-screen",style:{background:e_.SURFACE},children:[(0,t.jsx)(eW,{eyebrow:"".concat(l("knowledgeHub")||"Lineage notes & methods"," \xb7 ").concat(s),title:l("lineageNotes")||"Lineage Notes",standfirst:"".concat(a," ").concat(l("exploreCollectionInsights")||"Annotated notes, designation rationales, and methods from the lineage-nomenclature record."),children:(0,t.jsx)("div",{className:"mt-8 max-w-xl",children:(0,t.jsxs)("div",{className:"flex items-center gap-3 px-4 py-3",style:{background:"rgba(255,255,255,0.06)",border:"1px solid rgba(255,255,255,0.16)"},children:[(0,t.jsx)(j.A,{className:"h-4.5 w-4.5 shrink-0",style:{color:e_.EMERALD}}),(0,t.jsx)("input",{placeholder:l("searchArticlesPlaceholder")||"Search the record…",value:h,onChange:e=>p(e.target.value),className:"w-full bg-transparent text-base text-white outline-none placeholder:text-white/45",style:{...e_.mono,fontSize:"0.92rem"}}),h&&(0,t.jsx)("button",{onClick:()=>p(""),"aria-label":"Clear search",className:"shrink-0 text-white/60 hover:text-white",children:(0,t.jsx)(v.A,{className:"h-4 w-4"})})]})})}),(0,t.jsxs)("div",{className:"container mx-auto px-4 py-10 md:py-14 max-w-5xl",children:[(0,t.jsxs)("div",{className:"mb-8 flex flex-wrap items-center gap-2 border-b pb-5",style:{borderColor:e_.RULE},children:[(0,t.jsx)("span",{className:"mr-1 text-[0.66rem] uppercase",style:{...e_.mono,color:e_.MUT,letterSpacing:"0.16em"},children:l("filedUnder")||"Filed under"}),(0,t.jsx)("button",{onClick:()=>m(null),className:"px-3 py-1 text-[0.72rem] transition-colors",style:null===d?{...e_.mono,background:e_.INDIGO,color:"#fff",border:"1px solid ".concat(e_.INDIGO)}:{...e_.mono,background:"#fff",color:e_.INDIGO,border:"1px solid ".concat(e_.CHIP_BORDER)},children:x}),c.map(e=>{let s=d===e.name;return(0,t.jsx)("button",{onClick:()=>
1m(e.name),className:"px-3 py-1 text-[0.72rem] transition-colors",style:s?{...e_.mono,background:e_.INDIGO,color:"#fff",border:"1px solid ".concat(e_.INDIGO)}:{...e_.mono,background:"#fff",color:e_.INDIGO,border:"1px solid ".concat(e_.CHIP_BORDER)},children:e.name},e.id||e.name)})]}),(0,t.jsxs)("div",{className:"mb-3 flex flex-wrap items-baseline justify-between gap-4",children:[(0,t.jsxs)("div",{className:"flex items-baseline gap-3",children:[(0,t.jsx)("span",{"aria-hidden":"true",className:"inline-block h-2.5 w-2.5 rotate-45",style:{background:e_.EMERALD}}),(0,t.jsx)("h2",{style:{...e_.display,color:e_.INK,fontSize:"clamp(1.5rem, 3vw, 2rem)",fontWeight:600,letterSpacing:"-0.01em"},children:i?l("searchResults")||"Search results":l("inTheRecord")||"In the record"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsxs)("span",{className:"text-[0.7rem] uppercase tabular-nums",style:{...e_.mono,color:e_.MUT,letterSpacing:"0.1em",fontVariantNumeric:"lining-nums tabular-nums"},children:[String(o.length).padStart(2,"0")," ",l("entries")||"entries"]}),(0,t.jsx)("button",{onClick:()=>g("latest"===u?"oldest":"latest"),className:"text-[0.7rem] uppercase",style:{...e_.mono,color:e_.EMERALD,letterSpacing:"0.08em"},children:"latest"===u?l("newestFirst")||"Newest first":l("oldestFirst")||"Oldest first"})]})]}),I.length>0?(0,t.jsx)("ol",{className:"border-t",style:{borderColor:e_.RULE},children:I.map((e,s)=>{var a,r;let n=null==(r=e.categories)||null==(a=r.nodes)?void 0:a.find(e=>!$.has((e.name||"").toLowerCase())&&"uncategorized"!==(e.name||"").toLowerCase());return(0,t.jsx)("li",{className:"border-b",style:{borderColor:e_.RULE},children:(0,t.jsxs)(B.A,{href:e.uri,className:"group grid grid-cols-[auto_1fr] gap-x-5 py-6 md:py-7 items-start",children:[(0,t.jsx)("span",{"aria-hidden":"true",className:"shrink-0 select-none tabular-nums",style:{...e_.mono,color:e_.EMERALD,fontSize:"1.05rem",lineHeight:1.3,fontWeight:500,minWidth:"2.6rem",fontVariantNumeric:"lining-nums tabular-nums"},children:String(S+s+1).padStart(2,"0")}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("h3",{className:"font-semibold leading-snug transition-colors",style:{...e_.display,color:e_.INK,fontSize:"clamp(1.2rem, 2.4vw, 1.55rem)"},onMouseEnter:e=>{e.currentTarget.style.color=e_.EMERALD},onMouseLeave:e=>{e.currentTarget.style.color=e_.INK},children:e.title}),(0,t.jsx)("p",{className:"mt-2 max-w-2xl text-[0.95rem] leading-relaxed line-clamp-2",style:{...e_.display,color:e_.MUT},children:A(e.excerpt,220)}),(0,t.jsxs)("div",{className:"mt-3 flex flex-wrap items-center gap-x-3 gap-y-1.5 text-[0.74rem]",style:{...e_.mono,color:e_.MUT},children:[(0,t.jsx)("span",{className:"tabular-nums",style:{fontVariantNumeric:"lining-nums tabular-nums"},children:N(e.date)}),n&&(0,t.jsx)("span",{"aria-hidden":"true",style:{color:e_.RULE},children:"\xb7"}),n&&(0,t.jsx)(eB,{children:n.name}),(0,t.jsx)("span",{"aria-hidden":"true",style:{color:e_.RULE},children:"\xb7"}),(0,t.jsxs)("span",{children:[E(e.excerpt)," ",l("minRead")||"min read"]})]})]})]})},e.id)})}):(0,t.jsx)(eY,{title:i?l("noEntriesMatch")||"No entries match that search.":l("noArticlesFound")||"No entries in the record yet",body:i?l("tryAdjustingFilters")||"Adjust the term, or clear the filter to browse the full record.":l("checkBackSoon")||"New notes and designation rationales are added regularly — please check back soon.",action:i?(0,t.jsx)("button",{onClick:()=>{m(null),p("")},className:"mt-6 inline-flex items-center gap-2 px-6 py-3 text-[0.78rem] uppercase",style:{...e_.mono,background:e_.INDIGO,color:"#fff",letterSpacing:"0.08em"},children:l("clearFilters")||"Clear filters"}):null}),f>1&&!i&&(0,t.jsxs)("nav",{className:"mt-12 flex items-center justify-between border-t pt-6",style:{borderColor:e_.RULE},"aria-label":"Pagination",children:[(0,t.jsxs)("button",{onClick:()=>b(y-1),disabled:1===y,className:"inline-flex items-center gap-2 px-5 py-2.5 text-[0.72rem] uppercase disabled:opacity-30",style:{...e_.mono,background:"#fff",color:e_.INDIGO,border:"1px solid ".concat(e_.CHIP_BORDER),letterSpacing:"0.1em"},children:[(0,t.jsx)(w.A,{className:"h-4 w-4"})," ",l("previous")||"Previous"]}),(0,t.jsxs)("span",{className:"text-[0.72rem] uppercase tabular-nums",style:{...e_.mono,color:e_.MUT,letterSpacing:"0.12em",fontVariantNumeric:"lining-nums tabular-nums"},children:[String(y).padStart(2,"0")," / ",String(f).padStart(2,"0")]}),(0,t.jsxs)("button",{onClick:()=>b(y+1),disabled:y===f,className:"inline-flex items-center gap-2 px-5 py-2.5 text-[0.72rem] uppercase disabled:opacity-30",style:{...e_.mono,background:e_.INDIGO,color:"#fff",letterSpacing:"0.1em"},children:[l("next")||"Next"," ",(0,t.jsx)(k.A,{className:"h-4 w-4"})]})]})]})]})}let eV=e=>{var s,a,m,h,y,b,N,A,E,S,I,C,L,T,R,P,M,G,H;let{initialPosts:Q=[],initialCategories:q=[]}=e,X=(0,n.useRouter)(),J=(null==(s=d.A.siteInfo)?void 0:s.name)||"Site Name",Z=(null==(a=d.A.siteInfo)?void 0:a.tagline)||"Latest articles and insights",ee=(null==(m=d.A.siteInfo)?void 0:m.siteUrl)||"",{t:es,basePath:ea,paginationUrl:et,localizedPath:el,formatDate:er}=(0,V.Bd)(),en=parseInt(X.query.page,10)||1,{language:eo}=(0,o.vM)(X.asPath);(0,o.i5)(),(0,o.lI)();let ec=(null==eo?void 0:eo.toLowerCase())||"en",[ed,em]=(0,l.useState)(null),[ex,eh]=(0,l.useState)(""),[eu,eg]=(0,l.useState)("latest"),{data:ef,loading:ey,error:eN}=(0,r.IT)((0,o.lI)()?i.eo:i.NP,{variables:(0,o.lI)()?{language:ec}:void 0,fetchPolicy:Q.length>0?"cache-first":"cache-and-network",nextFetchPolicy:"cache-first"}),{data:ej}=(0,r.IT)(i.gX,{fetchPolicy:q.length>0?"cache-first":"cache-and-network"}),ev=(null==ef||null==(h=ef.posts)?void 0:h.nodes)||Q,ew=(null==ej||null==(y=ej.categories)?void 0:y.nodes)||q,ek=(0,l.useMemo)(()=>{let e=(eo||"en").toLowerCase(),s=ew.filter(s=>{var a,t;let l=null==(t=s.language)||null==(a=t.code)?void 0:a.toLowerCase();return!(l&&l!==e||!l&&"en"!==e||"uncategorized"===(s.slug||"").toLowerCase()||$.has((s.name||"").toLowerCase())||$.has((s.slug||"").toLowerCase()))});return eK()?s.filter(e=>!e.parentDatabaseId):s},[ew,eo]),eE=e=>Math.max(1,Math.ceil(((null==e?void 0:e.replace(/<[^>]*>/g,"").split(/\s+/).length)||0)/200))+4,eS=e=>er(e,"full"),eI=(e,s)=>{if(!e)return"";let a=e.replace(/<[^>]*>/g,"");return a.length<=s?a:a.slice(0,s).trim()+"..."},eC=es("all")||"All",eL=(0,l.useMemo)(()=>{let e=[...ev];if(null!==ed)if(eK()){let s=function(e,s){(s||[]).map(e=>[e.databaseId,e]);let a=(s||[]).find(s=>s.name===e),t=new Set;if(!a)return e&&t.add(e),t;t.add(a.name);let l=new Set([a.databaseId]);for(let e=0;e<6&&l.size;e++){let e=new Set;for(let a of s)a.parentDatabaseId&&l.has(a.parentDatabaseId)&&!t.has(a.name)&&(t.add(a.name),e.add(a.databaseId));l=e}return t}(ed,ew);e=e.filter(e=>{var a,t;return null==(t=e.categories)||null==(a=t.nodes)?void 0:a.some(e=>s.has(e.name))})}else e=e.filter(e=>{var s,a;return null==(a=e.categories)||null==(s=a.nodes)?void 0:s.some(e=>
1e.name===ed)});else e=e.filter(e=>{var s;return!((null==(s=e.categories)?void 0:s.nodes)||[]).some(e=>$.has((e.name||"").toLowerCase())||$.has((e.slug||"").toLowerCase()))});return ex&&(e=e.filter(e=>{var s,a;return(null==(s=e.title)?void 0:s.toLowerCase().includes(ex.toLowerCase()))||(null==(a=e.excerpt)?void 0:a.toLowerCase().includes(ex.toLowerCase()))})),[...e].sort((e,s)=>"latest"===eu?new Date(s.date).getTime()-new Date(e.date).getTime():"oldest"===eu?new Date(e.date).getTime()-new Date(s.date).getTime():0)},[ev,ed,ex,eu,ew]),eR=eL.length,eP=Math.ceil(eR/12),eM=(en-1)*12,eG=eM+12,eU=1!==en||ex||null!==ed?null:eL[0],eF=eU?eL.slice(1).slice(eM,eG-1):eL.slice(eM,eG),e_=[...ev].filter(e=>{var s;return!((null==(s=e.categories)?void 0:s.nodes)||[]).some(e=>$.has((e.name||"").toLowerCase())||$.has((e.slug||"").toLowerCase()))}).slice(0,4),eB=null!==ed||ex,eH=eF.map((e,s)=>{var a,t,l,r;return{name:e.title,url:el(e.uri,{siteUrl:ee,translateSlugs:!1}),position:eM+s+1,image:null==(t=e.featuredImage)||null==(a=t.node)?void 0:a.sourceUrl,description:eI(e.excerpt,120),datePublished:e.date,dateModified:e.modified||e.date,author:(null==(r=e.author)||null==(l=r.node)?void 0:l.name)||void 0}}),eW=eP>1?{currentPage:en,totalPages:eP,basePath:ea("articles")}:null,eY=e=>{let s=et("articles",e);X.push(s,void 0,{shallow:!0})},eV=Array.isArray(Q);if(ey&&0===ev.length&&void 0===ef&&!eV)return(0,t.jsx)(x,{});let e$=eN&&/cannot query field/i.test(eN.message||"");if(eN&&0===ev.length&&!e$)return(0,t.jsx)("div",{className:"container mx-auto my-8",children:(0,t.jsxs)("div",{className:"empty-state",children:[(0,t.jsx)("div",{className:"empty-state-icon",children:(0,t.jsx)(F.A,{className:"h-full w-full"})}),(0,t.jsx)("h3",{className:"empty-state-title",children:"Unable to load articles"}),(0,t.jsx)("p",{className:"empty-state-description",children:eN.message})]})});let eq=[{label:es("articles")||"Articles"}];return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c.Ay,{seo:{title:en>1?"Articles - Page ".concat(en," | ").concat(J):"Articles | ".concat(J),description:"Browse the latest articles and insights from ".concat(J,". ").concat(eR," articles available.").concat(en>1?" Page ".concat(en," of ").concat(eP,"."):"")},pageType:"collection",breadcrumbs:eq,pagination:eW,listItems:eH,totalItems:eR,noindex:eB,customImage:null==eU||null==(N=eU.featuredImage)||null==(b=N.node)?void 0:b.sourceUrl,currentLanguage:eo?{code:eo,locale:"".concat(eo,"_").concat(eo.toUpperCase())}:void 0}),(()=>{var e;return"pressjournal"===((null===d.A||void 0===d.A||null==(e=d.A.theme)?void 0:e.skin)||"editorial")})()?(0,t.jsx)(eO,{siteName:J,siteTagline:Z,t:es,regularPosts:eF,featuredPost:eU,hasActiveFilters:eB,filteredAndSortedPosts:eL,categories:ek,selectedCategory:ed,setSelectedCategory:em,allLabel:eC,searchQuery:ex,setSearchQuery:eh,sortBy:eu,setSortBy:eg,totalPages:eP,currentPage:en,goToPage:eY,formatDate:eS,truncateText:eI,calculateReadingTime:eE,startIndex:eM}):(()=>{var e;return"market"===((null===d.A||void 0===d.A||null==(e=d.A.theme)?void 0:e.skin)||"editorial")})()?(0,t.jsx)(ei,{siteName:J,siteTagline:Z,t:es,regularPosts:eF,featuredPost:eU,hasActiveFilters:eB,filteredAndSortedPosts:eL,categories:ek,selectedCategory:ed,setSelectedCategory:em,allLabel:eC,searchQuery:ex,setSearchQuery:eh,sortBy:eu,setSortBy:eg,totalPages:eP,currentPage:en,goToPage:eY,formatDate:eS,truncateText:eI,calculateReadingTime:eE,startIndex:eM}):(()=>{var e;return"warmsage"===((null===d.A||void 0===d.A||null==(e=d.A.theme)?void 0:e.skin)||"editorial")})()?(0,t.jsx)(ep,{siteName:J,siteTagline:Z,t:es,regularPosts:eF,featuredPost:eU,hasActiveFilters:eB,filteredAndSortedPosts:eL,categories:ek,selectedCategory:ed,setSelectedCategory:em,allLabel:eC,searchQuery:ex,setSearchQuery:eh,sortBy:eu,setSortBy:eg,totalPages:eP,currentPage:en,goToPage:eY,formatDate:eS,truncateText:eI,calculateReadingTime:eE,startIndex:eM}):(()=>{var e;return"clinical"===((null===d.A||void 0===d.A||null==(e=d.A.theme)?void 0:e.skin)||"editorial")})()?(0,t.jsx)(eb,{siteName:J,siteTagline:Z,t:es,regularPosts:eF,featuredPost:eU,hasActiveFilters:eB,filteredAndSortedPosts:eL,categories:ek,selectedCategory:ed,setSelectedCategory:em,allLabel:eC,searchQuery:ex,setSearchQuery:eh,sortBy:eu,setSortBy:eg,totalPages:eP,currentPage:en,goToPage:eY,formatDate:eS,truncateText:eI,calculateReadingTime:eE,startIndex:eM}):(()=>{var e;
1return"council"===((null===d.A||void 0===d.A||null==(e=d.A.theme)?void 0:e.skin)||"editorial")})()?(0,t.jsx)(eA,{siteName:J,siteTagline:Z,t:es,regularPosts:eF,featuredPost:eU,hasActiveFilters:eB,filteredAndSortedPosts:eL,categories:ek,selectedCategory:ed,setSelectedCategory:em,allLabel:eC,searchQuery:ex,setSearchQuery:eh,sortBy:eu,setSortBy:eg,totalPages:eP,currentPage:en,goToPage:eY,formatDate:eS,truncateText:eI,calculateReadingTime:eE,startIndex:eM}):(()=>{var e;return"friendly"===((null===d.A||void 0===d.A||null==(e=d.A.theme)?void 0:e.skin)||"editorial")})()?(0,t.jsx)(eT,{siteName:J,siteTagline:Z,t:es,regularPosts:eF,featuredPost:eU,hasActiveFilters:eB,filteredAndSortedPosts:eL,categories:ek,selectedCategory:ed,setSelectedCategory:em,allLabel:eC,searchQuery:ex,setSearchQuery:eh,sortBy:eu,setSortBy:eg,totalPages:eP,currentPage:en,goToPage:eY,formatDate:eS,truncateText:eI,calculateReadingTime:eE,startIndex:eM}):(()=>{var e;return"review"===((null===d.A||void 0===d.A||null==(e=d.A.theme)?void 0:e.skin)||"editorial")})()?(0,t.jsx)(eD,{siteName:J,siteTagline:Z,t:es,regularPosts:eF,featuredPost:eU,hasActiveFilters:eB,filteredAndSortedPosts:eL,categories:ek,selectedCategory:ed,setSelectedCategory:em,allLabel:eC,searchQuery:ex,setSearchQuery:eh,sortBy:eu,setSortBy:eg,totalPages:eP,currentPage:en,goToPage:eY,formatDate:eS,truncateText:eI,calculateReadingTime:eE,startIndex:eM}):eK()?(0,t.jsx)(eQ,{siteName:J,siteTagline:Z,t:es,regularPosts:eF,featuredPost:eU,hasActiveFilters:eB,filteredAndSortedPosts:eL,categories:ek,selectedCategory:ed,setSelectedCategory:em,allLabel:eC,searchQuery:ex,setSearchQuery:eh,sortBy:eu,setSortBy:eg,totalPages:eP,currentPage:en,goToPage:eY,formatDate:eS,truncateText:eI,calculateReadingTime:eE,startIndex:eM}):(0,t.jsxs)("div",{className:"min-h-screen bg-background",children:[(0,t.jsx)("header",{className:"relative bg-gradient-to-br from-primary/5 via-background to-background border-b",children:(0,t.jsxs)("div",{className:"container mx-auto px-4 py-12 md:py-16",children:[(0,t.jsxs)("div",{className:"max-w-3xl",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-4",children:[(0,t.jsx)(D.A,{className:"h-5 w-5 text-primary"}),(0,t.jsx)("span",{className:"text-sm font-medium text-primary",children:es("knowledgeHub")||"Knowledge Hub"})]}),(0,t.jsxs)("h1",{className:"text-4xl md:text-5xl font-bold tracking-tight text-foreground mb-4",children:[J," ",es("articles")||"Articles"]}),(0,t.jsxs)("p",{className:"text-lg text-muted-foreground leading-relaxed max-w-2xl",children:[Z,". ",es("exploreCollectionInsights")||"Explore our collection of expert insights, guides, and the latest updates."]})]}),(0,t.jsx)("div",{className:"mt-8 max-w-xl",children:(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(j.A,{className:"absolute left-4 top-1/2 -translate-y-1/2 h-5 w-5 text-muted-foreground"}),(0,t.jsx)(f.p,{placeholder:es("searchArticlesPlaceholder")||"Search articles...",value:ex,onChange:e=>eh(e.target.value),className:"pl-12 h-12 text-base rounded-xl border-2 focus:border-primary"}),ex&&(0,t.jsx)(g.$,{variant:"ghost",size:"sm",className:"absolute right-2 top-1/2 -translate-y-1/2 h-8 w-8 p-0",onClick:()=>eh(""),children:(0,t.jsx)(v.A,{className:"h-4 w-4"})})]})})]})}),(0,t.jsx)("div",{className:"container mx-auto px-4 py-8 md:py-12",children:(0,t.jsxs)("div",{className:"flex flex-col lg:flex-row gap-8 lg:gap-12",children:[(0,t.jsxs)("main",{className:"flex-1 min-w-0",children:[eU&&!eB&&(0,t.jsxs)("div",{className:"featured-post-hero mb-12 shadow-xl",children:[(0,t.jsx)("div",{className:"featured-post-image relative",children:(null==(E=eU.featuredImage)||null==(A=E.node)?void 0:A.sourceUrl)?(0,t.jsx)(W(),{src:eU.featuredImage.node.sourceUrl,alt:eU.featuredImage.node.altText||eU.title,fill:!0,className:"object-cover",priority:!0}):(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-primary/20 to-primary/5 flex items-center justify-center",children:(0,t.jsx)(F.A,{className:"h-20 w-20 text-primary/30"})})}),(0,t.jsxs)("div",{className:"featured-post-content",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,t.jsx)(p.E,{className:"bg-primary text-primary-foreground",children:es("featured")||"Featured"}),null==(I=eU.categories)||null==(S=I.nodes)?void 0:S.slice(0,1).map(e=>(0,t.jsx)("span",{className:"category-pill",children:e.name},e.id))]}),(0,t.jsx)("h2",{className:"text-2xl md:text-3xl font-bold mb-4 leading-tight",children:(0,t.jsx)(B.A,{href:eU.uri,className:"hover:text-primary transition-colors",children:eU.title})}),(0,t.jsx)("p",{className:"text-muted-foreground mb-6 leading-relaxed line-clamp-3",children:eI(eU.excerpt,180)}),(0,t.jsxs)("div",{className:"flex items-center gap-4 text-sm text-muted-foreground mb-6",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(z.A,{className:"h-4 w-4 text-primary"}),(0,t.jsxs)("span",{children:[eE(eU.excerpt)," ",es("minRead")||"min read"]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(O.A,{className:"h-4 w-4 text-primary"}),(0,t.jsx)("span",{children:eS(eU.date)})]})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsxs)(u.eu,{className:"h-10 w-10 ring-2 ring-background",children:[(0,t.jsx)(u.BK,{src:null==(T=eU.author)||null==(L=T.node)||null==(C=L.avatar)?void 0:C.url}),(0,t.jsx)(u.q5,{className:"text-xs font-medium bg-primary/10 text-primary",children:(e=>e?e.split(" ").map(e=>e[0]).join("").toUpperCase().slice(0,2):"?")(null==(P=eU.author)||null==(R=P.node)?void 0:R.name)})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-medium text-sm",children:null==(G=eU.author)||null==(M=G.node)?void 0:M.name}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:es("author")||"Author"})]})]}),(0,t.jsx)(g.$,{asChild:!0,className:"gap-2",children:(0,t.jsxs)(B.A,{href:eU.uri,children:[es("readArticle")||"Read Article",(0,t.jsx)(U.A,{className:"h-4 w-4"})]})})]})]})]}),(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4 mb-8",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("h2",{className:"text-2xl font-bold",children:eB?es("searchResults")||"Search Results":es("latestArticles")||"Latest Articles"}),eB&&(0,t.jsxs)(p.E,{variant:"secondary",children:[eL.length," ",es("found")||"found"]}
1)]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsxs)("span",{className:"text-sm text-muted-foreground hidden sm:inline",children:[es("sort")||"Sort",":"]}),(0,t.jsx)(g.$,{variant:"latest"===eu?"default":"ghost",size:"sm",onClick:()=>eg("latest"),children:es("newest")||"Newest"}),(0,t.jsx)(g.$,{variant:"oldest"===eu?"default":"ghost",size:"sm",onClick:()=>eg("oldest"),children:es("oldest")||"Oldest"})]})]}),eF.length>0?(0,t.jsx)("div",{className:"grid sm:grid-cols-2 xl:grid-cols-3 gap-6",children:eF.map(e=>(0,t.jsx)(Y.A,{post:e},e.id))}):(0,t.jsxs)("div",{className:"empty-state",children:[(0,t.jsx)("div",{className:"empty-state-icon",children:(0,t.jsx)(j.A,{className:"h-full w-full"})}),(0,t.jsx)("h3",{className:"empty-state-title",children:es("noArticlesFound")||"No articles found"}),(0,t.jsx)("p",{className:"empty-state-description",children:eB?es("tryAdjustingFilters")||"Try adjusting your search or filters to find what you're looking for.":es("checkBackSoon")||"Check back soon for new content!"}),eB&&(0,t.jsx)(g.$,{variant:"outline",onClick:()=>{em(null),eh("")},children:es("clearFilters")||"Clear Filters"})]}),eP>1&&!eB&&(0,t.jsxs)("nav",{className:"flex items-center justify-center gap-2 mt-12 py-8 border-t","aria-label":"Pagination",children:[(0,t.jsxs)(g.$,{variant:"outline",size:"sm",onClick:()=>eY(en-1),disabled:1===en,className:"gap-1",children:[(0,t.jsx)(w.A,{className:"h-4 w-4"}),es("previous")||"Previous"]}),(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[en>3&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(g.$,{variant:1===en?"default":"ghost",size:"sm",onClick:()=>eY(1),className:"w-10",children:"1"}),en>4&&(0,t.jsx)("span",{className:"px-2 text-muted-foreground",children:"..."})]}),Array.from({length:eP},(e,s)=>s+1).filter(e=>2>=Math.abs(e-en)).map(e=>(0,t.jsx)(g.$,{variant:en===e?"default":"ghost",size:"sm",onClick:()=>eY(e),className:"w-10","aria-current":en===e?"page":void 0,children:e},e)),en<eP-2&&(0,t.jsxs)(t.Fragment,{children:[en<eP-3&&(0,t.jsx)("span",{className:"px-2 text-muted-foreground",children:"..."}),(0,t.jsx)(g.$,{variant:en===eP?"default":"ghost",size:"sm",onClick:()=>eY(eP),className:"w-10",children:eP})]})]}),(0,t.jsxs)(g.$,{variant:"outline",size:"sm",onClick:()=>eY(en+1),disabled:en===eP,className:"gap-1",children:[es("next")||"Next",(0,t.jsx)(k.A,{className:"h-4 w-4"})]})]}),eP>1&&!eB&&(0,t.jsxs)("p",{className:"text-center text-sm text-muted-foreground mt-2",children:[es("pageOf",{current:en,total:eP})||"Page ".concat(en," of ").concat(eP)," (",es("articlesCount",{count:eR})||"".concat(eR," articles"),")"]})]}),(0,t.jsxs)("aside",{className:"lg:w-80 xl:w-96 space-y-8",children:[(0,t.jsxs)("div",{className:"bg-card rounded-xl border p-6",children:[(0,t.jsxs)("h3",{className:"font-semibold text-lg mb-4 flex items-center gap-2",children:[(0,t.jsx)(K,{className:"h-5 w-5 text-primary"}),es("categories")||"Categories"]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsx)(g.$,{variant:null===ed?"default":"outline",size:"sm",onClick:()=>em(null),className:"rounded-full",children:eC},"all"),ek.map(e=>(0,t.jsx)(g.$,{variant:ed===e.name?"default":"outline",size:"sm",onClick:()=>em(e.name),className:"rounded-full",children:e.name},e.id||e.name))]})]}),(0,t.jsxs)("div",{className:"bg-card rounded-xl border p-6",children:[(0,t.jsxs)("h3",{className:"font-semibold text-lg mb-4 flex items-center gap-2",children:[(0,t.jsx)(_.A,{className:"h-5 w-5 text-primary"}),es("popularArticles")||"Popular Articles"]}),(0,t.jsx)("div",{className:"space-y-4",children:e_.map((e,s)=>(0,t.jsxs)(B.A,{href:e.uri,className:"flex gap-4 group",children:[(0,t.jsx)("div",{className:"flex-shrink-0 w-10 h-10 rounded-lg bg-primary/10 flex items-center justify-center font-bold text-primary text-lg",children:s+1}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsx)("h4",{className:"font-medium text-sm leading-snug mb-1 group-hover:text-primary transition-colors line-clamp-2",children:e.title}),(0,t.jsxs)("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[(0,t.jsx)(z.A,{className:"h-3 w-3"}),(0,t.jsxs)("span",{children:[eE(e.excerpt)," ",es("min")||"min"]})]})]})]},e.id))})]}),(0,t.jsxs)("div",{className:"bg-card rounded-xl border p-6",children:[(0,t.jsx)("h3",{className:"font-semibold text-lg mb-4",children:es("browseTopics")||"Browse Topics"}),(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:ek.slice(0,8).map(e=>(0,t.jsx)("button",{onClick:()=>em(e.name),className:"category-pill",children:e.name},e.id))})]}),(null==(H=d.A.features)?void 0:H.showNewsletter)!==!1&&(0,t.jsx)(ez,{})]})]})})]})]})};var e$=!0},39159:(e,s,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/articles",function(){return a(29955)}])},46781:(e,s,a)=>{"use strict";a.d(s,{A:()=>t});let t=(0,a(58309).A)("hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}
1]])},53662:(e,s,a)=>{"use strict";a.d(s,{A:()=>t});let t=(0,a(58309).A)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])},83112:(e,s,a)=>{"use strict";a.d(s,{A:()=>t});let t=(0,a(58309).A)("scroll-text",[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]])},87294:(e,s,a)=>{"use strict";a.d(s,{E:()=>r});var t=a(6029),l=a(39287);function r(e){let{className:s,...a}=e;return(0,t.jsx)("div",{className:(0,l.cn)("animate-pulse rounded-md bg-muted",s),...a})}}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=39159)),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.