/* Azimi Law guides index. Uses only the site's own tokens. Namespaced gh- (the site already owns .hub). */
.gh{max-width:1160px;margin:0 auto;padding:0 2rem 3rem}
.gh-search{display:flex;gap:.5rem;margin-top:1.6rem;max-width:560px}
.gh-search input{flex:1;min-width:0;padding:.85rem 1.1rem;border:0;border-radius:7px;font:inherit;font-size:1rem;background:#fff;color:var(--text)}
.gh-search input:focus{outline:2px solid var(--gold-light);outline-offset:1px}
.gh-search button{padding:.85rem 1.4rem;border:0;border-radius:7px;background:var(--gold);color:var(--navy);font:inherit;font-weight:700;cursor:pointer}
.gh-search button:hover{background:var(--gold-light)}
.gh-langs{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;margin-top:1.2rem;font-size:.82rem;color:rgba(255,255,255,.7)}
.gh-langs a{color:#fff;border:1px solid rgba(255,255,255,.3);border-radius:999px;padding:.5rem .95rem;text-decoration:none;display:inline-block}
.gh-langs a:hover,.gh-langs a[aria-current]{background:var(--gold);border-color:var(--gold);color:var(--navy)}
.gh-bar{display:flex;flex-wrap:wrap;gap:.7rem 1rem;align-items:center;justify-content:space-between;padding:1rem 0 0}
.gh-tabs{display:flex;gap:.3rem;background:var(--gold-faint);border:1px solid var(--border-light);border-radius:999px;padding:.25rem}
.gh-tabs button{border:0;background:transparent;color:var(--navy);font:inherit;font-size:.88rem;font-weight:600;padding:.5rem 1.1rem;border-radius:999px;cursor:pointer;transition:background .15s,color .15s}
.gh-tabs button:hover{background:rgba(184,147,62,.16)}
.gh-tabs button[aria-pressed=true]{background:var(--navy);color:#fff}
.gh-count{font-size:.84rem;color:var(--text-muted)}
.gh-filter{display:none}.js .gh-filter{display:flex}.js .gh-topics.gh-filter{display:grid}.js .gh-tabs.gh-filter{display:inline-flex}.js .gh-step.gh-filter{display:flex}.js .gh-topics[hidden]{display:none}
/* step 1: area tabs, step 2: topic tiles */
.gh-nav{padding:1.8rem 0 0}
.gh-step{display:flex;align-items:center;gap:.7rem;margin:0 0 .8rem;font-size:.76rem;letter-spacing:.1em;text-transform:uppercase;font-weight:700;color:var(--text-muted)}
.gh-step b{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:var(--navy);color:#fff;font-size:.72rem;letter-spacing:0}
.gh-topics{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:.9rem}
.gh-tile{display:flex;align-items:center;gap:.9rem;text-align:start;background:#fff;border:1px solid var(--border);border-radius:12px;padding:.95rem 1.1rem;cursor:pointer;font:inherit;color:inherit;transition:border-color .15s,box-shadow .15s,background .15s}
.gh-tile:hover{border-color:var(--gold);box-shadow:0 6px 16px rgba(11,29,56,.08)}
.gh-tile .ti{width:42px;height:42px;border-radius:10px;background:var(--navy);display:flex;align-items:center;justify-content:center;flex:none}
.gh-tile .ti svg{width:21px;height:21px;fill:var(--gold-light)}
.gh-tile b{display:block;font-size:.95rem;font-weight:700;line-height:1.3;color:var(--navy)}
.gh-tile small{display:block;margin-top:.1rem;font-size:.78rem;color:var(--text-muted)}
.gh-tile[aria-pressed=true]{background:var(--navy);border-color:var(--navy);box-shadow:0 8px 20px rgba(11,29,56,.22)}
.gh-tile[aria-pressed=true] b{color:#fff}.gh-tile[aria-pressed=true] small{color:rgba(255,255,255,.72)}
.gh-tile[aria-pressed=true] .ti{background:var(--gold)}.gh-tile[aria-pressed=true] .ti svg{fill:var(--navy)}
.gh-tile:focus-visible,.gh-tabs button:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.is-search .gh-nav{display:none}
.gh-panels{margin-top:.4rem}
.gh-phead{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;margin:1.9rem 0 1rem;padding-bottom:.7rem;border-bottom:1px solid var(--border)}
.gh-phead h2{margin:0;font-family:'Cormorant Garamond',serif;font-weight:600;font-size:1.75rem;line-height:1.15;color:var(--navy)}
.gh-phead span{font-size:.82rem;color:var(--text-muted);white-space:nowrap}
.gh-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.1rem}
/* guide card */
.gcard{position:relative;display:flex;flex-direction:column;gap:.65rem;background:#fff;border:1px solid var(--border);border-radius:12px;padding:1.25rem 1.3rem 1.1rem;box-shadow:0 1px 3px rgba(11,29,56,.05);transition:border-color .2s,box-shadow .2s,transform .2s}
.gcard:hover{border-color:var(--gold);box-shadow:0 10px 26px rgba(11,29,56,.11);transform:translateY(-3px)}
.gc-top{display:flex;align-items:center;justify-content:space-between;gap:.6rem}
.gc-ico{width:38px;height:38px;border-radius:9px;background:var(--navy);display:flex;align-items:center;justify-content:center}
.gc-ico svg{width:19px;height:19px;fill:var(--gold-light)}
.gc-chip{font-size:.72rem;letter-spacing:.09em;text-transform:uppercase;font-weight:700;color:#85661f;background:var(--gold-faint);border:1px solid var(--border-light);border-radius:999px;padding:.22rem .65rem}
.gcard h3{margin:0;font-family:'Cormorant Garamond',serif;font-weight:600;font-size:1.28rem;line-height:1.22;color:var(--navy)}
.gcard h3 a{color:inherit;text-decoration:none}
.gcard h3 a::after{content:"";position:absolute;inset:0;border-radius:12px}
.gcard p{margin:0;flex:1;font-size:.86rem;line-height:1.6;color:var(--text-muted);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.gc-foot{display:flex;align-items:center;justify-content:space-between;gap:.6rem;border-top:1px solid var(--border-light);padding-top:.75rem;margin-top:.15rem;font-size:.76rem;color:var(--text-muted)}
.gc-go{display:inline-flex;align-items:center;gap:.3rem;font-weight:700;font-size:.82rem;color:#85661f}
.gc-go svg{width:14px;height:14px;fill:currentColor;transition:transform .15s}
.gcard:hover .gc-go svg{transform:translateX(3px)}
[dir=rtl] .gc-go svg{transform:scaleX(-1)}
[dir=rtl] .gcard:hover .gc-go svg{transform:scaleX(-1) translateX(3px)}
.gh-empty{display:none;padding:2rem;text-align:center;color:var(--text-muted)}
.gh-end{margin-top:2.6rem;padding:1.3rem 1.5rem;background:var(--navy);color:#fff;border-radius:12px;display:flex;flex-wrap:wrap;gap:.6rem 1.5rem;align-items:center;justify-content:space-between}
.gh-end b{font-family:'Cormorant Garamond',serif;font-size:1.35rem;font-weight:600}
.gh-end div{display:flex;gap:.7rem;flex-wrap:wrap}
.gh-end a{padding:.6rem 1.2rem;border-radius:7px;font-weight:700;font-size:.9rem;text-decoration:none}
.gh-end a.p{background:var(--gold);color:var(--navy)}.gh-end a.s,.gh-end button.s{display:inline-block;border:1px solid rgba(255,255,255,.45);color:#fff;background:transparent;font:inherit;font-weight:700;font-size:.9rem;cursor:pointer;padding:.6rem 1.2rem;border-radius:7px}.gh-end button.s:hover{background:rgba(255,255,255,.12)}
.gh-index{margin-top:2.4rem;border:1px solid var(--border);border-radius:12px;background:#fff}
.gh-index>summary{cursor:pointer;list-style:none;padding:1rem 1.3rem;font-weight:700;color:var(--navy);font-size:.92rem;display:flex;justify-content:space-between;align-items:center}
.gh-index>summary::-webkit-details-marker{display:none}
.gh-index>summary::after{content:"+";font-size:1.3rem;color:#85661f;line-height:1}
.gh-index[open]>summary::after{content:"2"}
.gh-index nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.4rem 2.5rem;padding:.2rem 1.3rem 1.3rem;border-top:1px solid var(--border-light)}
.gh-index h3{margin:1rem 0 .5rem;font-family:'DM Sans',sans-serif;font-size:.74rem;letter-spacing:.1em;text-transform:uppercase;color:#85661f}
.gh-index ul{list-style:none;margin:0;padding:0}
[dir=rtl] .gcard h3,[dir=rtl] .gh-phead h2,[dir=rtl] .gh-end b{font-family:'Vazirmatn','DM Sans',sans-serif;font-weight:700}
[dir=rtl] .gcard h3{font-size:1.08rem;line-height:1.5}
[dir=rtl] .gh-phead h2{font-size:1.45rem}
.gh-index li{padding:.28rem 0;font-size:.88rem;line-height:1.45}
.gh-index a{color:var(--navy);text-decoration:none}.gh-index a:hover{color:#85661f;text-decoration:underline}
@media(max-width:700px){.gh-index nav{grid-template-columns:minmax(0,1fr)}}
.is-search .gh-index{display:none}
.gh .legal-notice{margin-top:2.2rem}
[hidden]{display:none!important}
@media(max-width:1000px){.gh-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.gh{padding:0 1rem 2.5rem}.gh-grid{grid-template-columns:minmax(0,1fr)}.gh-search{flex-direction:column}.gh-topics{grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}.gh-tile{flex-direction:column;align-items:flex-start;gap:.5rem;padding:.8rem}.gh-phead h2{font-size:1.45rem}.gh-tabs{width:100%}.gh-tabs button{flex:1;padding:.5rem .4rem;font-size:.8rem}}

/* ---- design polish (Oct 2026) ---- */
.gh-topics{display:flex;flex-wrap:wrap;gap:.5rem}
.gh-tile{flex:0 0 auto;white-space:nowrap;flex-direction:row;align-items:center;gap:.5rem;padding:.5rem 1rem;border-radius:999px}
.gh-tile .ti{display:none}
.gh-tile>span:last-child{display:flex;align-items:baseline;gap:.5rem}
.gh-tile b{font-size:.92rem;font-weight:600}
.gh-tile small{font-size:.78rem}
.gh-step{font-size:.8rem}
.gcard .gc-ico{display:none}
.gcard .gc-top:not(:has(.gc-chip)){display:none}
.gcard .gc-chip{font-size:.75rem}
.gh-search button{color:#0b1d38}
.gcard h3{text-wrap:balance}
.gcard p{text-wrap:pretty}
@media(max-width:640px){.gh-tile{max-width:100%;white-space:normal;padding:.45rem .85rem}.gh-tile>span:last-child{flex-wrap:wrap;min-width:0;gap:.1rem .4rem}.gh-topics{gap:.4rem}}
.gcard:hover{transform:translateY(-2px)}
@media(prefers-reduced-motion:reduce){.gcard:hover{transform:none}}
