<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_42e30d00-672a-48cc-88c3-c06812018dc3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-28</startDate>
            <endDate>2026-05-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_42e30d00-672a-48cc-88c3-c06812018dc3"
      id="F_52c5b34b-e73b-411a-956a-893d3937f53f">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_42e30d00-672a-48cc-88c3-c06812018dc3"
      id="F_8f23d9c5-5d82-49e0-8390-4d65e12684eb">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_42e30d00-672a-48cc-88c3-c06812018dc3"
      id="F_f3512102-d49a-4e61-bd94-9bb99f33d57a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_42e30d00-672a-48cc-88c3-c06812018dc3"
      id="F_dbdd4639-81aa-4eba-87e9-5b7154d68be3">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_42e30d00-672a-48cc-88c3-c06812018dc3"
      id="F_46a4e796-938a-4698-9ef9-5be7a2ebe32f">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_42e30d00-672a-48cc-88c3-c06812018dc3"
      id="F_e49bf746-eee8-4a89-8041-58a106e49b12">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_42e30d00-672a-48cc-88c3-c06812018dc3"
      id="F_2f8f5373-54c1-4314-b7e4-3ca2fe07ff8f">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_42e30d00-672a-48cc-88c3-c06812018dc3"
      id="F_8e722068-0b05-492a-b7fc-740e94a9b007">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_42e30d00-672a-48cc-88c3-c06812018dc3"
      id="F_5fc960b6-9240-4a34-a3c9-716477b23490">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_42e30d00-672a-48cc-88c3-c06812018dc3"
      id="F_f19ae56f-cc36-43a2-8629-bf37212d7fdc">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;The prospectus to which this Exhibit is attached is a final prospectus for the related offering.  The maximum aggregate offering price for such offering is $&lt;/span&gt;&lt;span style="font-size:12pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;590,000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_42e30d00-672a-48cc-88c3-c06812018dc3"
      decimals="0"
      id="F_7d6f01b8-326a-4153-8469-5c80df915741"
      unitRef="U_USD">590000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
