<?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_d78caa08-5ec1-43f9-8fb2-13c08c49111b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-20</startDate>
            <endDate>2026-08-20</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_d78caa08-5ec1-43f9-8fb2-13c08c49111b"
      id="F_e1f5abc6-06a1-4d48-bd3c-bf684fd50a9b">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_d78caa08-5ec1-43f9-8fb2-13c08c49111b"
      id="F_3feba904-3710-4191-9c5b-d35dda39dd08">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_d78caa08-5ec1-43f9-8fb2-13c08c49111b"
      id="F_ccbc9c59-1e2e-4173-b030-c38d9057d58a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_d78caa08-5ec1-43f9-8fb2-13c08c49111b"
      id="F_c2bd0921-513d-4f91-977d-9e61e7d33f85">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d78caa08-5ec1-43f9-8fb2-13c08c49111b"
      id="F_0f8655f1-94e0-45d8-97d7-61ae3b32d774">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_d78caa08-5ec1-43f9-8fb2-13c08c49111b"
      id="F_450b4f0a-93d7-48cc-88b6-245f35679ae9">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_d78caa08-5ec1-43f9-8fb2-13c08c49111b"
      id="F_8f17d3e7-283f-4b9c-a74e-b0e660e9800b">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_d78caa08-5ec1-43f9-8fb2-13c08c49111b"
      id="F_212c8953-f1f2-4075-9e33-2e07ee62597f">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_d78caa08-5ec1-43f9-8fb2-13c08c49111b"
      id="F_2e8ef856-d9b4-4f7f-be53-66b3fe840388">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_d78caa08-5ec1-43f9-8fb2-13c08c49111b"
      id="F_f5f39031-b5fa-4192-be70-f5013625a66e">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:right;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-weight:bold;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;EX-FILING FEES&lt;/span&gt;&lt;/p&gt;&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;8,688,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_d78caa08-5ec1-43f9-8fb2-13c08c49111b"
      decimals="-3"
      id="F_0999aab2-1f21-43be-9bcc-1aed57f0dedf"
      unitRef="U_USD">8688000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
