<?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_e85d42c1-3d16-4a44-afa3-2c06965d7672">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-15</startDate>
            <endDate>2026-09-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_e85d42c1-3d16-4a44-afa3-2c06965d7672"
      id="F_d692be0e-6631-4cf0-9991-31be61399d7a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_e85d42c1-3d16-4a44-afa3-2c06965d7672"
      id="F_0de275f5-9655-4908-b14c-4ae90326cfa8">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_e85d42c1-3d16-4a44-afa3-2c06965d7672"
      id="F_e91bf36c-cfc8-4e10-a3de-a8e4f1242c05">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_e85d42c1-3d16-4a44-afa3-2c06965d7672"
      id="F_33c0d3e3-b5d7-4133-9eff-3ebde9fe84a6">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_e85d42c1-3d16-4a44-afa3-2c06965d7672"
      id="F_b4a099eb-719c-4c3b-a1ac-a32a93c5756c">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_e85d42c1-3d16-4a44-afa3-2c06965d7672"
      id="F_964ff498-276d-46fd-bf28-f49d32705772">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_e85d42c1-3d16-4a44-afa3-2c06965d7672"
      id="F_0db94cdc-608a-4308-905f-58eb34473976">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e85d42c1-3d16-4a44-afa3-2c06965d7672"
      id="F_ad6b864a-c19b-4896-9bb6-f639ff09ee47">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_e85d42c1-3d16-4a44-afa3-2c06965d7672"
      id="F_d9728a90-792a-4ff1-a0af-d72e5b676348">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_e85d42c1-3d16-4a44-afa3-2c06965d7672"
      id="F_221d2ba4-f475-4d3e-aa7b-d618a1ba7b51">&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;1,830,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_e85d42c1-3d16-4a44-afa3-2c06965d7672"
      decimals="-3"
      id="F_12c88c04-fab8-4a4c-9579-e908bdd79be6"
      unitRef="U_USD">1830000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
