/* Additional PHP-specific UI. Kept in a separate source, combined at packaging. */
.phpman-intro{padding:24px;border:1px solid #cbdcd6;border-radius:16px;background:linear-gradient(125deg,#eef5f0,#f8faf7)}
.phpman-intro h2{border:0;margin-top:.5rem;padding-top:0}
.phpman .phpman-routes svg{color:#155f65}
.phpman-category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:1.5rem 0}
.phpman .phpman-category{display:grid;grid-template-columns:36px minmax(0,1fr);gap:8px 12px;padding:19px;width:auto!important;margin:0!important;border:1px solid #cbdcd6;border-radius:12px;background:#fff;text-decoration:none;min-width:0}
.phpman-category svg{grid-row:span 2;color:#257b7a}
.phpman-category strong{font-size:18px;line-height:1.45}
.phpman-category span{font-size:14px;line-height:1.65;color:#49676c}
.phpman-category:hover{background:#edf5f0;border-color:#7fa9a3}
.phpman-situations{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;border:1px solid #cbdcd6;background:#cbdcd6;border-radius:14px;overflow:hidden}
.phpman-situations a{display:grid;gap:9px;background:#fff;padding:22px;text-decoration:none;font-size:16px}
.phpman-situations a>span{font-size:14px;line-height:1.65;color:#49676c}
.phpman-situations a:hover{background:#edf5f0}
.phpman-category-section h2{display:flex;gap:12px;align-items:center}
.phpman-chapter-list{border:1px solid #cbdcd6;border-radius:12px;overflow:hidden}
.phpman-chapter-list>a{display:grid;grid-template-columns:28px minmax(0,1fr) 18px;gap:13px;padding:19px;text-decoration:none;background:#fff;align-items:start}
.phpman-chapter-list>a+a{border-top:1px solid #dce7e2}
.phpman-chapter-list>a:hover{background:#edf5f0}
.phpman-chapter-list>a>span:nth-child(2){display:grid;gap:5px}
.phpman-chapter-list strong{font-size:17px;line-height:1.5}
.phpman-chapter-list span span{font-size:14px;line-height:1.65;color:#49676c}
.phpman-chapter-no{font:13px/2.1 Consolas,monospace;color:#906623}
.phpman-example{margin:1.7rem 0 2.2rem;min-width:0}
.phpman-example figcaption{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 12px;line-height:1.55}
.phpman-example figcaption>span{font-size:12px;color:#516a70;background:#edf5f0;border-radius:5px;padding:3px 7px}
.phpman-example p{font-size:15px}
.phpman .phpman-result{border:0;background:transparent;margin:.5rem 0}
.phpman .phpman-result summary{font-size:14px;font-weight:600;padding:8px 0;min-height:44px;color:#155f65}
.phpman .phpman-result[open]>summary{background:none;border:0}
.phpman .phpman-result>*:not(summary){margin-left:0;margin-right:0;max-width:100%}
.phpman-flow{padding:20px;border:1px solid #b8d2ca;border-radius:14px;background:#eef6f2;margin:1.75rem 0}
.phpman-flow figcaption{font-weight:700;font-size:16px;margin-bottom:16px}
.phpman-flow ol{display:flex;flex-wrap:wrap;gap:18px;margin:0;padding:0;list-style:none;counter-reset:flow}
.phpman-flow li{position:relative;flex:1 1 120px;padding:14px 12px;border:1px solid #aac7c0;border-radius:8px;background:#fff;font-size:14px;line-height:1.65;counter-increment:flow}
.phpman-flow li::before{content:counter(flow,decimal-leading-zero);display:block;color:#8d661c;font-size:11px;font-weight:700;letter-spacing:.05em;margin-bottom:6px}
.phpman-flow li+li::after{content:'→';position:absolute;left:-17px;top:40%;font-size:15px;color:#326c68}
.phpman-reference{border:1px solid #bfd4cd!important;background:#fff;border-radius:12px!important}
.phpman-reference>summary{display:block;font-size:17px;padding:16px 42px 16px 18px;position:relative}
.phpman-reference>summary::after{content:'+';position:absolute;right:17px;top:16px;font-size:22px;color:#267a72}
.phpman-reference[open]>summary::after{content:'−'}
.phpman-reference>summary span{display:block;font:14px/1.6 system-ui,sans-serif;color:#49676c;margin-top:6px;font-weight:400}
.phpman .phpman-reference-body{margin:0!important;padding:0 18px 20px;max-width:100%!important}
.phpman .phpman-reference-body p{font-size:15px}
.phpman-meta,.phpman-small{font-size:13px!important;color:#49676c}
.phpman-cost{padding:14px 16px;background:#faf3df;border:1px solid #e1cf9e;border-radius:8px;font-size:14px!important;line-height:1.7}
.phpman .phpman-signature{background:#edf5f0;color:#20343a;border-color:#cbdcd6;white-space:pre-wrap}
.phpman-warning{padding:16px 20px;border-left:4px solid #bb713b;background:#fff3e7;border-radius:0 10px 10px 0;font-size:15px;line-height:1.7;margin:1.5rem 0}
.phpman-tip{padding:16px 20px;border-left:4px solid #2b8175;background:#ecf6ef;border-radius:0 10px 10px 0;font-size:15px;line-height:1.7;margin:1.5rem 0}
.phpman-related{border-top:1px solid #cbdcd6;padding-top:18px;margin-top:2rem}
.phpman-related ul{display:flex;flex-wrap:wrap;list-style:none;padding:0;gap:8px 20px}
.phpman-related a{display:inline-flex;min-height:44px;align-items:center;font-size:14px}
.phpman-source-details{font-size:13px}
.phpman-source-details summary{font-size:14px}
.phpman-route-step{padding:22px;border:1px solid #cbdcd6;background:#fff;border-radius:14px;margin:1.1rem 0}
.phpman-route-step h4{margin-top:0}
.phpman-route-step label,.phpman-progress-controls label{display:flex;gap:10px;align-items:center;min-height:48px;font-size:15px;cursor:pointer}
.phpman input[type=checkbox]{flex:0 0 auto;width:20px;height:20px;accent-color:#155f65}
.phpman-progress-controls{border-top:1px solid #cbdcd6;margin:2rem 0;padding:16px 0}
.phpman-progress-status{font-size:12px;color:#49676c}
.phpman-directory{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.phpman-directory a{display:block;min-height:48px;padding:10px 12px;border:1px solid #d5e2db;border-radius:8px;text-decoration:none;font-size:14px;background:#fff}
.phpman-directory a>span{display:block;color:#49676c;font-size:12px;line-height:1.6;margin-top:4px}
.phpman-directory a:hover{background:#edf5f0}
.phpman-page .phpman pre:focus-visible{outline:3px solid #b77b16;outline-offset:3px}
.phpman-page [id]:focus-visible{outline:3px solid #b77b16;outline-offset:5px}
.phpman-tree,.phpman-dialog,.phpman-nav-toggle{box-sizing:border-box;font-family:system-ui,'Segoe UI',sans-serif;color:#20343a;font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.phpman-tree *,.phpman-dialog *{box-sizing:border-box}
.phpman-tree-head{display:grid;gap:5px;padding:18px;border-bottom:1px solid #cbdcd6;background:#eff6f2}
.phpman-tree-head strong{font-size:16px}
.phpman-tree-head a{font-size:12px;color:#155f65;min-height:32px;display:flex;align-items:center}
.phpman-tree details{margin:0;border:0;border-bottom:1px solid #dfebe4;border-radius:0;background:#fff}
.phpman-tree details details{border:0}
.phpman-tree summary{cursor:pointer;font-weight:650;padding:12px;min-height:48px;font-size:14px;list-style:revert}
.phpman-tree summary svg{display:inline-block;vertical-align:middle;width:20px;height:20px;margin-right:6px;color:#267b72}
.phpman-tree ul{list-style:none;padding:0 6px 8px;margin:0;max-width:none}
.phpman-tree ul li{margin:0;padding:0}
.phpman-tree a{color:#31585d;display:block;padding:10px 12px;min-height:44px;text-decoration:none;font-size:13px;line-height:1.55;border-left:3px solid transparent;border-radius:6px}
.phpman-tree a:hover{background:#edf5f0}
.phpman-tree a[aria-current]{background:#e6f2eb;color:#155f65;border-left-color:#155f65;font-weight:650}
.phpman-tree .phpman-tree-home{font-size:13px;font-weight:700;padding:16px;border-radius:0;border-bottom:1px solid #dfebe4}
.phpman-tree a:focus-visible,.phpman-tree summary:focus-visible,.phpman-dialog button:focus-visible,.phpman-nav-toggle:focus-visible{outline:3px solid #b77b16;outline-offset:-3px}
.phpman-tree .phpman-current{background:#f4f8f5}
.phpman-tree .phpman-current>summary{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:#476a70}
.phpman-tree .phpman-current li a{font-size:12px;min-height:42px}
.phpman-dialog{position:fixed;inset:auto 0 0;margin:0 auto;width:100%;max-width:600px;max-height:calc(100dvh - 45px);padding:0;border:1px solid #bcd2c8;border-radius:20px 20px 0 0;background:#fff;overflow:hidden;box-shadow:0 -12px 50px #0004;z-index:100001}
.phpman-dialog[open]{display:flex;flex-direction:column}
.phpman-dialog::backdrop{background:#0b202bc2}
.phpman-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px;border-bottom:1px solid #cbdcd6;flex-shrink:0}
.phpman-dialog header h2{font-size:18px!important;margin:0!important;padding:0!important;border:0!important;line-height:1.3!important}
.phpman-dialog button{min-height:44px;padding:10px 12px;border:1px solid #97b8ad;background:#edf5f0;color:#155f65;border-radius:8px;cursor:pointer;font:600 13px/1.5 system-ui}
.phpman-dialog>.phpman-tree{min-height:0;overflow:auto;padding-bottom:env(safe-area-inset-bottom);overscroll-behavior:contain}
.phpman-dialog .phpman-tree-head{display:none}
.phpman-nav-toggle{display:inline-flex;position:fixed;right:calc(14px + env(safe-area-inset-right));bottom:calc(14px + env(safe-area-inset-bottom) + var(--phpman-cookie-bottom,0px));gap:8px;align-items:center;justify-content:center;min-height:50px;padding:11px 18px;background:#155f65;color:#fff;border:1px solid #cbdcd6;border-radius:28px;box-shadow:0 5px 22px #123a3e30;font-weight:700;cursor:pointer;z-index:9990}
.phpman-nav-toggle:hover{background:#104c52;color:#fff}
.phpman-nav-toggle[hidden]{display:none!important}
.phpman-page .aenan-toggle,.phpman-page .aenan-desktop,.phpman-page .aen-toc{display:none!important}
@media(min-width:1101px){
 .phpman-page .phpman-sidebar{position:sticky!important;align-self:start;top:18px!important;padding:0!important;background:transparent!important;border:0!important;min-width:0}
 .phpman-page.admin-bar .phpman-sidebar{top:50px!important}
 .phpman-page .phpman-sidebar>:not(.phpman-tree){display:none!important}
 .phpman-page .phpman-sidebar>.phpman-tree{display:flex!important;flex-direction:column;max-height:calc(100dvh - 90px);border:1px solid #cbdcd6;border-radius:14px;background:#fff;overflow:hidden}
 .phpman-sidebar .phpman-tree-scroll{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
}
@media(max-width:700px){
 .phpman-category-grid,.phpman-situations,.phpman-directory{grid-template-columns:1fr}
 .phpman-intro{padding:18px}
 .phpman-flow{padding:15px}.phpman-flow ol{display:grid;gap:18px}.phpman-flow li+li::after{content:'↓';left:calc(50% - 5px);top:-21px}
 .phpman-route-step{padding:17px}
 .phpman-chapter-list>a{grid-template-columns:23px minmax(0,1fr) 14px;gap:8px;padding:15px}
 .phpman .phpman-reference-body{padding:0 13px 15px}
 .phpman-category-section h2 svg{flex:0 0 auto}
}
@media print{.phpman-tree,.phpman-nav-toggle,.phpman-dialog,.phpman-progress-controls,.phpman-route-step label{display:none!important}.phpman-flow ol{display:block}.phpman-flow li{margin:8px 0}.phpman-flow li::after{display:none}.phpman-reference{break-inside:auto}.phpman-chapter{break-before:auto}}

/* Manual entry: tools first; the featured cover remains on archive cards. */
.phpman-page .aen-article-cover,.phpman-page .aen-article-lead{display:none}
.phpman-page .aen-header-inner{min-height:72px}
.phpman-page .aen-breadcrumbs{display:none}
.phpman-page .aen-entry>.phpman{max-width:none;width:100%;margin-left:0;margin-right:0}
.phpman-page:has(.phpman-hub) .phpman-topline{display:none}
.phpman-page:has(.phpman-hub) .phpman-search-hint{display:none}
.phpman-page .aen-page-shell{padding-top:16px}
.phpman-page .aen-breadcrumbs{margin-bottom:16px}
.phpman-page .aen-article-header{max-width:none;margin:0 0 18px;padding:0}
.phpman-page .aen-article-header h1{font-size:clamp(25px,2.8vw,34px);line-height:1.22;margin:8px 0 10px;max-width:1000px}
.phpman-page .aen-article-categories{display:none}
.phpman-page .aen-meta{font-size:12px;margin:0;gap:14px}
.phpman-page .phpman-topline{gap:6px;margin:0 0 8px}
.phpman-page .phpman-topline span{padding:2px 7px}
.phpman-page .phpman-breadcrumb{margin:4px 0 8px;font-size:13px}
.phpman-page:has(.phpman-hub) .phpman-breadcrumb{display:none}
.phpman-page .phpman-search{margin:0 0 10px;padding:14px 16px}
.phpman-page .phpman-search-hint{margin:7px 0 0;font-size:12px}
.phpman-page .phpman-search>label{font-size:16px;margin:0 0 7px}
.phpman-page .phpman-hub>h2{font-size:22px;margin:16px 0 10px;padding:0;border:0}
.phpman .phpman-entry-links{display:flex;flex-wrap:wrap;gap:4px 18px;margin:0 0 6px}
.phpman-entry-links a{display:inline-flex;align-items:center;min-height:44px;font-size:13px;font-weight:650}
.phpman .phpman-quick-tasks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
@media(min-width:1101px){.phpman .phpman-quick-tasks{grid-template-columns:repeat(4,minmax(0,1fr))}}
.phpman-quick-tasks a{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px;padding:10px 12px;border:1px solid #bdd5ce;border-radius:9px;background:#edf5f0;text-decoration:none;font:650 13px/1.4 system-ui}
.phpman-quick-tasks a:hover{background:#deeee6}
.phpman .phpman-category-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 16px;padding:0}
.phpman .phpman-category{grid-template-columns:26px minmax(0,1fr);gap:4px 9px;padding:13px;align-content:start}
.phpman-category svg{width:25px;height:25px}
.phpman-category strong{font-size:14px;line-height:1.4}
.phpman-category span{font-size:12px;line-height:1.5}
.phpman-about,.phpman-more-tasks{border:1px solid #cbdcd6;border-radius:10px;margin:12px 0;background:#fff}
.phpman-about summary,.phpman-more-tasks summary{font-size:14px}
.phpman-about p{padding:0 16px 12px;font-size:15px}
.phpman .phpman-category-section h2{scroll-margin-top:calc(76px + var(--phpman-admin-offset,0px))}
.phpman-with-toolbar{padding-top:54px;--phpman-admin-offset:0px}
.phpman-with-toolbar.admin-bar{--phpman-admin-offset:32px}
.phpman-toolbar{position:fixed;z-index:99990;top:var(--phpman-admin-offset,0px);left:0;right:0;display:flex;align-items:center;justify-content:flex-end;gap:6px;padding:5px max(16px,calc((100vw - 1200px)/2));height:54px;background:#f7faf8f5;border-bottom:1px solid #c5d8d1;box-shadow:0 3px 12px #163f4210;backdrop-filter:blur(10px);font:14px/1.4 system-ui;color:#20343a;box-sizing:border-box}
.phpman-toolbar-name{margin-right:auto;max-width:40%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:650}
.phpman-toolbar button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 13px;border:1px solid #c5d8d1;border-radius:7px;background:#fff;color:#155f65;cursor:pointer;font:600 13px/1.25 system-ui;white-space:nowrap}
.phpman-toolbar button:hover{background:#e3f0e9}
.phpman-toolbar button:focus-visible{outline:3px solid #b77b16;outline-offset:-3px}
.phpman-toolbar button[hidden]{display:none}
.phpman-page .phpman [id],.phpman-page .phpman h2,.phpman-page .phpman h3,.phpman-page .phpman h4{scroll-margin-top:calc(76px + var(--phpman-admin-offset,0px))}
.phpman-dialog>.phpman-page-toc{min-height:0;overflow:auto;overscroll-behavior:contain;padding:10px 14px 20px}
.phpman-page-toc a{display:block;padding:12px;min-height:44px;border-bottom:1px solid #dce7e1;color:#155f65;font:14px/1.5 system-ui;text-decoration:none}
.phpman-page-toc a:hover{background:#edf5f0}
.phpman-page-toc a:focus-visible{outline:3px solid #b77b16;outline-offset:-3px}
@media(min-width:1101px){.phpman-page .phpman-sidebar,.phpman-page.admin-bar .phpman-sidebar{top:calc(68px + var(--phpman-admin-offset,0px))!important}.phpman-page .phpman-sidebar>.phpman-tree{max-height:calc(100dvh - 120px)}.phpman-dialog{inset:calc(75px + var(--phpman-admin-offset,0px)) auto auto 50%;transform:translateX(-50%);border-radius:14px;max-height:calc(100dvh - 135px)}}
@media(max-width:700px){
 .phpman-toolbar{gap:4px;padding:5px 8px}.phpman-toolbar-name{display:none}.phpman-toolbar button{flex:1 1 auto;font-size:12px;padding:7px 8px}
 .phpman-page .aen-article-header{margin-bottom:12px}.phpman-page .aen-article-header h1{font-size:25px}
 .phpman-page .aen-breadcrumbs{font-size:11px;margin-bottom:10px}.phpman-page .aen-breadcrumbs li[aria-current]{display:none}
 .phpman-page .phpman-topline{display:none}.phpman-page .phpman-breadcrumb{font-size:12px}
 .phpman-page .phpman-search{padding:12px}.phpman-page .phpman-search-hint{display:none}
 .phpman-page .phpman-search input[type=search]{flex:1 1 100%;width:100%;font-size:16px}
 .phpman .phpman-entry-links{gap:0 12px}.phpman-entry-links a{font-size:12px}
 .phpman-page .phpman-hub>h2{font-size:20px;margin-top:13px}
 .phpman .phpman-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .phpman .phpman-category{padding:11px;grid-template-columns:22px minmax(0,1fr);gap:4px 7px}.phpman-category svg{width:22px;height:22px}
 .phpman-category strong{font-size:13px}.phpman-category span{grid-column:1/-1;font-size:11px;line-height:1.5}
 .phpman-quick-tasks a{font-size:12px;padding:9px;min-height:54px}
}
@media print{.phpman-toolbar{display:none!important}.phpman-with-toolbar{padding-top:0}}
@media(max-width:360px){.phpman-toolbar{gap:3px;padding-left:5px;padding-right:5px}.phpman-toolbar button{padding-left:4px;padding-right:4px;font-size:11.5px;min-width:0}}

/* Data models are text-first diagrams; labels remain readable on narrow screens. */
.phpman .phpman-visual{container-type:inline-size;margin:22px 0 30px;padding:20px;border:1px solid #b8d3cc;border-radius:14px;background:#eef5f1;color:#203a40;min-width:0;max-width:100%;box-sizing:border-box}
.phpman .phpman-visual figcaption{display:block;margin:0 0 18px;padding:0;color:inherit}
.phpman .phpman-visual-kicker{display:block;font:700 11px/1.4 system-ui;letter-spacing:.1em;text-transform:uppercase;color:#236e72}
.phpman .phpman-visual h4{margin:7px 0 9px;padding:0;font:750 22px/1.3 system-ui;border:0}
.phpman .phpman-visual figcaption>p{margin:0;font:15px/1.6 system-ui;color:#3a565d}
.phpman .phpman-visual-nodes{display:grid;gap:26px;list-style:none!important;padding:0!important;margin:0!important;min-width:0;max-width:none;width:auto}
.phpman .phpman-visual-nodes>li{position:relative;display:block;list-style:none!important;padding:0!important;margin:0!important;max-width:none;min-width:0}
.phpman .phpman-visual-node{position:relative;display:grid;grid-template-columns:28px minmax(0,1fr);gap:6px 10px;padding:14px;border:1px solid #abc9c1;border-radius:9px;background:#fff;box-sizing:border-box;min-width:0;box-shadow:0 2px 0 #dbe8e2}
.phpman .phpman-visual-node svg{grid-column:1;grid-row:1;width:24px;height:24px;fill:none;stroke:#247579;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.phpman .phpman-visual-node>strong{grid-column:2;font:700 15px/1.45 system-ui;overflow-wrap:anywhere}
.phpman .phpman-visual-node>p{grid-column:2;margin:0;font:14px/1.5 system-ui;overflow-wrap:anywhere;color:#3b535b}
.phpman .phpman-visual-step{position:absolute;left:-9px;top:-9px;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#155f65;color:#fff;font:700 12px/1 system-ui}
.phpman .phpman-visual-arrow{position:absolute;bottom:-26px;left:calc(50% - 12px);width:24px;height:26px;text-align:center;color:#247579;font:700 23px/26px system-ui}
.phpman .phpman-visual-caption{margin:18px 0 0;padding-top:12px;border-top:1px solid #c5d9d0;font:14px/1.6 system-ui;color:#334c53}
.phpman .phpman-visual-nodes .phpman-visual-nodes{margin-top:12px!important;margin-left:16px!important;padding-left:14px!important;border-left:2px solid #6b9996;gap:12px}
.phpman .phpman-visual-nodes .phpman-visual-nodes>li::before{content:'';position:absolute;left:-14px;top:26px;width:14px;border-top:2px solid #6b9996}
.phpman .phpman-visual-readout{display:grid;gap:5px;margin-top:16px;padding:12px 14px;border:1px solid #c9b576;border-left:4px solid #b08029;border-radius:6px;background:#fff9e9;font:14px/1.55 system-ui}
.phpman .phpman-visual-readout code{background:transparent;padding:0;color:#203a40;white-space:normal;overflow-wrap:anywhere;font-size:14px}
.phpman .phpman-visual-organizer>.phpman-visual-nodes{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px!important;background:#cfdfd8;border:3px solid #6f9590;border-radius:10px;box-shadow:inset 0 0 0 3px #edf5f1}
.phpman .phpman-visual-organizer .phpman-visual-node{height:100%;border:1px solid #7fa7a0;box-shadow:inset 0 -5px 0 #e1eee7}
.phpman .phpman-visual-organizer .phpman-visual-node>p{font-size:15px}
.phpman .phpman-visual[data-visual-chapter=arrays] .phpman-visual-node{display:block;text-align:center;padding:10px}
.phpman .phpman-visual[data-visual-chapter=arrays] .phpman-visual-node svg{display:block;width:40px;height:40px;margin:0 auto 5px;color:#247579}
.phpman .phpman-visual[data-visual-chapter=arrays] .phpman-visual-node strong{display:block;background:#edf5f1;border:1px solid #ccdfd7;border-radius:4px;padding:2px;font-size:14px}
.phpman .phpman-visual[data-visual-chapter=arrays] .phpman-visual-node p{font-size:20px;line-height:1.4;font-weight:700;margin:6px 0 2px}
.phpman .phpman-visual-compare>.phpman-visual-nodes{gap:16px}
@container(min-width:560px){
 .phpman .phpman-visual-short>.phpman-visual-nodes{grid-template-columns:repeat(var(--phpman-vcount),minmax(0,1fr));gap:25px}
 .phpman .phpman-visual-short>.phpman-visual-nodes>li>.phpman-visual-node{height:100%}
 .phpman .phpman-visual-short>.phpman-visual-nodes>li>.phpman-visual-arrow{bottom:auto;left:auto;right:-25px;top:calc(50% - 13px);transform:rotate(-90deg)}
 .phpman .phpman-visual-organizer>.phpman-visual-nodes{grid-template-columns:repeat(3,minmax(0,1fr))}
 .phpman .phpman-visual[data-visual-chapter=arrays]>.phpman-visual-nodes{grid-template-columns:repeat(4,minmax(0,1fr))}
 .phpman .phpman-visual-compare>.phpman-visual-nodes{grid-template-columns:repeat(2,minmax(0,1fr))}
 .phpman .phpman-visual-tree>.phpman-visual-nodes{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
 .phpman .phpman-visual-tree>.phpman-visual-nodes:has(>li:only-child){grid-template-columns:1fr}
}
@media(max-width:420px){.phpman .phpman-visual{padding:14px 12px}.phpman .phpman-visual h4{font-size:20px}.phpman .phpman-visual-node{padding:11px;grid-template-columns:24px minmax(0,1fr);gap:5px 7px}.phpman .phpman-visual-organizer>.phpman-visual-nodes{padding:8px!important}.phpman .phpman-visual-organizer .phpman-visual-node{display:block}.phpman .phpman-visual-organizer .phpman-visual-node svg{display:block;margin-bottom:5px}.phpman .phpman-visual-organizer .phpman-visual-node>strong{display:block}.phpman .phpman-visual-organizer .phpman-visual-node>p{margin-top:5px}}
@media print{.phpman .phpman-visual{background:#fff;break-inside:avoid;box-shadow:none}.phpman .phpman-visual-node{box-shadow:none}}
/* Text-heavy organizers need full-width compartments on a narrow phone. */
@media(max-width:420px){.phpman-visual-organizer:not([data-visual-chapter="arrays"])>.phpman-visual-nodes{grid-template-columns:minmax(0,1fr)}}
.phpman .phpman-field-map{margin:24px 0;padding:18px;border:1px solid #bad4cb;border-radius:12px;background:#edf5f1;min-width:0}
.phpman .phpman-field-map>ul{list-style:none;padding:0;margin:16px 0;max-width:none;display:grid;gap:12px}
.phpman .phpman-field-map>ul>li{display:grid;grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr);gap:10px;align-items:center;margin:0;max-width:none;list-style:none}
.phpman .phpman-field-map li>div{padding:12px;border:1px solid #b1cec4;border-radius:8px;background:#fff;display:grid;gap:7px;min-width:0;font:14px/1.55 system-ui}
.phpman .phpman-field-map code{white-space:normal;overflow-wrap:anywhere;font-size:14px;line-height:1.6}
.phpman .phpman-field-arrow{color:#155f65;font:700 24px/1 system-ui;text-align:center}
.phpman .phpman-field-map>p{font:14px/1.6 system-ui;margin:12px 0 0}
@media(max-width:600px){.phpman .phpman-field-map>ul>li{grid-template-columns:minmax(0,1fr);gap:5px}.phpman .phpman-field-arrow{transform:rotate(90deg);height:24px}}
.phpman .phpman-entry-links{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 24px}
.phpman .phpman-entry-links a{display:block;flex:1 1 230px;padding:12px 14px;border:1px solid #a7cac2;border-radius:9px;background:#edf5f1;font:600 15px/1.5 system-ui;text-decoration:none;min-height:44px}
/* Actual rendered output from the standalone beginner database project. */
.phpman-database-preview{padding:clamp(14px,3vw,24px);margin:14px 0;border:1px solid #c7d8d3;border-radius:14px;background:#fff;color:#193d40;max-width:100%;overflow-wrap:anywhere}
.phpman-database-preview h3{margin:0 0 18px;font-size:24px;line-height:1.25}
.phpman .phpman-database-preview table{width:100%;min-width:0;border-collapse:collapse;table-layout:fixed;font:16px/1.5 system-ui,sans-serif}
.phpman-database-preview caption{text-align:left;margin-bottom:12px}
.phpman-database-preview th,.phpman-database-preview td{padding:12px 6px;border-bottom:1px solid #dbe5e1;text-align:left}
.phpman-database-preview th:last-child,.phpman-database-preview td:last-child{text-align:right}
.phpman-database-preview small{display:block;margin-top:20px;color:#526b6e;font:14px/1.5 system-ui,sans-serif}
.phpman .phpman-html-result{margin:1rem 0 1.5rem;padding:1rem;border:1px solid #b7d5d2;border-radius:12px;background:#f5faf8;min-width:0}
.phpman .phpman-html-result figcaption{font:600 .85rem/1.5 system-ui,sans-serif;color:#315c60;margin-bottom:.75rem}
.phpman .phpman-html-result>div{padding:1rem;background:white;border-radius:8px;overflow-wrap:anywhere}
.phpman .phpman-html-result p{margin:0}
.phpman .phpman-html-result label{display:block}
.phpman .phpman-html-result input{display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;margin-top:.5rem;padding:.65rem;border:1px solid #a9c5c4;border-radius:6px;color:#203d43;background:#fff;font:inherit}
