<?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_e9fbdb8e-87fd-4d52-8bee-db3ebae54fd6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-15</startDate>
            <endDate>2026-06-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_e9fbdb8e-87fd-4d52-8bee-db3ebae54fd6"
      id="F_ee36d727-8020-40f0-9c16-994761d13705">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_e9fbdb8e-87fd-4d52-8bee-db3ebae54fd6"
      id="F_0c3d13c2-bf48-4a92-83d3-0432c9232756">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_e9fbdb8e-87fd-4d52-8bee-db3ebae54fd6"
      id="F_c0415b8e-c759-4134-b860-0ba47b2af5e6">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_e9fbdb8e-87fd-4d52-8bee-db3ebae54fd6"
      id="F_9dfb23dd-bc1f-405e-9568-3b406e3c43f2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_e9fbdb8e-87fd-4d52-8bee-db3ebae54fd6"
      id="F_12fc581c-631f-4465-86ed-6378bc9db9c6">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_e9fbdb8e-87fd-4d52-8bee-db3ebae54fd6"
      id="F_a801f37b-d0c3-4689-a891-c646ece9f58d">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_e9fbdb8e-87fd-4d52-8bee-db3ebae54fd6"
      id="F_c8d0691d-29ee-4b10-923c-108bc1e70b98">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e9fbdb8e-87fd-4d52-8bee-db3ebae54fd6"
      id="F_28371a28-793e-469a-90c3-dadd84ac3ae3">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_e9fbdb8e-87fd-4d52-8bee-db3ebae54fd6"
      id="F_780de735-b731-4639-92d9-b0c5277e4f66">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_e9fbdb8e-87fd-4d52-8bee-db3ebae54fd6"
      id="F_2009c8eb-5561-48ad-aec3-dd72ce8c4059">&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,000,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_e9fbdb8e-87fd-4d52-8bee-db3ebae54fd6"
      decimals="-6"
      id="F_fd240f22-18e2-4e8e-bc15-adfd880833d8"
      unitRef="U_USD">4000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
