/* Guide directory only; article layouts and the shared site chrome stay shared. */
.guides-page { padding-block:26px 56px; }
.guide-hub { --hub-border:#dce3eb; --hub-muted:#526175; }
.guide-hub .breadcrumbs { font-size:.78rem; margin-bottom:0; }
.hub-heading { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); align-items:end; gap:36px; padding-block:36px 30px; }
.hub-heading .eyebrow { color:#9f302b; font-size:.72rem; margin-bottom:14px; }
.hub-heading h1 { font-size:clamp(2.1rem,4.1vw,3.3rem); line-height:1.1; letter-spacing:-.045em; }
.hub-heading h1 span { color:#526175; }
.hub-heading > div > p:not(.eyebrow) { font-size:1rem; line-height:1.7; max-width:51ch; }
.hub-heading > div > p.hub-library-meta { margin-top:14px; font-size:.76rem; color:var(--hub-muted); }
.hub-library-meta span { margin-inline:5px; }
.guide-hub .guide-topics { display:block; margin:0 0 26px; padding:22px; border:1px solid var(--hub-border); border-radius:14px; background:#edf1f6; scroll-margin-top:108px; }
.hub-topics-heading { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:16px; }
.hub-topics-heading h2 { font-size:1rem; letter-spacing:-.015em; }
.hub-topics-heading p { font-size:.77rem; color:var(--hub-muted); }
.hub-topic-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.guide-hub .hub-topic-grid a { display:flex; align-items:center; gap:12px; min-height:74px; padding:13px 16px; border-radius:9px; background:#fff; border:1px solid var(--hub-border); color:var(--navy); text-decoration:none; font-size:.86rem; font-weight:650; line-height:1.35; transition:border-color .15s,background .15s; }
.hub-topic-grid a:hover { border-color:#d88c80; background:#fff9f7; }
.hub-topic-icon { flex:0 0 30px; color:#9f302b; }
.hub-topic-icon svg { width:26px; height:26px; display:block; }
.hub-topic-grid small { display:block; color:var(--hub-muted); font-size:.7rem; font-weight:400; margin-top:5px; }
.hub-topic-arrow { margin-left:auto; align-self:center; color:#64748b; }
.hub-feature { display:flex; align-items:center; justify-content:space-between; gap:32px; padding:28px 32px; background:var(--navy); border-radius:14px; margin-bottom:38px; }
.hub-feature .eyebrow { color:#ffb6a7; font-size:.67rem; margin-bottom:10px; }
.hub-feature h2 { font-size:clamp(1.4rem,2.4vw,1.85rem); line-height:1.2; letter-spacing:-.025em; }
.hub-feature h2 a { color:#fff; text-decoration:none; }
.hub-feature h2 a:hover { text-decoration:underline; text-underline-offset:4px; }
.hub-feature p:not(.eyebrow) { color:#cbd5e1; max-width:66ch; font-size:.87rem; line-height:1.65; margin-top:12px; }
.hub-feature > .button { flex-shrink:0; min-height:48px; gap:18px; font-size:.85rem; }
.hub-feature-tags { display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
.hub-feature-tags span { font-size:.65rem; color:#d4dce8; border:1px solid #46506a; padding:4px 8px; border-radius:4px; }
.guide-hub .guide-library { margin:0; padding-block:0 38px; scroll-margin-top:110px; }
.hub-category-heading { display:grid; grid-template-columns:48px minmax(0,1fr) auto; align-items:center; gap:16px; padding:22px 0; margin-bottom:18px; border-bottom:1px solid var(--hub-border); }
.hub-category-icon { display:grid; place-items:center; width:48px; height:48px; background:#fff0e9; color:#9f302b; border:1px solid #efd4ca; border-radius:11px; }
.hub-category-icon svg { width:26px; height:26px; }
.hub-category-label { font-size:.65rem; color:#9f302b; text-transform:uppercase; letter-spacing:.09em; font-weight:700; margin-bottom:5px; }
.hub-category-heading h2 { font-size:clamp(1.35rem,2.2vw,1.75rem); letter-spacing:-.025em; line-height:1.2; scroll-margin-top:110px; }
.hub-category-heading h2 + p { max-width:66ch; font-size:.85rem; line-height:1.6; color:var(--hub-muted); margin-top:8px; }
.hub-category-meta { display:grid; gap:10px; text-align:right; font-size:.73rem; color:var(--hub-muted); }
.hub-category-meta > span { display:block; background:#e9eef4; border-radius:20px; padding:6px 10px; white-space:nowrap; }
.hub-category-meta a { font-size:.7rem; text-underline-offset:3px; }
.guide-hub .guide-cards.ui-card-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.guide-hub .guide-cards.ui-card-grid > .guide-card { grid-column:auto; grid-row:auto; }
.guide-hub .guide-card.ui-panel { display:flex; flex-direction:column; gap:12px; align-items:stretch; padding:24px; border:1px solid var(--hub-border); border-radius:11px; box-shadow:none; min-width:0; background:#fff; }
.guide-hub .guide-card .card-label { font-size:.63rem; line-height:1.6; letter-spacing:.07em; margin:0; }
.guide-hub .guide-card h3 { font-size:1.14rem; line-height:1.3; letter-spacing:-.02em; max-width:none; margin:0; text-wrap:pretty; }
.guide-hub .guide-card p:not(.card-label):not(.guide-reading-time) { font-size:.85rem; line-height:1.7; margin:0; max-width:none; }
.guide-hub .guide-card .guide-reading-time { font-size:.69rem; padding-top:8px; margin-top:auto; color:#64748b; }
.guide-hub .guide-card > .text-link { margin-top:auto; padding-top:12px; border-top:1px solid #e8edf3; font-size:.78rem; min-height:42px; gap:16px; }
.guide-hub .guide-card:has(.guide-reading-time) > .text-link { margin-top:0; }
.guide-hub .guide-card:hover { border-color:#a8b5c6; box-shadow:0 5px 16px rgb(15 23 42 / 4%); }
.guide-hub .hub-category-note { margin-top:16px; max-width:88ch; font-size:.8rem; line-height:1.7; color:var(--hub-muted); }
.guide-hub .resource-banner { margin:0 0 24px; padding:26px 30px; border-radius:12px; }
.guide-hub .resource-banner h2 { font-size:1.5rem; line-height:1.25; }
.guide-hub .guide-callout { margin-top:0; padding:28px 30px; border-radius:12px; }
.guide-hub .guide-callout h2 { font-size:1.5rem; }
.guide-hub .guide-callout p { font-size:.9rem; line-height:1.7; }
.guide-hub :focus-visible { outline:3px solid #a63028; outline-offset:4px; }
@media(max-width:1000px) {
 .guide-hub .guide-cards.ui-card-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .guide-hub .guide-library,.guide-hub .guide-topics,.hub-category-heading h2 { scroll-margin-top:150px; }
 .hub-heading { gap:26px; }
 .guide-hub .hub-topic-grid a { padding:12px; gap:8px; font-size:.8rem; }
 .hub-feature { padding:26px; }
}
@media(max-width:700px) {
 .guides-page { padding-block:20px 40px; }
 .hub-heading { grid-template-columns:1fr; gap:18px; padding-block:26px 24px; }
 .hub-heading h1 { font-size:clamp(2rem,7.4vw,2.7rem); }
 .hub-heading .eyebrow { font-size:.69rem; margin-bottom:12px; }
 .hub-heading > div > p:not(.eyebrow) { font-size:.94rem; line-height:1.7; }
 .hub-heading > div > p.hub-library-meta { font-size:.76rem; }
 .guide-hub .guide-topics { padding:16px; margin-bottom:20px; }
 .hub-topics-heading { display:block; margin-bottom:14px; }
 .hub-topics-heading h2 { font-size:.94rem; }
 .hub-topics-heading p { font-size:.74rem; margin-top:6px; }
 .hub-topic-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
 .guide-hub .hub-topic-grid a { padding:12px 10px; font-size:.76rem; min-height:82px; gap:8px; }
 .hub-topic-icon { flex-basis:22px; }
 .hub-topic-icon svg { width:21px; height:21px; }
 .hub-topic-arrow { display:none; }
 .hub-topic-grid small { font-size:.65rem; }
 .hub-feature { display:block; padding:24px; margin-bottom:22px; }
 .hub-feature > .button { margin-top:20px; width:100%; }
 .hub-feature-tags { margin-top:14px; }
 .hub-category-heading { grid-template-columns:40px minmax(0,1fr); gap:12px; padding:20px 0; margin-bottom:16px; }
 .hub-category-icon { width:40px; height:40px; border-radius:9px; }
 .hub-category-icon svg { width:23px; height:23px; }
 .hub-category-heading h2 { font-size:1.4rem; }
 .hub-category-heading h2 + p { font-size:.82rem; }
 .hub-category-meta { grid-column:2; display:flex; align-items:center; justify-content:space-between; gap:16px; text-align:left; font-size:.68rem; }
 .hub-category-meta a { font-size:.69rem; min-height:32px; display:flex; align-items:center; }
 .guide-hub .guide-cards.ui-card-grid { grid-template-columns:1fr; gap:12px; }
 .guide-hub .guide-card.ui-panel { padding:22px; gap:12px; }
 .guide-hub .guide-card h3 { font-size:1.15rem; }
 .guide-hub .guide-card .card-label { font-size:.65rem; }
 .guide-hub .guide-card p:not(.card-label):not(.guide-reading-time) { font-size:.87rem; }
 .guide-hub .guide-card .guide-reading-time { font-size:.72rem; }
 .guide-hub .guide-card > .text-link { font-size:.83rem; min-height:44px; }
 .guide-hub .guide-library { padding-bottom:22px; }
 .guide-hub .resource-banner,.guide-hub .guide-callout { padding:24px; }
 body:has(.guides-page) .whatsapp-contact { width:48px; height:48px; min-width:48px; padding:12px; right:14px; bottom:14px; border-radius:50%; }
 body:has(.guides-page) .whatsapp-contact span { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
}
@media print {
 .guide-hub .guide-topics,.hub-category-meta a { display:none; }
 .guide-hub .guide-cards.ui-card-grid { grid-template-columns:repeat(2,1fr); }
 .guide-hub .guide-card { break-inside:avoid; }
}

/* Trade technology updates. */
.guide-hub #updates { scroll-margin-top:140px; }
@media(max-width:760px) { .guide-hub #updates { scroll-margin-top:220px; } }
.guide-hub .hub-topic-grid a[href="#updates"] { grid-column:1 / -1; border-color:#efd4ca; background:#fff9f7; }
.guide-hub .hub-updates-note { max-width:75ch; color:var(--hub-muted); font-size:.9rem; margin:0 0 20px; }
.guide-hub .hub-rss-help { margin-top:18px; font-size:.85rem; }
.guide-hub .hub-rss-help summary { cursor:pointer; color:var(--navy); font-weight:650; }
.guide-hub .hub-rss-help p { margin-top:12px; }

.guide-hub #updates .guide-card.updates-feature { grid-column:1 / -1; display:grid; grid-template-columns:minmax(0,1fr) minmax(260px,.9fr); gap:32px; align-items:center; }
.guide-hub .update-card-copy { min-width:0; display:flex; flex-direction:column; gap:12px; }
.guide-hub .updates-feature img { display:block; width:100%; height:auto; border-radius:10px; }
.guide-hub .updates-feature .guide-reading-time { margin-top:18px; }
@media(max-width:700px) { .guide-hub #updates .guide-card.updates-feature { display:block; } .guide-hub .updates-feature img { margin-top:24px; } }
