/* Homepage and profile page sections. Bump ?v= on every page when changed. */

/* How it works */
.tlg-steps{list-style:none;margin:32px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:20px;counter-reset:s}
.tlg-steps li{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:24px;counter-increment:s;position:relative}
.tlg-steps li::before{content:counter(s);display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--gold-soft);color:#7a5408;font-weight:800;margin-bottom:14px}
.tlg-steps h3{margin-bottom:.35em}
.tlg-steps p{margin:0;color:var(--muted);font-size:.97rem}
@media (max-width:820px){.tlg-steps{grid-template-columns:1fr}}

/* Listings */
.tlg-list-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:24px}
.tlg-list-head p{margin:0}
.tlg-filter{display:flex;flex-wrap:wrap;gap:8px}
.tlg-chipbtn{font:inherit;font-size:.88rem;font-weight:600;padding:8px 14px;border-radius:999px;border:1.5px solid var(--line);background:#fff;color:var(--ink);cursor:pointer}
.tlg-chipbtn:hover{border-color:var(--green)}
.tlg-chipbtn[aria-pressed="true"]{background:var(--green);border-color:var(--green);color:#fff}
.tlg-listings{list-style:none;margin:0;padding:0;display:grid;gap:18px}
.tlg-card{display:grid;grid-template-columns:120px 1fr auto;gap:22px;align-items:start;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:22px;box-shadow:var(--shadow)}
.tlg-card[hidden]{display:none}
.tlg-card--featured{border:2px solid var(--gold);background:linear-gradient(180deg,#fffaf0,#fff 60%)}
.tlg-card-logo{width:120px;height:90px;border-radius:10px;border:1px solid var(--line);background:#fff;display:grid;place-items:center;overflow:hidden}
.tlg-card-logo img{max-width:104px;max-height:76px;object-fit:contain}
.tlg-mono{width:100%;height:100%;display:grid;place-items:center;background:var(--paper);color:var(--green);font-weight:800;font-size:1.5rem;letter-spacing:.02em}
.tlg-card h3{font-size:1.25rem;margin:0 0 4px}
.tlg-card h3 a{color:inherit;text-decoration:none}
.tlg-card h3 a:hover{text-decoration:underline}
.tlg-badge{display:inline-flex;align-items:center;gap:6px;font-size:.78rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;padding:4px 10px;border-radius:999px;background:var(--gold-soft);color:#6d4a05;margin-bottom:8px}
.tlg-card-desc{color:var(--muted);font-size:.98rem;margin:6px 0 12px}
.tlg-tags{list-style:none;margin:0 0 12px;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.tlg-tags li{font-size:.8rem;font-weight:600;padding:4px 10px;border-radius:999px;background:#edf3ef;color:var(--green-2)}
.tlg-facts{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px 18px;font-size:.88rem;color:var(--muted)}
.tlg-facts li{display:flex;align-items:center;gap:6px}
.tlg-facts svg{width:16px;height:16px;color:var(--leaf);flex:none}
.tlg-rating{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px;font-size:.9rem;color:var(--muted)}
.tlg-stars{color:var(--gold);letter-spacing:2px;font-size:1rem}
.tlg-rating strong{color:var(--ink)}
.tlg-quote{margin:10px 0 0;padding:10px 14px;border-left:3px solid var(--gold);background:var(--paper);border-radius:0 8px 8px 0;font-size:.92rem;color:var(--muted)}
.tlg-card-act{display:flex;flex-direction:column;gap:8px;min-width:190px}
.tlg-card-act .tlg-btn{min-height:44px;padding:10px 16px;font-size:.95rem}
.tlg-card-links{display:flex;flex-wrap:wrap;gap:4px 14px;justify-content:center;font-size:.88rem;margin-top:2px}
@media (max-width:900px){
  .tlg-card{grid-template-columns:88px 1fr;gap:16px}
  .tlg-card-logo{width:88px;height:70px}
  .tlg-card-logo img{max-width:76px;max-height:58px}
  .tlg-card-act{grid-column:1/-1;flex-direction:row;flex-wrap:wrap;min-width:0}
  .tlg-card-act .tlg-btn{flex:1 1 160px}
  .tlg-card-links{width:100%}
}
@media (max-width:420px){.tlg-card{padding:18px;grid-template-columns:64px 1fr}.tlg-card-logo{width:64px;height:56px}.tlg-card-logo img{max-width:56px;max-height:46px}.tlg-mono{font-size:1.1rem}}

/* Guide */
.tlg-guide{display:grid;grid-template-columns:1fr 340px;gap:48px;align-items:start}
.tlg-guide-body h2{margin-top:1.4em}
.tlg-guide-body h2:first-child{margin-top:0}
.tlg-guide-body ul{padding-left:1.2em}
.tlg-guide-aside{position:sticky;top:140px;display:grid;gap:18px}
.tlg-guide-aside figure{margin:0;border-radius:var(--radius);overflow:hidden;background:var(--paper)}
.tlg-guide-aside figcaption{font-size:.85rem;color:var(--muted);padding:10px 14px}
.tlg-box{background:var(--green);color:#dfe9e3;border-radius:var(--radius);padding:24px}
.tlg-box h3{color:#fff}
.tlg-box p{font-size:.95rem}
@media (max-width:960px){.tlg-guide{grid-template-columns:1fr}.tlg-guide-aside{position:static}}

.tlg-svc{list-style:none;margin:20px 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px}
.tlg-svc li{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:12px 14px;font-weight:600;color:var(--green)}
.tlg-svc svg{width:20px;height:20px;color:var(--gold);flex:none}

.tlg-price{width:100%;border-collapse:collapse;margin:16px 0 8px;font-size:.97rem;background:#fff;border-radius:var(--radius);overflow:hidden;border:1px solid var(--line)}
.tlg-price th,.tlg-price td{text-align:left;padding:12px 16px;border-bottom:1px solid var(--line);vertical-align:top}
.tlg-price th{background:var(--paper);color:var(--green);font-size:.85rem;text-transform:uppercase;letter-spacing:.05em}
.tlg-price tr:last-child td{border-bottom:0}
.tlg-price td:last-child{white-space:nowrap;font-weight:700;color:var(--green)}
.tlg-small{font-size:.88rem;color:var(--muted)}

.tlg-factors{list-style:none;margin:16px 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:8px}
.tlg-factors li{background:var(--paper);border-radius:10px;padding:10px 12px;font-weight:600;font-size:.93rem;text-align:center}

/* Flip cards */
.tlg-flips{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:20px 0}
@media (max-width:820px){.tlg-flips{grid-template-columns:1fr}}
.tlg-flip{display:block;perspective:1200px;min-height:230px;cursor:pointer;border-radius:var(--radius)}
.tlg-flip-in{position:relative;width:100%;height:100%;min-height:230px;transition:transform .5s;transform-style:preserve-3d}
.tlg-flip.is-flipped .tlg-flip-in{transform:rotateY(180deg)}
@media (hover:hover){.tlg-flip:hover .tlg-flip-in{transform:rotateY(180deg)}}
.tlg-flip-f,.tlg-flip-b{position:absolute;inset:0;border-radius:var(--radius);padding:22px;backface-visibility:hidden;-webkit-backface-visibility:hidden;display:flex;flex-direction:column}
.tlg-flip-f{background:#fff;border:1px solid var(--line)}
.tlg-flip-f .tlg-flip-h{margin:auto 0 0;font-size:1.2rem;font-weight:700;line-height:1.25;color:var(--green)}
.tlg-flip-f span{font-size:.85rem;color:#8a6210;font-weight:700}
.tlg-flip-b{background:var(--green);color:#dfe9e3;transform:rotateY(180deg);font-size:.93rem;overflow:auto}
.tlg-flip-b p{margin:0}
@media (prefers-reduced-motion:reduce){.tlg-flip-in{transition:none}}

/* Show more */
[data-xp] > .is-xp-hidden{display:none}
.tlg-xp-btn{margin-top:8px}

/* Join / about */
.tlg-split{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center}
@media (max-width:820px){.tlg-split{grid-template-columns:1fr}}
.tlg-ticks{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.tlg-ticks li{display:flex;gap:12px;align-items:flex-start}
.tlg-ticks svg{width:22px;height:22px;color:var(--gold);flex:none;margin-top:2px}

/* Profile page */
.tlg-prof{display:grid;grid-template-columns:1fr 380px;gap:40px;align-items:start}
@media (max-width:960px){.tlg-prof{grid-template-columns:1fr}}
.tlg-prof-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow);position:sticky;top:90px}
@media (max-width:960px){.tlg-prof-card{position:static}}
.tlg-dl{display:grid;grid-template-columns:auto 1fr;gap:10px 16px;margin:0 0 18px;font-size:.95rem}
.tlg-dl dt{font-weight:700;color:var(--green)}
.tlg-dl dd{margin:0;color:var(--muted)}
.tlg-badge svg{width:14px;height:14px;flex:none}
@media (max-width:560px){
  .tlg-card{grid-template-columns:1fr;gap:12px}
  .tlg-card-logo{width:72px;height:54px}
  .tlg-card-logo img{max-width:62px;max-height:44px}
  .tlg-badge{font-size:.72rem}
  .tlg-filter{flex-wrap:nowrap;overflow-x:auto;margin:0 -20px;padding:2px 20px 6px;scrollbar-width:none}
  .tlg-filter::-webkit-scrollbar{display:none}
  .tlg-chipbtn{white-space:nowrap;flex:none}
}
.tlg-guide-body ul.tlg-svc,.tlg-guide-body .tlg-factors{padding-left:0}
.tlg-guide-body h3{font-size:1.35rem;margin-top:1.5em}
.tlg-guide-body .tlg-flips{margin:16px 0}
.tlg-factors li{background:#fff;border:1px solid var(--line)}
.tlg-guide-body .tlg-eyebrow + h2{margin-top:0}
.tlg-flip,.tlg-flip-in{min-height:200px}

.tlg-guide-img{display:block;width:100%;height:auto;border-radius:14px;margin:18px 0}
