<?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_77a2b224-e206-4e80-940b-fe0192b41c58">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-24</startDate>
            <endDate>2026-04-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_77a2b224-e206-4e80-940b-fe0192b41c58"
      id="F_745f6e01-0198-4515-9b5d-6d5707d583c0">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_77a2b224-e206-4e80-940b-fe0192b41c58"
      id="F_24a1f0c7-723a-49ef-89a1-693442120f90">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_77a2b224-e206-4e80-940b-fe0192b41c58"
      id="F_5a1a40da-1d51-482c-bc98-f811fdc93851">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_77a2b224-e206-4e80-940b-fe0192b41c58"
      id="F_ce68782c-3c1d-42a4-80f7-b9a1bac8dc5f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_77a2b224-e206-4e80-940b-fe0192b41c58"
      id="F_af25d2f3-c512-492c-8505-6c02303d7335">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_77a2b224-e206-4e80-940b-fe0192b41c58"
      id="F_bd466c63-12dc-42b8-aa24-a0d8bacbc79f">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_77a2b224-e206-4e80-940b-fe0192b41c58"
      id="F_f6c04da1-26f5-4bf4-be1b-7baa8f383703">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_77a2b224-e206-4e80-940b-fe0192b41c58"
      id="F_146326a6-f089-43d4-bbce-e46cf7fb4f2a">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_77a2b224-e206-4e80-940b-fe0192b41c58"
      id="F_73b7cdc5-990d-4d57-9035-079eec281e44">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_77a2b224-e206-4e80-940b-fe0192b41c58"
      id="F_d135748c-b01d-4aa3-81ee-7a4ae10821a8">&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;7,400,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_77a2b224-e206-4e80-940b-fe0192b41c58"
      decimals="0"
      id="F_52d9e330-c75d-452b-92ee-6a370ca374c4"
      unitRef="U_USD">7400000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>