<?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_c26dce61-315e-48ba-98aa-5f2d408db2f6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-25</startDate>
            <endDate>2026-08-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_c26dce61-315e-48ba-98aa-5f2d408db2f6"
      id="F_b900bccb-bcc1-4e1e-b295-cc8a2cbe9e9c">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_c26dce61-315e-48ba-98aa-5f2d408db2f6"
      id="F_d55abad5-28b5-4d90-bd10-a18378578798">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_c26dce61-315e-48ba-98aa-5f2d408db2f6"
      id="F_33992251-bc86-40cc-8faf-9784b0901ac7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c26dce61-315e-48ba-98aa-5f2d408db2f6"
      id="F_2ce74893-ca4b-489a-8cac-ea137e9df2ce">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_c26dce61-315e-48ba-98aa-5f2d408db2f6"
      id="F_ced80dba-e4c0-4dd8-be73-28e159d7d1a7">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_c26dce61-315e-48ba-98aa-5f2d408db2f6"
      id="F_605a805f-c4c0-468b-99cc-743daf46aac6">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_c26dce61-315e-48ba-98aa-5f2d408db2f6"
      id="F_8b284fb7-7e11-42f2-9673-b892120af15f">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_c26dce61-315e-48ba-98aa-5f2d408db2f6"
      id="F_16e00adb-20b0-4c9b-af5c-97d8036b04c2">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_c26dce61-315e-48ba-98aa-5f2d408db2f6"
      id="F_a2711c84-2b87-4fc5-a76a-6067ef50d578">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_c26dce61-315e-48ba-98aa-5f2d408db2f6"
      id="F_dface12a-339a-4a76-b8c3-20287125e418">&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;387,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_c26dce61-315e-48ba-98aa-5f2d408db2f6"
      decimals="-3"
      id="F_94e8c450-68af-422d-9463-2f2f79ef49bd"
      unitRef="U_USD">387000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
