<?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_fdf811e2-cf20-42e9-9bf1-5629ecee15d3">
        <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>
    <ffd:SubmissnTp
      contextRef="C_fdf811e2-cf20-42e9-9bf1-5629ecee15d3"
      id="F_f05c5c6b-7f7b-47ea-86cc-239e5e99c83d">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_fdf811e2-cf20-42e9-9bf1-5629ecee15d3"
      id="F_06e5000b-48b6-4f1e-9076-94aff6ebadc0">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_fdf811e2-cf20-42e9-9bf1-5629ecee15d3"
      id="F_69772af6-e20c-44d0-b1f2-6152a5427f8c">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_fdf811e2-cf20-42e9-9bf1-5629ecee15d3"
      id="F_3ad472ea-b1c2-4127-8638-a195923dacac">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_fdf811e2-cf20-42e9-9bf1-5629ecee15d3"
      id="F_5e9f78ba-1024-4975-9d76-454301bcff2e">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_fdf811e2-cf20-42e9-9bf1-5629ecee15d3"
      id="F_cd13ab01-daaa-457c-9b53-9bfc95e4a479">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_fdf811e2-cf20-42e9-9bf1-5629ecee15d3"
      id="F_9d0e9208-c69b-441e-a9e3-cb30c2dd87d5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_fdf811e2-cf20-42e9-9bf1-5629ecee15d3"
      id="F_fd397c15-e28b-472b-a2af-bc18a20f643e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_fdf811e2-cf20-42e9-9bf1-5629ecee15d3"
      id="F_3c650e48-9392-48c6-9e5b-1c7fd20c7d13">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_fdf811e2-cf20-42e9-9bf1-5629ecee15d3"
      id="F_5a87d455-f6e1-4a6b-a432-c4a118f13192">&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;17,992,200&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_fdf811e2-cf20-42e9-9bf1-5629ecee15d3"
      decimals="0"
      id="F_0f120be6-3b1c-42ff-8115-8778aaac9e54"
      unitRef="U_USD">17992200</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
