/* IGCN Guides: the Pages CSS file of the Guides page (fe-guides.css, written by the front package's deploy.php and
   attached to the page); the parts the Bug Tracker and the front share (header card, search field, flags, rich text)
   stay in front.css */
.fe-ghd__step { color: var(--fe-muted); }
.fe-gfilter { margin-top: 16px; }
/* the index: the title left, the search and the Discord link on the right (under the title on phones) */
.fe-ghd--index { align-items: center; }
.fe-gfind { display: flex; flex: 1 1 340px; flex-direction: column; gap: 6px; max-width: 440px; }
@media ( max-width: 799.98px ) { .fe-gfind { max-width: none; } }
.fe-gd a.fe-gfind__ask { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--fe-muted); font-size: 14px; line-height: 1.35; text-decoration: none; transition: background 0.15s, color 0.15s; }
.fe-gd a.fe-gfind__ask:hover { background: var(--fe-soft); color: var(--fe-ink); text-decoration: none; }
.fe-gfind__ask strong { color: var(--fe-green-dark); font-weight: 600; }
.fe-gfind__ask .fe-i { flex: none; color: var(--fe-green-dark); }
.fe-gfind__ask span { flex: 1; min-width: 0; }
.fe-gd .fe-gfind__ask .fe-gfind__go { width: 16px; height: 16px; color: var(--fe-muted); }

/* the index: a card per category, its guides listed in the card; the cards stack in columns, no gaps */
.fe-gindex { padding-top: 20px; }
.fe-gcats { columns: 3 320px; column-gap: 24px; }
.fe-gcat { display: block; margin: 0 0 24px; padding: 20px 20px 14px; border: 1px solid var(--fe-line); border-radius: var(--fe-radius); background: #fff; box-shadow: var(--fe-shadow); break-inside: avoid; page-break-inside: avoid; }
.fe-gcat[hidden], .fe-gcat__list > li[hidden], .fe-gnone[hidden] { display: none !important; }
.fe-gcat--empty { border-style: dashed; box-shadow: none; background: var(--fe-soft); }
.fe-gcat__head { display: flex; align-items: center; gap: 14px; }
.fe-gcat__icon { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: var(--fe-green-soft); color: var(--fe-green-dark); }
.fe-gcat__icon .fe-i { width: 22px; height: 22px; }
.fe-gcat__hd { min-width: 0; }
.fe-gd h2.fe-gcat__title { margin: 0; font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; }
.fe-gd .fe-gcat__title a { color: var(--fe-ink); text-decoration: none; }
.fe-gd .fe-gcat__title a:hover { color: var(--fe-green-dark); }
.fe-gcat__meta { margin: 2px 0 0; color: var(--fe-muted); font-size: 13px; }
.fe-gd .fe-gcat__list { margin: 12px -8px 0; padding: 10px 0 0; border-top: 1px solid var(--fe-line); list-style: none; }
.fe-gcat__list > li { margin: 0; padding: 0; }
.fe-gd a.fe-gcat__link { display: flex; align-items: flex-start; gap: 10px; padding: 7px 8px; border-radius: 8px; color: var(--fe-ink); font-size: 15px; line-height: 1.4; text-decoration: none; transition: background 0.15s, color 0.15s; }
.fe-gd a.fe-gcat__link:hover { background: var(--fe-soft); color: var(--fe-green-dark); text-decoration: none; }
.fe-gcat__link .fe-i { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--fe-green); }
.fe-gnone { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin: 8px 0 0; padding: 28px 16px; border: 1px dashed var(--fe-line); border-radius: var(--fe-radius); color: var(--fe-muted); text-align: center; }

/* a category or a guide: the menu of every guide beside the page (from 960px), above it as one button on smaller screens */
.fe-gpage { padding-top: 20px; }
.fe-ggrid { display: grid; grid-template-columns: minmax( 0, 1fr ); gap: 16px; align-items: start; }
.fe-ggrid__main { min-width: 0; transition: opacity 0.15s; }
/* another guide loading in place (front.js) */
.fe-ggrid__main.fe-loading { opacity: 0.45; pointer-events: none; }
.fe-gside__panel { display: block; padding: 8px; border: 1px solid var(--fe-line); border-radius: var(--fe-radius); background: #fff; box-shadow: var(--fe-shadow); }
.fe-gside__btn { display: none; }
.fe-gd a.fe-gside__home { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--fe-ink); font-size: 15px; font-weight: 600; text-decoration: none; }
.fe-gd a.fe-gside__home:hover { background: var(--fe-soft); color: var(--fe-green-dark); text-decoration: none; }
.fe-gside__home .fe-i { width: 18px; height: 18px; color: var(--fe-green); }
.fe-gsec { margin: 2px 0 0; border-top: 1px solid var(--fe-line); }
.fe-gsec__head { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 9px; color: var(--fe-ink); font-size: 15px; font-weight: 600; line-height: 1.3; list-style: none; cursor: pointer; user-select: none; }
.fe-gsec__head::-webkit-details-marker { display: none; }
.fe-gsec__head:hover { background: var(--fe-soft); }
.fe-gsec__head.fe-active { color: var(--fe-green-dark); }
.fe-gsec__icon { flex: none; width: 18px; height: 18px; color: var(--fe-green); }
.fe-gsec__t { flex: 1; min-width: 0; }
.fe-gsec__n { flex: none; min-width: 24px; padding: 1px 7px; border-radius: 999px; background: var(--fe-soft); color: var(--fe-muted); font-size: 12px; font-weight: 700; text-align: center; }
.fe-gsec__chev { flex: none; width: 16px; height: 16px; color: var(--fe-muted); transform: rotate( -90deg ); transition: transform 0.2s; }
.fe-gsec[open] > .fe-gsec__head .fe-gsec__chev { transform: none; }
.fe-gsec--sub .fe-gsec__head { padding-left: 24px; }
.fe-gsec--empty .fe-gsec__head { color: var(--fe-muted); }
.fe-gd .fe-gsec__list { margin: 0 0 8px; padding: 0 0 0 28px; list-style: none; }
.fe-gsec__list > li { margin: 0; padding: 0; }
.fe-gd a.fe-glink { display: block; padding: 6px 10px; border-radius: 8px; color: var(--fe-muted); font-size: 14px; line-height: 1.4; text-decoration: none; transition: background 0.15s, color 0.15s; }
.fe-gd a.fe-glink:hover { background: var(--fe-soft); color: var(--fe-ink); text-decoration: none; }
.fe-gd a.fe-glink.fe-active { background: var(--fe-green-soft); box-shadow: inset 3px 0 0 var(--fe-green); color: var(--fe-green-dark); font-weight: 600; }
/* staff: a guide the others do not see (hidden, pending, deleted): a quiet grey dashed frame */
.fe-gd a.fe-glink--hidden { outline: 1px dashed #a3adb2; outline-offset: -1px; }
.fe-gsec__none { margin: 0 0 8px; padding: 0 10px 0 38px; color: var(--fe-muted); font-size: 13px; }
.fe-gside__note { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 0; padding: 12px 10px 6px; border-top: 1px solid var(--fe-line); color: var(--fe-muted); font-size: 13px; line-height: 1.45; }
.fe-gside__note .fe-i { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--fe-green-dark); }
.fe-gd .fe-gside__note a { color: var(--fe-green-dark); font-weight: 600; }
@media ( max-width: 959.98px ) {
	.fe-gside__btn { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 10px 14px; border: 1px solid var(--fe-line); border-radius: var(--fe-radius); background: #fff; box-shadow: var(--fe-shadow); color: var(--fe-ink); font: 600 15px/1.3 var(--fe-font); text-align: left; cursor: pointer; }
	.fe-gside__btn > .fe-i { flex: none; width: 18px; height: 18px; color: var(--fe-green); }
	.fe-gside__btnt { display: flex; flex: 1; flex-direction: column; min-width: 0; }
	.fe-gside__btnt small { overflow: hidden; color: var(--fe-muted); font-size: 13px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
	.fe-gside__btn > .fe-gside__chev { color: var(--fe-green-dark); transition: transform 0.2s; }
	.fe-gside__btn[aria-expanded="true"] > .fe-gside__chev { transform: rotate( 180deg ); }
	.fe-js .fe-gside:not( .fe-open ) .fe-gside__panel { display: none; }
	.fe-gside__panel { max-height: 70vh; margin-top: 8px; overflow-y: auto; overscroll-behavior: contain; }
}
@media ( min-width: 960px ) {
	.fe-ggrid { grid-template-columns: 280px minmax( 0, 1fr ); gap: 28px; }
	/* the forum header scrolls away: the menu stays at the top of the screen */
	.fe-ggrid__side { position: sticky; top: 16px; z-index: 3; }
	.fe-gside__panel { max-height: calc( 100vh - 32px ); overflow-y: auto; overscroll-behavior: contain; }
}
@media ( min-width: 1200px ) { .fe-ggrid { grid-template-columns: 300px minmax( 0, 1fr ); gap: 32px; } }

/* a category's guides in their order */
.fe-gcard { border: 1px solid var(--fe-line); border-radius: var(--fe-radius); background: #fff; box-shadow: var(--fe-shadow); }
.fe-gd .fe-glist { margin: 0; padding: 6px; list-style: none; }
.fe-grow { display: flex; align-items: stretch; margin: 0; padding: 0; }
.fe-grow + .fe-grow { border-top: 1px solid var(--fe-line); }
.fe-gd a.fe-grow__link { display: flex; flex: 1; align-items: flex-start; gap: 14px; min-width: 0; padding: 16px 14px; border-radius: 10px; color: var(--fe-ink); text-decoration: none; transition: background 0.15s; }
.fe-gd a.fe-grow__link:hover { background: var(--fe-soft); text-decoration: none; }
.fe-grow__n { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 999px; background: var(--fe-green-soft); color: var(--fe-green-dark); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.fe-grow__body { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; }
.fe-grow__t { font-size: 17px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.fe-gd a.fe-grow__link:hover .fe-grow__t { color: var(--fe-green-dark); }
.fe-grow__sum { display: -webkit-box; overflow: hidden; color: var(--fe-muted); font-size: 15px; line-height: 1.5; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fe-grow__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; color: var(--fe-muted); font-size: 13px; }
.fe-grow__go { flex: none; align-self: center; width: 18px; height: 18px; color: var(--fe-muted); transition: transform 0.15s, color 0.15s; }
.fe-gd a.fe-grow__link:hover .fe-grow__go { color: var(--fe-green-dark); transform: translateX( 3px ); }
.fe-grow--hidden .fe-grow__link { outline: 1px dashed #a3adb2; outline-offset: -1px; }
.fe-gflag--new { background: var(--fe-orange); color: #fff; }
.fe-glist--mod .fe-grow { padding-left: 2px; }
.fe-glist--mod .fe-rn-check { height: auto; padding-top: 20px; align-items: flex-start; }
.fe-gsubs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.fe-gd a.fe-gsub { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--fe-line); border-radius: 10px; background: #fff; color: var(--fe-ink); font-weight: 600; text-decoration: none; }
.fe-gd a.fe-gsub:hover { border-color: var(--fe-green); color: var(--fe-green-dark); text-decoration: none; }
.fe-gsub small { color: var(--fe-muted); }
@media ( max-width: 599.98px ) {
	.fe-gd a.fe-grow__link { gap: 12px; padding: 14px 10px; }
	.fe-grow__n { width: 28px; height: 28px; font-size: 13px; }
	.fe-grow__t { font-size: 16px; }
	.fe-grow__sum { font-size: 14px; }
	.fe-grow__go { display: none; }
}

/* Arrange guides (editors): Up / Down beside each guide instead of opening it */
.fe-garr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 14px; border-bottom: 1px solid var(--fe-line); }
.fe-garr__state { flex: 1 1 auto; color: var(--fe-muted); font-size: 13px; }
.fe-garr [data-fe-garr-toggle], .fe-garr [data-fe-garr-done] { order: 2; }
.fe-garr [hidden] { display: none !important; }
.fe-grow__move { display: none; flex: none; align-items: center; gap: 6px; padding: 0 10px 0 4px; }
.fe-garranging .fe-grow__move { display: inline-flex; }
.fe-garranging .fe-grow__go { display: none; }
.fe-gd .fe-garranging a.fe-grow__link { cursor: default; }
.fe-gd .fe-garranging a.fe-grow__link:hover { background: none; }
.fe-gd .fe-garranging a.fe-grow__link:hover .fe-grow__t { color: inherit; }
.fe-garranging .fe-grow { background: #fff; transition: background 0.3s; }
.fe-garranging .fe-glist > .fe-grow:first-child [data-fe-garr-move="-1"], .fe-garranging .fe-glist > .fe-grow:last-child [data-fe-garr-move="1"] { visibility: hidden; }
.fe-gd button.fe-gmove { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin: 0; padding: 0; border: 1px solid var(--fe-line); border-radius: 8px; background: #fff; color: var(--fe-ink); cursor: pointer; transition: border-color 0.15s, color 0.15s; }
.fe-gd button.fe-gmove:hover, .fe-gd button.fe-gmove:focus-visible { border-color: var(--fe-green); color: var(--fe-green-dark); }
.fe-gmove .fe-i { width: 18px; height: 18px; }
.fe-gmove--up .fe-i { transform: rotate( 180deg ); }
@media ( max-width: 599.98px ) { .fe-garranging .fe-grow__move { flex-direction: column; justify-content: center; gap: 4px; padding: 10px 6px 10px 0; } .fe-gd button.fe-gmove { width: 36px; height: 34px; } }
/* one guide */
/* text and headings: smaller than in a news post (a guide is long, with lists and code), the forum's reading size */
.fe-gart .fe-nbody .ipsType_richText { font-size: 15px; line-height: 1.7; }
.fe-gart .fe-nbody .ipsType_richText li { margin-bottom: 0.2em; }
.fe-gart .fe-nbody .tocMenu { font-size: 14px; }
.fe-gart .fe-nbody .ipsType_richText h2 { font-size: 21px; }
.fe-gart .fe-nbody .ipsType_richText h3 { font-size: 18px; }
.fe-gart .fe-nbody .ipsType_richText h4 { font-size: 16px; }
@media ( max-width: 599.98px ) { .fe-gart .fe-nbody .ipsType_richText h2 { font-size: 19px; } .fe-gart .fe-nbody .ipsType_richText h3 { font-size: 17px; } }
.fe-gart { padding: clamp( 18px, 3vw, 36px ); }
.fe-gart .fe-nbody .ipsType_richText > :first-child, .fe-gart .fe-nbody .ipsType_richText > .tocMenu + * { margin-top: 0; }
.fe-gart .fe-nactions { margin-top: 24px; }
.fe-gpager { margin-top: 24px; }
.fe-ncomments.fe-gcomments { max-width: none; padding: 32px 0 0; }
@media ( min-width: 768px ) { .fe-gd .fe-ncomments.fe-gcomments { padding-left: 0; padding-right: 0; } }
@media ( max-width: 599.98px ) { .fe-gart { padding: 18px 16px; } }
