<?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_7f1b9528-355e-4f16-8a82-e7648ed727b4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-01</startDate>
            <endDate>2026-09-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_7f1b9528-355e-4f16-8a82-e7648ed727b4"
      id="F_927f3816-45ea-48cd-9f29-0223a2478be9">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_7f1b9528-355e-4f16-8a82-e7648ed727b4"
      id="F_fc2d7a8e-11a2-488f-b6f7-f4e26030eb04">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_7f1b9528-355e-4f16-8a82-e7648ed727b4"
      id="F_d6c5eebf-c631-45fd-8310-35cff5edc1fa">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_7f1b9528-355e-4f16-8a82-e7648ed727b4"
      id="F_3395cc02-1a98-405e-8d94-893683e090ab">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_7f1b9528-355e-4f16-8a82-e7648ed727b4"
      id="F_230b7938-9f20-4e72-858e-020d77036ec4">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7f1b9528-355e-4f16-8a82-e7648ed727b4"
      id="F_d566d4ba-b079-4bc0-b514-b2c63d7df1f8">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_7f1b9528-355e-4f16-8a82-e7648ed727b4"
      id="F_3ae3853d-cbca-4b9e-89d9-74f08666c5cc">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_7f1b9528-355e-4f16-8a82-e7648ed727b4"
      id="F_a8cd1e0b-a974-4704-a427-1b8b4741d64b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_7f1b9528-355e-4f16-8a82-e7648ed727b4"
      id="F_048bd1c5-c6eb-4c05-be06-3dde37a0a56d">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_7f1b9528-355e-4f16-8a82-e7648ed727b4"
      id="F_bc58aadb-128b-4a53-895c-fbd36f3aeddb">&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;139,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_7f1b9528-355e-4f16-8a82-e7648ed727b4"
      decimals="-3"
      id="F_0a24cd2a-ecf5-439e-8976-506e00fdf7d8"
      unitRef="U_USD">139000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
