<?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_23ca0419-0851-41b2-b937-818652869053">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-21</startDate>
            <endDate>2026-07-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_23ca0419-0851-41b2-b937-818652869053"
      id="F_2664a095-ca86-4a6e-b3a4-17b21c480de1">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_23ca0419-0851-41b2-b937-818652869053"
      id="F_d0c64d5a-3381-436b-9abb-873b04f62bd7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_23ca0419-0851-41b2-b937-818652869053"
      id="F_0f19b963-7527-41b8-818c-c9a35e49f58c">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_23ca0419-0851-41b2-b937-818652869053"
      id="F_9dc194b2-adee-476c-b7dd-82329c07cecf">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_23ca0419-0851-41b2-b937-818652869053"
      id="F_dc3adb5e-2a02-41fa-b0ea-d43d9733b85f">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_23ca0419-0851-41b2-b937-818652869053"
      id="F_6c82a98d-e054-4dec-b11c-77bb050e9bf4">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_23ca0419-0851-41b2-b937-818652869053"
      id="F_6ba7207b-b69c-493b-9338-394269622d14">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_23ca0419-0851-41b2-b937-818652869053"
      id="F_b2bbec71-cddb-4b71-99fe-efbbecd6b9b1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_23ca0419-0851-41b2-b937-818652869053"
      id="F_35efef9c-5fa0-4881-85ac-7a4d6c8be27a">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_23ca0419-0851-41b2-b937-818652869053"
      id="F_9db00062-4a69-4833-869f-3080a0b10896">&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;500,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_23ca0419-0851-41b2-b937-818652869053"
      decimals="-3"
      id="F_a03d906f-7685-4842-a59d-97c62d99abab"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
