/* Shared size for standard controls on every public and cabinet page.
   Keep these dimensions independent of page and responsive overrides. */
:root{
 --control-height:40px;
 --section-spacing:24px;
 --caption-spacing:4px;
 --content-spacing:20px;

}
.button,
.account-navigation nav button,
.community-tabs a,
.catalogue-tabs button,
#layoutToggle,
.search-field,
input:not([type]):not([hidden]),
input:is([type=text],[type=search],[type=email],[type=password],[type=url],[type=tel],[type=number]),
select:not([multiple]):not([size]){
 box-sizing:border-box;
 height:var(--control-height)!important;
 min-height:var(--control-height)!important;
 padding-block:0!important;
}
.button,.account-navigation nav button,.community-tabs a,.catalogue-tabs button{
 display:inline-flex;align-items:center;justify-content:center;
}
/* A drawn plus has no font side bearings, keeping add-button insets balanced. */
.button.button-add{gap:6px}
.button-add::before{
 content:"";flex:0 0 10px;width:10px;height:10px;
 background:linear-gradient(currentColor,currentColor) center/10px 1.5px no-repeat,
 linear-gradient(currentColor,currentColor) center/1.5px 10px no-repeat;
}
.search-field{display:flex;align-items:center;padding:0!important;border:0;background:none}
.search-field input{height:100%!important;min-height:0!important}

/* One visual family for dropdowns on every page. */
select:not([multiple]):not([size]){
 appearance:none;
 font:400 14px/20px var(--font-ui);
 color:var(--forest);background-color:var(--paper);
 border:1px solid var(--line);border-radius:6px;
 padding-inline:12px 34px;
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23163e32' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
 background-position:right 10px center;background-size:14px 14px;background-repeat:no-repeat;
}
.collection-toolbar .library-layout>button{font-weight:400}
.collection-toolbar .library-layout>button>span{color:var(--forest);font:400 12px/1 var(--font-ui)}
.collection-toolbar .library-layout>button>.layout-glyph{font-size:18px}

/* Search icon sits inside the field; the text has its own reserved space. */
input[type=search]{
 width:100%;min-width:0;
 padding-left:40px!important;padding-right:12px;
 border:1px solid var(--line);border-radius:6px;
 color:var(--ink);background-color:var(--paper);
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364776c' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E")!important;
 background-position:12px center!important;background-size:18px 18px!important;background-repeat:no-repeat!important;
}
.search-field>span[aria-hidden=true],.filter-search-icon,.community-search>svg{display:none!important}
.catalogue-controls .catalogue-search{display:block}
.community-search{gap:0}

/* Shared space below the header and between cabinet navigation and content. */
.home-page :is(.cabinet-main,.catalogue-main,.community-main),
.home-page .hero{padding-top:var(--section-spacing)}

.community-main h1,.catalogue-heading h1{line-height:36px}

/* Shared spacing for catalogue and account content. */
.cabinet-prototype .library-toolbar{margin-bottom:var(--content-spacing)}
.account-panel h1{margin-bottom:var(--content-spacing)}
.profile-settings-heading,.author-projects-head,
.companies-search,.specialists-search{margin-bottom:var(--content-spacing)}
.community-main h1,.catalogue-heading h1{margin-bottom:var(--caption-spacing)}
.community-intro,.community-tabs,.community-search,.community-count,
.catalogue-heading>p,.catalogue-summary{margin-bottom:var(--content-spacing)}
.catalogue-toolbar{margin-block:var(--content-spacing)}

