<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_577f5e1c-0758-459d-9b24-410aa3454e1a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-08</startDate>
            <endDate>2026-07-08</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_577f5e1c-0758-459d-9b24-410aa3454e1a"
      id="F_530e1ac6-02d9-44fe-a684-389b08360d65">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_577f5e1c-0758-459d-9b24-410aa3454e1a"
      id="F_42953234-94f4-4437-b00a-c54305d08bc5">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_577f5e1c-0758-459d-9b24-410aa3454e1a"
      id="F_ce69e900-fa86-4ead-96a7-ffe9de8e0019">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_577f5e1c-0758-459d-9b24-410aa3454e1a"
      id="F_b5f06c2c-a3e6-47c5-8431-da521762b7f5">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_577f5e1c-0758-459d-9b24-410aa3454e1a"
      id="F_527e1ca1-71ce-4aff-b689-5cafd2f1e95d">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_577f5e1c-0758-459d-9b24-410aa3454e1a"
      id="F_c4819445-e4e1-4c9a-a4de-411d0a03462e">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_577f5e1c-0758-459d-9b24-410aa3454e1a"
      id="F_62941ab5-f08c-4745-8766-0451bee9f891">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_577f5e1c-0758-459d-9b24-410aa3454e1a"
      id="F_dc58ffed-2066-4d6b-87db-0fb1601a536e">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_577f5e1c-0758-459d-9b24-410aa3454e1a"
      id="F_ca70ab13-0c65-4273-9236-a481d6c5be45">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_577f5e1c-0758-459d-9b24-410aa3454e1a"
      id="F_773ac1aa-f916-4d90-9734-1bf9d8cfeb20">&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;487,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_577f5e1c-0758-459d-9b24-410aa3454e1a"
      decimals="-3"
      id="F_1215d60e-725e-4d1b-87b2-f4296e1b95f3"
      unitRef="U_USD">487000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
