<?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_f5d4f271-4c17-4cd3-82bf-23911f48296c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-12</startDate>
            <endDate>2026-06-12</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_f5d4f271-4c17-4cd3-82bf-23911f48296c"
      id="F_6bc58a09-299d-4425-b688-f3f691df140d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_f5d4f271-4c17-4cd3-82bf-23911f48296c"
      id="F_9dc4d9d8-ba33-4e3e-8a6f-ec4111b6bd51">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_f5d4f271-4c17-4cd3-82bf-23911f48296c"
      id="F_13213833-9dee-485f-af43-67a083c454c7">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_f5d4f271-4c17-4cd3-82bf-23911f48296c"
      id="F_eb1429c5-dda5-4e6b-b764-c5bf726d365c">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f5d4f271-4c17-4cd3-82bf-23911f48296c"
      id="F_6215f84d-4da7-49e4-8b9e-7035493a94a9">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_f5d4f271-4c17-4cd3-82bf-23911f48296c"
      id="F_b6f6d5be-243b-4854-bcbc-088054dd396c">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_f5d4f271-4c17-4cd3-82bf-23911f48296c"
      id="F_e612cc25-b064-4c5b-8ec7-6cd5f98f5a52">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_f5d4f271-4c17-4cd3-82bf-23911f48296c"
      id="F_5952a415-cf46-46bf-871c-646d5dafb380">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_f5d4f271-4c17-4cd3-82bf-23911f48296c"
      id="F_eda3ecf5-9b9d-45cf-a767-67c6e611887c">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_f5d4f271-4c17-4cd3-82bf-23911f48296c"
      id="F_86963a7b-c51c-48b6-903a-245d0b41f452">&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;855,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_f5d4f271-4c17-4cd3-82bf-23911f48296c"
      decimals="-3"
      id="F_ad650cea-114b-4483-b04a-7f20409174a3"
      unitRef="U_USD">855000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
