/* Shared base rules for the 75 public pages that link this file.
   Load after tokens.css and before layout.css.
   invoice-generator.html does not link this file. */

/* Source: length-converter.html lines 83-94. */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    transition: background var(--transition), color var(--transition);
}
a { color: #2d6a9f; text-decoration: none; cursor: pointer; }
a:hover { color: #245883; }
ul { list-style: none; }

/* Source: length-converter.html lines 430-453, selectors .content-section, h1, h2, h3, lists. */
.content-section {
    margin: 32px 0;
}
main > .container > h1 { color: #2d6a9f; }
.content-section h2 {
    font-size: 24px;
    margin-bottom: 12px;
    text-align: left;
    color: #2d6a9f;
}
main > .container > h2 { color: #2d6a9f; }
[data-theme="dark"] main > .container > h1,
[data-theme="dark"] .content-section h2,
[data-theme="dark"] main > .container > h2 { color: #a8d4f5; }
#toolsContainer .tool-group > h2 { color: var(--primary-light); }
[data-theme="dark"] #toolsContainer .tool-group > h2 { color: #a8d4f5; }
.content-section h3 {
    font-size: 20px;
    margin: 20px 0 8px;
}
.content-section ul,
.content-section ol {
    padding-left: 24px;
    margin: 8px 0 16px;
    line-height: 1.8;
}

/* Source: length-converter.html lines 632-657. Phase 2 Step 4 focus, placeholders, dark links.
   The grouped [data-theme="dark"] .related-tools a:hover rule stays before the
   later single rule in components.css (source line 658). */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .search-result-item:focus-visible, .tool-card:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}
[data-theme="dark"] a:focus-visible,
[data-theme="dark"] button:focus-visible,
[data-theme="dark"] input:focus-visible,
[data-theme="dark"] select:focus-visible,
[data-theme="dark"] textarea:focus-visible,
[data-theme="dark"] .search-result-item:focus-visible,
[data-theme="dark"] .tool-card:focus-visible {
    outline-color: #7fb8e8;
}
::placeholder { color: var(--text-light); opacity: 1; }
[data-theme="dark"] .content-section a,
[data-theme="dark"] .site-footer a,
[data-theme="dark"] .breadcrumb a,
[data-theme="dark"] .related-tools a {
    color: #7fb8e8;
}
[data-theme="dark"] .content-section a:hover,
[data-theme="dark"] .site-footer a:hover,
[data-theme="dark"] .breadcrumb a:hover,
[data-theme="dark"] .related-tools a:hover {
    color: #a8d4f5;
}

/* Source: length-converter.html lines 676-701, selector .skip-link. */
.skip-link {
    position: absolute;
    left: 8px;
    top: -80px;
    z-index: 10000;
    background: #2d6a9f;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
}
.skip-link:focus, .skip-link:focus-visible {
    top: 8px;
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
    color: #fff;
}
[data-theme="dark"] .skip-link {
    background: #7fb8e8;
    color: #1a1a2e;
}
[data-theme="dark"] .skip-link:focus, [data-theme="dark"] .skip-link:focus-visible {
    outline-color: #a8d4f5;
    color: #1a1a2e;
}
