<?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_363b3155-fbc4-482c-9813-3e916dae9d9c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-31</startDate>
            <endDate>2026-03-31</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_363b3155-fbc4-482c-9813-3e916dae9d9c"
      id="F_376ea827-83c1-4942-9fcd-d58d00e8c521">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_363b3155-fbc4-482c-9813-3e916dae9d9c"
      id="F_47d4a7da-37a5-47ca-be4c-7f0e0680ce33">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_363b3155-fbc4-482c-9813-3e916dae9d9c"
      id="F_1fe354d6-5ba7-4ce6-bdd6-522232838351">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_363b3155-fbc4-482c-9813-3e916dae9d9c"
      id="F_6bf03d49-6402-4539-b472-662b300125b6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_363b3155-fbc4-482c-9813-3e916dae9d9c"
      id="F_c9b19701-970a-4800-ab4f-2e79d44fd555">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_363b3155-fbc4-482c-9813-3e916dae9d9c"
      id="F_3a81979d-4219-426d-ac56-02075be3896f">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_363b3155-fbc4-482c-9813-3e916dae9d9c"
      id="F_139ae382-3d21-4bb2-af6e-2381b378fd4a">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_363b3155-fbc4-482c-9813-3e916dae9d9c"
      id="F_656f0d26-c9db-46de-981a-1fd01749701a">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_363b3155-fbc4-482c-9813-3e916dae9d9c"
      id="F_2733531b-7d9e-4926-aae4-89228db550b6">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_363b3155-fbc4-482c-9813-3e916dae9d9c"
      id="F_ea4c3044-8062-4d24-b1fe-812ff5552f22">&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;1,012,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_363b3155-fbc4-482c-9813-3e916dae9d9c"
      decimals="0"
      id="F_03343375-6295-4dd6-b4a5-d9cf6645f3f4"
      unitRef="U_USD">1012000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
