<?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_09796e59-d08b-4fb0-81bb-de9a9988c3ca">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-23</startDate>
            <endDate>2026-06-23</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_09796e59-d08b-4fb0-81bb-de9a9988c3ca"
      id="F_803d9ddc-e8e5-4329-9f22-4c8d57eaf8fe">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_09796e59-d08b-4fb0-81bb-de9a9988c3ca"
      id="F_0011014d-dfed-4814-a9e4-2abc2dc7ae9e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_09796e59-d08b-4fb0-81bb-de9a9988c3ca"
      id="F_1796680c-5b13-4e3f-a065-10d29ad5e8e3">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_09796e59-d08b-4fb0-81bb-de9a9988c3ca"
      id="F_56e6bc4a-8aa6-4359-9b29-f0f541e985de">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_09796e59-d08b-4fb0-81bb-de9a9988c3ca"
      id="F_43cd6ad5-11f4-4c97-90f7-3d5efcf34807">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_09796e59-d08b-4fb0-81bb-de9a9988c3ca"
      id="F_7296fea2-4cd0-4e60-bfe5-3fe77c798b69">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_09796e59-d08b-4fb0-81bb-de9a9988c3ca"
      id="F_07ba5761-eab8-434d-85ff-6da534615a64">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_09796e59-d08b-4fb0-81bb-de9a9988c3ca"
      id="F_94443feb-839e-4fec-900b-213e196bb0e8">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_09796e59-d08b-4fb0-81bb-de9a9988c3ca"
      id="F_0deb22c0-b6fe-49be-82bc-b0ac33dc9d72">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_09796e59-d08b-4fb0-81bb-de9a9988c3ca"
      id="F_61792301-1105-4e48-87d8-0c0238a9e8b2">&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;516,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_09796e59-d08b-4fb0-81bb-de9a9988c3ca"
      decimals="-3"
      id="F_75e72223-6d91-4f08-a320-ae79588c7fdd"
      unitRef="U_USD">516000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
