/* Tools: keep the existing editorial paper, type and copper accent. */
#ma-atlas .ma-tools-page{min-height:calc(100dvh - 78px);padding:36px 5% 64px}
#ma-atlas .ma-tools-inner{max-width:1120px;margin:0 auto}
#ma-atlas .ma-tools-breadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-height:24px;margin-bottom:18px;color:var(--ma-soft);font-size:13px}
#ma-atlas .ma-tools-breadcrumb svg{width:14px;height:14px}
#ma-atlas .ma-tools-breadcrumb a{padding:6px 0}
#ma-atlas .ma-tools-heading{max-width:760px;margin-bottom:26px}
#ma-atlas .ma-tool-eyebrow{font-size:12px;color:var(--ma-soft);margin-bottom:12px}
#ma-atlas .ma-tools-heading h1{font-size:clamp(32px,4.5vw,56px);line-height:1.08;margin-bottom:16px;text-wrap:balance}
#ma-atlas .ma-tools-heading>p:last-child{font-size:17px;line-height:1.55;color:var(--ma-soft)}
#ma-atlas .ma-tools-page .ma-catalog-search{max-width:760px;margin-bottom:12px}
#ma-atlas .ma-tools-browse{display:flex;justify-content:space-between;gap:16px;align-items:center;margin:0 0 30px;flex-wrap:wrap}
#ma-atlas .ma-tools-browse nav{display:flex;gap:20px;flex-wrap:wrap}
#ma-atlas .ma-tools-browse a{font-size:14px;min-height:36px;display:inline-flex;align-items:center;text-decoration:none;border-bottom:2px solid transparent}
#ma-atlas .ma-tools-browse a.is-active{border-color:var(--ma-ink)}
#ma-atlas .ma-tools-browse>p{font-size:13px;color:var(--ma-soft)}
#ma-atlas .ma-tools-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:18px;margin-bottom:20px}
#ma-atlas .ma-tools-section-head h2{font-size:28px;line-height:1.25}
#ma-atlas .ma-tools-section-head>p{font-size:13px;color:var(--ma-soft);flex-shrink:0}
#ma-atlas .ma-tools-subtopics{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 30px}
#ma-atlas .ma-tools-subtopics a{padding:10px 14px;border:1px solid #a89f93;border-radius:4px;text-decoration:none;font-size:14px}
#ma-atlas .ma-tools-section{margin:0 0 38px}
#ma-atlas .ma-tool-list{border-top:1px solid #b6ad9f}
#ma-atlas .ma-tool-row{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:24px 0;border-bottom:1px solid #b6ad9f}
#ma-atlas .ma-tool-row>div{max-width:850px;min-width:0}
#ma-atlas .ma-tool-row h3{font-size:25px;line-height:1.25;margin:6px 0 10px;text-wrap:pretty}
#ma-atlas .ma-tool-row h3 a{text-decoration:none}
#ma-atlas .ma-tool-row h3 a:hover{text-decoration:underline}
#ma-atlas .ma-tool-type{font-size:12px;color:var(--ma-soft)}
#ma-atlas .ma-tool-summary{font-size:15px;line-height:1.6;color:var(--ma-soft)}
#ma-atlas .ma-tool-home{margin-top:12px;font-size:12px;color:var(--ma-soft)}
#ma-atlas .ma-tool-row>button{border-color:#a89f93;flex-shrink:0}
#ma-atlas .ma-tools-note{font-size:15px;color:var(--ma-soft);margin:-8px 0 18px}
#ma-atlas .ma-tools-empty button{border-color:#a89f93;display:inline-flex;gap:12px;align-items:center}
#ma-atlas .ma-tools-empty{padding:24px 0;max-width:660px}
#ma-atlas .ma-tools-empty h2{font-size:26px;margin-bottom:12px}
#ma-atlas .ma-tools-empty p{margin-bottom:20px}
#ma-atlas .ma-tools-page :is(a,button,input):focus-visible{outline:3px solid #8c4b19;outline-offset:4px}
#ma-atlas .ma-map-count{max-width:calc(100% - 40px)}
#ma-atlas .ma-map-scope{font-size:12px;color:var(--ma-muted);line-height:1.5;margin-top:8px}
@media(max-width:1000px){
  #ma-atlas .ma-header{grid-template-columns:auto 1fr auto}
  #ma-atlas .ma-header .ma-nav{gap:0}
  #ma-atlas .ma-header .ma-nav button{padding-inline:8px;font-size:14px}
}
/* Compact domains, contents and tool rows share one layout at every width. */
  #ma-atlas a.ma-tool-domain-compact{display:flex;align-items:center;min-height:44px;border-bottom:1px solid #d8d4cc;min-width:0}
  #ma-atlas .ma-tool-domain-compact>div{flex:1;min-width:0}
  #ma-atlas .ma-tool-domain-top{display:flex;flex:none;align-items:center;color:var(--ma-soft)}
  #ma-atlas .ma-tool-domain-top svg{width:20px;height:20px}
  #ma-atlas .ma-tool-domain-count{flex:none;font:var(--ma-list-meta-size)/1.4 var(--ma-sans);color:var(--ma-soft);font-variant-numeric:tabular-nums}
  #ma-atlas a.ma-tool-domain-compact:hover{background:rgba(137,83,37,.07)}
  #ma-atlas .ma-tools-subtopics{display:block;margin:0 0 24px}
  #ma-atlas .ma-tools-subtopics h2{font:500 13px/1.4 var(--ma-sans);margin:0 0 6px}
  #ma-atlas .ma-tools-subtopics a{display:flex;align-items:center;gap:10px;min-height:44px;padding:10px 0;border:0;border-bottom:1px solid #d8d4cc;border-radius:0;font:14px/1.4 var(--ma-sans)}
  #ma-atlas .ma-tools-subtopics a>span:first-child{flex:1;min-width:0;overflow-wrap:anywhere}
  #ma-atlas .ma-tools-subtopics svg{width:14px;height:14px;flex:none;color:var(--ma-soft)}
  #ma-atlas .ma-tools-section{margin-bottom:24px;scroll-margin-top:16px}
  #ma-atlas .ma-tool-list{border-top-color:#d8d4cc}
  #ma-atlas .ma-tool-row{gap:12px;padding:12px 0;border-bottom-color:#d8d4cc;align-items:center}
  #ma-atlas .ma-tool-row>div{flex:1;min-width:0}
  #ma-atlas .ma-tool-row h3{font:400 18px/1.2 var(--ma-serif);margin:0 0 3px;overflow-wrap:anywhere}
  #ma-atlas .ma-tool-row h3 a{display:block;min-height:24px}
  #ma-atlas .ma-tool-type,#ma-atlas .ma-tool-home{display:none}
  #ma-atlas .ma-tool-summary{font:12px/1.4 var(--ma-sans);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #ma-atlas .ma-tool-row>button{width:44px;height:44px;padding:10px;border:0}
/* Match the compact contents rows in Читать, by atlas container width. */
@container(max-width:680px){
  #ma-atlas .ma-tools-page{padding:18px 18px 28px;min-height:0}
  #ma-atlas .ma-tools-breadcrumb{font-size:12px;margin-bottom:10px;overflow-wrap:anywhere}
  #ma-atlas .ma-tools-breadcrumb:empty{display:none}
  #ma-atlas .ma-tools-heading{margin-bottom:12px}
  #ma-atlas .ma-tool-eyebrow{display:none}
  #ma-atlas .ma-tools-heading h1{font:400 27px/1.1 var(--ma-serif);margin-bottom:8px;overflow-wrap:anywhere}
  #ma-atlas .ma-tools-heading>p:last-child{font-size:13px;line-height:1.4}
  #ma-atlas .ma-tools-browse{margin-bottom:16px;gap:8px}
  #ma-atlas .ma-tools-browse nav{gap:18px}
  #ma-atlas .ma-tools-browse a{min-height:44px;font:12.5px/1.4 var(--ma-sans);color:var(--ma-soft)}
  #ma-atlas .ma-tools-browse a.is-active{color:var(--ma-ink);border-bottom-color:#ab6035}
  #ma-atlas .ma-tools-section-head{gap:8px;margin-bottom:8px;align-items:baseline}
  #ma-atlas .ma-tools-section-head h2{font:400 20px/1.2 var(--ma-serif);min-width:0;overflow-wrap:anywhere}
  #ma-atlas .ma-tools-section-head>p{font-size:12px}
  #ma-atlas .ma-tools-note{font-size:13px;margin:0 0 10px}
}

@container(min-width:681px){
  #ma-atlas .ma-tools-subtopics{max-width:760px}
  #ma-atlas .ma-tools-subtopics h2{font-size:14px}
  #ma-atlas .ma-tools-subtopics a{font-size:16px;padding-block:12px}
  #ma-atlas .ma-tool-row{padding-block:16px}
  #ma-atlas .ma-tool-row h3{font-size:22px}
  #ma-atlas .ma-tool-summary{font-size:14px}
}

/* #80/#83: the product journey and its shared intro slot, scoped to Tools. */
#ma-atlas .ma-tools-breadcrumb:empty{display:none}
#ma-atlas .ma-tools-index{padding-top:24px}
#ma-atlas .ma-tools-index .ma-tools-heading{margin-bottom:14px}
#ma-atlas .ma-tools-index .ma-tools-heading h1{font-size:40px;margin-bottom:0}
#ma-atlas .ma-tools-index .ma-tool-eyebrow{font-size:12px;line-height:1.4;margin-bottom:6px}
#ma-atlas .ma-tools-intro-slot{margin-bottom:20px}
#ma-atlas .ma-tools-intro-slot .ma-list-intro{max-width:100%;margin-bottom:16px}
#ma-atlas .ma-tools-intro-slot .ma-list-intro>p{max-width:110ch;font-size:14px;line-height:1.5}
#ma-atlas .ma-tools-concepts h2{font:500 14px/1.4 var(--ma-sans);margin:0 0 8px}
#ma-atlas .ma-tools-concepts ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;list-style:none;padding:0;margin:0}
#ma-atlas .ma-tools-concepts li{min-width:0;padding:8px 0;border-top:1px solid var(--ma-line);display:grid;grid-template-columns:minmax(130px,.7fr) minmax(0,1.3fr);gap:0 12px;align-content:start}
#ma-atlas .ma-tools-concepts h3{grid-row:1/3;font:600 14px/1.4 var(--ma-sans);margin:0;overflow-wrap:anywhere}
#ma-atlas .ma-tools-concepts p{font:13px/1.4 var(--ma-sans);color:var(--ma-soft);margin:0}
#ma-atlas .ma-tool-concept-links{display:flex;flex-wrap:wrap;gap:0 10px;margin-top:2px}
#ma-atlas .ma-tool-concept-links a{display:inline-flex;align-items:center;min-height:24px;font:12px/1.4 var(--ma-sans);text-underline-offset:3px}
#ma-atlas .ma-tools-index .ma-tools-browse{margin-bottom:14px}
#ma-atlas .ma-tools-path{margin:20px 0}
#ma-atlas .ma-tools-path .ma-tools-section-head h2{font:400 24px/1.3 var(--ma-serif)}
#ma-atlas .ma-tools-path .ma-tools-domains{display:block;list-style:none;margin:0;padding:0;border-top:1px solid var(--ma-line)}
#ma-atlas .ma-tools-path li{position:relative}
#ma-atlas .ma-tools-path li:not(:last-child)::after{content:'';position:absolute;left:15px;top:calc(50% + 18px);bottom:calc(-50% + 18px);border-left:1px solid var(--ma-line);pointer-events:none}
#ma-atlas .ma-tools-page a.ma-tool-domain-compact{gap:16px;padding:16px 0;text-decoration:none}
#ma-atlas .ma-tool-step{display:grid;place-items:center;width:32px;height:32px;border:1px solid var(--ma-soft);border-radius:50%;font:500 14px/1 var(--ma-sans);color:var(--ma-ink);background:var(--ma-paper)}
#ma-atlas .ma-tools-page .ma-tool-domain-compact h2{font:400 24px/1.3 var(--ma-serif)}
#ma-atlas .ma-tools-page .ma-tool-stage>div{display:grid;grid-template-columns:160px minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:baseline}
#ma-atlas .ma-tools-page .ma-tool-domain-compact p{font:14px/1.5 var(--ma-sans);margin:0;color:var(--ma-soft);max-width:100%}
#ma-atlas .ma-tools-page .ma-tool-domain-compact .ma-tool-question{color:var(--ma-ink)}
#ma-atlas .ma-tools-page .ma-tool-domain-compact .ma-tool-outcome{font-size:13px}
#ma-atlas .ma-tool-outcome>span{color:var(--ma-soft)}
#ma-atlas .ma-tool-domain-compact>svg{width:18px;height:18px;flex:none;color:var(--ma-soft)}
#ma-atlas .ma-tools-page a.ma-tool-layer{border-top:1px solid var(--ma-line);border-bottom:1px solid var(--ma-line);padding-inline:16px;background:rgba(137,83,37,.04)}
#ma-atlas .ma-tool-layer .ma-tool-domain-top{width:32px;justify-content:center}
#ma-atlas .ma-tools-page .ma-tool-layer>div{display:grid;grid-template-columns:minmax(200px,.8fr) minmax(0,1.2fr);gap:0 20px}
#ma-atlas .ma-tool-layer h2{grid-row:1/3}
#ma-atlas .ma-tools-heading .ma-tool-outcome{font:14px/1.5 var(--ma-sans);margin-top:8px;color:var(--ma-soft)}
#ma-atlas .ma-tools-library{margin:0 0 var(--ma-list-group-gap)}
#ma-atlas .ma-tools-library h2{font:500 14px/1.4 var(--ma-sans);margin-bottom:8px}
#ma-atlas .ma-tools-library ul{display:flex;flex-wrap:wrap;gap:4px 20px;list-style:none;padding:0;margin:0}
#ma-atlas .ma-tools-library a{display:inline-flex;align-items:center;min-height:44px;font:14px/1.5 var(--ma-sans);text-underline-offset:4px}
@container(max-width:1000px){
  #ma-atlas .ma-tools-page .ma-tool-stage>div{grid-template-columns:1fr;gap:4px}
}
@container(max-width:680px){
  #ma-atlas .ma-tools-index .ma-tools-heading h1{font-size:27px}
  #ma-atlas .ma-tools-index .ma-tool-eyebrow{display:block}
  #ma-atlas .ma-tools-intro-slot .ma-list-intro>p{font-size:13px;line-height:1.5}
  #ma-atlas .ma-tools-concepts ul{display:flex;overflow-x:auto;scroll-snap-type:x proximity;gap:16px;padding:4px 4px 12px;scroll-padding:4px}
  #ma-atlas .ma-tools-concepts li{display:block;flex:0 0 88%;scroll-snap-align:start;padding:12px; border:1px solid var(--ma-line)}
  #ma-atlas .ma-tools-concepts h3{margin-bottom:6px}
  #ma-atlas .ma-tool-concept-links{margin-top:8px;gap:4px 12px}
  #ma-atlas .ma-tool-concept-links a{min-height:44px;font-size:13px}
  #ma-atlas .ma-tools-page a.ma-tool-domain-compact{gap:12px;padding-block:var(--ma-list-row-padding);align-items:flex-start}
  #ma-atlas .ma-tools-page .ma-tool-domain-compact h2{font-size:21px}
  #ma-atlas .ma-tools-page .ma-tool-domain-compact p{font-size:13px}
  #ma-atlas .ma-tools-page .ma-tool-layer>div{display:block}
  #ma-atlas .ma-tool-layer h2{margin-bottom:4px}
  #ma-atlas .ma-tool-domain-compact .ma-tool-domain-count,#ma-atlas .ma-tool-domain-compact>svg{margin-top:6px}
  #ma-atlas .ma-tools-page a.ma-tool-layer{padding-inline:12px}
  #ma-atlas .ma-tools-path li:not(:last-child)::after{top:50px;bottom:-18px}
  #ma-atlas .ma-tools-library ul{display:block}
}
@container(min-width:1001px){
  #ma-atlas .ma-tools-index .ma-tools-inner{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:24px}
  #ma-atlas .ma-tools-index .ma-tools-inner>:is(.ma-tools-breadcrumb,.ma-tools-heading,.ma-tools-intro-slot,.ma-list-intro,#ma-tools-results){grid-column:1/-1}
  #ma-atlas .ma-tools-index .ma-catalog-search{margin-bottom:14px;min-width:0}
  #ma-atlas .ma-tools-index .ma-tools-browse{align-self:center;margin-bottom:14px;min-width:0}
}

/* #87: a touch legend and a keyboard/touch disclosure for the same type copy. */
#ma-atlas .ma-tool-types{display:none;margin:0 0 24px}
#ma-atlas .ma-tool-types h2{font-size:22px;margin-bottom:12px}
#ma-atlas .ma-tool-types dl{margin:0}
#ma-atlas .ma-tool-types dl>div{margin:0 0 12px}
#ma-atlas .ma-tool-types dt{font:500 13px/1.5 var(--ma-sans)}
#ma-atlas .ma-tool-types dd{margin:3px 0 0}
#ma-atlas .ma-tool-type-help{position:relative;width:fit-content;max-width:100%}
#ma-atlas .ma-tool-type-help summary{font:inherit;min-height:24px;cursor:pointer;text-decoration:underline dotted;text-underline-offset:3px}
#ma-atlas .ma-tool-type-help>p{position:absolute;z-index:2;top:100%;left:0;width:280px;max-width:calc(100cqw - 64px);padding:12px;background:var(--ma-paper);border:1px solid var(--ma-line);border-radius:8px;box-shadow:0 4px 12px rgba(0,0,0,.12)}
@container(max-width:680px){
  #ma-atlas .ma-tool-types{display:block}
  #ma-atlas .ma-tool-type-help>p{position:static;width:auto;max-width:none;margin:4px 0 8px;box-shadow:none}
}
