/* Public guide (guide/index.php). Builds on legal/legal.css (colours, .paper, .cta, footer): mobile first, easy to read. */
.gtop { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 820px; margin: 0 auto; padding: 14px 16px; }
.gbrand { display: inline-flex; align-items: center; gap: 8px; font: 800 20px/1 var(--display); text-decoration: none; color: var(--ink); }
.gtop .langsw { display: inline-flex; gap: 4px; }
.gtop .langsw a { padding: 6px 12px; border-radius: 999px; text-decoration: none; background: var(--cream); color: var(--ink); font-weight: 800; font-size: 14px; }
.gtop .langsw a.on { background: var(--green-d); color: #fff; }
.gmain { max-width: 820px; margin: 0 auto; padding: 0 16px 20px; }
.crumbs { font-size: 14px; color: var(--soft); margin: 4px 4px 14px; }
.crumbs a { text-decoration: none; }
.gmain .paper h1 { font: 800 clamp(26px, 5vw, 36px)/1.2 var(--display); margin: 0 0 8px; }
.gmain .paper h2 { font: 800 clamp(21px, 4vw, 26px)/1.25 var(--display); margin: 28px 0 8px; }
.gmain .paper h3 { font: 800 18px/1.3 var(--display); margin: 20px 0 6px; }
.gmain .paper p, .gmain .paper li { font-size: 17px; line-height: 1.7; }
.gmain .paper ul { padding-left: 22px; }
.gmain .paper li { margin: 6px 0; }
.meta { color: var(--soft); font-size: 14.5px; margin: 0 0 18px; }
.note { color: var(--soft); font-size: 14px !important; border-top: 1px dashed var(--edge); padding-top: 12px; margin-top: 26px; }
.gcards { display: grid; gap: 14px; }
.gcard { display: block; padding: 16px 18px; border: 2px solid var(--edge); border-radius: 20px; background: var(--cream); text-decoration: none; color: var(--ink); font-weight: 400; }
.gcard b { display: block; font: 800 19px/1.3 var(--display); margin-bottom: 4px; }
.gcard span { display: block; color: var(--soft); font-size: 15.5px; }
.gcard i { display: inline-block; margin-top: 8px; font-style: normal; font-weight: 800; color: var(--green-d); }
.gcard:hover { border-color: var(--green-d); }
.playbox { text-align: center; }
.playbox h2 { margin-top: 0; }

/* pictures: screenshots, album of fish, crop stages, tiles */
.shots { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 20px 0; }
.shots figure { margin: 0; flex: 0 1 220px; text-align: center; }
.shots figure.wide { flex-basis: 520px; }
.shots img { display: block; width: 100%; height: auto; border-radius: 18px; border: 3px solid var(--edge); box-shadow: var(--shadow); }
figcaption { font-size: 14px; line-height: 1.45; color: var(--soft); margin-top: 8px; }
.shots figcaption b { display: block; color: var(--ink); }
.album { margin: 22px 0; padding: 14px; border: 2px dashed var(--edge); border-radius: 20px; background: var(--cream); }
.album > figcaption { margin: 0 0 10px; font: 800 16px/1.3 var(--display); color: var(--ink); }
.agrid, .cgrid, .tgrid { display: grid; gap: 10px; }
.agrid { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
.cgrid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.tgrid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.agrid div, .cgrid div, .tgrid div { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 8px 4px; border-radius: 14px; background: var(--paper); font-size: 14px; }
.agrid img { width: 56px; height: 56px; }
.stages { display: flex; gap: 2px; } .stages img { width: 44px; height: 44px; }
.tgrid div { align-items: flex-start; text-align: left; padding: 12px; } .tgrid span { color: var(--soft); font-size: 14px; }

/* cards (fish, crops, machines) */
.cardlink { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.cardlink img { flex: none; }
.cardlink b, .cardlink span { flex: 1 1 60%; }
.cardicon { text-align: center; margin: 4px 0 0; } .cardicon img { width: 96px; height: 96px; }
.stagesrow { display: flex; justify-content: center; gap: 10px; margin: 8px 0; } .stagesrow img { width: 64px; height: 64px; }
.lead { font-size: 18px; }
.cardtable { width: 100%; border-collapse: collapse; margin: 6px 0 14px; }
.cardtable th, .cardtable td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--edge); font-size: 16px; vertical-align: top; }
.cardtable th { width: 42%; color: var(--soft); font-weight: 700; }

/* social links of the footers and the social page */
.soc { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 10px; margin: 14px 0 6px; }
.soc span { color: var(--soft); font-size: 14px; margin-right: 2px; }
.soc a { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 7px 14px; border-radius: 999px; background: var(--cream, #FFF3DA); border: 2px solid var(--edge, #D9B98E); color: var(--ink, #6B4A3C); text-decoration: none; font-size: 14px; }
.soc a b { font-weight: 800; }
.soc a:hover { border-color: var(--green-d, #3E8E5A); }
.socgrid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin: 10px 0 6px; }
.soccard { display: flex; flex-direction: column; gap: 3px; padding: 16px; border: 2px solid var(--edge); border-radius: 20px; background: var(--cream); color: var(--ink); text-decoration: none; font-weight: 400; }
.soccard b { font: 800 18px/1.2 var(--display); } .soccard span { color: var(--green-d); font-weight: 700; } .soccard small { color: var(--soft); font-size: 14.5px; }
.soccard:hover { border-color: var(--green-d); }
.vids { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin: 10px 0; }
.vid { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); font-weight: 400; }
.vid img { width: 100%; aspect-ratio: 9 / 14; height: auto; object-fit: cover; border-radius: 16px; border: 3px solid var(--edge); box-shadow: var(--shadow); }
.vid b { font: 800 15px/1.3 var(--display); } .vid small { color: var(--soft); font-size: 13px; }

/* pictures with the Pocket Wex mark: photos are marked in the file (site/wm, tools/wm_images.py); loose sprites get the same mark in CSS */
.hero { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; border-radius: 18px; border: 3px solid var(--edge); box-shadow: var(--shadow); margin: 0 0 18px; }
.gcard img.thumb { display: block; width: 100%; height: auto; aspect-ratio: 480 / 252; border-radius: 12px; border: 2px solid var(--edge); margin-bottom: 10px; background: var(--cream); }
.cardicon.big img { width: 160px; height: 160px; border-radius: 16px; }
.wm { position: relative; }
.wm::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='230' height='110'%3E%3Ctext x='8' y='66' transform='rotate(-25 115 55)' font-family='sans-serif' font-weight='800' font-size='20' fill='%236B4A3C' fill-opacity='.11'%3EPOCKET WEX%3C/text%3E%3C/svg%3E"); }
.wmb::after { content: "pocketwex.it"; position: absolute; right: 8px; bottom: 7px; padding: 1px 9px; border: 1px solid rgba(107, 74, 60, .5); border-radius: 99px; background: rgba(255, 248, 226, .88); color: var(--green-d); font: 800 11px/1.5 var(--display); pointer-events: none; }
.cardlink.wm { overflow: hidden; }

/* «In breve»: the answer first (GEO), and who writes */
.tldr { margin: 0 0 22px; padding: 14px 18px; border-radius: 18px; background: var(--cream); border: 2px solid var(--edge); }
.tldr b { display: block; font: 800 15px/1.2 var(--display); color: var(--green-d); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.tldr p { margin: 0; }
.byline { color: var(--soft); font-size: 14.5px !important; border-top: 1px dashed var(--edge); padding-top: 12px; margin-top: 28px; }
.depth { display: grid; grid-template-columns: 1fr; gap: 6px; margin: 22px 0; text-align: center; }
.depth img { width: 100%; height: auto; border-radius: 18px; border: 3px solid var(--edge); box-shadow: var(--shadow); }
.icontable img { width: 44px; height: 44px; vertical-align: middle; }
.icontable td:first-child { width: 48px; padding-right: 0; }
.icontable th { width: 26%; }
@media (max-width: 520px) { .icontable th { width: 30%; font-size: 15px; } .icontable td { font-size: 15px; } }
/* devblog: category links and the small line above a post card */
.blogcats{font-size:.95em}.blogcats a.on{font-weight:700;text-decoration:none}
.gcard small{display:block;opacity:.7;font-size:.8em;margin-bottom:2px}
