<?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_16c0bd4c-3ee2-4924-a303-c4dd7866bde4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-14</startDate>
            <endDate>2026-07-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_16c0bd4c-3ee2-4924-a303-c4dd7866bde4"
      id="F_7b8c9c8a-2e37-48c5-8915-d8e34140ac38">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_16c0bd4c-3ee2-4924-a303-c4dd7866bde4"
      id="F_30fd5591-dd41-4319-a125-1edba69559c8">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_16c0bd4c-3ee2-4924-a303-c4dd7866bde4"
      id="F_aba21522-8e1d-41a8-9bb9-9d53087bf2b3">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_16c0bd4c-3ee2-4924-a303-c4dd7866bde4"
      id="F_52f598a4-a040-4010-b67e-937cdee4e192">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_16c0bd4c-3ee2-4924-a303-c4dd7866bde4"
      id="F_187e7069-f7df-43ed-9750-cc97b5027d86">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_16c0bd4c-3ee2-4924-a303-c4dd7866bde4"
      id="F_49c0a7e9-7343-4a2d-9579-fd0899f10b5f">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_16c0bd4c-3ee2-4924-a303-c4dd7866bde4"
      id="F_25dd3615-fa43-4387-b33b-1450904adffb">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_16c0bd4c-3ee2-4924-a303-c4dd7866bde4"
      id="F_abac8dd3-035e-4f41-aa5a-7f7994c22a41">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_16c0bd4c-3ee2-4924-a303-c4dd7866bde4"
      id="F_db628c89-754a-4039-b263-443515dcc4bc">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_16c0bd4c-3ee2-4924-a303-c4dd7866bde4"
      id="F_c04a96f6-0bea-49f6-9a77-1fc3668ae3da">&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,687,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_16c0bd4c-3ee2-4924-a303-c4dd7866bde4"
      decimals="-3"
      id="F_458c5345-de38-44df-824b-70cc54c5ab0c"
      unitRef="U_USD">4687000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
