/* dev-doc: 2026-12-05 12:05 free-tool-pages */
/* Styles for the one-job tool pages (Views/Tools/_toolPage.cshtml): hero, the tool (map plus side panel),
   promo card, how-to steps, FAQ and related tools. Plain CSS on purpose: there is no SCSS source for
   assets/views/tools. Colours are the site's own: brand blue #2152c4 / #1e50c3, accent #1e90ff, ink #292d34 (assets/design2021/css/style.css). */

.smtool { font-family: 'Poppins', sans-serif; color: #292d34; background: #fff; }
.smtool *, .smtool *::before, .smtool *::after { box-sizing: border-box; }
.smtool__shell { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
/* The buttons and lists set their own display, which would beat the hidden attribute without this. */
.smtool [hidden] { display: none !important; }

/* The site's body is black and its header has no background of its own (most pages put a dark hero under it).
   These pages are white from the top, so the body is too; this file is loaded by the tool pages only. "html body"
   because the site's stylesheet comes later in the head and would win an equal selector. */
html body { background: #fff; }

.smtool-hero { padding: 44px 0 20px; text-align: center; }
.smtool-hero__title { font-size: 40px; line-height: 1.15; font-weight: 700; color: #292d34; margin: 0 0 12px; }
.smtool-hero__sub { font-size: 18px; line-height: 1.5; color: #4d5669; max-width: 760px; margin: 0 auto 10px; }
.smtool-hero__free { display: inline-block; font-size: 14px; font-weight: 600; color: #2152c4; background: #e6ecf4;
  border-radius: 999px; padding: 6px 14px; margin: 6px 0 0; }

.smtool-app { padding: 16px 0 36px; }
.smtool-app__grid { display: flex; gap: 16px; align-items: stretch; }
.smtool-app__map { position: relative; flex: 1 1 auto; min-width: 0; height: 620px; border: 1px solid #e5e7eb;
  border-radius: 12px; overflow: hidden; background: #f3f4f6; }
.smtool-app__map--full { height: 680px; }
.smtool-app__panel { flex: 0 0 340px; max-width: 340px; border: 1px solid #e5e7eb; border-radius: 12px; padding: 18px;
  background: #f5f8fc; display: flex; flex-direction: column; gap: 12px; max-height: 620px; overflow-y: auto; }
.smtool-app__panel h2 { font-size: 18px; font-weight: 700; margin: 0; color: #292d34; }
/* The panel scrolls when its content is taller than the map; without this its buttons and boxes are squeezed instead. */
.smtool-app__panel > * { flex-shrink: 0; }
.smtool-app__hint { font-size: 13px; line-height: 1.45; color: #6f7a93; margin: 0; }

.smtool-field { position: relative; display: flex; flex-direction: column; gap: 4px; }
.smtool-field label { font-size: 13px; font-weight: 600; color: #4d5669; }
.smtool-input, .smtool-select { width: 100%; height: 42px; border: 1px solid #b9c8ea; border-radius: 8px; padding: 0 12px;
  font: inherit; font-size: 15px; color: #292d34; background: #fff; }
.smtool-input:focus, .smtool-select:focus { outline: 2px solid #2152c4; outline-offset: 1px; }
.smtool-row { display: flex; gap: 8px; align-items: flex-end; }
.smtool-row > * { flex: 1 1 0; min-width: 0; }
.smtool-row > .smtool-row__fixed { flex: 0 0 auto; }

.smtool-suggest { position: absolute; left: 0; right: 0; top: 100%; z-index: 6000; margin: 2px 0 0; padding: 0;
  list-style: none; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; box-shadow: 0 8px 24px rgba(17, 24, 39, .12);
  max-height: 240px; overflow-y: auto; }
.smtool-suggest[hidden] { display: none; }
.smtool-suggest li { padding: 9px 12px; font-size: 14px; cursor: pointer; border-bottom: 1px solid #f3f4f6; }
.smtool-suggest li:last-child { border-bottom: 0; }
.smtool-suggest li:hover, .smtool-suggest li[aria-selected="true"] { background: #e6ecf4; }

.smtool-btn { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 18px; border: 0;
  border-radius: 8px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; background: #2152c4; color: #fff;
  text-decoration: none; }
.smtool-btn:hover { background: #1a429d; color: #fff; }
.smtool-btn[disabled] { opacity: .5; cursor: default; }
.smtool-btn--ghost { background: #fff; color: #2152c4; border: 1px solid #b9c8ea; }
.smtool-btn--ghost:hover { background: #e6ecf4; color: #2152c4; }
.smtool-btn--small { height: 32px; padding: 0 10px; font-size: 13px; }

.smtool-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.smtool-list li { display: flex; gap: 8px; align-items: center; justify-content: space-between; background: #fff;
  border: 1px solid #e5e7eb; border-radius: 8px; padding: 8px 10px; font-size: 14px; }
.smtool-list__label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.smtool-list__value { flex: 0 0 auto; font-weight: 600; color: #292d34; }
.smtool-list__remove { flex: 0 0 auto; width: 26px; height: 26px; border: 0; border-radius: 6px; background: #f3f4f6;
  color: #4d5669; cursor: pointer; font-size: 16px; line-height: 1; }
.smtool-list__remove:hover { background: #fee2e2; color: #b91c1c; }
.smtool-swatch { flex: 0 0 auto; width: 14px; height: 14px; border-radius: 50%; }

.smtool-result { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px 14px; }
.smtool-result__label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #6f7a93; }
.smtool-result__value { font-size: 26px; font-weight: 700; color: #292d34; line-height: 1.2; }
.smtool-result__sub { font-size: 13px; color: #6f7a93; }
.smtool-status { font-size: 13px; color: #b45309; min-height: 18px; margin: 0; }

.smtool-promo { margin: 0; padding: 0 0 44px; }
.smtool-promo__card { display: flex; gap: 28px; align-items: center; justify-content: space-between; border-radius: 16px;
  padding: 28px 32px; color: #fff; background: linear-gradient(120deg, #1e50c3 0%, #1e90ff 100%); }
.smtool-promo__eyebrow { font-size: 13px; font-weight: 600; opacity: .85; margin: 0 0 6px; }
.smtool-promo__title { font-size: 26px; font-weight: 700; line-height: 1.2; margin: 0 0 8px; color: #fff; }
.smtool-promo__body { font-size: 16px; line-height: 1.5; margin: 0 0 12px; color: #fff; opacity: .95; max-width: 640px; }
.smtool-promo__points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; }
.smtool-promo__points li::before { content: "\2713"; margin-right: 6px; font-weight: 700; }
.smtool-promo__cta { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; height: 52px;
  padding: 0 28px; border-radius: 10px; background: #fff; color: #1e50c3; font-size: 17px; font-weight: 700; text-decoration: none; }
.smtool-promo__cta:hover { background: #e6ecf4; color: #2152c4; }

.smtool-section { padding: 44px 0; }
.smtool-section--tint { background: #f5f8fc; }
/* The steps sit directly under the tool, so they keep less space above them than a normal section. */
.smtool-section--steps { padding-top: 8px; }
.smtool-section__title { font-size: 28px; font-weight: 700; color: #292d34; margin: 0 0 22px; text-align: center; }
.smtool-about { max-width: 820px; margin: 0 auto; font-size: 16px; line-height: 1.65; color: #4d5669; }
.smtool-about p { margin: 0 0 14px; }

.smtool-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; margin: 0; padding: 0;
  counter-reset: smtool-step; }
.smtool-steps li { counter-increment: smtool-step; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px; }
.smtool-steps li::before { content: counter(smtool-step); display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; background: #e6ecf4; color: #2152c4; font-weight: 700; margin-bottom: 10px; }
.smtool-steps h3 { font-size: 17px; font-weight: 700; margin: 0 0 6px; color: #292d34; }
.smtool-steps p { font-size: 15px; line-height: 1.55; color: #4d5669; margin: 0; }

.smtool-faq { max-width: 820px; margin: 0 auto; }
.smtool-faq details { border-bottom: 1px solid #e5e7eb; padding: 14px 0; }
.smtool-faq summary { font-size: 17px; font-weight: 600; color: #292d34; cursor: pointer; }
.smtool-faq p { font-size: 15px; line-height: 1.6; color: #4d5669; margin: 10px 0 0; }

.smtool-related { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; list-style: none; margin: 0; padding: 0; }
.smtool-related a { display: block; border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px 16px; font-size: 15px;
  font-weight: 600; color: #2152c4; background: #fff; text-decoration: none; }
.smtool-related a:hover { border-color: #b9c8ea; background: #f5f8fc; }

[dir="rtl"] .smtool-promo__points li::before { margin-right: 0; margin-left: 6px; }

@media (max-width: 900px) {
  .smtool-hero { padding-top: 28px; }
  .smtool-hero__title { font-size: 30px; }
  .smtool-hero__sub { font-size: 16px; }
  .smtool-app__grid { flex-direction: column; }
  .smtool-app__map, .smtool-app__map--full { height: 460px; flex: 0 0 auto; }
  .smtool-app__panel { flex: 0 0 auto; max-width: none; max-height: none; order: -1; }
  .smtool-promo__card { flex-direction: column; align-items: flex-start; padding: 22px; }
  .smtool-promo__cta { width: 100%; }
  .smtool-steps { grid-template-columns: 1fr; }
  .smtool-related { grid-template-columns: repeat(2, 1fr); }
  .smtool-section__title { font-size: 24px; }
}

.smtool-search { position: relative; max-width: 520px; margin: 0 auto 12px; }
.smtool-search .smtool-input { height: 46px; padding-left: 14px; border-color: #b9c8ea; }

.smtool-langs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; }
.smtool-langs a { font-size: 14px; color: #2152c4; text-decoration: none; }
.smtool-langs a:hover { text-decoration: underline; }
.smtool-langs [aria-current="true"] { font-weight: 700; color: #292d34; }

/* The drawing toolbar. The editor draws the row of tools open at the bottom (top border and top corners only) and
   gives the undo and style controls their own sizes, backgrounds and positions, because in the editor other panels
   sit against them. On these pages that left an unfinished shape, gaps and uneven edges, so the toolbar is drawn
   here as one bordered, rounded block. Offsets are from the map's inner edge; the row of tools is 44px tall. */
.smtool #ScribbleMap .sm_toolIcon { box-sizing: border-box !important; height: 44px !important; border-bottom: 1px solid #ccc !important; }

/* Drawing pages: the undo and style controls form a second row, flush under the tools and exactly as wide: undo 51,
   fill 60, line 60, and the line settings take the rest of the tool row's width (--smtool-toolbar-width, set by
   SMToolPage.tidyDrawingToolbar). The tools keep their rounded top corners; this row rounds the bottom ones. */
.smtool #ScribbleMap .sm_undoControl, .smtool #ScribbleMap .sm_colorPickerControl, .smtool #ScribbleMap .sm_lineSettingsControl {
  position: absolute !important; top: 54px !important; height: 36px !important; margin: 0 !important; box-sizing: border-box !important;
  background: #fff !important; border: 0 solid #ccc !important; border-width: 0 1px 1px 0 !important; border-radius: 0 !important; }
.smtool #ScribbleMap .sm_undoControl { left: 10px !important; width: 51px !important; border-left-width: 1px !important;
  border-bottom-left-radius: 5px !important; }
.smtool #ScribbleMap .sm_colorPickerControl.sm_fill { left: 61px !important; width: 60px !important; }
.smtool #ScribbleMap .sm_colorPickerControl.sm_line { left: 121px !important; width: 60px !important; }
.smtool #ScribbleMap .sm_lineSettingsControl { left: 181px !important; width: calc(var(--smtool-toolbar-width, 300px) - 171px) !important; padding-left: 5px !important;
  border-bottom-right-radius: 5px !important; }

/* Pages with no style controls (the calculators, the territory tool): one row. Undo and redo join the end of the
   tool row as its last cell, with the same height and border, and the block is rounded at both ends.
   --smtool-toolbar-width is set by SMToolPage.tidyDrawingToolbar. */
.smtool #ScribbleMap:not(:has(.sm_lineSettingsControl)) .sm_toolIcon:first-child { border-bottom-left-radius: 5px !important; }
.smtool #ScribbleMap:not(:has(.sm_lineSettingsControl)) .sm_toolIcon:last-child { border-top-right-radius: 0 !important; }
.smtool #ScribbleMap:not(:has(.sm_lineSettingsControl)) .sm_undoControl { top: 10px !important; height: 44px !important; width: 58px !important;
  left: calc(10px + var(--smtool-toolbar-width, 122px)) !important; border-width: 1px 1px 1px 0 !important; border-radius: 0 5px 5px 0 !important; }
/* The arrows fill their half of the cell, so they sit on the same line as the tool icons, not below it. */
.smtool #ScribbleMap:not(:has(.sm_lineSettingsControl)) .sm_undoControl .sm_undoButton { top: 0 !important; width: 50% !important; height: 100% !important; }
.smtool #ScribbleMap:not(:has(.sm_lineSettingsControl)) .sm_undoControl .sm_undo { left: 0 !important; }
.smtool #ScribbleMap:not(:has(.sm_lineSettingsControl)) .sm_undoControl .sm_redo { left: 50% !important; }
.smtool #ScribbleMap:not(:has(.sm_lineSettingsControl)) .sm_undoControl .sm_undoIcon,
.smtool #ScribbleMap:not(:has(.sm_lineSettingsControl)) .sm_undoControl .sm_redoIcon { width: 100% !important; height: 100% !important;
  background-position: center center !important; background-repeat: no-repeat !important; }

/* Phones: the full drawing toolbar (two rows, 302px wide) reaches the zoom and location buttons on the right of a
   narrow map, so on drawing pages those buttons move down below the toolbar. */
@media (max-width: 420px) {
  .smtool #ScribbleMap:has(.sm_lineSettingsControl) .sm_zoomControl { top: 100px !important; }
  .smtool #ScribbleMap:has(.sm_lineSettingsControl) .sm_gpsControl { top: 193px !important; }
}

/* The editor shows an options strip under the toolbar for the selected tool (outline, angles, on-map dimensions,
   auto trace, drawing rules, snapping). These pages do one job, so the strip is hidden. It comes back only while a
   shape is in progress on a touch screen (the editor adds sm_hasComplete then), reduced to its Complete button:
   that button is the only way to finish a shape without a double-click. */
.smtool #ScribbleMap .sm_toolPanel { display: none !important; }
.smtool #ScribbleMap .sm_toolPanel.sm_hasComplete { display: block !important; width: auto !important; height: auto !important;
  min-width: 0 !important; padding: 6px !important; }
.smtool #ScribbleMap .sm_toolPanel.sm_hasComplete .sm_toolPanelContent > *:not(.sm_primary),
.smtool #ScribbleMap .sm_toolPanel.sm_hasComplete .sm_toolBoxPanelHider { display: none !important; }

/* Pin, spreadsheet and territory tools: stacked blocks in the panel, a paste box, and list rows that hold a name box. */
.smtool-block { display: flex; flex-direction: column; gap: 12px; }
/* /tools/plot-addresses leads with the paste box; /tools/pin-map leads with the search box. */
.smtool-app__panel[data-smtool-first="list"] .smtool-block--list { order: -1; }
.smtool-textarea { height: auto; min-height: 104px; padding: 10px 12px; line-height: 1.4; resize: vertical; }
.smtool-count { font-weight: 400; color: #6f7a93; }
.smtool-missing { list-style: disc; margin: 0; padding: 0 0 0 18px; font-size: 13px; color: #b45309; }
.smtool-missing[hidden] { display: none; }
.smtool-list__name { flex: 1 1 auto; min-width: 0; height: 30px; border: 1px solid transparent; border-radius: 6px; padding: 0 6px;
  font: inherit; font-size: 14px; color: #292d34; background: transparent; text-overflow: ellipsis; }
.smtool-list__name:hover { border-color: #e5e7eb; }
.smtool-list__name:focus { border-color: #2152c4; background: #fff; outline: 0; }
.smtool-list__go { flex: 0 0 auto; width: 16px; height: 16px; padding: 0; border: 3px solid #fff; border-radius: 50%; background: #2152c4;
  box-shadow: 0 0 0 1px #2152c4; cursor: pointer; }
.smtool-list li.smtool-list__row { display: block; }
.smtool-list__row summary { cursor: pointer; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.smtool-list__cell { font-size: 13px; color: #4d5669; margin-top: 4px; overflow-wrap: anywhere; }
[dir="rtl"] .smtool-missing { padding: 0 18px 0 0; }

/* Embed mode (Views/Tools/_toolPage.cshtml with ViewBag.ToolEmbed): only the tool, sized to the frame it is shown in.
   The side-domain landing pages (cloudflare/DomainLanding) frame it, so nothing here may assume the site's own
   stylesheet or a page height: the tool fills the frame and its panel scrolls inside it. */
.smtool-embed-body { margin: 0; background: #fff; }
.smtool--embed { display: flex; flex-direction: column; height: 100vh; padding: 0;
  font-family: "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
.smtool--embed .smtool-app { flex: 1 1 auto; min-height: 0; padding: 0; }
.smtool--embed .smtool__shell { max-width: none; height: 100%; padding: 0; display: flex; flex-direction: column; }
.smtool--embed .smtool-app__grid { flex: 1 1 auto; min-height: 0; }
.smtool--embed .smtool-app__map, .smtool--embed .smtool-app__map--full { flex: 1 1 auto; height: auto; min-height: 0; }
.smtool--embed .smtool-app__panel { max-height: none; }
.smtool--embed .smtool-search { flex: 0 0 auto; width: 100%; }
.smtool-tabs { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 10px; }
.smtool-tabs a { padding: 7px 16px; border: 1px solid #b9c8ea; border-radius: 999px; font-size: 14px; font-weight: 600; color: #2152c4;
  background: #fff; text-decoration: none; }
.smtool-tabs a[aria-current="page"] { background: #2152c4; border-color: #2152c4; color: #fff; }
.smtool-embed__more { flex: 0 0 auto; margin: 0; padding: 8px 4px 0; font-size: 13px; color: #6f7a93; text-align: center; }
.smtool-embed__more a { color: #2152c4; font-weight: 600; }
@media (max-width: 900px) {
  /* Stacked: the panel keeps to the top part of the frame and scrolls, so the map is always on screen. */
  .smtool--embed .smtool-app__panel { flex: 0 1 auto; max-height: 46%; }
  .smtool--embed .smtool-app__map, .smtool--embed .smtool-app__map--full { flex: 1 1 auto; height: auto; min-height: 240px; }
}

/* Save and share, under the tool: the way from a quick tool to a saved, shareable map in the editor. */
.smtool-save { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; }
.smtool-save__button { padding: 0 22px; }
.smtool-save__note { font-size: 14px; color: #4d5669; }
.smtool-save__status { flex-basis: 100%; font-size: 13px; color: #b45309; }
.smtool-save__status:empty { display: none; }
.smtool--embed .smtool-save { flex: 0 0 auto; margin-top: 8px; }
.smtool--embed .smtool-save__note { font-size: 13px; }
