<?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_e36ccd68-d517-4c90-b5e7-843805e2c611">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-29</startDate>
            <endDate>2026-09-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_e36ccd68-d517-4c90-b5e7-843805e2c611"
      id="F_efca9bec-84ac-46ab-9234-0494d3796c52">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_e36ccd68-d517-4c90-b5e7-843805e2c611"
      id="F_83c494e8-5c0d-439b-97eb-ba044caa88fe">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_e36ccd68-d517-4c90-b5e7-843805e2c611"
      id="F_456d7cfb-8f84-462d-a2f5-eb3a225e1ca3">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_e36ccd68-d517-4c90-b5e7-843805e2c611"
      id="F_dc6c97fe-57bf-431c-9ac8-fe88e8876031">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_e36ccd68-d517-4c90-b5e7-843805e2c611"
      id="F_44819c28-b22e-4a01-988a-8ea15ee6628d">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_e36ccd68-d517-4c90-b5e7-843805e2c611"
      id="F_c54b9250-d8c2-4163-829b-43021c527e1d">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_e36ccd68-d517-4c90-b5e7-843805e2c611"
      id="F_0fbd4472-66dc-4e85-8606-6e3491f87cc8">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e36ccd68-d517-4c90-b5e7-843805e2c611"
      id="F_d74528e7-b7fe-438b-af57-4a808e33fc91">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_e36ccd68-d517-4c90-b5e7-843805e2c611"
      id="F_48311043-144c-4d93-8e72-db8e2187d400">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_e36ccd68-d517-4c90-b5e7-843805e2c611"
      id="F_1ded566f-091e-4e28-8452-4acf7246e83f">&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;2,873,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_e36ccd68-d517-4c90-b5e7-843805e2c611"
      decimals="-3"
      id="F_b9432944-803c-4174-b267-9470c8391541"
      unitRef="U_USD">2873000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
