<?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_258c87a2-2430-4506-b587-495e49500d52">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-10</startDate>
            <endDate>2026-06-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_258c87a2-2430-4506-b587-495e49500d52"
      id="F_67b3900d-c230-4e43-b283-9b31064b69a6">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_258c87a2-2430-4506-b587-495e49500d52"
      id="F_64030543-8768-4e8a-8878-870e5354f870">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_258c87a2-2430-4506-b587-495e49500d52"
      id="F_5aac2d26-4c6c-4bb7-8da9-7428a1f2e219">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_258c87a2-2430-4506-b587-495e49500d52"
      id="F_ff52031f-9dee-4b2b-8aa7-ca83a622551c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_258c87a2-2430-4506-b587-495e49500d52"
      id="F_534faf46-5f80-4b74-bd5b-3c4bcfed4eb3">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_258c87a2-2430-4506-b587-495e49500d52"
      id="F_8ddacb6f-54eb-43c8-bb7f-ab173b6e47e2">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_258c87a2-2430-4506-b587-495e49500d52"
      id="F_8232f3ba-3309-4e4d-9b89-b134c11e26ca">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_258c87a2-2430-4506-b587-495e49500d52"
      id="F_2cf49180-aeaa-4e84-b86e-7b8165c783b2">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_258c87a2-2430-4506-b587-495e49500d52"
      id="F_a95f4835-09e7-4737-8132-86555e02836e">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_258c87a2-2430-4506-b587-495e49500d52"
      id="F_d80d943a-a518-4cd5-ba8f-680c8d78b6a7">&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;685,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_258c87a2-2430-4506-b587-495e49500d52"
      decimals="-3"
      id="F_75ee064d-40ea-4f29-bbd8-14a091181687"
      unitRef="U_USD">685000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
