<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_1c945bd9-081e-4566-86d8-31bd40281596">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-19</startDate>
            <endDate>2026-05-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_1c945bd9-081e-4566-86d8-31bd40281596"
      id="F_0a6fa8c0-9ae3-4c1b-b160-b3100f602668">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_1c945bd9-081e-4566-86d8-31bd40281596"
      id="F_0f8d893c-0b9b-4da7-8b36-23a0bfd19aa8">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1c945bd9-081e-4566-86d8-31bd40281596"
      id="F_d8fb773f-9480-4d69-a127-d8e43329eb74">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_1c945bd9-081e-4566-86d8-31bd40281596"
      id="F_d503f39a-316b-4c3b-9b5c-9c2ae664d04e">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_1c945bd9-081e-4566-86d8-31bd40281596"
      id="F_3860ab73-cd79-4fe8-bbaf-f4f8ce3feb07">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_1c945bd9-081e-4566-86d8-31bd40281596"
      id="F_6a24f0ed-cae6-43c0-9629-a6168557917d">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_1c945bd9-081e-4566-86d8-31bd40281596"
      id="F_2ae5ce9d-21cb-43cc-9a2b-235b4d936b0f">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_1c945bd9-081e-4566-86d8-31bd40281596"
      id="F_e12fdeb7-c93d-4456-bf7f-adcea2c23137">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_1c945bd9-081e-4566-86d8-31bd40281596"
      id="F_95abea78-5371-42d6-9266-1098e874ad20">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_1c945bd9-081e-4566-86d8-31bd40281596"
      id="F_ca2f4fc1-567b-4d3c-ae3b-ae45b2229ebf">&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;11,430,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_1c945bd9-081e-4566-86d8-31bd40281596"
      decimals="0"
      id="F_921aba20-99c6-4a59-bbce-15922d3551bb"
      unitRef="U_USD">11430000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
