/* Cloud Media Shrinker guides: the list at guides/ and each guide. Self-contained on top of /styles.css and ../cms-nav.css. */
.cms { --muted: #5d6a5f; --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace; --box: #e4ebd7; --tile: #edf1e3; --line: #a7b2a5; --soft-line: #d0d4b9; padding: 44px var(--rail) 40px 0; }
.cms a:not(.button) { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.cms-help { max-width: none; }
.cms-guide { max-width: 760px; }
.eyebrow { margin: 0 0 14px; font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.cms .g-crumbs a { text-decoration: none; }
.cms .g-crumbs a:hover { text-decoration: underline; }
.h-title { margin: 0 0 14px; font-size: clamp(32px, 4vw, 44px); line-height: 1.12; letter-spacing: -1.2px; text-wrap: balance; }
.g-lede { margin: 0; font-size: 18px; line-height: 1.55; }
.g-meta { margin: 12px 0 0; font-size: 14px; color: var(--muted); }

/* The answer in a few lines, before the steps. */
.g-short { margin: 26px 0 8px; padding: 16px 18px; border-left: 3px solid var(--green); border-radius: 0 6px 6px 0; background: var(--tile); }
.g-short .eyebrow { margin: 0 0 6px; font-size: 12px; }
.g-short p { margin: 0; font-size: 16px; line-height: 1.6; }

/* Sections. */
.h-sec { margin-top: 26px; padding: 30px 0 4px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.g-short + .h-sec { margin-top: 22px; }
.h-sec > h2 { margin: 0 0 14px; font-size: 26px; line-height: 1.2; letter-spacing: -.5px; text-wrap: balance; }
.h-sec h3 { margin: 22px 0 8px; font-size: 19px; line-height: 1.3; letter-spacing: -.2px; }
.h-sec p, .h-sec li { font-size: 16px; line-height: 1.6; }
.h-sec p { margin: 0 0 12px; }
.h-sec ul, .h-sec ol { margin: 0 0 14px; padding-left: 22px; }
.h-sec li { margin: 0 0 6px; }
.h-sec li::marker { color: var(--green); font-weight: 700; }
.h-sec b, .ui { font-weight: 700; }
.tag { display: inline-block; margin-right: 6px; padding: 2px 7px; border: 1px solid #b7c3a5; border-radius: 4px; background: var(--box); color: var(--green); font-size: 12px; font-weight: 700; line-height: 1.4; vertical-align: 1px; white-space: nowrap; }
.h-sec h3 .tag { margin-right: .5em; padding: .1em .5em; border-radius: 5px; font-size: .84em; line-height: 1.2; vertical-align: .05em; }
.g-warn { margin: 16px 0; padding: 14px 16px; border: 1px solid #e3c98f; border-radius: 6px; background: #fdf1d8; color: #4d380c; }
.h-sec .g-warn p { margin: 0; font-size: 15px; line-height: 1.55; }
.cms .g-warn a { color: inherit; }

/* A screenshot beside the steps it belongs to. */
.g-fig { margin: 18px 0 20px; width: 230px; max-width: 100%; }
.g-fig img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 22px; background: var(--tile); }
.g-fig.wide { width: auto; max-width: 580px; }
.g-fig.wide img { border-radius: 10px; }
.g-fig figcaption { margin-top: 8px; font-size: 13px; line-height: 1.45; color: var(--muted); }

/* Where the app comes in. */
.g-get { margin: 18px 0 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.g-get small { font-size: 14px; line-height: 1.45; color: var(--muted); }

/* Other guides and posts: on a guide under Keep reading, and the whole list at guides/. */
.g-list { margin: 0 0 14px; padding: 0; list-style: none; }
.h-sec .g-list { padding-left: 0; }
.g-list li { margin: 0; padding: 14px 0; border-top: 1px solid var(--soft-line); font-size: 16px; line-height: 1.55; }
.g-list li:first-child { border-top: 0; padding-top: 4px; }
.g-list a { display: block; margin-bottom: 3px; font-size: 18px; font-weight: 700; line-height: 1.3; }
.g-list span { display: block; color: var(--muted); }
.cms-guide .h-title + .g-lede + .h-sec { margin-top: 30px; }

@media (max-width: 850px) {
  .cms { padding-top: 34px; }
}
@media (max-width: 620px) {
  .cms { padding: 26px 0 30px; }
  .g-lede { font-size: 17px; }
  .h-sec { padding-top: 26px; }
  .h-sec > h2 { font-size: 23px; }
  .g-get .button { min-height: 46px; padding: 10px 22px; font-size: 16px; }
}
@media screen and (prefers-color-scheme: dark) {
  .cms { --muted: var(--soft); --box: #1a281f; --tile: var(--card); --line: var(--rule); --soft-line: var(--card-line); }
  .tag { border-color: var(--chip-line); background: var(--chip); }
  .g-warn { background: #3a2f17; border-color: #6b5626; color: #f0d9a4; }
}
