<?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_faf9b893-def7-4087-a83b-c5e034553eec">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-13</startDate>
            <endDate>2026-10-13</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_faf9b893-def7-4087-a83b-c5e034553eec"
      id="F_0cd38f46-d96e-4e12-8bce-bdffcf7f310a">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_faf9b893-def7-4087-a83b-c5e034553eec"
      id="F_4d83abb7-1de1-454e-89c7-e455ea5acd22">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_faf9b893-def7-4087-a83b-c5e034553eec"
      id="F_ea70d8b1-153d-4bb0-8c01-35f5e12313cc">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_faf9b893-def7-4087-a83b-c5e034553eec"
      id="F_45704cb8-b86a-4689-a20a-8a1f58b1722f">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_faf9b893-def7-4087-a83b-c5e034553eec"
      id="F_e03ed103-918c-4706-a2c0-235708e3860d">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_faf9b893-def7-4087-a83b-c5e034553eec"
      id="F_06695569-7d4e-4f6a-b01e-0577bcd5b768">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_faf9b893-def7-4087-a83b-c5e034553eec"
      id="F_6ff8c093-0185-474f-bd7a-098f1119f108">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_faf9b893-def7-4087-a83b-c5e034553eec"
      id="F_8c53c58f-1eee-4797-966f-541c09f46001">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_faf9b893-def7-4087-a83b-c5e034553eec"
      id="F_eb615e49-12f3-4cb0-ace6-d228615f295f">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_faf9b893-def7-4087-a83b-c5e034553eec"
      id="F_f4353812-8b60-4ec6-b831-c58fa4897e51">&lt;p style="tab-size:26.66px;font-size:12pt;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;510,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_faf9b893-def7-4087-a83b-c5e034553eec"
      decimals="-3"
      id="F_da372de4-e456-4567-a835-d1f5682cd33d"
      unitRef="U_USD">510000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
