<?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_d99ba62e-689c-4c4e-9d49-aac0017740ef">
        <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>
    <dei:EntityRegistrantName
      contextRef="C_d99ba62e-689c-4c4e-9d49-aac0017740ef"
      id="F_43969821-69a5-485c-a11d-f837eb3b26ac">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d99ba62e-689c-4c4e-9d49-aac0017740ef"
      id="F_c4742cff-581a-4c01-94c1-5c15acca313d">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_d99ba62e-689c-4c4e-9d49-aac0017740ef"
      id="F_d6ca121e-d162-4c7b-b20f-03d76e31acbb">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_d99ba62e-689c-4c4e-9d49-aac0017740ef"
      id="F_8019576c-ebd0-4803-ab08-f1af87c5caa9">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_d99ba62e-689c-4c4e-9d49-aac0017740ef"
      id="F_3585db51-1cab-4e86-a8e0-8f866f53b200">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_d99ba62e-689c-4c4e-9d49-aac0017740ef"
      id="F_ca0a21dd-09e4-4672-96f7-5c5d8095fff1">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_d99ba62e-689c-4c4e-9d49-aac0017740ef"
      id="F_9587bd58-1654-4894-80f4-ef06bbd22848">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_d99ba62e-689c-4c4e-9d49-aac0017740ef"
      id="F_d8818ed9-4ba0-4136-8044-522dae97c14d">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_d99ba62e-689c-4c4e-9d49-aac0017740ef"
      id="F_4db4558a-70cc-464f-b0dc-d978ceb6d7bf">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_d99ba62e-689c-4c4e-9d49-aac0017740ef"
      id="F_adc70beb-39ca-4b6f-890d-a8faf2c2c249">&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;4,830,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_d99ba62e-689c-4c4e-9d49-aac0017740ef"
      decimals="0"
      id="F_deb596d4-3784-49f4-874a-88d1d1b4fe16"
      unitRef="U_USD">4830000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>