/*
Theme Name: EDGE Cup Graphite Elegance
Theme URI: https://edgecup.pl/
Description: Grafitowo-złoty motyw potomny EDGE Cup. Zachowuje treść WordPressa, galerie, multimedia, adresy i istniejące menu.
Author: EDGE Cup
Template: twentyseventeen
Version: 1.0.8
Text Domain: edge-cup-graphite
Requires at least: 5.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* WordPress chrome and progressive-enhancement navigation. */
html { scroll-behavior: smooth; }
body.edge-graphite-theme { margin: 0; background: #10171b; }
#edge-graphite .screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; padding: 0; position: absolute !important; white-space: nowrap; }
#edge-graphite .screen-reader-text:focus { clip: auto; clip-path: none; width: auto; height: auto; overflow: visible; left: 12px; top: 12px; padding: 14px 20px; color: #10171b; background: #e2c38d; z-index: 1000; }
#edge-graphite a:focus-visible, #edge-graphite button:focus-visible, #edge-graphite input:focus-visible, #edge-graphite textarea:focus-visible, #edge-graphite select:focus-visible { outline: 2px solid #e2c38d; outline-offset: 5px; }
#edge-graphite .eg-header { position: relative; z-index: 40; }
#edge-graphite .eg-header .eg-nav { min-width: 0; }
#edge-graphite .eg-nav-list, #edge-graphite .eg-nav-list ul { list-style: none; margin: 0; padding: 0; }
#edge-graphite .eg-nav-list { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 17px; }
#edge-graphite .eg-nav-list li { position: relative; margin: 0; }
#edge-graphite .eg-nav-list > li { display: flex; align-items: center; }
#edge-graphite .eg-header .eg-nav a { display: inline-block; padding: 12px 0; font-size: 11px; line-height: 1.4; text-decoration: none; color: #f4f1e9; }
#edge-graphite .eg-header .eg-nav a:hover, #edge-graphite .eg-nav .current-menu-item > a, #edge-graphite .eg-nav .current_page_item > a { color: #e2c38d; }
#edge-graphite .eg-nav .sub-menu, #edge-graphite .eg-nav .children { display: none; position: absolute; z-index: 60; left: 0; top: 100%; min-width: 240px; max-width: min(340px,85vw); padding: 8px 16px; border: 1px solid #756647; background: #142027; box-shadow: 0 15px 30px #0007; }
#edge-graphite .eg-nav .sub-menu li, #edge-graphite .eg-nav .children li { display: flex; align-items: center; flex-wrap: wrap; }
#edge-graphite .eg-nav .sub-menu a, #edge-graphite .eg-nav .children a { flex: 1; white-space: normal; padding: 10px 0; }
#edge-graphite .eg-nav .sub-menu .sub-menu, #edge-graphite .eg-nav .children .children { top: 0; left: 100%; }
#edge-graphite .eg-nav li:hover > ul, #edge-graphite .eg-nav li:focus-within > ul, #edge-graphite .eg-nav .eg-submenu-open > ul { display: block; }
#edge-graphite .eg-submenu-toggle { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; min-height: 36px; padding: 0 3px; border: 0; background: transparent; color: #e2c38d; font: 18px/1 Arial,sans-serif; cursor: pointer; }
#edge-graphite .eg-submenu-toggle span { transition: transform .2s; }
#edge-graphite .eg-submenu-open > .eg-submenu-toggle span { transform: rotate(180deg); }
#edge-graphite .eg-menu { display: none; }
#edge-graphite .eg-header-tools { display: flex; gap: 18px; align-items: center; flex-shrink: 0; }
#edge-graphite .eg-languages { display: flex; gap: 9px; align-items: center; }
#edge-graphite .eg-header .eg-languages a, #edge-graphite .eg-header .eg-language-current { font: 11px/1.5 Arial,sans-serif; letter-spacing: .06em; color: #c4c9cb; padding: 8px 0; }
#edge-graphite .eg-languages a[aria-current="true"] { color: #e2c38d; }
#edge-graphite .eg-menu-lines { display: block; width: 22px; height: 14px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; position: relative; }
#edge-graphite .eg-menu-lines::after { content: ''; position: absolute; top: 5px; left: 0; width: 22px; border-top: 1px solid currentColor; }

/* Existing editor content, photos, galleries, embeds and forms. */
#edge-graphite .eg-content-shell { max-width: 1200px; margin: 0 auto; padding: 66px 48px 80px; color: #f3f1eb; }
#edge-graphite .eg-content-header { margin: 0 0 38px; }
#edge-graphite .eg-content-title { margin: 10px 0 18px; color: #f4f1e9; font: 500 clamp(30px,4vw,54px)/1.14 Arial,sans-serif; letter-spacing: -.035em; overflow-wrap: break-word; }
#edge-graphite .eg-content-page { min-width: 0; }
#edge-graphite .eg-content-body { font: 16px/1.8 Arial,sans-serif; overflow-wrap: break-word; }
#edge-graphite .eg-content-body::after { display: table; content: ''; clear: both; }
#edge-graphite .eg-content-body p, #edge-graphite .eg-content-body ul, #edge-graphite .eg-content-body ol { margin-top: 0; margin-bottom: 1.35em; }
#edge-graphite .eg-content-body ul, #edge-graphite .eg-content-body ol { padding-left: 1.5em; }
#edge-graphite .eg-content-body h1, #edge-graphite .eg-content-body h2, #edge-graphite .eg-content-body h3, #edge-graphite .eg-content-body h4, #edge-graphite .eg-content-body h5, #edge-graphite .eg-content-body h6 { font-family: Arial,sans-serif; line-height: 1.25; color: #f4f1e9; margin: 1.6em 0 .65em; }
#edge-graphite .eg-content-body h2 { font-size: clamp(24px,3vw,34px); }
#edge-graphite .eg-content-body h3 { font-size: 24px; }
#edge-graphite .eg-content-body a, #edge-graphite .eg-entry-tags a, #edge-graphite .eg-edit-link a, #edge-graphite .nav-links a, #edge-graphite .eg-footer a { color: #e2c38d; text-underline-offset: .2em; }
#edge-graphite .eg-content-body a:hover { color: #fff0ca; }
#edge-graphite .eg-content-body img, #edge-graphite .eg-content-featured img, #edge-graphite .eg-footer-widgets img { max-width: 100%; height: auto; }
#edge-graphite .eg-content-featured { display: block; margin: 0 0 32px; }
#edge-graphite .eg-content-featured img { display: block; width: auto; }
#edge-graphite .eg-content-body figure { max-width: 100%; margin: 0 0 1.4em; }
#edge-graphite .eg-content-body figcaption, #edge-graphite .eg-content-body .wp-caption-text { font-size: 13px; color: #bdc6ca; }
#edge-graphite .eg-content-body .aligncenter { display: block; margin-left: auto; margin-right: auto; }
#edge-graphite .eg-content-body .alignleft { float: left; margin: 0 24px 18px 0; }
#edge-graphite .eg-content-body .alignright { float: right; margin: 0 0 18px 24px; }
#edge-graphite .eg-content-body .alignwide, #edge-graphite .eg-content-body .alignfull { max-width: 100%; width: 100%; margin-left: 0; margin-right: 0; }
#edge-graphite .eg-content-body iframe, #edge-graphite .eg-content-body video, #edge-graphite .eg-content-body object, #edge-graphite .eg-content-body embed { max-width: 100%; }
#edge-graphite .eg-content-body video { height: auto; }
#edge-graphite .eg-content-body .wp-block-embed__wrapper { position: relative; }
#edge-graphite .eg-content-body .wp-has-aspect-ratio .wp-block-embed__wrapper::before { content: ''; display: block; padding-top: 56.25%; }
#edge-graphite .eg-content-body .wp-has-aspect-ratio .wp-block-embed__wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
#edge-graphite .eg-content-body audio { max-width: 100%; }
#edge-graphite .eg-content-body table { border-collapse: collapse; max-width: 100%; width: 100%; font-size: 14px; display: block; overflow-x: auto; }
#edge-graphite .eg-content-body td, #edge-graphite .eg-content-body th { padding: 12px 16px; border: 1px solid #52616a; text-align: left; }
#edge-graphite .eg-content-body blockquote { margin: 28px 0; padding: 4px 0 4px 24px; border-left: 2px solid #cfae70; color: #e2c38d; }
#edge-graphite .eg-content-body pre { white-space: pre-wrap; overflow-x: auto; }
#edge-graphite .gallery { display: flex; flex-wrap: wrap; gap: 16px; margin: 24px 0; }
#edge-graphite .gallery-item { min-width: 0; margin: 0; width: calc(33.333% - 11px); text-align: center; }
#edge-graphite .gallery-columns-1 .gallery-item { width: 100%; }
#edge-graphite .gallery-columns-2 .gallery-item { width: calc(50% - 8px); }
#edge-graphite .gallery-columns-4 .gallery-item { width: calc(25% - 12px); }
#edge-graphite .gallery-columns-5 .gallery-item, #edge-graphite .gallery-columns-6 .gallery-item, #edge-graphite .gallery-columns-7 .gallery-item, #edge-graphite .gallery-columns-8 .gallery-item, #edge-graphite .gallery-columns-9 .gallery-item { width: calc(20% - 13px); }
#edge-graphite .gallery-icon img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
#edge-graphite .gallery-caption { font-size: 12px; line-height: 1.5; color: #c1c8ca; padding-top: 6px; }
#edge-graphite .eg-post-list-item { padding: 30px 0 42px; border-bottom: 1px solid #40505a; }
#edge-graphite .eg-post-title { font: 500 clamp(24px,3vw,36px)/1.2 Arial,sans-serif; margin: 0 0 24px; }
#edge-graphite .eg-post-title a { color: #f3f1e9; text-decoration: none; }
#edge-graphite .eg-entry-meta, #edge-graphite .eg-edit-link { color: #b4bec3; font-size: 12px; }
#edge-graphite .nav-links, #edge-graphite .eg-page-links { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; margin-top: 30px; }
#edge-graphite .page-numbers { color: #e2c38d; padding: 8px; }
#edge-graphite .eg-page-links { justify-content: flex-start; }
#edge-graphite input, #edge-graphite textarea, #edge-graphite select { box-sizing: border-box; max-width: 100%; color: #f4f1e9; background: #18252d; border: 1px solid #78848a; border-radius: 2px; font: 16px/1.5 Arial,sans-serif; padding: 12px; }
#edge-graphite input[type="submit"], #edge-graphite button.search-submit { color: #10171b; background: #e2c38d; border: 1px solid #e2c38d; cursor: pointer; padding: 12px 20px; }
#edge-graphite .search-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 24px 0; }
#edge-graphite .search-form label { flex: 1 1 220px; }
#edge-graphite .search-field { width: 100%; }
#edge-graphite .search-submit .icon { width: 20px; height: 20px; fill: currentColor; }
#edge-graphite .comments-area { border-top: 1px solid #40505a; margin-top: 44px; padding-top: 28px; }
#edge-graphite .comment-list { padding-left: 0; list-style: none; }
#edge-graphite .comment-list .children { list-style: none; padding-left: 24px; }
#edge-graphite .comment-body { margin-bottom: 28px; }
#edge-graphite .comment-author .avatar { width: 40px; height: 40px; vertical-align: middle; margin-right: 10px; }
#edge-graphite .comment-metadata { font-size: 12px; margin: 8px 0; }
#edge-graphite .comment-form textarea { width: 100%; }
#edge-graphite .comment-form label { display: block; margin-bottom: 6px; }
#edge-graphite .comment-form-cookies-consent label { display: inline; }
#edge-graphite .eg-footer-widgets { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 28px 0; border-top: 1px solid #40505a; }
#edge-graphite .eg-footer-widgets .widget { margin-bottom: 28px; font-size: 14px; line-height: 1.7; }
#edge-graphite .eg-footer-widgets .widget-title { font: 500 18px/1.3 Arial,sans-serif; color: #e2c38d; }
#edge-graphite .eg-footer-social-list { display: flex; flex-wrap: wrap; gap: 18px; padding: 0; list-style: none; font-size: 12px; }
#edge-graphite .eg-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 20px; margin-top: 24px; border-top: 1px solid #40505a; color: #bdc6ca; font-size: 11px; }

@media (max-width: 1200px) {
  #edge-graphite .eg-header { flex-wrap: wrap; gap: 14px; }
  #edge-graphite .eg-header .eg-logo { margin-right: auto; }
  #edge-graphite .eg-header-tools { order: 1; gap: 16px; }
  #edge-graphite.eg-navigation-ready .eg-menu { display: inline-flex; align-items: center; justify-content: center; gap: 10px; order: 2; min-height: 44px; padding: 8px; border: 0; background: transparent; color: #e2c38d; font: 11px/1 Arial,sans-serif; cursor: pointer; }
  #edge-graphite .eg-header .eg-nav { order: 3; width: 100%; flex-basis: 100%; padding: 12px 0 20px; }
  #edge-graphite.eg-navigation-ready .eg-nav { display: none; }
  #edge-graphite.eg-navigation-ready.eg-menu-open .eg-nav { display: block; }
  #edge-graphite .eg-nav-list { display: block; text-align: left; }
  #edge-graphite .eg-nav-list li { display: flex; flex-wrap: wrap; width: 100%; border-top: 1px solid #40505a; }
  #edge-graphite .eg-header .eg-nav a { flex: 1; font-size: 14px; padding: 13px 4px; }
  #edge-graphite .eg-nav .sub-menu, #edge-graphite .eg-nav .children, #edge-graphite .eg-nav .sub-menu .sub-menu, #edge-graphite .eg-nav .children .children { display: block; position: static; flex-basis: 100%; width: 100%; max-width: none; min-width: 0; padding: 0 0 0 18px; border: 0; box-shadow: none; background: #142027; }
  #edge-graphite.eg-navigation-ready .eg-nav .sub-menu, #edge-graphite.eg-navigation-ready .eg-nav .children { display: none; }
  #edge-graphite.eg-navigation-ready .eg-nav .eg-submenu-open > ul { display: block; }
  #edge-graphite .eg-submenu-toggle { min-width: 44px; min-height: 44px; }
}
@media (max-width: 700px) {
  #edge-graphite .eg-header-tools .eg-header-cta { display: none; }
  #edge-graphite .eg-content-shell { padding: 38px 22px 52px; }
  #edge-graphite .eg-content-body { font-size: 15px; line-height: 1.75; }
  #edge-graphite .eg-content-title { font-size: 31px; }
  #edge-graphite .eg-content-body .alignleft, #edge-graphite .eg-content-body .alignright { float: none; margin: 0 0 20px; }
  #edge-graphite .gallery-item, #edge-graphite .gallery-columns-4 .gallery-item, #edge-graphite .gallery-columns-5 .gallery-item, #edge-graphite .gallery-columns-6 .gallery-item, #edge-graphite .gallery-columns-7 .gallery-item, #edge-graphite .gallery-columns-8 .gallery-item, #edge-graphite .gallery-columns-9 .gallery-item { width: calc(50% - 8px); }
  #edge-graphite .gallery-columns-1 .gallery-item { width: 100%; }
  #edge-graphite .eg-footer-widgets { grid-template-columns: 1fr; gap: 10px; }
  #edge-graphite .comment-list .children { padding-left: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

#edge-graphite .eg-footer-pages { padding: 24px 0; border-top: 1px solid #40505a; }
#edge-graphite .eg-footer-pages > ul { columns: 3 200px; column-gap: 28px; margin: 16px 0 0; padding: 0; list-style: none; }
#edge-graphite .eg-footer-pages li { break-inside: avoid; padding: 4px 0; font: 12px/1.65 Arial,sans-serif; }
#edge-graphite .eg-footer-pages ul ul { padding-left: 17px; margin: 4px 0; list-style: none; }
@media (min-width: 1201px) {
  #edge-graphite.eg-navigation-ready .eg-nav li:focus-within > ul { display: none; }
  #edge-graphite.eg-navigation-ready .eg-nav li:hover > ul,
  #edge-graphite.eg-navigation-ready .eg-nav li.eg-submenu-open > ul { display: block; }
  #edge-graphite .eg-nav-list > li:last-child > ul { left: auto; right: 0; }
  #edge-graphite .eg-nav-list > li:last-child > ul ul { left: auto; right: 100%; }
}

/* Override hero typography only for existing WordPress content. */
#edge-graphite .eg-content-shell .eg-content-title,
#edge-graphite .eg-content-shell h1.eg-content-title { font: 500 clamp(30px,4vw,54px)/1.14 Arial,sans-serif; letter-spacing: -.035em; white-space: normal; overflow-wrap: break-word; }
#edge-graphite .eg-content-body h1 { font: 500 clamp(28px,3.5vw,42px)/1.2 Arial,sans-serif; white-space: normal; overflow-wrap: break-word; letter-spacing: -.025em; }
#edge-graphite .eg-header { height: auto; min-height: 103px; }
#edge-graphite .eg-header nav.eg-languages { margin: 0; padding: 0; gap: 9px; width: auto; }
#edge-graphite .eg-footer-main > a > img { display: block; width: 50px; height: 58px; object-fit: contain; }
@media (max-width: 1200px) {
  #edge-graphite .eg-header { height: auto; min-height: 88px; }
  #edge-graphite.eg-menu-open .eg-header { height: auto; }
  #edge-graphite .eg-header .eg-nav { margin: 0; }
}
@media (max-width: 700px) {
  #edge-graphite .eg-content-shell .eg-content-title,
  #edge-graphite .eg-content-shell h1.eg-content-title { font-size: 31px; }
}
#edge-graphite .eg-footer-widgets > .eg-footer-widget-area:only-child { grid-column: 1 / -1; }
#edge-graphite .eg-nav i.icon_house_alt,
#edge-graphite .eg-nav i.icon_phone { display: none; }
#edge-graphite .eg-nav .eg-menu-text { font: inherit; letter-spacing: inherit; }
